SERP Agent Audits API
Technical SEO audit runs (async: enqueue, then poll).
Technical SEO audit runs (async: enqueue, then poll).
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/serp-agent-com:serp-agent-com-audits-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: SERP Agent Audits API
version: 1.0.0
description: 'Agent-ready SEO automation API: programmatic signup, technical site audits, and end-to-end SEO article generation. Designed for AI agents — instant sandbox keys (no CAPTCHA, no payment method), uniform machine-readable errors, idempotent POSTs, and signed webhooks. All request and response fields are snake_case. Quickstart for agents: https://serp-agent.com/docs/agents'
contact:
url: https://serp-agent.com/docs
servers:
- url: https://serp-agent.com
description: Production
security:
- apiKey: []
tags:
- name: Audits
description: 'Technical SEO audit runs (async: enqueue, then poll).'
paths:
/v1/projects/{projectId}/audits:
post:
operationId: runAudit
summary: Start a technical audit
description: 'Enqueues an asynchronous technical SEO audit (a site crawl runs first when no usable crawl exists). Returns 202 with an `audit_id` to poll at GET /v1/audits/{audit_id}. If an audit is already queued/running for the project, that run is returned as-is (202, no duplicate job, no budget burn). Sandbox trial: 1 audit per key. Non-sandbox projects: included with an active subscription; without one, LIVE keys pay per unit from the prepaid credit balance (technical_audit = 25 credits — 402 `insufficient_credits` when the balance is short). Typical completion: a few minutes; poll every 30–60s.'
tags:
- Audits
parameters:
- name: projectId
in: path
required: true
description: Project id.
schema:
type: string
- name: Idempotency-Key
in: header
required: false
description: 'Any unique string (max 200 chars). Retrying a request with the same key replays the stored response verbatim (with header Idempotent-Replayed: true) instead of re-executing — including one-time secrets in the original body. Keys are scoped per account (per client IP on the unauthenticated signup) and pruned after 24h. Reusing a key on a different endpoint returns 409 idempotency_conflict.'
schema:
type: string
maxLength: 200
example: b3f1c9e2-1a77-4d0e-9f5a-2f4f4f4f4f4f
x-sandbox-limits:
audits: 1
responses:
'202':
description: Audit queued (or an already-active run returned). Poll the `poll` path.
headers:
X-RateLimit-Limit:
description: Request budget for the current window (600/min per API key on authenticated routes; 5/hour per IP on signup).
schema:
type: integer
X-RateLimit-Remaining:
description: Requests remaining in the current window.
schema:
type: integer
X-RateLimit-Reset:
description: Unix timestamp (seconds) when the window resets.
schema:
type: integer
content:
application/json:
schema:
$ref: '#/components/schemas/AuditAccepted'
example:
audit_id: aud_01h9x4
status: queued
poll: /v1/audits/aud_01h9x4
'401':
description: 'Missing, malformed, unknown, revoked, or expired API key. Codes: `unauthorized`, `key_revoked`, `key_expired`.'
headers:
X-RateLimit-Limit:
description: Request budget for the current window (600/min per API key on authenticated routes; 5/hour per IP on signup).
schema:
type: integer
X-RateLimit-Remaining:
description: Requests remaining in the current window.
schema:
type: integer
X-RateLimit-Reset:
description: Unix timestamp (seconds) when the window resets.
schema:
type: integer
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
error:
code: unauthorized
message: 'Missing or malformed Authorization header. Expected: Bearer sk_...'
doc_url: https://serp-agent.com/docs/errors#unauthorized
'402':
description: Payment needed. `payment_required` (sandbox key, no subscription) or `insufficient_credits` (live key, no subscription, balance below 25 credits — body carries `required_credits`, `balance_credits`, `purchase`, `subscription_alternative`).
headers:
X-RateLimit-Limit:
description: Request budget for the current window (600/min per API key on authenticated routes; 5/hour per IP on signup).
schema:
type: integer
X-RateLimit-Remaining:
description: Requests remaining in the current window.
schema:
type: integer
X-RateLimit-Reset:
description: Unix timestamp (seconds) when the window resets.
schema:
type: integer
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
error:
code: insufficient_credits
message: 'Not enough credits: technical_audit costs 25 credits, balance is 0. Buy a credit pack (POST /v1/credits/purchases) or subscribe the project (POST /v1/subscriptions — all-inclusive).'
doc_url: https://serp-agent.com/docs/errors#insufficient_credits
'403':
description: 'Sandbox audit budget exhausted (1 per trial). Code: `sandbox_limit_reached`.'
headers:
X-RateLimit-Limit:
description: Request budget for the current window (600/min per API key on authenticated routes; 5/hour per IP on signup).
schema:
type: integer
X-RateLimit-Remaining:
description: Requests remaining in the current window.
schema:
type: integer
X-RateLimit-Reset:
description: Unix timestamp (seconds) when the window resets.
schema:
type: integer
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
error:
code: sandbox_limit_reached
message: 'Sandbox audit budget exhausted (1 per trial). Upgrade to a paid plan to continue: https://serp-agent.com/pricing'
doc_url: https://serp-agent.com/pricing
'404':
description: 'No such project on this account. Code: `not_found`.'
headers:
X-RateLimit-Limit:
description: Request budget for the current window (600/min per API key on authenticated routes; 5/hour per IP on signup).
schema:
type: integer
X-RateLimit-Remaining:
description: Requests remaining in the current window.
schema:
type: integer
X-RateLimit-Reset:
description: Unix timestamp (seconds) when the window resets.
schema:
type: integer
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
error:
code: not_found
message: Project not found.
doc_url: https://serp-agent.com/docs/errors#not_found
'429':
description: Rate limit exceeded (600 requests/minute per API key). Honor `Retry-After`.
headers:
Retry-After:
description: Seconds to wait before retrying.
schema:
type: integer
X-RateLimit-Limit:
description: Request budget for the current window (600/min per API key on authenticated routes; 5/hour per IP on signup).
schema:
type: integer
X-RateLimit-Remaining:
description: Requests remaining in the current window.
schema:
type: integer
X-RateLimit-Reset:
description: Unix timestamp (seconds) when the window resets.
schema:
type: integer
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
error:
code: rate_limited
message: Rate limit exceeded for this API key.
doc_url: https://serp-agent.com/docs/errors#rate_limited
/v1/audits/{auditId}:
get:
operationId: getAudit
summary: Poll an audit run
description: 'Status of a technical audit. `status` walks queued → running → completed (or failed). Completed audits carry `score` (0–100) and a SUMMARIZED report: severity counts, top issues grouped per check (capped at 10, worst first), and per-category scores — never a raw page-by-page dump. Failed audits carry `error`.'
tags:
- Audits
parameters:
- name: auditId
in: path
required: true
description: Audit id from POST /v1/projects/{projectId}/audits.
schema:
type: string
responses:
'200':
description: Current audit state.
headers:
X-RateLimit-Limit:
description: Request budget for the current window (600/min per API key on authenticated routes; 5/hour per IP on signup).
schema:
type: integer
X-RateLimit-Remaining:
description: Requests remaining in the current window.
schema:
type: integer
X-RateLimit-Reset:
description: Unix timestamp (seconds) when the window resets.
schema:
type: integer
content:
application/json:
schema:
$ref: '#/components/schemas/Audit'
example:
audit_id: aud_01h9x4
project_id: proj_01h9x2
status: completed
started_at: '2026-07-23T09:20:00.000Z'
completed_at: '2026-07-23T09:30:00.000Z'
score: 74
summary:
issues_critical: 2
issues_warning: 7
issues_info: 12
top_issues:
- check: SSL
severity: critical
title: Certificate chain incomplete
affected_count: 1
- check: PAGESPEED
severity: warning
title: Largest Contentful Paint above 2.5s on mobile
affected_count: 4
categories:
performance: 68
security: 45
indexability: 90
mobile: 82
structure: 88
'401':
description: 'Missing, malformed, unknown, revoked, or expired API key. Codes: `unauthorized`, `key_revoked`, `key_expired`.'
headers:
X-RateLimit-Limit:
description: Request budget for the current window (600/min per API key on authenticated routes; 5/hour per IP on signup).
schema:
type: integer
X-RateLimit-Remaining:
description: Requests remaining in the current window.
schema:
type: integer
X-RateLimit-Reset:
description: Unix timestamp (seconds) when the window resets.
schema:
type: integer
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
error:
code: unauthorized
message: 'Missing or malformed Authorization header. Expected: Bearer sk_...'
doc_url: https://serp-agent.com/docs/errors#unauthorized
'404':
description: 'No such audit on this account. Code: `not_found`.'
headers:
X-RateLimit-Limit:
description: Request budget for the current window (600/min per API key on authenticated routes; 5/hour per IP on signup).
schema:
type: integer
X-RateLimit-Remaining:
description: Requests remaining in the current window.
schema:
type: integer
X-RateLimit-Reset:
description: Unix timestamp (seconds) when the window resets.
schema:
type: integer
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
error:
code: not_found
message: Audit not found.
doc_url: https://serp-agent.com/docs/errors#not_found
'429':
description: Rate limit exceeded (600 requests/minute per API key). Honor `Retry-After`.
headers:
Retry-After:
description: Seconds to wait before retrying.
schema:
type: integer
X-RateLimit-Limit:
description: Request budget for the current window (600/min per API key on authenticated routes; 5/hour per IP on signup).
schema:
type: integer
X-RateLimit-Remaining:
description: Requests remaining in the current window.
schema:
type: integer
X-RateLimit-Reset:
description: Unix timestamp (seconds) when the window resets.
schema:
type: integer
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
error:
code: rate_limited
message: Rate limit exceeded for this API key.
doc_url: https://serp-agent.com/docs/errors#rate_limited
components:
schemas:
Error:
type: object
description: 'Uniform error body returned by every non-2xx response. `code` is machine-readable (full catalog: https://serp-agent.com/docs/errors); `doc_url` links its documentation.'
required:
- error
properties:
error:
type: object
required:
- code
- message
- doc_url
properties:
code:
type: string
example: rate_limited
message:
type: string
description: Human/agent-readable explanation, often with the exact next step.
doc_url:
type: string
format: uri
Audit:
type: object
required:
- audit_id
- project_id
- status
- started_at
- completed_at
properties:
audit_id:
type: string
project_id:
type: string
status:
type: string
enum:
- queued
- running
- completed
- failed
started_at:
type:
- string
- 'null'
format: date-time
completed_at:
type:
- string
- 'null'
format: date-time
score:
type:
- integer
- 'null'
description: Overall score 0–100. Present only when completed.
summary:
oneOf:
- $ref: '#/components/schemas/AuditSummary'
- type: 'null'
description: Present only when completed.
error:
type: string
description: Present only when failed.
AuditSummary:
type: object
description: Summarized audit report — severity counts, top issues (grouped per check, capped at 10, worst first), and per-category scores.
required:
- issues_critical
- issues_warning
- issues_info
- top_issues
- categories
properties:
issues_critical:
type: integer
issues_warning:
type: integer
issues_info:
type: integer
top_issues:
type: array
items:
type: object
required:
- check
- severity
- title
- affected_count
properties:
check:
type: string
description: Check type, e.g. SSL, PAGESPEED, SITEMAP, CANONICAL, MOBILE.
severity:
type: string
enum:
- critical
- warning
- info
title:
type: string
affected_count:
type: integer
categories:
type: object
description: Average score 0–100 per category (performance, security, indexability, mobile, structure, other). Only categories with scored checks appear.
additionalProperties:
type:
- integer
- 'null'
AuditAccepted:
type: object
required:
- audit_id
- status
- poll
properties:
audit_id:
type: string
status:
type: string
enum:
- queued
- running
description: '"running" when an already-active run was returned.'
poll:
type: string
description: 'Path to poll: GET /v1/audits/{audit_id}.'
securitySchemes:
apiKey:
type: http
scheme: bearer
description: 'API key in the Authorization header: `Authorization: Bearer sk_sandbox_...` (trial) or `Bearer sk_live_...` (paid). Keys are obtained from POST /v1/accounts (instant sandbox key) or POST /v1/api-keys. The raw key is shown exactly once at creation — only a hash is stored. Sandbox keys expire after 14 days.'
x-sandbox-limits:
description: 'Hard caps on a free sandbox trial (per key): 1 project, 1 audit, 2 draft-only articles; the key expires after 14 days. Exceeding a cap returns 403 sandbox_limit_reached with the upgrade URL. Upgrade: https://serp-agent.com/pricing'
projects: 1
audits: 1
articles: 2
expires_days: 14