SERP Agent Articles API
Single-article SEO content generation (async: enqueue, then poll).
Single-article SEO content generation (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-articles-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 Articles 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: Articles
description: 'Single-article SEO content generation (async: enqueue, then poll).'
paths:
/v1/projects/{projectId}/articles:
post:
operationId: generateArticle
summary: Generate one SEO article
description: 'Enqueues end-to-end generation of ONE article for a topic and/or primary keyword (at least one required; the other is derived). Returns 202 with an `article_id` to poll at GET /v1/articles/{article_id}. The article is research-grounded, QA-checked, and returned as draft markdown — it is NEVER auto-published (fetch the content and publish it yourself). Only one API article may generate per project at a time (409 `article_in_progress`). Sandbox trial: 2 articles per key, watermarked as draft-only. Non-sandbox projects: included with an active subscription; without one, LIVE keys pay per unit from the prepaid credit balance (article_generated = 15 credits — 402 `insufficient_credits` when the balance is short; credit-funded articles stay draft-only). Typical completion: 10–30 minutes; poll every 60s.'
tags:
- Articles
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:
articles: 2
requestBody:
required: true
content:
application/json:
schema:
type: object
description: At least one of topic / primary_keyword is required.
properties:
topic:
type: string
minLength: 3
maxLength: 180
description: Working title / topic. Placed verbatim as the article's planned title.
primary_keyword:
type: string
minLength: 2
maxLength: 120
description: Target keyword. Derived from topic (lowercased) when omitted.
example:
topic: How to migrate a WordPress site without losing rankings
primary_keyword: wordpress migration seo
responses:
'202':
description: Article generation queued. 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/ArticleAccepted'
example:
article_id: art_01h9x5
status: queued
poll: /v1/articles/art_01h9x5
'400':
description: 'Malformed body, or neither topic nor primary_keyword given. 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: 'Provide at least one of: topic, primary_keyword.'
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
'402':
description: Payment needed. `payment_required` (sandbox key, no subscription) or `insufficient_credits` (live key, no subscription, balance below 15 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: article_generated costs 15 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 article budget exhausted (2 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 article budget exhausted (2 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
'409':
description: 'An article is already generating for this project. Code: `article_in_progress`.'
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: article_in_progress
message: An article is already generating for this project. Poll /v1/articles/{article_id} and retry once it finishes.
doc_url: https://serp-agent.com/docs/errors#article_in_progress
'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/articles/{articleId}:
get:
operationId: getArticle
summary: Poll an article generation
description: Status of an article. `status` walks generating → qa → ready (or failed); `published` appears when the operator publishes it later. Content fields (`title`, `meta_description`, `content_markdown`, `word_count`, `qa_score`, `language`) appear only once the article is ready or published — while generating you get status only. Sandbox articles carry a `watermark` object and are never published automatically.
tags:
- Articles
parameters:
- name: articleId
in: path
required: true
description: Article id from POST /v1/projects/{projectId}/articles.
schema:
type: string
responses:
'200':
description: Current article 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/Article'
example:
article_id: art_01h9x5
project_id: proj_01h9x2
status: ready
title: How to Migrate a WordPress Site Without Losing Rankings
meta_description: A step-by-step WordPress migration checklist that protects your search rankings…
content_markdown: '## Why migrations lose rankings
…'
word_count: 1840
qa_score: 92
language: en
watermark:
sandbox: true
note: draft-only sandbox article
'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 article 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: Article 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
Article:
type: object
required:
- article_id
- project_id
- status
properties:
article_id:
type: string
project_id:
type: string
status:
type: string
enum:
- generating
- qa
- ready
- published
- failed
description: generating → qa → ready. "published" if/when the operator publishes it. Content fields appear at ready/published.
title:
type:
- string
- 'null'
meta_description:
type:
- string
- 'null'
content_markdown:
type:
- string
- 'null'
description: Full article body as markdown.
word_count:
type:
- integer
- 'null'
qa_score:
type:
- integer
- 'null'
description: Internal QA score 0–100.
language:
type: string
error:
type: string
description: Present only when failed.
watermark:
type: object
description: Present on sandbox projects — the article is a draft-only trial output.
properties:
sandbox:
type: boolean
const: true
note:
type: string
ArticleAccepted:
type: object
required:
- article_id
- status
- poll
properties:
article_id:
type: string
status:
type: string
const: queued
poll:
type: string
description: 'Path to poll: GET /v1/articles/{article_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