Skip to content
SEO-Wars

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" }
StatusCodeMeaning
400invalid_urlThe url parameter is missing or invalid.
401invalid_api_keyAn x-api-key was sent but is not valid.
429rate_limitToo many requests in this hour.
422blockedThe address is private or not allowed.
502fetch_failedThe site could not be fetched or is too large.
502too_largeThe site could not be fetched or is too large.
500server_errorUnexpected 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
Public score API · SEO-Wars