SERP Agent Projects API
Sites/domains the API works on. Sandbox keys: 1 project.
Sites/domains the API works on. Sandbox keys: 1 project.
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-projects-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 Projects 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: Projects
description: 'Sites/domains the API works on. Sandbox keys: 1 project.'
paths:
/v1/projects:
post:
operationId: createProject
summary: Create a project
description: 'Registers a site/domain to work on. Sandbox keys are capped at **1 project** and their projects carry `sandbox: true` (audits/articles run free within the trial budget; articles are draft-only). Live keys create projects freely — audits and articles are then gated per project by an active subscription, surfaced as `access: "pending_payment"` until payment completes. `name` defaults to the URL''s hostname; `language` defaults to "en", `country` to "US".'
tags:
- Projects
parameters:
- 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:
projects: 1
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- url
properties:
url:
type: string
minLength: 1
maxLength: 500
description: The site to work on. Normalized server-side; must be a valid http(s) URL.
name:
type: string
minLength: 1
maxLength: 120
language:
type: string
minLength: 2
maxLength: 10
description: Primary content language (lowercased). Default "en".
country:
type: string
minLength: 2
maxLength: 10
description: Primary target country (uppercased). Default "US".
example:
url: https://example.com
name: Example
language: en
country: US
responses:
'201':
description: Project created.
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/Project'
example:
project_id: proj_01h9x2
url: https://example.com
name: example.com
status: setup
language: en
country: US
sandbox: true
access: sandbox
created_at: '2026-07-23T09:01:00.000Z'
'400':
description: 'Malformed body or invalid URL. Code: `invalid_request`.'
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: invalid_request
message: url must be a valid http(s) URL.
doc_url: https://serp-agent.com/docs/errors#invalid_request
'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
'403':
description: 'Sandbox keys are limited to 1 project. 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 keys are limited to 1 project. Upgrade to a paid plan to create more: https://serp-agent.com/pricing'
doc_url: https://serp-agent.com/pricing
'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
get:
operationId: listProjects
summary: List projects
description: All projects on the account, newest first, each with keyword/article/audit counts.
tags:
- Projects
responses:
'200':
description: The account's projects.
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/ProjectList'
example:
projects:
- project_id: proj_01h9x2
url: https://example.com
name: example.com
status: setup
language: en
country: US
sandbox: true
access: sandbox
created_at: '2026-07-23T09:01:00.000Z'
counts:
keywords: 12
articles: 1
audits: 1
'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
'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/projects/{projectId}:
get:
operationId: getProject
summary: Get a project
description: Project details including counts and the latest completed technical-audit summary (`latest_audit`, null when no audit has completed yet).
tags:
- Projects
parameters:
- name: projectId
in: path
required: true
description: Project id.
schema:
type: string
responses:
'200':
description: Project details.
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/ProjectDetail'
example:
project_id: proj_01h9x2
url: https://example.com
name: example.com
status: running
language: en
country: US
sandbox: true
access: sandbox
created_at: '2026-07-23T09:01:00.000Z'
counts:
keywords: 12
articles: 1
audits: 1
latest_audit:
audit_id: aud_01h9x4
status: completed
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 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
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
Project:
type: object
required:
- project_id
- url
- name
- status
- language
- country
- sandbox
- access
- created_at
properties:
project_id:
type: string
url:
type: string
format: uri
name:
type: string
status:
type: string
enum:
- setup
- running
- completed
- paused
description: Lifecycle of the project's background processing.
language:
type: string
example: en
country:
type: string
example: US
sandbox:
type: boolean
description: True for projects created with a sandbox key (draft-only articles, trial budgets).
access:
type: string
enum:
- active
- pending_payment
- sandbox
description: 'Billing gate: audits/articles require "active" or "sandbox". "pending_payment" projects return 402 on work endpoints.'
created_at:
type: string
format: date-time
counts:
type: object
description: Present on list/detail responses.
properties:
keywords:
type: integer
articles:
type: integer
audits:
type: integer
ProjectDetail:
type: object
description: Project (with counts) plus latest_audit.
required:
- project_id
- url
- name
- status
- language
- country
- sandbox
- access
- created_at
- counts
- latest_audit
properties:
project_id:
type: string
url:
type: string
format: uri
name:
type: string
status:
type: string
enum:
- setup
- running
- completed
- paused
language:
type: string
country:
type: string
sandbox:
type: boolean
access:
type: string
enum:
- active
- pending_payment
- sandbox
created_at:
type: string
format: date-time
counts:
type: object
properties:
keywords:
type: integer
articles:
type: integer
audits:
type: integer
latest_audit:
$ref: '#/components/schemas/LatestAudit'
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'
LatestAudit:
type:
- object
- 'null'
description: Latest COMPLETED technical audit, or null when none has completed.
properties:
audit_id:
type: string
status:
type: string
enum:
- queued
- running
- completed
- failed
completed_at:
type:
- string
- 'null'
format: date-time
score:
type:
- integer
- 'null'
description: Overall score 0–100.
summary:
oneOf:
- $ref: '#/components/schemas/AuditSummary'
- type: 'null'
ProjectList:
type: object
required:
- projects
properties:
projects:
type: array
items:
$ref: '#/components/schemas/Project'
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