{"openapi":"3.1.0","info":{"title":"AvocadoScore API","version":"1.0.0","summary":"Free, keyless AI-readiness, SEO and llms.txt checks over HTTP.","description":"Free, keyless HTTP endpoints behind the [AvocadoScore](https://avocadoscore.io) tools: check whether a site is ready for ChatGPT, Claude and Perplexity, see which AI crawlers it lets in, generate an `llms.txt`, run a full scan, and embed a live score badge. JSON in, JSON out. **No account, no API key.**\n\n## Quick start\n\n```bash\ncurl -s https://avocadoscore.io/api/readiness \\\n  -H 'content-type: application/json' \\\n  -d '{\"url\":\"example.com\"}'\n```\n\n## Good to know\n\n- **Public sites only.** We fetch the site from our servers, so private, internal and non-routable addresses are refused with `400`.\n- **Call it from a server.** The endpoints send no CORS headers, so another site's browser JavaScript can't call them. (The *Try it* console on this page works because it runs on our own origin.) Badges are images and embed anywhere.\n- **Rate limited per IP address**, see the table below. Over a limit you get `429` with a `Retry-After` header (seconds). Limits count in fixed windows that start with your first request, and are shared across all our servers.\n- **Errors** are JSON, `{\"error\": \"…\"}`, with a `reason` when the site itself couldn't be read. Branch on the status code and `reason`, not on the message text.\n- **Responses can gain fields.** Ignore fields you don't recognise and don't depend on field order.\n- **Fair use.** Check sites you own or that are public. [How our crawler behaves](https://avocadoscore.io/bot).\n- **Need more volume, or a bulk run?** Email [hello@avocadoscore.io](mailto:hello@avocadoscore.io).\n\n## Limits\n\n| Endpoint | Per IP | Per domain |\n| --- | --- | --- |\n| `POST /api/readiness` | 30 / hour | — |\n| `POST /api/bot-check` | 30 / hour | — |\n| `POST /api/llms-generator` | 20 / hour | — |\n| `POST /api/scans` | 5 / hour | 3 / day |\n\nThe status, summary and badge reads have no per-request limit of their own. Badges are cached at the edge, so embedding one is cheap.\n\n## Prefer a UI?\n\nThe same checks are available without code: the [readiness checker](https://avocadoscore.io/tools/readiness-checker), the [AI bot checker](https://avocadoscore.io/tools/ai-bot-checker), the [llms.txt generator](https://avocadoscore.io/tools/llms-generator) and a [full scan](https://avocadoscore.io/). To see how sites compare, read the [State of AI Readiness](https://avocadoscore.io/state-of-ai-readiness) report.","termsOfService":"https://avocadoscore.io/terms","contact":{"name":"AvocadoScore","url":"https://avocadoscore.io","email":"hello@avocadoscore.io"}},"servers":[{"url":"https://avocadoscore.io","description":"Production"}],"tags":[{"name":"Checks","description":"Instant checks that answer in seconds, in one request. Use these to test a site’s AI readiness or crawler access, or to generate an `llms.txt`."},{"name":"Scans","description":"A full scan is the free report: up to 10 pages picked from the sitemap, Core Web Vitals plus SEO and AI readiness, with every fix. It runs in the background, so you create it, poll its status, then read the result. The finished report is a public page at `/r/{id}`."},{"name":"Badges","description":"Embeddable SVG badges. `/api/badge/{domain}` is live (it always shows the domain’s latest result); `/api/scans/{id}/badge` is a snapshot of one scan."}],"paths":{"/api/readiness":{"post":{"operationId":"checkReadiness","tags":["Checks"],"summary":"Check a site’s SEO and AI readiness","description":"An instant check of a site's homepage: a 12-point SEO checklist and the AI-readiness checks (crawler access, `llms.txt`, structured data, server-rendered content and more), with the reason behind every result. It runs only the readiness analyzer, with no PageSpeed run, so it answers in seconds.\n\nThe result is also kept for 7 days so a [comparison page](https://avocadoscore.io/compare) can show the site without checking it again (see `stored`).\n\nRate limit: 30 requests per IP per hour.","x-rate-limit":{"perIpPerHour":30},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UrlRequest"},"examples":{"domain":{"summary":"A bare domain","value":{"url":"example.com"}},"full":{"summary":"A full URL","value":{"url":"https://example.com/"}}}}}},"responses":{"200":{"description":"The SEO and AI-readiness results.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadinessResponse"},"examples":{"example":{"summary":"example.com (abridged)","value":{"url":"https://example.com","domain":"example.com","seo":{"score":46,"passed":5,"warned":1,"failed":6,"total":12,"checks":[{"id":"https","label":"HTTPS","status":"pass","detail":"Served over HTTPS"},{"id":"sitemap","label":"Sitemap","status":"fail","detail":"No sitemap.xml found"},{"id":"robots","label":"robots.txt","status":"fail","detail":"Missing"}]},"ai":{"score":61,"passed":8,"warned":6,"failed":4,"total":18,"checks":[{"id":"answer-bots","label":"AI answer-engine access","status":"pass","detail":"No restrictions on any of the 5 search/citation crawlers (default-allowed)","pillar":"access"},{"id":"markdown-negotiation","label":"Markdown for agents (bonus)","status":"warn","detail":"No text/markdown variant — optional, but agents parse markdown more reliably than HTML","bonus":true,"pillar":"comprehension"}],"botPolicies":[{"bot":"GPTBot","vendor":"OpenAI","status":"unspecified","kind":"training"},{"bot":"OAI-SearchBot","vendor":"OpenAI","status":"unspecified","kind":"search"}],"hasLlmsTxt":false,"hasLlmsFullTxt":false,"pillars":{"access":{"score":100,"passed":6,"warned":0,"failed":0,"total":6},"comprehension":{"score":40,"passed":2,"warned":4,"failed":4,"total":10},"trust":{"score":50,"passed":0,"warned":2,"failed":0,"total":2}}},"stored":true}}}}}},"400":{"description":"Malformed JSON, a missing or implausible URL, or an address that is not a public website.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"example":{"summary":"Malformed JSON, a missing or implausible URL, or an address that is not a public website.","value":{"error":"That host is not publicly reachable."}}}}}},"429":{"description":"Over a rate limit. Wait `Retry-After` seconds.","headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"example":{"summary":"Rate limited","value":{"error":"Too many checks from this IP. Try again in 42 min."}}}}}},"500":{"description":"Something failed on our side. Try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"example":{"summary":"Something failed on our side. Try again.","value":{"error":"Check failed"}}}}}},"502":{"description":"The site could not be reached or read (with a `reason`), or the analysis produced nothing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"unreachable":{"summary":"Unreachable","value":{"error":"example.invalid does not resolve","reason":"dns"}}}}}}}}},"/api/bot-check":{"post":{"operationId":"checkBotAccess","tags":["Checks"],"summary":"Check which AI crawlers a site lets in","description":"Resolves every major AI crawler's robots.txt policy (using the RFC 9309 matching rules), and runs a live fetch of the homepage as GPTBot to show whether the content is actually served. robots.txt is intent; the live fetch is reality: a firewall can block a crawler that robots.txt allows.\n\nRate limit: 30 requests per IP per hour.","x-rate-limit":{"perIpPerHour":30},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UrlRequest"},"examples":{"domain":{"summary":"A bare domain","value":{"url":"example.com"}},"full":{"summary":"A full URL","value":{"url":"https://example.com/"}}}}}},"responses":{"200":{"description":"One row per crawler, a summary, and the live fetch result.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BotCheckResponse"},"examples":{"example":{"summary":"example.com (abridged)","value":{"url":"https://example.com","domain":"example.com","robotsPresent":false,"rows":[{"id":"GPTBot","vendor":"OpenAI","product":"ChatGPT (training)","kind":"training","note":"Feeds the models behind ChatGPT. Block it to opt out of training.","status":"unspecified"},{"id":"OAI-SearchBot","vendor":"OpenAI","product":"ChatGPT Search","kind":"search","note":"Indexes pages for ChatGPT Search results. Block it and you can’t be surfaced there.","status":"unspecified"}],"summary":{"allowed":0,"blocked":0,"partial":0,"unspecified":12,"total":12},"live":{"bot":"GPTBot","bytesAsBot":125,"bytesAsBrowser":125,"ratio":1,"botBlocked":false,"status":"pass","detail":"GPTBot sees 100% of the content a browser sees — essentially identical."}}}}}}},"400":{"description":"Malformed JSON, a missing or implausible URL, or an address that is not a public website.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"example":{"summary":"Malformed JSON, a missing or implausible URL, or an address that is not a public website.","value":{"error":"That host is not publicly reachable."}}}}}},"429":{"description":"Over a rate limit. Wait `Retry-After` seconds.","headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"example":{"summary":"Rate limited","value":{"error":"Too many checks from this IP. Try again in 42 min."}}}}}},"500":{"description":"Something failed on our side. Try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"example":{"summary":"Something failed on our side. Try again.","value":{"error":"Check failed"}}}}}},"502":{"description":"The site could not be reached or read (with a `reason`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"unreachable":{"summary":"Unreachable","value":{"error":"example.invalid does not resolve","reason":"dns"}}}}}}}}},"/api/llms-generator":{"post":{"operationId":"generateLlmsTxt","tags":["Checks"],"summary":"Generate a starter llms.txt","description":"Reads the site's sitemap and returns a starter `llms.txt`, with the URLs grouped into sections. `content` is the finished Markdown, ready to save as `/llms.txt`. A site with no sitemap and no homepage links to read returns `502`.\n\nRate limit: 20 requests per IP per hour.","x-rate-limit":{"perIpPerHour":20},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UrlRequest"},"examples":{"domain":{"summary":"A bare domain","value":{"url":"avocadoscore.io"}},"full":{"summary":"A full URL","value":{"url":"https://avocadoscore.io/"}}}}}},"responses":{"200":{"description":"The generated file, as sections and as Markdown.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LlmsResponse"},"examples":{"example":{"summary":"avocadoscore.io (abridged)","value":{"url":"https://avocadoscore.io","domain":"avocadoscore.io","title":"avocadoscore.io","description":"Auto-generated content map for avocadoscore.io.","sections":[{"title":"Home","links":[{"title":"Home","url":"https://avocadoscore.io/"}]},{"title":"Docs","links":[{"title":"Guides","url":"https://avocadoscore.io/guides"},{"title":"Ai Search Optimization","url":"https://avocadoscore.io/guides/ai-search-optimization"}]}],"content":"# avocadoscore.io\n\n> Auto-generated content map for avocadoscore.io.\n\n## Home\n\n- [Home](https://avocadoscore.io/)\n\n## Docs\n\n- [Guides](https://avocadoscore.io/guides)\n- [Ai Search Optimization](https://avocadoscore.io/guides/ai-search-optimization)\n","urlCount":1020}}}}}},"400":{"description":"Malformed JSON, a missing or implausible URL, or an address that is not a public website.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"example":{"summary":"Malformed JSON, a missing or implausible URL, or an address that is not a public website.","value":{"error":"That host is not publicly reachable."}}}}}},"429":{"description":"Over a rate limit. Wait `Retry-After` seconds.","headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"example":{"summary":"Rate limited","value":{"error":"Too many checks from this IP. Try again in 42 min."}}}}}},"500":{"description":"Something failed on our side. Try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"example":{"summary":"Something failed on our side. Try again.","value":{"error":"Check failed"}}}}}},"502":{"description":"No sitemap or homepage links to build the file from.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"example":{"summary":"No sitemap or homepage links to build the file from.","value":{"error":"example.invalid does not resolve","reason":"dns"}}}}}}}}},"/api/scans":{"post":{"operationId":"createScan","tags":["Scans"],"summary":"Start a full scan","description":"Starts the free full scan of a site and returns its id straight away; the scan runs in the background (poll [`GET /api/scans/{id}`](#tag/scans/GET/api/scans/{id})). If a recent scan of the domain already exists (one that has not failed and was created in the last 10 minutes, or a free scan that finished in the last 24 hours), you get that one back with `reused: true` instead of a new run.\n\nRate limit: 5 requests per IP per hour, and 3 scans per domain per day.","x-rate-limit":{"perIpPerHour":5,"perDomainPerDay":3},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UrlRequest"},"examples":{"domain":{"summary":"A bare domain","value":{"url":"example.com"}},"full":{"summary":"A full URL","value":{"url":"https://example.com/"}}}}}},"responses":{"200":{"description":"A recent scan of this domain already exists; this is it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScanReused"},"examples":{"example":{"summary":"Reused","value":{"id":"8c1f3a52-6b1e-4f0e-9a51-2d6c0f7b1a44","status":"done","reused":true}}}}}},"201":{"description":"A new scan was accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScanCreated"},"examples":{"example":{"summary":"Accepted","value":{"id":"8c1f3a52-6b1e-4f0e-9a51-2d6c0f7b1a44","status":"queued"}}}}}},"400":{"description":"Malformed JSON, a missing or implausible URL, or an address that is not a public website.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"example":{"summary":"Malformed JSON, a missing or implausible URL, or an address that is not a public website.","value":{"error":"That host is not publicly reachable."}}}}}},"422":{"description":"The site could not be reached or read (with a `reason`), so no scan was started.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"unreachable":{"summary":"Unreachable","value":{"error":"example.invalid does not resolve","reason":"dns"}}}}}},"429":{"description":"Over the per-IP limit or the per-domain limit. Wait `Retry-After` seconds.","headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"example":{"summary":"Rate limited","value":{"error":"Too many checks from this IP. Try again in 42 min."}}}}}}}}},"/api/scans/{id}":{"get":{"operationId":"getScan","tags":["Scans"],"summary":"Get a scan’s status","description":"The scan’s current status and progress. Poll every few seconds until `status` is `done` (or `failed`, with `errorMessage` set). Responses are never cached. The finished report is at `/r/{id}`; for just the headline scores use the summary endpoint.","parameters":[{"name":"id","in":"path","required":true,"description":"The scan id returned when the scan was created.","schema":{"type":"string","format":"uuid"},"example":"8c1f3a52-6b1e-4f0e-9a51-2d6c0f7b1a44"}],"responses":{"200":{"description":"The scan’s status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScanState"},"examples":{"example":{"summary":"Scanning","value":{"id":"8c1f3a52-6b1e-4f0e-9a51-2d6c0f7b1a44","url":"https://example.com","domain":"example.com","tier":"free","status":"scanning","progress":{"phase":"scanning","done":3,"total":10,"currentUrl":"https://example.com/pricing"},"discoveredCount":42,"errorMessage":null,"hasData":false}}}}}},"404":{"description":"No scan with that id.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"example":{"summary":"No scan with that id.","value":{"error":"Not found"}}}}}}}}},"/api/scans/{id}/summary":{"get":{"operationId":"getScanSummary","tags":["Scans"],"summary":"Get a scan’s headline scores","description":"The three headline scores as JSON. `ready` is `false` (with no scores) until the scan finishes; a score the engine could not produce is `null`. A private scan’s scores are not returned without access. Cached for 5 minutes.","parameters":[{"name":"id","in":"path","required":true,"description":"The scan id returned when the scan was created.","schema":{"type":"string","format":"uuid"},"example":"8c1f3a52-6b1e-4f0e-9a51-2d6c0f7b1a44"}],"responses":{"200":{"description":"The scores, or `ready: false` while the scan is still running.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScanSummary"},"examples":{"ready":{"summary":"Finished","value":{"id":"8c1f3a52-6b1e-4f0e-9a51-2d6c0f7b1a44","domain":"example.com","ready":true,"perf":71,"seo":88,"ai":72}},"pending":{"summary":"Still running","value":{"id":"8c1f3a52-6b1e-4f0e-9a51-2d6c0f7b1a44","domain":"example.com","ready":false}}}}}},"404":{"description":"No scan with that id.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"example":{"summary":"No scan with that id.","value":{"error":"Not found"}}}}}}}}},"/api/badge/{domain}":{"get":{"operationId":"getDomainBadge","tags":["Badges"],"summary":"A live score badge for a domain","description":"An SVG badge you can paste once (README, site footer, blog post): it always shows the domain's latest result.\n\nThe numbers come from the latest **free** scan of the domain and, for the AI and SEO scores, the site's stored readiness check, whichever is newer. `perf` and `verdict` exist only once the domain has had a full scan. Paid and monitor scans are never shown on a public badge. A domain with nothing on file yet returns a grey \"—\" badge, never a broken image.\n\n```markdown\n[![AI ready](https://avocadoscore.io/api/badge/example.com?metric=ai)](https://avocadoscore.io/)\n```","parameters":[{"name":"domain","in":"path","required":true,"description":"The domain. `www.` and case are ignored.","schema":{"type":"string"},"example":"github.com"},{"name":"metric","in":"query","required":false,"description":"`ai` (AI readiness), `seo` (SEO readiness), `perf` (mobile performance) or `verdict` (the overall ripeness). Anything else falls back to the default.","schema":{"type":"string","enum":["ai","seo","perf","verdict"],"default":"ai"}}],"responses":{"200":{"description":"The badge.","headers":{"Cache-Control":{"description":"Cached for about 5 minutes.","schema":{"type":"string"}}},"content":{"image/svg+xml":{"schema":{"$ref":"#/components/schemas/Badge"},"example":"<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"146\" height=\"28\" role=\"img\" aria-label=\"AI ready: 71\">…</svg>"}}},"400":{"description":"Not a valid domain.","content":{"text/plain":{"schema":{"type":"string"},"example":"Invalid domain"}}}}}},"/api/scans/{id}/badge":{"get":{"operationId":"getScanBadge","tags":["Badges"],"summary":"A snapshot badge for one scan","description":"An SVG badge for one finished scan. It is a **snapshot**: a re-scan is a new scan with a new id, so this badge never changes. Use the live domain badge to follow a site’s latest result.","parameters":[{"name":"id","in":"path","required":true,"description":"The scan id returned when the scan was created.","schema":{"type":"string","format":"uuid"},"example":"8c1f3a52-6b1e-4f0e-9a51-2d6c0f7b1a44"},{"name":"metric","in":"query","required":false,"description":"`ai` (AI readiness), `seo` (SEO readiness), `perf` (mobile performance) or `verdict` (the overall ripeness). Anything else falls back to the default.","schema":{"type":"string","enum":["ai","seo","perf","verdict"],"default":"verdict"}}],"responses":{"200":{"description":"The badge.","headers":{"Cache-Control":{"description":"Cached for about 5 minutes.","schema":{"type":"string"}}},"content":{"image/svg+xml":{"schema":{"$ref":"#/components/schemas/Badge"},"example":"<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"146\" height=\"28\" role=\"img\" aria-label=\"AI ready: 71\">…</svg>"}}},"404":{"description":"No finished scan with that id.","content":{"text/plain":{"schema":{"type":"string"},"example":"Scan not found"}}}}}}},"components":{"schemas":{"UrlRequest":{"type":"object","properties":{"url":{"type":"string","description":"The site to check. A bare domain (`example.com`) or a full URL; `https://` is assumed when omitted. Only public websites are accepted.","examples":["example.com"]}},"required":["url"]},"ErrorReason":{"type":"string","description":"Why a site could not be read. Present when the problem is the site itself rather than the request.","enum":["dns","refused","timeout","tls","auth","forbidden","rate-limited","not-found","client-error","server-error","redirect-loop","redirect-invalid","bot-challenge","login-wall","unknown"],"x-enumDescriptions":{"dns":"the domain doesn't resolve","refused":"connection refused or reset","timeout":"no response before the deadline","tls":"certificate or TLS handshake problem","auth":"the homepage needs a login (401)","forbidden":"a firewall or CDN is blocking automated requests (403)","rate-limited":"the site answered 429","not-found":"the homepage is 404 or 410","client-error":"another 4xx","server-error":"the site answered 5xx","redirect-loop":"too many redirects","redirect-invalid":"a redirect we could not follow","bot-challenge":"the site is behind a bot-protection challenge","login-wall":"the homepage is a login page","unknown":"something else went wrong"}},"Error":{"type":"object","properties":{"error":{"type":"string","description":"A human-readable message. Branch on the HTTP status and `reason`, not on this text."},"reason":{"$ref":"#/components/schemas/ErrorReason"}},"required":["error"]},"CheckStatus":{"type":"string","enum":["pass","warn","fail"],"description":"The outcome of a single check."},"AiPillar":{"type":"string","enum":["access","comprehension","trust"],"description":"The AI-readiness pillar a check belongs to: **access** (can AI crawlers get in), **comprehension** (can they read it), **trust** (can they cite it)."},"ReadinessCheck":{"type":"object","properties":{"id":{"type":"string","description":"A stable identifier for the check.","examples":["llms-txt"]},"label":{"type":"string","description":"A human-readable name for the check.","examples":["/llms.txt"]},"status":{"$ref":"#/components/schemas/CheckStatus"},"detail":{"type":"string","description":"One line on what was found, and what to do about it."},"pillar":{"$ref":"#/components/schemas/AiPillar"},"bonus":{"type":"boolean","description":"A positive-only signal (for example serving Markdown to agents). It is listed but not counted in the score, so a site is never penalised for lacking it."}},"required":["id","label","status"]},"ReadinessScore":{"type":"object","properties":{"score":{"type":"integer","description":"The composite score, 0 to 100.","minimum":0,"maximum":100},"passed":{"type":"integer","description":"Scored checks that passed."},"warned":{"type":"integer","description":"Scored checks that warned."},"failed":{"type":"integer","description":"Scored checks that failed."},"total":{"type":"integer","description":"Scored checks (bonus checks are not counted)."},"checks":{"type":"array","description":"Every check, including any bonus check.","items":{"$ref":"#/components/schemas/ReadinessCheck"}}},"required":["score","passed","warned","failed","total","checks"]},"BotPolicyStatus":{"type":"string","enum":["allowed","blocked","partial","unspecified"],"description":"`allowed`: an explicit allow rule. `blocked`: robots.txt disallows the whole site (`Disallow: /`). `partial`: some paths are disallowed. `unspecified`: no rule for this crawler, so it may crawl by default."},"CrawlerKind":{"type":"string","enum":["search","training"],"description":"`search` crawlers fetch pages to answer or cite in AI search; `training` crawlers feed models."},"AiBotPolicy":{"type":"object","properties":{"bot":{"type":"string","description":"The robots.txt user-agent token.","examples":["GPTBot"]},"vendor":{"type":"string","description":"Who runs the crawler.","examples":["OpenAI"]},"status":{"$ref":"#/components/schemas/BotPolicyStatus"},"kind":{"$ref":"#/components/schemas/CrawlerKind"}},"required":["bot","vendor","status"]},"AiPillarScore":{"type":"object","properties":{"score":{"type":"integer","description":"The pillar score, 0 to 100.","minimum":0,"maximum":100},"passed":{"type":"integer","description":"Checks that passed."},"warned":{"type":"integer","description":"Checks that warned."},"failed":{"type":"integer","description":"Checks that failed."},"total":{"type":"integer","description":"Scored checks in the pillar."}},"required":["score","passed","warned","failed","total"]},"AiReadinessScore":{"description":"The AI-readiness score: the generic score plus each crawler’s robots.txt policy and whether the site publishes `llms.txt`.","allOf":[{"$ref":"#/components/schemas/ReadinessScore"},{"type":"object","properties":{"botPolicies":{"type":"array","items":{"$ref":"#/components/schemas/AiBotPolicy"},"description":"The robots.txt policy for each AI crawler the engine checks."},"hasLlmsTxt":{"type":"boolean","description":"The site serves `/llms.txt`."},"hasLlmsFullTxt":{"type":"boolean","description":"The site serves `/llms-full.txt`."},"pillars":{"type":"object","properties":{"access":{"$ref":"#/components/schemas/AiPillarScore"},"comprehension":{"$ref":"#/components/schemas/AiPillarScore"},"trust":{"$ref":"#/components/schemas/AiPillarScore"}},"required":["access","comprehension","trust"],"description":"Per-pillar scores. Absent on results stored before pillars existed."}},"required":["botPolicies","hasLlmsTxt","hasLlmsFullTxt"]}]},"ReadinessResponse":{"type":"object","properties":{"url":{"type":"string","description":"The normalised URL that was checked.","examples":["https://example.com"]},"domain":{"type":"string","description":"The canonical domain (no `www.`).","examples":["example.com"]},"seo":{"$ref":"#/components/schemas/ReadinessScore"},"ai":{"$ref":"#/components/schemas/AiReadinessScore"},"stored":{"type":"boolean","description":"Whether the result was kept for 7 days, so the site can appear on a comparison page without being checked again."}},"required":["url","domain","seo","ai","stored"]},"BotAccessRow":{"type":"object","properties":{"id":{"type":"string","description":"The robots.txt user-agent token.","examples":["GPTBot"]},"vendor":{"type":"string","description":"Who runs the crawler."},"product":{"type":"string","description":"The product it feeds.","examples":["ChatGPT (training)"]},"kind":{"$ref":"#/components/schemas/CrawlerKind"},"note":{"type":"string","description":"What allowing or blocking this crawler means in practice."},"status":{"$ref":"#/components/schemas/BotPolicyStatus"}},"required":["id","vendor","product","kind","note","status"]},"CrawlAsBot":{"type":"object","properties":{"bot":{"type":"string","description":"The crawler the live fetch identified as.","examples":["GPTBot"]},"bytesAsBot":{"type":"integer","description":"Bytes of body text the crawler received."},"bytesAsBrowser":{"type":"integer","description":"Bytes of body text an ordinary browser received."},"ratio":{"type":"number","description":"`bytesAsBot / bytesAsBrowser`. Well below 1 means the crawler is served less content."},"botBlocked":{"type":"boolean","description":"The crawler was answered with a non-2xx response."},"status":{"$ref":"#/components/schemas/CheckStatus"},"detail":{"type":"string","description":"A plain-language verdict."}},"required":["bot","bytesAsBot","bytesAsBrowser","ratio","botBlocked","status","detail"]},"BotCheckResponse":{"type":"object","properties":{"url":{"type":"string","description":"The normalised URL that was checked."},"domain":{"type":"string","description":"The canonical domain (no `www.`)."},"robotsPresent":{"type":"boolean","description":"The site serves a robots.txt."},"rows":{"type":"array","items":{"$ref":"#/components/schemas/BotAccessRow"}},"summary":{"type":"object","properties":{"allowed":{"type":"integer","description":"Crawlers explicitly allowed."},"blocked":{"type":"integer","description":"Crawlers fully blocked."},"partial":{"type":"integer","description":"Crawlers with some paths blocked."},"unspecified":{"type":"integer","description":"Crawlers with no rule (they may crawl by default)."},"total":{"type":"integer","description":"Crawlers checked."}},"required":["allowed","blocked","partial","unspecified","total"]},"live":{"description":"A live fetch of the homepage as GPTBot, to show whether content is actually served (a firewall can block a crawler that robots.txt allows). `null` when the live fetch itself failed; that never fails the request.","oneOf":[{"$ref":"#/components/schemas/CrawlAsBot"},{"type":"null"}]}},"required":["url","domain","robotsPresent","rows","summary","live"]},"LlmsSection":{"type":"object","properties":{"title":{"type":"string","description":"The section heading.","examples":["Docs"]},"links":{"type":"array","items":{"type":"object","properties":{"title":{"type":"string","description":"The page title."},"url":{"type":"string","description":"The page URL.","format":"uri"}},"required":["title","url"]}}},"required":["title","links"]},"LlmsResponse":{"type":"object","properties":{"url":{"type":"string","description":"The normalised URL that was read."},"domain":{"type":"string","description":"The canonical domain (no `www.`)."},"title":{"type":"string","description":"The site title used for the file."},"description":{"type":"string","description":"The site description used for the file."},"sections":{"type":"array","items":{"$ref":"#/components/schemas/LlmsSection"}},"content":{"type":"string","description":"The finished Markdown, ready to save as `/llms.txt`."},"urlCount":{"type":"integer","description":"How many URLs the sitemap contained."}},"required":["url","domain","title","description","sections","content","urlCount"]},"ScanStatus":{"type":"string","enum":["queued","discovering","scanning","aggregating","done","failed"],"description":"`queued` (accepted) → `discovering` (reading the sitemap) → `scanning` (measuring pages) → `aggregating` (building the report) → `done`, or `failed`."},"ScanProgress":{"type":"object","properties":{"phase":{"type":"string","description":"The current phase."},"done":{"type":"integer","description":"Pages finished."},"total":{"type":"integer","description":"Pages planned. `0` until discovery finishes."},"currentUrl":{"type":["string","null"],"description":"The page being measured now."}},"required":["phase","done","total","currentUrl"]},"ScanCreated":{"type":"object","properties":{"id":{"type":"string","description":"The scan id.","format":"uuid"},"status":{"$ref":"#/components/schemas/ScanStatus"}},"required":["id","status"]},"ScanReused":{"type":"object","properties":{"id":{"type":"string","description":"The id of the existing scan.","format":"uuid"},"status":{"$ref":"#/components/schemas/ScanStatus"},"reused":{"const":true,"description":"Present (and `true`) when an existing scan was returned instead of starting a new one."}},"required":["id","status","reused"]},"ScanState":{"type":"object","properties":{"id":{"type":"string","description":"The scan id.","format":"uuid"},"url":{"type":"string","description":"The URL that was scanned."},"domain":{"type":"string","description":"The canonical domain."},"tier":{"type":"string","enum":["free","standard"],"description":"Every public scan is `free`."},"status":{"$ref":"#/components/schemas/ScanStatus"},"progress":{"$ref":"#/components/schemas/ScanProgress"},"discoveredCount":{"type":["integer","null"],"description":"URLs found in the sitemap. `null` until discovery finishes."},"errorMessage":{"type":["string","null"],"description":"Why the scan failed, when it did."},"hasData":{"type":"boolean","description":"The finished report is available."}},"required":["id","url","domain","tier","status","progress","discoveredCount","errorMessage","hasData"]},"ScanSummary":{"description":"The headline scores of a scan, once it has finished.","oneOf":[{"type":"object","properties":{"id":{"type":"string","description":"The scan id.","format":"uuid"},"domain":{"type":"string","description":"The canonical domain."},"ready":{"const":true},"perf":{"oneOf":[{"type":"integer","description":"Average performance score across the scanned pages (mobile).","minimum":0,"maximum":100},{"type":"null"}]},"seo":{"oneOf":[{"type":"integer","description":"SEO readiness score.","minimum":0,"maximum":100},{"type":"null"}]},"ai":{"oneOf":[{"type":"integer","description":"AI readiness score.","minimum":0,"maximum":100},{"type":"null"}]}},"required":["id","domain","ready","perf","seo","ai"],"title":"Ready"},{"type":"object","properties":{"id":{"type":"string","description":"The scan id.","format":"uuid"},"domain":{"type":"string","description":"The canonical domain."},"ready":{"const":false}},"required":["id","domain","ready"],"title":"Not ready yet"},{"type":"object","properties":{"id":{"type":"string","description":"The scan id.","format":"uuid"},"domain":{"type":"string","description":"The canonical domain."},"ready":{"const":true},"gated":{"const":true,"description":"A private scan: its scores are not returned without access."}},"required":["id","domain","ready","gated"],"title":"Private"}]},"Badge":{"type":"string","description":"An SVG image, 28px tall: a dark label half and a score half coloured by band (90+ green, 50–89 amber, below 50 red, missing grey)."}},"headers":{"RetryAfter":{"description":"Seconds until the limit resets and a request would succeed.","schema":{"type":"integer","minimum":1}}}}}