Everything on a report page is available as JSON from https://agentfriendlyrank.com/api/v1. There is no key, no rate card and no write endpoint: the API is read-only, CORS is open to any origin, and errors come back as RFC 9457 problem details rather than HTML. This post walks the whole surface with curl, using the field names the responses actually carry; the JSON below is trimmed to shape, and the values for the example domains are illustrative. The human-readable summary lives at /docs; the contract, with schemas, is the OpenAPI 3.1 document at /api/v1/openapi.json.
If you have not read a report on the site yet, reading your scan report explains what the checks and evidence blocks mean. The API returns the same things, in the same order, without the prose.
Start at the index
The root of the API is an entry point for an agent that lands there with no other context. It links everything else, including the OpenAPI document and the MCP server, and it is static, so it is cached for an hour.
curl https://agentfriendlyrank.com/api/v1
{
"name": "AgentFriendlyRank API",
"version": "v1",
"rubricVersion": "1.0.1",
"openapi": "https://agentfriendlyrank.com/api/v1/openapi.json",
"documentation": "https://agentfriendlyrank.com/docs",
"mcp": "https://agentfriendlyrank.com/mcp",
"endpoints": {
"rubric": "https://agentfriendlyrank.com/api/v1/rubric",
"leaderboard": "https://agentfriendlyrank.com/api/v1/leaderboard{?category,limit,offset}",
"site": "https://agentfriendlyrank.com/api/v1/sites/{domain}",
"compare": "https://agentfriendlyrank.com/api/v1/compare/{a}/{b}",
"scan": "https://agentfriendlyrank.com/api/v1/scans/{id}"
},
"note": "Read-only. To scan a site, use the form at /scan — it works without JavaScript — then poll /scans/{id}.",
"terms": "https://agentfriendlyrank.com/terms"
}
The endpoints values are RFC 6570 URI templates, which is why the braces are not percent-encoded. Every response is pretty-printed, so curl output is readable as it is.
The rubric
GET /rubric returns the scoring rubric as data: the same definition that renders /methodology and that scores every report, because the rubric is defined once and both surfaces read from it.
curl https://agentfriendlyrank.com/api/v1/rubric
{
"version": "1.0.1",
"totalChecks": 27,
"totalPoints": 100,
"methodologyUrl": "https://agentfriendlyrank.com/methodology",
"pillars": [
{ "id": "A", "name": "…", "question": "…", "points": 25,
"checks": [ { "id": "A1", "name": "…", "points": 3, "detail": "…", "effort": "Low" } ] }
],
"grades": [ { "grade": "A+", "range": "95–100" } ],
"changelog": [ { "version": "1.0.1", "date": "2026-08-07", "note": "…" } ]
}
If you interpret check ids programmatically, fetch this once and keep it. The changelog array is the published record of every rubric change; scores issued under an earlier version are never restated, and every report carries the rubricVersion it was scored under.
The leaderboard, with a category
GET /leaderboard lists every published site with its latest completed scan, highest score first. Three optional query parameters: category (one of ecommerce, saas, content, other), limit (default 100, maximum 500) and offset (default 0).
curl 'https://agentfriendlyrank.com/api/v1/leaderboard?category=saas&limit=10'
{
"category": "saas",
"categories": [ { "id": "saas", "label": "SaaS" }, "…" ],
"total": 42,
"offset": 0,
"limit": 10,
"rubricVersion": "1.0.1",
"entries": [
{ "rank": 1, "domain": "example.com", "category": "saas", "scoreTotal": 91, "grade": "A",
"rubricVersion": "1.0.1", "finishedAt": "2026-11-20T09:14:02.000Z",
"reportUrl": "https://agentfriendlyrank.com/site/example.com" }
]
}
total is the number of listed sites matching the filter before paging, so it is the value to use for a pagination loop. An unknown category answers 400, and the detail lists the valid ones. Hidden sites and robots.txt opt-outs never appear, which is the same rule the HTML leaderboard follows; the API does not have a second opinion about visibility.
A site report
GET /sites/{domain} is the full report. Any URL or hostname form is accepted and normalised to the bare domain, so https://www.example.com/pricing and example.com resolve to the same thing.
curl https://agentfriendlyrank.com/api/v1/sites/agentfriendlyrank.com
{
"domain": "agentfriendlyrank.com",
"reportUrl": "https://agentfriendlyrank.com/site/agentfriendlyrank.com",
"badgeUrl": "https://agentfriendlyrank.com/badge/agentfriendlyrank.com.svg",
"scan": {
"id": "…",
"scoreTotal": 100,
"grade": "A+",
"pillars": { "A": 25, "B": 25, "C": 25, "D": 25 },
"siteType": "…",
"rubricVersion": "1.0.1",
"finishedAt": "…"
},
"topFixes": [],
"checks": [
{ "id": "A1", "pillar": "A", "name": "…", "status": "pass",
"pointsEarned": 3, "pointsPossible": 3,
"recommendation": "No change needed.", "impact": "…", "effort": "Low",
"evidence": { } }
]
}
Three things worth knowing about this shape.
checks always has all 27 entries. status is one of pass, partial, fail or na; na is what a non-commerce site gets for C5, with its points redistributed elsewhere. evidence is what the crawl captured for that check and its shape varies per check: the fields the report page shows under each line are exactly the keys here.
topFixes is up to five failing or partial checks, ranked by impact and then effort, with the same recommendation text as the check itself. It is empty for a site with nothing to fix.
badgeUrl is null unless the site is listed at grade B or better; ours is on the live report.
A 404 has two distinct meanings and the detail tells them apart only in one direction. If the domain disallows our crawler in robots.txt, the detail says so. If the site has never been scanned or its owner has hidden the report, the detail says there is no published report and points at the scan form. Those two cases are deliberately indistinguishable: a hidden report should not leak the fact that it exists.
A comparison
GET /compare/{a}/{b} puts two published sites side by side. Order does not matter; the response is always in canonical (alphabetical) order, and there are no redirects, so a client can pass the pair either way round.
curl https://agentfriendlyrank.com/api/v1/compare/example.com/example.org
{
"compareUrl": "https://agentfriendlyrank.com/compare/example.com/vs/example.org",
"a": { "domain": "example.com", "reportUrl": "…", "badgeUrl": null, "scan": { "scoreTotal": 71, "grade": "B", "pillars": { "…": 0 } } },
"b": { "domain": "example.org", "reportUrl": "…", "badgeUrl": null, "scan": { "scoreTotal": 64, "grade": "C", "pillars": { "…": 0 } } },
"checks": [
{ "id": "A1", "pillar": "A", "name": "…", "pointsPossible": 3,
"a": { "status": "pass", "pointsEarned": 3 },
"b": { "status": "partial", "pointsEarned": 1 } }
]
}
a and b are summaries: the same top-level shape as a site report minus checks and topFixes. The per-check rows carry only status and points for each side. Identical domains, or anything that does not normalise to a public domain, answer 400; if either side has no published report the 404 detail names which.
Scan status
GET /scans/{id} exists for polling. status is one of queued, crawling, scoring, complete, failed or blocked, and reportUrl is null until the scan is complete. It is the one endpoint sent with Cache-Control: no-store, because the whole point of polling it is the change.
curl https://agentfriendlyrank.com/api/v1/scans/6f1c2b1e-0d5a-4b7e-9a1c-3e2f4d5a6b7c
{
"id": "6f1c2b1e-0d5a-4b7e-9a1c-3e2f4d5a6b7c",
"domain": "example.com",
"status": "crawling",
"error": null,
"createdAt": "2026-11-21T14:03:11.000Z",
"progressUrl": "https://agentfriendlyrank.com/scan/6f1c2b1e-0d5a-4b7e-9a1c-3e2f4d5a6b7c",
"reportUrl": null
}
blocked means the site's robots.txt disallows AgentFriendlyRankBot; error carries that reason as text.
Errors and caching
Every error is application/problem+json, as RFC 9457 describes: type (always about:blank), title, status, a detail written to say what to do, and instance set to the path that failed. The status codes these endpoints answer are 400, 404 and 503, and a 503 always means the scan database is unreachable rather than that the data does not exist. The endpoints never answer an empty list in place of an error.
Report, leaderboard and comparison responses are cached at the edge for five minutes, matching the HTML pages. The rubric, the index and the OpenAPI document change only with a deploy and carry an hour. CORS allows any origin, and a preflight answers 204, so a browser-side agent can call this directly.
Why there is no endpoint to request a scan
This is a decision, not an omission. A scan crawls a third party's site: our bot fetches their homepage and up to five more pages, twice each, plus probes under three other user agents. Requesting one should stay a deliberate act with a rate limit behind it, so it lives behind the form at /scan, which works without JavaScript and answers with a redirect to /scan/{id}. An agent can drive that form and then poll /scans/{id} until status is complete. Results are cached per domain for seven days.
An authenticated way for a verified owner to trigger a scan of their own site is the natural next step, and it is not built yet. Until it is, the API documents the form as the path and stops there.
Where this fits in the rubric
The API is also the reason our own site scores full marks on C4, machine endpoints and agent manifests. The check looks in the homepage HTML for a reference to an openapi.json file and for a link to an API documentation page, alongside a parseable agents.json; two of those is five points. The footer links /docs and the OpenAPI file, so both are present on every page. Publishing an OpenAPI spec for a site that has no API covers how to do the same for a site with far less to expose.
Check your own site
Run the free scan on your own domain and the report will be at /api/v1/sites/{domain} as soon as it is at /site/{domain}. The checks it returns are defined on /methodology, and the rubric endpoint gives you the same definitions as data.