canonical: https://jentic.com/apis/seomatic.ai/seomatic

# SEOmatic API

The SEOmatic API reads a workspace's Google Search Console data, scores pages for AI answerability, and generates SEO articles on demand. Search Console reads cover top queries, top pages, the queries for one page, and decaying pages that lost clicks, while page AI activity reports answer-crawler fetches and AI-referred visits. A tools endpoint lists every capability the workspace key can call, with input JSON Schemas, and a single invoke endpoint runs any of them by name; webhooks, IndexNow URL submission, and redirect acknowledgement round out the surface.

## For AI agents

Pull Search Console top queries and decaying pages, audit a page for AI answerability, generate and edit SEO articles, and invoke any SEOmatic tool by name from its scope-filtered tool list.

## Scope

Does not handle paid search campaigns, social posting, or keyword rank tracking across the open web. Use for a workspace's Search Console insights, AI answerability audits, and SEO article generation only.

## Capabilities

- Pull top queries and top pages from the workspace's Google Search Console property over a chosen days window
- Find decaying pages that lost clicks compared with the previous window
- Score one public URL for AI and LLM answerability with the page audit
- Report per-page AI engagement: answer-crawler fetches and AI-referred visits
- Generate an SEO article from a topic, poll it until ready, edit its title or markdown, or cancel it
- List every tool the key may call with its input JSON Schema, then invoke one by name
- Register signed webhooks for events such as page.published and ai_visibility.scan_completed

## Use cases

### AI Agent SEO Analyst Through Jentic

A coding or content agent connected through Jentic can answer 'what is slipping in search?' without anyone wiring the workspace bearer key by hand. It searches by intent, gets getGscDecayingPages with its days and limit inputs, and follows up with getGscPageQueries for each page it finds. The answer comes from the workspace's own Search Console data rather than guesswork.

Example prompt: Search Jentic for 'find pages losing search clicks', call getGscDecayingPages with days 28 and limit 10, then call getGscPageQueries with url set to the top result

### AI Answerability Audits

Content teams now care whether AI engines can quote their pages. The page audit fetches one public URL and scores it for AI and LLM answerability, and the AI activity report shows which pages answer crawlers fetched and which got AI-referred visits. Together they show what to fix and whether AI traffic follows.

Example prompt: Call POST /page-audit with url 'https://example.com/blog/pricing-guide', then GET `/pages/ai-activity` with days 30 to compare AI crawler fetches for that page

### On-Demand SEO Article Generation

SEOmatic generates one article per topic from prepaid units, priced at $9 pay-as-you-go per the spec. The agent creates the article, polls it until status is ready, then reads the markdown and html, applies edits to title or markdown, or cancels a queued job to get the unit back. Listing articles also returns the spendable prepaid balance.

Example prompt: Call POST /articles with topic 'How to choose a CRM for a five-person team', poll GET `/articles/{articleId}` until status is ready, then PATCH `/articles/{articleId}` with a revised title

### Publishing Events and Instant Indexing

When a page goes live, search engines should hear about it. Webhooks deliver signed POSTs for events such as page.published, task.live, and campaign.completed, and the submit-url action sends a URL through IndexNow to Bing, Naver, Yandex, and Seznam. An agent can wire both so new pages are announced the moment they publish.

Example prompt: Register POST /webhooks with url 'https://example.com/hooks/seomatic' and events ['page.published'], then call POST `/zapier/actions/submit-url` with url 'https://example.com/new-page'

## Key endpoints

| Method | Path | Description |
| --- | --- | --- |
| GET | `/gsc/top-queries` | Top Search Console queries |
| GET | `/gsc/decaying-pages` | Pages that lost clicks |
| POST | `/page-audit` | Score a page for AI answerability |
| GET | `/tools` | List callable tools |
| POST | `/tools/{name}` | Invoke a tool by name |
| POST | `/articles` | Generate an SEO article |
| GET | `/articles/{articleId}` | Get one article |
| POST | `/webhooks` | Register a webhook endpoint |

## Key resources

- **Search Console** — Top queries, top pages, per-page queries, and decaying pages
- **Page audit and AI activity** — AI answerability scoring and per-page AI crawler and referral activity
- **Tools** — Scope-filtered tool list with input schemas and invoke-by-name
- **Articles** — Generate, list, read, edit, cancel, and pay for SEO articles
- **Webhooks** — Register, update, rotate secrets for, and delete webhook endpoints
- **Key** — Introspect or revoke the calling API key

## AI readiness

This API is usable in Jentic One now. Its AI-readiness score against Jentic's framework shows where it stands today and where improvements would make it even easier for agents to use.

- **Score:** 58 / 100
- **Maturity:** Foundational
- **Dimensions:**
  - Foundational Compliance: 49 / 100
  - Developer Experience & Jentic Compatibility: 62 / 100
  - AI-Readiness & Agent Experience: 45 / 100
  - Agent Usability: 94 / 100
  - Security: 60 / 100
  - AI Discoverability: 64 / 100
- **View full report:** https://jentic.com/apis/seomatic.ai/seomatic/scorecard
- **How the score is calculated:** https://docs.jentic.com/reference/api-readiness-framework/overview/
- **More about the dimensions:** https://docs.jentic.com/reference/api-readiness-framework/specification/#dimensional-model-overview

### Score it yourself

Every API in the directory is allowlisted, so you can re-score it with no key required.

- **Score your own API:** https://jentic.com/scorecard.md
- **Scoring CLI agent skill:** https://github.com/jentic/jentic-api-scorecard/blob/main/skills/jentic-api-scorecard/SKILL.md

```sh
npx @jentic/api-scorecard-cli score <openapi-url>
```

## Why Jentic

- **Setup:** Wiring the SEOmatic API by hand means sending its workspace bearer key, knowing which scopes your key carries for read versus act operations, and honouring Retry-After on 429s yourself. Through Jentic you install once, import SEOmatic from the API Directory, store the key once, and your agent calls it.
- **Permission scoping:** SEOmatic puts the tool name in the URL path of POST `/tools/{name}`, and article and webhook ids in their paths, so a rule can pin your agent to the specific named tools you choose. You choose the operations it may call, so spending or destructive ones like createArticle, payForArticlesWithSharedPaymentToken, or deleteWebhook are not included unless you add them.
- **Credential handling:** Your SEOmatic workspace key is stored once, encrypted, by your own Jentic One instance and injected at execution time. It never enters the agent's prompt, logs, or context.
- **Discovery method:** Agents search Jentic by intent such as 'find pages losing search clicks' or 'generate an SEO article', and Jentic returns the matching SEOmatic operation with its input schema so the agent calls the right endpoint without browsing the reference docs.

## Related APIs

- **AgentSEO API** — SEO data and analysis API aimed at AI agents
- **Ahrefs API** — Backlink, keyword, and site audit data across the open web
- **SerpApi** — Live search engine results pages as JSON

## FAQ

### Is there an SEOmatic MCP server?

Yes - SEOmatic's own OpenAPI spec describes an MCP server whose tools match GET /tools. You can also connect the SEOmatic API directly through Jentic: your agent gets the full surface from the spec without loading another server's tool definitions into its context, your key is injected at call time by your self-hosted instance instead of living in an MCP config, and your rules decide which operations the agent may call.

### Can I limit what my agent is allowed to do with the SEOmatic API?

Yes. Write a rule that allows the Search Console reads, POST /page-audit, and POST `/tools/{name}` for one named read-only tool. The agent can analyse traffic and audit pages, while createArticle, the payment operations, and revokeMyKey are left out, so it cannot spend article units or disable your key. Every call is logged by your self-hosted instance.

### What authentication does the SEOmatic API use?

Per its OpenAPI spec, the SEOmatic API uses HTTP bearer authentication with a workspace API key such as smk_live_... or smk_test_... in the Authorization header. Keys carry scopes: the spec says free keys can read and ask, while acting requires an agents:act key. Through Jentic the key is stored encrypted by your own Jentic One instance and injected at call time.

### Can I find pages that are losing search traffic with the SEOmatic API?

Yes. GET `/gsc/decaying-pages` compares the recent window with the adjacent window before it and returns pages that lost clicks, with optional days and limit query parameters. Follow up with GET `/gsc/page-queries`, which requires a url, to see which queries the page is losing.

### What are the rate limits for the SEOmatic API?

The spec states that rate limits are per key and that responses carry X-RateLimit-* headers, with Retry-After on 429 responses; it does not publish fixed numbers. Read those headers at call time, and check https://seomatic.ai for plan limits.

### How do I audit a page for AI answerability through Jentic?

Search Jentic for 'audit a page for AI answerability' and it returns auditPage with its input schema. Pass the required url of a publicly reachable page; private or internal addresses are rejected. To run it on your own infrastructure, install Jentic One from its GitHub repo.
