Skip to content

Scan API

Run the Agent Readiness Test from a script, a CI job, or an AI agent. One POST request returns the same report as the website: a score from 0 to 100, the result of every check, what we found, and a fix prompt for your coding agent.

Endpoint

POST https://agentfrendly.com/api/scan

No account or API key is needed. Send a JSON body with the Content-Type: application/json header:

{ "url": "https://your-product.com" }

We scan only the homepage of the URL you send, so any path, query, or fragment is ignored. A scan takes up to about 20 seconds.

Response

A successful scan returns HTTP 200 with a report:

  • url: the homepage we scanned, after redirects.
  • score: 0 to 100, or null when an essential check could not be completed.
  • checks: one entry per check, with id, status (pass, partial, fail, or unverified), evidence, and a recommendation. The robots-txt check also lists bots: whether robots.txt allows each AI bot we check, and the rule that decides.
  • limitations: what this scan could not see or verify.
  • fixPrompt: instructions you can paste into a coding agent to fix every gap.

The OpenAPI description has the full schema.

Errors and limits

Failed requests return JSON with an error message.

  • 400: the URL is not a public website, or the body is not valid JSON.
  • 403: the request came from a browser on another website. Call the API from a server, a script, or the command line.
  • 415: the request is missing Content-Type: application/json.
  • 429: too many scans. Each IP address can run 5 scans per minute. Wait for the seconds in the Retry-After header.
  • 503: the scanner is busy or unavailable. Try again later.

Only scan sites you own or are allowed to check, as described in the terms of service.

Next steps