SEOmatic Tools API

The Tools API from SEOmatic — 2 operation(s) for tools.

GitHub OpenAPI

Operations 2

GET /tools List every tool this key can call (name, description, input JSON Schema, acts… #
POST /tools/{name} Invoke a tool by name with a JSON body of its arguments. #

Specifications

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/seomatic-ai:seomatic-ai-tools-api"
All apis
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.

Get an API 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 Specification

seomatic-ai-tools-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: SEOmatic Tools 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: Tools
paths:
  /tools:
    get:
      operationId: listTools
      summary: List every tool this key can call (name, description, input JSON Schema, acts…
      parameters:
      - name: X-Seomatic-Client
        in: header
        required: false
        schema:
          type: string
          enum:
          - n8n
          - make
        description: Identifies an automation-platform integration (the official n8n node sends `n8n`, the Make app sends `make`). When set, every call, including a connection test against /me, requires the Infrastructure plan, else 402 AUTOMATION_NOT_ENTITLED. Omit it for plain REST usage.
      responses:
        '200':
          description: 'Scope-filtered tool roster. Each: {name, description, input_schema, acts}.'
          content:
            application/json:
              example:
                tools:
                - name: get_top_pages
                  description: Top pages from Search Console.
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '402':
          description: X-Seomatic-Client is n8n or make and the workspace is not on the Infrastructure plan (AUTOMATION_NOT_ENTITLED). Body carries upgrade_url.
          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:
      - Tools
  /tools/{name}:
    post:
      operationId: invokeTool
      summary: Invoke a tool by name with a JSON body of its arguments.
      parameters:
      - name: name
        in: path
        required: true
        schema:
          type: string
        description: Tool name from GET /tools.
      - name: X-Seomatic-Client
        in: header
        required: false
        schema:
          type: string
          enum:
          - n8n
          - make
        description: Identifies an automation-platform integration (the official n8n node sends `n8n`, the Make app sends `make`). When set, every call, including a connection test against /me, requires the Infrastructure plan, else 402 AUTOMATION_NOT_ENTITLED. Omit it for plain REST usage.
      - name: Idempotency-Key
        in: header
        required: false
        schema:
          type: string
          maxLength: 255
        description: 'Makes the call safe to repeat (a UUID per logical call). The first request runs the tool; a repeat with the same key and arguments returns that run''s response (header Idempotent-Replayed: true) or 409 IDEMPOTENCY_IN_PROGRESS while it still runs, and an ACTING tool (acts=true) is never run twice. Kept: acting calls for 24h; any call that outlived the 60s response (504 TOOL_TIMEOUT) for 24h if acting, 1h if a read. A fast read is not kept, so repeating it runs it again (harmless). Answers over 64 KB are returned once and not kept: a repeat gets 409 IDEMPOTENCY_RESULT_NOT_KEPT. Calls refused before running (400, 402, 403, 404, 429) are not kept, and neither is an acting call the tool refused for credits, a rate limit or a provider outage (402, 429, 503; nothing acted), so the key works again once fixed.'
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              description: The tool's argument object (per its input_schema).
            example:
              days: 28
              limit: 10
      responses:
        '200':
          headers:
            X-SEOmatic-Questions-Remaining:
              $ref: '#/components/headers/QuestionsRemaining'
          description: '{ tool, result }: the tool answered. result is its output, usually a JSON string (parse it). A tool that refuses does NOT answer 200: it gets the matching 402/422/429/503 below, with its own output in result.'
          content:
            application/json:
              example:
                tool: get_top_pages
                result:
                  rows:
                  - page: https://acmeplumbing.com/
                    clicks: 412
        '400':
          description: Invalid arguments (INVALID_ARGUMENTS; details says what) or a malformed Idempotency-Key (INVALID_IDEMPOTENCY_KEY).
        '402':
          description: 'Acting over REST requires Infrastructure (REST_ACT_REQUIRES_INFRA); the plan does not include acting through the API (SCOPE_REVOKED_BY_PLAN); X-Seomatic-Client is n8n or make and the workspace is not on the Infrastructure plan (AUTOMATION_NOT_ENTITLED); the free monthly question limit is reached (FREE_QUOTA_EXCEEDED; body carries keep_going_url and a question_pack payment link); the subscription is paused or its card was declined (BILLING_INACTIVE; body links the one step that restores it, never an upgrade); or the tool refused for credits (INSUFFICIENT_CREDITS, PAYMENT_REQUIRED; body carries the tool result); or the tool hit a plan limit (the code is the refusal code itself: PROMPT_LIMIT, CADENCE_LIMIT, MONITOR_LIMIT, PAGE_LIMIT_EXCEEDED, SEAT_LIMIT_EXCEEDED, WORKSPACE_LIMIT_EXCEEDED, PLANNER_DISABLED, AUTO_EXECUTE_DISABLED, AGENT_SKILLS_NOT_ENTITLED, PAGE_TEMPLATES_NOT_ENTITLED, HOSTED_PAGES_NOT_ENTITLED, AI_ATTRIBUTION_NOT_ENTITLED, ZAPIER_NOT_ENTITLED, BYO_KEYS_NOT_ENTITLED, INCREMENTALITY_NOT_ENTITLED, WEBHOOKS_NOT_ENTITLED; `result` holds the tool refusal). Body carries upgrade_url (and reason, for tool refusals) where an upgrade is the fix. Prepaid credits (no plan): too few credits for this call (PREPAID_CREDITS_EMPTY; body.prepaid_credits has balance, price, tier, units, terms, top_up_url and top_up_api), or this key reached its monthly cap (PREPAID_CREDITS_CAP_REACHED). Nothing was charged.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: 'The plan allows it but the key creator''s role in the workspace does not (FORBIDDEN_ROLE; e.g. a creator now a viewer calling an acting tool). No upgrade fixes it: an admin changes the role.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Unknown or unauthorized tool (UNKNOWN_TOOL)
        '409':
          description: A request with this Idempotency-Key is still running (IDEMPOTENCY_IN_PROGRESS; repeat after Retry-After to collect the result), or it ran and its answer was too large to keep (IDEMPOTENCY_RESULT_NOT_KEPT; it is not run again), or a prepaid-credits call with this key was already charged and its answer is not kept (IDEMPOTENCY_KEY_USED; nothing charged; use a new key).
        '413':
          description: Request body over 256 KB (BODY_TOO_LARGE). Tool arguments are small JSON objects.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: 'The tool refused: it needs a confirmation step first (NEEDS_CONFIRMATION), or it declined for another reason it states (TOOL_REFUSED); result holds its explanation. Or this Idempotency-Key was used for a different tool or arguments (IDEMPOTENCY_KEY_REUSED).'
        '429':
          description: 'Rate limited: the per-key tool-call limit (Retry-After header set), the same tool with the same arguments repeated 8 times within a minute by this key (LOOP_DETECTED, not run and not charged), or the tool refused for a rate cap (e.g. ARTICLE_FAILURE_CAP; body carries the tool result).'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '502':
          description: Tool execution failed (TOOL_FAILED)
        '503':
          description: 'Temporarily unavailable, on our side, not a limit: the upstream data provider or the credit check is down (PROVIDER_UNAVAILABLE; nothing was charged), or idempotency is unavailable and the tool was NOT run (IDEMPOTENCY_UNAVAILABLE), or prepaid credits could not be read (PREPAID_CREDITS_UNAVAILABLE) or the lookup has no prepaid-credits price yet (PREPAID_CREDITS_UNPRICED); nothing was charged. Retry shortly.'
        '504':
          description: The tool is still running past the 60s response ceiling and was not stopped (TOOL_TIMEOUT). With an Idempotency-Key, repeat the request to collect its answer.
      tags:
      - Tools
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
  headers:
    QuestionsRemaining:
      description: 'The free questions left this month (monthly plus banked bonus), sent on answers and on limit refusals whenever the workspace is metered for free questions: free workspaces, and paid workspaces whose subscription is paused or whose card was declined (they are metered like free until billing is restored). Absent otherwise.'
      schema:
        type: integer
        minimum: 0
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Workspace API key (smk_live_... / smk_test_...).