SEO audit API

Run the same audits as the web app from your own code. Pro and Agency keys can create an audit, read it back as JSON and check this month's usage. Send the key as a bearer token; monthly plan limits still apply.

Authentication

Create a key on the API keys page in your account and send it on every request:

Authorization: Bearer pb_live_…

Create an audit

curl -X POST https://pagebehavior.com/api/v1/audits \
  -H "authorization: Bearer pb_live_…" \
  -H "content-type: application/json" \
  -d '{"url":"https://example.com"}'

A finished create returns 201 and JSON with top-level id, status, and report. Read id from that object. It is not nested.

Read an audit

curl https://pagebehavior.com/api/v1/audits/AUDIT_ID -H "authorization: Bearer pb_live_…"

The JSON has id, status, url, score, error, and report. report carries the score and every check, the same data shown on the report page.

Read this month's usage

curl https://pagebehavior.com/api/v1/usage -H "authorization: Bearer pb_live_…"

The JSON has plan, auditsUsed, and auditsLimit.

Rate limits

Keys are limited per minute as well as by the monthly plan allowance. A 429 response with error.code of rate_limited means you should wait and retry. A monthly quota refusal uses 402.

What teams build with the SEO API

  • Audit new pages automatically after each deploy.
  • Feed scores into dashboards or client reports.
  • Open a ticket when a key page picks up a new fail.

API access is included in the Pro and Agency plans. See pricing.

Which plans include the API?

Pro and Agency.

Do API audits count toward my monthly limit?

Yes. API audits and audits run in the app share the same monthly allowance.

What does a 429 mean?

You hit the per-minute limit. Wait briefly and retry.

Related