SEOmatic Articles API
The Articles API from SEOmatic — 6 operation(s) for articles.
The Articles API from SEOmatic — 6 operation(s) for articles.
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/seomatic-ai:seomatic-ai-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: SEOmatic Articles API
version: 1.0.0
description: 'SEOmatic public API v1. Authenticate with a workspace API key: `Authorization: Bearer smk_live_...`. GET /tools lists the full scope-filtered capability surface (identical to the MCP server); POST /tools/{name} invokes any of them. Keys carry scopes: free keys can read and ask; acting requires an agents:act key, and acting over REST requires the Infrastructure plan. Rate limits are per key; responses carry X-RateLimit-* headers and 429s carry Retry-After. Workspaces metered for free questions also get X-SEOmatic-Questions-Remaining (free questions left this month) on /tools/{name} and /ask answers, limit refusals included. One question is one user turn: market-data calls from the same key share one question while each comes within 90 seconds of the previous one, up to 5 lookups; the 6th starts a new question. Search Console, site and stored reads never use a question. Pay as you go: a workspace without a plan can buy prepaid credits in US dollars (from $20, never expire, only spendable on SEOmatic services, not transferable, no cash-out, unused refunded on request). They pay per call once its free questions are used, and for articles, scans and approved fixes; prices at GET /pricing. Too few credits answers 402 PREPAID_CREDITS_EMPTY with the top-up steps, a cap reached answers 402 PREPAID_CREDITS_CAP_REACHED, and failed calls are never charged (a valid no-data answer is a successful call). GET /usage shows the plan, free questions left, the prepaid balance and this key''s cap. Errors are RFC 9457 problem details (send Accept: application/problem+json for that media type; the body is the same either way) and keep their `code`; a 402 adds plan_rule and how_to_upgrade. Every write (POST, PUT, PATCH, DELETE) accepts an Idempotency-Key header: a repeat with the same key and body gets the first answer (Idempotent-Replayed: true), never a second run. Test keys (smk_test_) only stage previews: writes and acting tools answer what they would do, change nothing and charge nothing; `dry_run: true` does the same for one acting tool call on a live key. The same tool with the same arguments repeated 8 times within a minute by one key answers 429 LOOP_DETECTED, uncharged. Renamed tools keep answering to their old names. Agencies: a key reaches the other workspaces of the team it was made in by adding `?site=` to any URL; the request then runs as that workspace, with the key creator''s role and that workspace''s plan there. A site the key cannot reach answers 403 SITE_NOT_REACHABLE, a host two workspaces share answers 409 SITE_AMBIGUOUS (use the workspace id). WordPress plugin keys stay on their own site.'
contact:
email: contact@seomatic.ai
url: https://seomatic.ai/contact
license:
name: Proprietary
url: https://seomatic.ai/terms
servers:
- url: https://app.seomatic.ai/api/v1
security:
- bearerAuth: []
tags:
- name: Articles
paths:
/articles:
post:
operationId: createArticle
summary: Generate one SEO article from a topic (consumes 1 prepaid unit, pay-as-you-go…
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- topic
properties:
topic:
type: string
maxLength: 500
description: The keyword/topic to write about, e.g. "how to choose trail running shoes".
caller_ref:
type: string
pattern: ^[A-Za-z0-9._:@-]{1,128}$
description: Optional opaque tag for YOUR end customer (e.g. "shop:1234"), stored on the article. For approved reseller accounts (contact support), the daily failed-article and cancel limits apply per tag under an account-wide ceiling, so one customer cannot lock out the others; on every other account the account-wide limits apply as without a tag. Never send secrets or personal data.
example:
topic: how to choose a water heater
caller_ref: order-1042
responses:
'202':
description: '{ id, status: "queued", poll } - generation runs async (typically a few minutes).'
content:
application/json:
example:
id: 9d8c7b6a-…
status: queued
poll: /api/v1/articles/9d8c7b6a-…
'400':
description: topic missing (INVALID_REQUEST)
'401':
description: Missing or invalid API key
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'402':
description: No prepaid articles remaining (ARTICLE_BALANCE_EMPTY). Body carries buy_url; POST /articles/checkout returns a payment link.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: Rate limited, or too many failed articles in 24 hours (ARTICLE_FAILURE_CAP; scope "caller" = this caller_ref only (reseller accounts), "org" = the whole account). Nothing was consumed.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
tags:
- Articles
get:
operationId: listArticles
summary: List purchased articles (bodies excluded) and the spendable prepaid balance
responses:
'200':
description: '{ balance, articles: [...] }'
content:
application/json:
example:
articles:
- id: 9d8c7b6a-…
status: ready
title: How to Choose a Water Heater
'401':
description: Missing or invalid API key
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: Rate limited (per key). Retry-After header set.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
tags:
- Articles
/articles/{articleId}:
get:
operationId: getArticle
summary: One article.
parameters:
- name: articleId
in: path
required: true
schema:
type: string
format: uuid
responses:
'200':
description: '{ article: { id, topic, status: queued|generating|ready|failed|canceled, title, markdown, html, wordCount, aiSearchScore, contentScore, featuredImageUrl, errorMessage } }'
content:
application/json:
example:
article:
id: 9d8c7b6a-…
status: ready
title: How to Choose a Water Heater
markdown: '# How to Choose…'
'401':
description: Missing or invalid API key
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: Article not found (NOT_FOUND)
'429':
description: Rate limited (per key). Retry-After header set.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
tags:
- Articles
patch:
operationId: updateArticle
summary: 'Edit a delivered article: {title?, markdown?}.'
parameters:
- name: articleId
in: path
required: true
schema:
type: string
format: uuid
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
title:
type: string
maxLength: 500
markdown:
type: string
description: Full replacement markdown body.
example:
title: Choosing a Water Heater
responses:
'200':
description: '{ ok: true, id }'
content:
application/json:
example:
ok: true
id: 9d8c7b6a-…
'400':
description: Neither title nor markdown provided
'401':
description: Missing or invalid API key
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: Not found, or article not ready yet (NOT_FOUND)
'429':
description: Rate limited (per key). Retry-After header set.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
tags:
- Articles
/articles/{articleId}/cancel:
post:
operationId: cancelArticle
summary: Cancel a queued or generating article and get its prepaid unit back.
parameters:
- name: articleId
in: path
required: true
schema:
type: string
format: uuid
responses:
'200':
description: '{ id, status: "canceled", refunded } (plus already_canceled: true on a repeat, with refunded: false)'
content:
application/json:
example:
id: 9d8c7b6a-…
status: canceled
refunded: true
'401':
description: Missing or invalid API key
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: Article not found (NOT_FOUND)
'409':
description: Already settled (ARTICLE_ALREADY_READY or ARTICLE_ALREADY_FAILED); nothing refunded.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: 'Rate limited, or too many canceled articles in 24 hours (ARTICLE_CANCEL_LIMIT): the article keeps generating and is delivered as usual.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
tags:
- Articles
/articles/checkout:
post:
operationId: createArticleCheckout
summary: 'Get a Stripe payment link to top up a prepaid balance: articles by default ($9…'
requestBody:
required: false
content:
application/json:
schema:
type: object
properties:
sku:
type: string
enum:
- article
- question_pack
- visibility_scan
- competitor_scan
- prepaid_credits
default: article
quantity:
type: integer
minimum: 1
maximum: 52
default: 1
example:
sku: article
quantity: 1
responses:
'200':
description: '{ checkout_url }'
content:
application/json:
example:
checkout_url: https://checkout.stripe.com/c/pay/cs_test_…
note: Open this URL in a browser to complete payment.
'401':
description: Missing or invalid API key
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: Rate limited (per key). Retry-After header set.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
tags:
- Articles
/articles/pay:
post:
operationId: payForArticlesWithSharedPaymentToken
summary: Pay for prepaid article units with a Stripe Shared Payment Token (agentic…
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- spt_token
properties:
spt_token:
type: string
description: A Stripe shared payment token (spt_...) granted by the buyer via their Link wallet.
sku:
type: string
enum:
- article
- question_pack
- visibility_scan
- competitor_scan
- prepaid_credits
default: article
description: 'What to buy: articles ($9 in USD, the local price in other billing currencies, each), question packs (US$5 for 50 assistant questions), AI-visibility scans of your site (US$19), competitor scans (US$19), or prepaid credits (prepaid_credits: US$10 per unit, spent at the prices in GET /pricing).'
quantity:
type: integer
minimum: 1
maximum: 52
default: 1
idempotency_key:
type: string
pattern: ^[A-Za-z0-9_.:-]{8,200}$
description: 'Your id for this one purchase request (or the Idempotency-Key header): the same on every retry of it, new for a new purchase. Without it, spt_token is the request id. A retry of a request that was paid answers paid and never charges again.'
example:
spt_token: spt_123
sku: article
quantity: 1
idempotency_key: order-1042
responses:
'200':
description: '{ paid: true, quantity, amount_cents, currency, balance }'
content:
application/json:
example:
paid: true
sku: article
quantity: 1
amount_cents: 900
currency: usd
balance: 1
'400':
description: Missing or malformed spt_token
'401':
description: Missing or invalid API key
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'402':
description: Payment failed - the token was already used, expired, or the amount exceeds what the user approved. The error message carries the exact reason to relay.
'409':
description: 'request_reused: this request id was used before with other details and its payment is not found yet. Nothing new was charged. Do not ask for another approval for this purchase: its units are added automatically if it went through.'
'429':
description: Rate limited (per key). Retry-After header set.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'503':
description: 'payment_unconfirmed, approval_check_retry or journal_unavailable: Stripe did not answer, an earlier payment for the same purchase is still being confirmed, the same request is still running, or the token was already used and its payment is not found yet, so whether money moved is unknown (approval_check_retry and journal_unavailable: nothing was sent to Stripe). Retry the same request (same spt_token, same idempotency_key) after Retry-After; never ask for another approval meanwhile. It never charges twice.'
tags:
- Articles
/articles/mpp:
post:
operationId: payForArticlesViaMpp
x-payment-info:
offers:
- intent: charge
method: stripe
amount: null
description: Article units, paid by card or Link through a Shared Payment Token. The amount depends on the quantity in the signed link and your billing currency; the 402 challenge states it.
summary: Machine Payments Protocol (MPP) payment link for article units.
parameters:
- name: t
in: query
description: Signed payment token from an mpp_payment_link (carries org and quantity).
schema:
type: string
responses:
'200':
description: '{ paid: true, quantity, amount_cents, currency, balance } plus an MPP receipt header'
content:
application/json:
example:
paid: true
sku: article
quantity: 1
'400':
description: Missing, invalid, or expired payment link
'402':
description: MPP payment challenge (retry with an SPT credential)
'429':
description: Rate limited (per key). Retry-After header set.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'503':
description: Machine payments not enabled on this server yet
tags:
- Articles
get:
operationId: getArticlesMppChallenge
security: []
x-payment-info:
offers:
- intent: charge
method: stripe
amount: null
description: Article units, paid by card or Link through a Shared Payment Token. The amount depends on the quantity in the signed link and your billing currency; the 402 challenge states it.
summary: The MPP payment link (signed `t` token, no API key).
parameters:
- name: t
in: query
required: true
schema:
type: string
responses:
'302':
description: 'A browser: the dashboard buy page'
headers:
Location:
schema:
type: string
format: uri
example: https://app.seomatic.ai/dashboard/articles?src=mpp_link&sku=article
'402':
description: The MPP payment challenge (problem document)
content:
application/problem+json:
schema:
type: object
tags:
- Articles
components:
schemas:
Error:
type: object
properties:
type:
type: string
description: urn:seomatic:error:<code>, or about:blank
title:
type: string
status:
type: integer
detail:
type: string
instance:
type: string
plan_rule:
type: string
description: '402 only: the plan or balance rule this request hit.'
how_to_upgrade:
type: string
description: '402 only: how to get past it.'
error:
type: string
code:
type: string
reason:
type: string
details:
type: object
upgrade_url:
type: string
required:
- error
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: Workspace API key (smk_live_... / smk_test_...).