MetricSpot Audits API

Create, list, fetch, and manage SEO audits.

GitHub OpenAPI

Operations 7

POST /api/audits Start an authenticated audit #
GET /api/audits List your audits #
GET /api/audits/usage Get current audit usage and plan #
GET /api/audits/history Audit history for a URL #
PATCH /api/audits/reorder Reorder dashboard audit list #
GET /api/audits/{id} Get audit detail #
DELETE /api/audits/{id} Delete an audit (and all history for its URL) #

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/metricspot-com:metricspot-com-audits-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

metricspot-com-audits-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: MetricSpot REST Audits API
  version: '2026-05-16'
  summary: Programmatic SEO audits, white-label PDF reports, and HTML previews.
  description: 'The MetricSpot REST API lets you run on-demand SEO audits, generate

    white-label PDF reports, and render browser-friendly HTML previews for

    any URL you own.


    Access requires the Pro plan ($49/month) and is capped at 5,000 API

    calls per calendar month across all of your tokens. Quota resets on

    the 1st of every month.


    Most endpoints expect a Bearer API token prefixed with `ms_live_`.

    The single anonymous endpoint (`POST /api/public/audit`) is open to

    the world and rate-limited by IP.'
  contact:
    name: MetricSpot Support
    email: info@metricspot.com
    url: https://app.metricspot.com
  license:
    name: Proprietary
servers:
- url: https://app.metricspot.com
  description: Production
security:
- BearerAuth: []
tags:
- name: Audits
  description: Create, list, fetch, and manage SEO audits.
paths:
  /api/audits:
    post:
      tags:
      - Audits
      summary: Start an authenticated audit
      description: 'Queues a full audit for the given URL. The job runs asynchronously;

        poll `GET /api/audits/{id}` to track progress. Subject to per-plan

        monthly caps, per-URL cooldowns, and the API quota.'
      operationId: startAudit
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/StartAuditRequest'
            examples:
              basic:
                value:
                  url: https://example.com
      responses:
        '201':
          description: Audit row created and worker queued.
          content:
            application/json:
              schema:
                type: object
                required:
                - audit
                properties:
                  audit:
                    $ref: '#/components/schemas/AuditQueued'
              examples:
                queued:
                  value:
                    audit:
                      id: 123456
                      domain: example.com
                      url: https://example.com
                      status: queued
                      score: null
                      created_at: '2026-05-16T10:00:00.000Z'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/PlanCap'
        '403':
          $ref: '#/components/responses/PlanLimit'
        '429':
          $ref: '#/components/responses/QuotaOrCooldown'
    get:
      tags:
      - Audits
      summary: List your audits
      description: 'Returns the most recent audit per URL for the authenticated user,

        sorted by `display_position` (if set via `PATCH /api/audits/reorder`)

        then by `created_at` descending. Capped at 100 rows.'
      operationId: listAudits
      responses:
        '200':
          description: Audit list (one row per unique URL).
          content:
            application/json:
              schema:
                type: object
                required:
                - audits
                properties:
                  audits:
                    type: array
                    items:
                      $ref: '#/components/schemas/AuditSummary'
              examples:
                list:
                  value:
                    audits:
                    - id: 123456
                      domain: example.com
                      url: https://example.com
                      status: completed
                      score: 72
                      created_at: '2026-05-16T10:00:00.000Z'
                      completed_at: '2026-05-16T10:00:45.000Z'
                      display_position: 0
                      has_ga: true
                      has_gsc: false
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/PlanLimit'
        '429':
          $ref: '#/components/responses/Quota'
  /api/audits/usage:
    get:
      tags:
      - Audits
      summary: Get current audit usage and plan
      description: 'Returns the user''s audit count for the current calendar month,

        their plan cap (null when unlimited), subscription status, and

        the timestamp the counter resets.'
      operationId: getAuditUsage
      responses:
        '200':
          description: Usage snapshot.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UsageSnapshot'
              examples:
                proPlan:
                  value:
                    used: 12
                    cap: 500
                    resets_at: '2026-06-01T00:00:00.000Z'
                    plan: pro
                    status: active
                    trial_ends_at: null
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/PlanLimit'
        '429':
          $ref: '#/components/responses/Quota'
  /api/audits/history:
    get:
      tags:
      - Audits
      summary: Audit history for a URL
      description: Returns up to the 50 most recent audits this user has run for the given `url`.
      operationId: getAuditHistory
      parameters:
      - in: query
        name: url
        required: true
        description: Exact URL to look up. Maximum 2000 characters.
        schema:
          type: string
          format: uri
          maxLength: 2000
      responses:
        '200':
          description: Audit history rows, newest first.
          content:
            application/json:
              schema:
                type: object
                required:
                - audits
                properties:
                  audits:
                    type: array
                    items:
                      $ref: '#/components/schemas/AuditHistoryRow'
              examples:
                history:
                  value:
                    audits:
                    - id: 123456
                      domain: example.com
                      url: https://example.com
                      status: completed
                      score: 72
                      created_at: '2026-05-16T10:00:00.000Z'
                      completed_at: '2026-05-16T10:00:45.000Z'
                    - id: 122000
                      domain: example.com
                      url: https://example.com
                      status: completed
                      score: 68
                      created_at: '2026-05-09T10:00:00.000Z'
                      completed_at: '2026-05-09T10:00:42.000Z'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/PlanLimit'
        '429':
          $ref: '#/components/responses/Quota'
  /api/audits/reorder:
    patch:
      tags:
      - Audits
      summary: Reorder dashboard audit list
      description: 'Sets `display_position` on the latest audit per URL so the dashboard

        list (and `GET /api/audits`) sorts by your preferred order. URLs not

        in the array keep their existing position. Maximum 200 entries.'
      operationId: reorderAudits
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - url_order
              properties:
                url_order:
                  type: array
                  maxItems: 200
                  items:
                    type: string
                    maxLength: 2000
            examples:
              twoUrls:
                value:
                  url_order:
                  - https://example.com
                  - https://example.org
      responses:
        '204':
          description: Reorder applied.
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/PlanLimit'
        '429':
          $ref: '#/components/responses/Quota'
  /api/audits/{id}:
    get:
      tags:
      - Audits
      summary: Get audit detail
      description: 'Returns the full audit row plus its findings, the user''s effective

        plan, and the per-URL cooldown state.'
      operationId: getAudit
      parameters:
      - $ref: '#/components/parameters/AuditId'
      responses:
        '200':
          description: Audit detail.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuditDetail'
              examples:
                detail:
                  value:
                    audit:
                      id: 123456
                      user_id: 42
                      domain: example.com
                      url: https://example.com
                      status: completed
                      score: 72
                      audit_version: 14
                      raw:
                        module_scores:
                          meta: 90
                          headings: 70
                      perf_status: ok
                      error_message: null
                      started_at: '2026-05-16T10:00:01.000Z'
                      completed_at: '2026-05-16T10:00:45.000Z'
                      created_at: '2026-05-16T10:00:00.000Z'
                    findings:
                    - id: 9001
                      module: meta
                      rule_id: title_present
                      severity: minor
                      passed: true
                      title: Page title is present
                      recommendation: null
                      data: {}
                    plan: pro
                    cooldown:
                      cooldown_seconds: 0
                      available_at: null
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/Quota'
    delete:
      tags:
      - Audits
      summary: Delete an audit (and all history for its URL)
      description: 'Deletes every audit row this user has for the same URL as the given

        audit id, not just the targeted row. The dashboard de-duplicates by

        URL, so removing only the latest would surface a stale older audit.'
      operationId: deleteAudit
      parameters:
      - $ref: '#/components/parameters/AuditId'
      responses:
        '204':
          description: Audit history for this URL removed.
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/Quota'
components:
  schemas:
    StartAuditRequest:
      type: object
      required:
      - url
      properties:
        url:
          type: string
          format: uri
          maxLength: 2000
          example: https://example.com
    Error:
      type: object
      required:
      - error
      properties:
        error:
          type: string
          description: Short machine-readable error code or label.
        message:
          type: string
          description: Human-readable explanation when present.
        code:
          type: string
          description: Optional secondary code used by some plan-gate errors.
        used:
          type: integer
          description: Quota usage so far (present on quota responses).
        limit:
          type: integer
          description: Quota cap (present on quota responses).
      additionalProperties: true
    CooldownError:
      type: object
      required:
      - error
      - available_at
      - cooldown_seconds
      properties:
        error:
          type: string
          example: Audit cooldown
        code:
          type: string
          example: global_cooldown
        message:
          type: string
        available_at:
          type: string
          format: date-time
        cooldown_seconds:
          type: integer
    Audit:
      description: Full audit row returned inside `AuditDetail.audit`.
      type: object
      required:
      - id
      - user_id
      - domain
      - url
      - status
      - audit_version
      - created_at
      properties:
        id:
          type: integer
        user_id:
          type: integer
        domain:
          type: string
        url:
          type: string
          format: uri
        status:
          $ref: '#/components/schemas/AuditStatus'
        score:
          type:
          - integer
          - 'null'
        audit_version:
          type: integer
          description: Incrementing schema version of the audit engine that produced this row.
        raw:
          type: object
          description: 'Raw audit payload. Includes `module_scores` and engine-specific

            data. Shape evolves with `audit_version`.

            '
          additionalProperties: true
        perf_status:
          type:
          - string
          - 'null'
          description: PageSpeed Insights subsystem status (e.g. `ok`, `skipped`, `error`).
        error_message:
          type:
          - string
          - 'null'
        started_at:
          type:
          - string
          - 'null'
          format: date-time
        completed_at:
          type:
          - string
          - 'null'
          format: date-time
        created_at:
          type: string
          format: date-time
    AuditDetail:
      type: object
      required:
      - audit
      - findings
      - plan
      - cooldown
      properties:
        audit:
          $ref: '#/components/schemas/Audit'
        findings:
          type: array
          items:
            $ref: '#/components/schemas/Finding'
        plan:
          $ref: '#/components/schemas/PlanId'
        cooldown:
          type: object
          required:
          - cooldown_seconds
          - available_at
          properties:
            cooldown_seconds:
              type: integer
              description: Plan-configured cooldown window in seconds. 0 means no cooldown.
            available_at:
              type:
              - string
              - 'null'
              format: date-time
              description: ISO timestamp when the next audit for this URL is allowed, or null if available now.
    AuditHistoryRow:
      description: Row returned by `GET /api/audits/history`.
      type: object
      required:
      - id
      - domain
      - url
      - status
      - created_at
      properties:
        id:
          type: integer
        domain:
          type: string
        url:
          type: string
          format: uri
        status:
          $ref: '#/components/schemas/AuditStatus'
        score:
          type:
          - integer
          - 'null'
        created_at:
          type: string
          format: date-time
        completed_at:
          type:
          - string
          - 'null'
          format: date-time
    Severity:
      type: string
      enum:
      - info
      - minor
      - major
      - critical
    AuditQueued:
      description: Row returned immediately after queuing an audit.
      type: object
      required:
      - id
      - domain
      - url
      - status
      - created_at
      properties:
        id:
          type: integer
          example: 123456
        domain:
          type: string
          example: example.com
        url:
          type: string
          format: uri
          example: https://example.com
        status:
          $ref: '#/components/schemas/AuditStatus'
        score:
          type:
          - integer
          - 'null'
          description: Total score, null until the audit completes.
        created_at:
          type: string
          format: date-time
    PlanId:
      type: string
      enum:
      - free
      - starter
      - premium
      - pro
    Finding:
      type: object
      required:
      - id
      - module
      - rule_id
      - severity
      - passed
      - title
      properties:
        id:
          type: integer
        module:
          type: string
          description: Module the rule belongs to (e.g. `meta`, `headings`, `images`).
        rule_id:
          type: string
        severity:
          $ref: '#/components/schemas/Severity'
        passed:
          type: boolean
        title:
          type: string
        recommendation:
          type:
          - string
          - 'null'
        data:
          type: object
          description: Free-form rule data (matched elements, counts, sample URLs, etc.).
          additionalProperties: true
    UsageSnapshot:
      type: object
      required:
      - used
      - cap
      - resets_at
      - plan
      - status
      - trial_ends_at
      properties:
        used:
          type: integer
          description: Audits run by this user in the current calendar month.
        cap:
          type:
          - integer
          - 'null'
          description: Monthly audit cap. null means unlimited (admin or trialing).
        resets_at:
          type: string
          format: date-time
          description: ISO timestamp at the start of next month.
        plan:
          $ref: '#/components/schemas/PlanId'
        status:
          type:
          - string
          - 'null'
          description: Active subscription status (e.g. `active`, `trialing`, `past_due`, `canceled`), or null if none.
        trial_ends_at:
          type:
          - string
          - 'null'
          format: date-time
          description: ISO timestamp; non-null only while `status` is `trialing`.
    AuditSummary:
      description: Row returned by `GET /api/audits` (one per unique URL).
      type: object
      required:
      - id
      - domain
      - url
      - status
      - created_at
      properties:
        id:
          type: integer
        domain:
          type: string
        url:
          type: string
          format: uri
        status:
          $ref: '#/components/schemas/AuditStatus'
        score:
          type:
          - integer
          - 'null'
        created_at:
          type: string
          format: date-time
        completed_at:
          type:
          - string
          - 'null'
          format: date-time
        display_position:
          type:
          - integer
          - 'null'
          description: Sort key set via `PATCH /api/audits/reorder`.
        has_ga:
          type: boolean
          description: True when this URL has a Google Analytics property linked.
        has_gsc:
          type: boolean
          description: True when this URL has a Search Console site linked.
    PlanLimitError:
      type: object
      required:
      - error
      properties:
        error:
          type: string
        code:
          type: string
        message:
          type: string
        plan:
          $ref: '#/components/schemas/PlanId'
        used:
          type: integer
        cap:
          type: integer
        resets_at:
          type: string
          format: date-time
      additionalProperties: true
    AuditStatus:
      type: string
      enum:
      - queued
      - running
      - completed
      - failed
  parameters:
    AuditId:
      in: path
      name: id
      required: true
      description: Audit row id.
      schema:
        type: integer
        minimum: 1
        example: 123456
  responses:
    QuotaOrCooldown:
      description: 'Either the monthly API call quota was exceeded or an audit

        cooldown is active (per-URL or global).

        '
      content:
        application/json:
          schema:
            oneOf:
            - $ref: '#/components/schemas/Error'
            - $ref: '#/components/schemas/CooldownError'
          examples:
            quota:
              value:
                error: quota_exceeded
                message: Monthly API quota of 5000 calls reached. Resets on the 1st.
                used: 5000
                limit: 5000
            cooldown:
              value:
                error: Audit cooldown
                message: You can re-audit this URL after 2026-05-17T10:00:00.000Z.
                available_at: '2026-05-17T10:00:00.000Z'
                cooldown_seconds: 86400
    Unauthorized:
      description: Missing or invalid bearer token.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            badToken:
              value:
                error: Invalid API token
    PlanLimit:
      description: 'Authenticated, but the user''s plan does not include API access.

        API access requires the Pro plan.

        '
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            apiAccess:
              value:
                error: plan_limit
                message: API access requires the Pro plan. Upgrade at /pricing.
    Forbidden:
      description: Authenticated but not allowed to access this resource.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            notOwner:
              value:
                error: Forbidden
    BadRequest:
      description: Malformed request (bad id, missing or invalid body, bad query param).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            badId:
              value:
                error: Bad id
            invalidBody:
              value:
                error: Invalid JSON body
    PlanCap:
      description: 'Plan-specific limit reached (monthly audit cap, white-label

        restriction, paid-plan-only feature).

        '
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/PlanLimitError'
          examples:
            auditCap:
              value:
                error: Plan limit reached
                code: audit_cap
                message: Your Pro plan includes 500 audits/month. You've used 500 this month.
                plan: pro
                used: 500
                cap: 500
                resets_at: '2026-06-01T00:00:00.000Z'
            whiteLabel:
              value:
                error: Plan limit reached
                message: White-label PDFs require Starter or Pro.
                plan: free
    Quota:
      description: API call quota exceeded for the current calendar month.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            quota:
              value:
                error: quota_exceeded
                message: Monthly API quota of 5000 calls reached. Resets on the 1st.
                used: 5000
                limit: 5000
    NotFound:
      description: Resource not found.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            notFound:
              value:
                error: Not found
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: ms_live_<random>
      description: 'Bearer token issued from the dashboard under Account, API tokens.

        Tokens are prefixed with `ms_live_` and pass plan and quota gates

        on every request.

        '