SERPmantics Usage API

The Usage API from SERPmantics — 3 operation(s) for usage.

GitHub OpenAPI

Operations 3

GET /api/v1/aissistant/tokens Get the current user's available AI tokens #
GET /api/v1/credits Get user balance (guide credits + AI tokens) #
GET /api/v1/tokens-usage Get API token usage costs for different endpoints #

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/serpmantics-com:serpmantics-com-usage-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

serpmantics-com-usage-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: SERPmantics Usage API
  version: '1.0'
  description: 'Every authenticated endpoint may answer `503` with `{ "success": false, "error": "Service temporarily unavailable", "code": "database_unavailable" }` and a `Retry-After: 30` header when the database cannot be reached. This is a temporary outage on our side: your API key is not in question, do not regenerate or revoke it, retry after the delay (see the `DatabaseUnavailable` response).'
tags:
- name: Usage
paths:
  /api/v1/aissistant/tokens:
    get:
      summary: Get the current user's available AI tokens
      description: 'Returns the number of AI tokens available to the authenticated user.


        These tokens fund EVERY AI feature in SERPmantics — meta, outline,

        intent, internal-links, EEAT, EEAT competitors, score, AND the

        AISSistant prompts. The endpoint lives under /aissistant for

        historical reasons but the balance is shared across all AI features.


        Do NOT confuse with guide-creation credits (see /api/v1/credits).

        For a combined view (credits + tokens) prefer /api/v1/credits.'
      tags:
      - Usage
      security:
      - bearerAuth: []
      responses:
        '200':
          description: Successfully retrieved token balance
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  tokens:
                    type: number
                    example: 100
        '401':
          description: Unauthorized - Invalid or missing authentication
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: false
                  error:
                    type: string
                    example: Unauthorized
        '405':
          description: Method not allowed
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: false
                  error:
                    type: string
                    example: Method not allowed
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: false
                  error:
                    type: string
                    example: Internal server error
      operationId: getApiV1AissistantTokens
      x-operation-id-source: derived
  /api/v1/credits:
    get:
      summary: Get user balance (guide credits + AI tokens)
      description: 'Returns the authenticated user''s full balance.


        SERPmantics has TWO distinct currencies:


        - **credits** (`credits`): how many NEW GUIDES the user can still create.

        Consumed once per guide creation. `"unlimited"` if the user''s plan

        grants unlimited guide creation (`hasUnlimitedCredits: true`).


        - **AI tokens** (`tokens`): pool consumed by every AI feature (meta,

        outline, intent, internal-links, EEAT, EEAT competitors…).

        Each feature has its own cost — call `/api/v1/tokens-usage` to get

        the per-feature pricing.


        Do not confuse the two: running out of `credits` blocks new guides;

        running out of `tokens` blocks AI features inside existing guides.'
      tags:
      - Usage
      security:
      - bearerAuth: []
      responses:
        '200':
          description: Successful response with user balance
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  credits:
                    oneOf:
                    - type: number
                    - type: string
                      enum:
                      - unlimited
                    description: Remaining guide-creation credits, or "unlimited"
                  hasUnlimitedCredits:
                    type: boolean
                    description: True if the user's plan grants unlimited guide creation
                  tokens:
                    type: number
                    description: Remaining AI tokens (used by meta, outline, intent, internal-links, EEAT)
                    example: 1234
        '401':
          description: Unauthorized
        '500':
          description: Server error
      operationId: getApiV1Credits
      x-operation-id-source: derived
  /api/v1/tokens-usage:
    get:
      summary: Get API token usage costs for different endpoints
      description: 'Returns the number of tokens required for each API endpoint operation.


        Note: `eeatCompetitorsTokensCostPerCompetitor` is a **per-competitor** cost.

        The total cost of POST /api/v1/eeat-competitors equals this value × the number of

        competitors analyzed (deduplicated URLs in the guide''s top-10 SERP, capped at 10).'
      tags:
      - Usage
      responses:
        '200':
          description: Token usage details for API endpoints
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  apiTokensUsage:
                    type: object
                    additionalProperties:
                      type: number
                    example:
                      internalLinksGenerationTokensCost: 99
                      outlineGenerationTokensCost: 99
                      intentGenerationTokensCost: 99
                      metaGenerationTokensCost: 99
        '405':
          description: Method not allowed
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: false
                  error:
                    type: string
                    example: Method not allowed
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: false
                  error:
                    type: string
                    example: Internal server error
      operationId: getApiV1TokensUsage
      x-operation-id-source: derived
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API key