Skip to content

API quickstart

Scan your site from the command line in one minute. You need curl, and jq if you want to read the results more easily. There is nothing to sign up for and no API key.

1. Run a scan

Replace the URL with your product's site:

curl -sS https://agentfrendly.com/api/scan \
  -H 'Content-Type: application/json' \
  -d '{"url":"https://your-product.com"}'

The response is a JSON report. See the Scan API reference for every field.

2. Read the score

curl -sS https://agentfrendly.com/api/scan \
  -H 'Content-Type: application/json' \
  -d '{"url":"https://your-product.com"}' | jq '{score, failed: [.checks[] | select(.status != "pass") | .id]}'

3. Fix the gaps

Save the fix prompt and give it to your coding agent, then scan again:

curl -sS https://agentfrendly.com/api/scan \
  -H 'Content-Type: application/json' \
  -d '{"url":"https://your-product.com"}' | jq -r .fixPrompt > agent-fixes.md

Limits

Each IP address can run 5 scans per minute. Browsers on other websites cannot call the API, so run it from a server, a script, or the command line. Questions: hello@agentfrendly.com.