Developers
Public score API
One endpoint, JSON out. Score any public URL with the same engine that runs the duels.
Endpoint
GET https://seo-wars.com/api/v1/score?url=example.com- url
- Query parameters: Required. The page to score, with or without https://.
- x-api-key
- Headers: Optional. Raises your limit to 300 requests per hour.
Example
curl "https://seo-wars.com/api/v1/score?url=example.com"With an API key
curl -H "x-api-key: YOUR_KEY" \
"https://seo-wars.com/api/v1/score?url=https://example.com"From the browser (CORS is enabled)
const res = await fetch("https://seo-wars.com/api/v1/score?url=" + encodeURIComponent("example.com"));
const data = await res.json();
if (!res.ok) throw new Error(data.error);
console.log(data.score, data.tier);Response
Results younger than 6 hours are reused from recent duels (cached: true). Otherwise the site is scanned live, which can take up to 25 seconds.
{
"url": "https://example.com/",
"host": "example.com",
"score": 74,
"tier": "gold",
"categories": [
{ "key": "performance", "earned": 18, "max": 22 },
{ "key": "onpage", "earned": 17, "max": 22 },
{ "key": "technical", "earned": 15, "max": 18 },
{ "key": "content", "earned": 9, "max": 14 },
{ "key": "trust", "earned": 8, "max": 12 },
{ "key": "ai", "earned": 7, "max": 12 }
],
"checks": [
{ "code": "ttfb", "category": "performance", "status": "pass", "earned": 9, "max": 9 },
{ "code": "llms_txt", "category": "ai", "status": "fail", "earned": 0, "max": 2 }
],
"scannedAt": "2026-12-02T10:00:00.000Z",
"cached": true
}Errors
Every error is a JSON object with a single error field that holds a stable code.
{ "error": "rate_limit" }| Status | Code | Meaning |
|---|---|---|
| 400 | invalid_url | The url parameter is missing or invalid. |
| 401 | invalid_api_key | An x-api-key was sent but is not valid. |
| 429 | rate_limit | Too many requests in this hour. |
| 422 | blocked | The address is private or not allowed. |
| 502 | fetch_failed | The site could not be fetched or is too large. |
| 502 | too_large | The site could not be fetched or is too large. |
| 500 | server_error | Unexpected error on our side. |
Rate limits
- Without a key: 10 requests per hour per IP.
- With a valid x-api-key: 300 requests per hour per key.
API keys are part of the Pro plan, which is not live yet. Join the waitlist to get one.
Join the waitlist