API Reference

SOV Tracker API

Pull your SOV data into your own dashboards, automation flows, or BI tools. REST endpoints + outgoing webhooks. Pro plan and above.

  • GET /api/v1/scorecard
  • GET /api/v1/sov
  • GET /api/v1/scans
  • POST /api/v1/scans
  • GET /api/v1/archive
  • MCP /api/mcp

Authentication

All API requests require a Bearer token in the Authorization header. Get your key from /dashboard/settings → API Access.

Authorization: Bearer avt_live_xxxxxxxxxxxxxxxxxxxxxxxx

GET /api/v1/scorecard · GET /api/v1/sov

GET /api/v1/scorecard returns the seven separate Measurement Contract v1.0 metrics from the latest weekly_full V1 run, with measurement status and scope. GET /api/v1/sov is a legacy latest-scan compatibility endpoint; its visibility_score is not a canonical headline metric. A missing weekly scorecard is unavailable, not zero.

GET /api/v1/scorecard

curl -H "Authorization: Bearer $SOVTRACKER_KEY" https://sovtracker.com/api/v1/scorecard

Example when no canonical weekly run exists:

{
  "data": null,
  "organization": "Acme Analytics",
  "contract": "Measurement Contract v1.0",
  "note": "No canonical weekly_full V1 measurement is available yet."
}

GET /api/v1/sov

curl -H "Authorization: Bearer $SOVTRACKER_KEY" https://sovtracker.com/api/v1/sov

Legacy response fields include data.sov_score, sov_score_measured, visibility_score, visibility_score_measured, platforms, keywords and last_scan. These fields do not assert a synchronized weekly V1 scope. sov_score uses the same formula as the dashboard: valid brand and competitor mentions from non-branded questions are added up first and divided once; it is not an average of per-answer percentages. It is not the weekly scorecard: it covers the latest scan as a whole, with no market/language scope split and no engine-health gate. Null means unavailable, not zero. Change note (2026-10-18): from this date sov_score, and avg_sov in GET /api/v1/scans and the scan.completed webhook, are pooled. Earlier values were averages of per-answer percentages, so comparing them with newer values is not valid.

GET /api/v1/scans

List recent scans (most recent first). Use limit query param (max 50, default 10). avg_sov uses the same pooled formula as sov_score above (not the weekly scorecard).

curl -H "Authorization: Bearer $SOVTRACKER_KEY" \
  "https://sovtracker.com/api/v1/scans?limit=20"

Response (200 OK)

{
  "data": [
    {
      "id": "3f2b9c1e-8a4d-4f6b-9c2e-1d7a5b8e0f42",
      "status": "completed",
      "scan_type": "manual",
      "started_at": "2026-05-06T12:30:00Z",
      "completed_at": "2026-05-06T12:34:56Z",
      "created_at": "2026-05-06T12:30:00Z",
      "avg_sov": 42.5,
      "avg_sov_measured": true,
      "platforms": [
        "chatgpt",
        "perplexity"
      ],
      "brand_visible": true
    }
  ],
  "meta": {
    "total": 1,
    "organization": "Acme Analytics"
  }
}

Scans that are not completed yet are listed with avg_sov: null, avg_sov_measured: false, platforms: [] and brand_visible: false. A null avg_sov means not measured, not 0%.

POST /api/v1/scans

Trigger a manual compatibility scan, limited to 30 scan starts per hour per organization. This is separate from paid tracked/Priority question entitlements, weekly five-engine measurement and daily two-engine Priority Pulse. The request body is not read: the organization comes from the API key.

curl -X POST \
  -H "Authorization: Bearer $SOVTRACKER_KEY" \
  -H "Content-Type: application/json" \
  https://sovtracker.com/api/v1/scans

The call is synchronous: it returns only after the scan finishes, which can take up to 5 minutes. Set your client timeout to at least 300 seconds and do not retry while a call is still open.

Response (200 OK)

{
  "data": {
    "scan_id": "7c1e4a90-2b3d-4e5f-8a6b-9c0d1e2f3a4b",
    "results_count": 50,
    "avg_sov": 42.5,
    "used_credit": false
  },
  "message": "Scan completed successfully"
}

avg_sov: null means SOV could not be measured for this scan (for example, no countable answer); it is not 0%.

Other responses

Every error body has an error message. The code field is present only where listed.

  • 401 (no code) — missing or invalid API key, or the plan does not include API access
  • 403 INSUFFICIENT_SCOPE — the key does not have the scan:write scope; nothing is started or charged
  • 429 (no code) — hourly limit reached: at most 30 scan starts per hour per organization; this response has no code field
  • 503 RESERVE_FAILED — the scan could not be reserved; nothing is charged, try again
  • 404 (no code) — the organization of the key was not found
  • 429 SCAN_LIMIT_REACHED — usage protection limit reached and not enough extra credit
  • 409 SCAN_IN_PROGRESS — a scan is already running for this organization; data.scan_id is the running scan
  • 409 SCAN_DUPLICATE_SLOT — a scan was already opened for this scan window; the existing scan id is in scanId
  • 409 SCAN_NOT_DUE — it is not this organization's turn to scan yet
  • 403 PLAN_NOT_ENTITLED — the plan does not include scans (Free)
  • 400 (no code) — the scan failed; creditsRefunded is the number of credits returned
  • 504 SCAN_TIMEOUT — the scan timed out; creditsRefunded is the number of credits returned

GET /api/v1/archive

Answer Archive: the dated raw AI answer archive. Every scan result is archived with its full raw response — "what did ChatGPT answer for this question on July 17, 2026?". This history cannot be backfilled later; it only exists because it was recorded on that day.

Scope: this endpoint returns diagnostic scans only (one-off scans). Answers from the weekly measurement are not included; read them with the MCP tool get_answer_archive.

Query parameters

  • keyword_id — filter by tracked question (UUID)
  • platform — chatgpt | claude | gemini | perplexity | ai_overviews
  • from, to — ISO 8601 date range
  • limit — 1-100, default 50
  • cursor — pagination: pass meta.next_cursor from the previous response
curl -H "Authorization: Bearer $SOVTRACKER_KEY" \
  "https://sovtracker.com/api/v1/archive?platform=chatgpt&from=2026-06-01&limit=25"

Response (200 OK)

{
  "data": [
    {
      "id": "9f1c...",
      "scan_id": "scan_abc123",
      "platform": "chatgpt",
      "keyword_id": "kw_123",
      "prompt_used": "best crm tools for smb",
      "raw_response": "The most recommended CRM tools are...",
      "brand_mentioned": true,
      "mention_count": 2,
      "mention_position": 3,
      "sentiment": "positive",
      "sov_score": 42.5,
      "created_at": "2026-07-17T09:12:00Z"
    }
  ],
  "meta": {
    "count": 1,
    "next_cursor": "MjAyNi0wNy0xN1...",
    "plan_window_applied": false,
    "window_start": "2026-06-01T00:00:00.000Z"
  }
}

API/MCP access requires Pro or Agency (or an agreed Enterprise contract). Launch history entitlements are up to 24 months for Pro and 36 months for Agency; history only exists from recorded observations. The legacy archive reader does not yet enforce those paid retention windows. Treat meta.plan_window_applied as response metadata, not a promise of unlimited retention.

MCP Server (Model Context Protocol)

Connect an AI assistant to your SOV data (Pro plan and above). The server speaks Streamable HTTP. Claude.ai and ChatGPT connect by signing in (OAuth), with no key to paste; Claude Code, Cursor and other clients send the same API key as the REST API. All tools are read-only and scoped to your organization.

https://sovtracker.com/api/mcp

For key-based clients, get your API key from /dashboard/settings → API Access — the MCP client sends it as an Authorization header on every request.

Available tools

  • get_metric_scorecard — canonical weekly seven-metric Measurement Contract v1.0 scorecard
  • get_visibility_summary — quick comparison of your latest two scans (compatibility summary); use get_metric_scorecard for canonical weekly metrics
  • list_keywords — tracked questions (same list as the dashboard) with status, priority, market and language
  • get_scan_results — per-result rows for a scan, filterable by platform/tracked question
  • get_answer_archive — Answer Archive: dated raw AI answers from weekly measurements (source=diagnostic for one-off scans; plan history depth applies)
  • get_business_card — entity card status: Verification Score, field-group freshness, attestation date
  • get_ai_traffic — AI referrer signals and AI-tag-only visits, reported separately

No write or scan-trigger tools are exposed — your assistant can read the records available to its organization, scope and plan without spending scan quota.

Claude Code

Add to .mcp.json for Claude Code:

{
  "mcpServers": {
    "sov-tracker": {
      "type": "http",
      "url": "https://sovtracker.com/api/mcp",
      "headers": {
        "Authorization": "Bearer avt_live_xxxxxxxxxxxxxxxxxxxxxxxx"
      }
    }
  }
}

Cursor supports a remote URL and Authorization header in .cursor/mcp.json. Claude.ai connects without a key: Settings → Connectors → Add custom connector, enter https://sovtracker.com/api/mcp, then an organization owner or admin signs in to SOV Tracker and presses Allow (OAuth 2.1 with PKCE). The connection is a read-only key listed under Settings → API, where it can be revoked. ChatGPT connects the same way: add a custom connector with the same URL and sign in.

Generic Streamable HTTP client

import { Client } from "@modelcontextprotocol/sdk/client/index.js";
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js";

const transport = new StreamableHTTPClientTransport(
  new URL("https://sovtracker.com/api/mcp"),
  {
    requestInit: {
      headers: { Authorization: "Bearer avt_live_xxx" },
    },
  }
);

const client = new Client({ name: "my-agent", version: "1.0.0" });
await client.connect(transport);

const tools = await client.listTools();
const summary = await client.callTool({
  name: "get_visibility_summary",
  arguments: {},
});

Rate limit: 60 requests/min per key. 401 = missing/invalid key or plan below Pro; 429 = rate limited.

Outbound Webhooks

Receive HTTP POST notifications when events fire. Configure URLs and events at /dashboard/settings → Outbound Webhooks.

Available events

  • scan.completed — a diagnostic scan finished (data.source: "diagnostic_scan")
  • measurement.completed — the official weekly measurement window finished as completed or partial (data.source: "weekly_measurement")
  • sov.dropped — weekly measurement SOV fell by at least the alert threshold against the previous comparable week
  • mention.detected — a diagnostic scan found a new brand mention
  • competitor.overtake — a diagnostic scan found a competitor ahead

Precondition: the last three events are evaluated by the alert engine, so each one fires only while its matching rule is enabled under Settings → Alerts (sov.dropped → SOV Drop, mention.detected → New Mention, competitor.overtake → Competitor Overtake). They are delivered at the same moment as the corresponding alert e-mail. scan.completed and measurement.completed have no such precondition.

Every measurement scope (brand, country, channel, place, language, branch or product focus) is evaluated on its own; scopes are never merged into one SOV. sov.dropped is sent once per dropped scope (data.scope_id, data.scope_label) and at most once per weekly window, only when both weeks have canonical engine coverage and the same question set, competitor set, scope and engine configuration. A partial week, an unmeasured SOV (null) or a first week is never reported as a drop. Change note (2026-10-26): sov.dropped now comes from the weekly measurement; its data carries run_id, window_key, previous_window_key and scope_id instead of scan_id. Diagnostic scans no longer send sov.dropped.

Payload

{
  "event": "scan.completed",
  "organization_id": "org_abc",
  "timestamp": "2026-05-06T12:34:56Z",
  "data": {
    "source": "diagnostic_scan",
    "scan_id": "scan_xyz",
    "avg_sov": 42,
    "results_count": 50,
    "mentioned_count": 21
  }
}
{
  "event": "measurement.completed",
  "organization_id": "org_abc",
  "timestamp": "2026-10-26T08:12:00Z",
  "data": {
    "source": "weekly_measurement",
    "run_id": "run_xyz",
    "window_key": "2026-W44",
    "status": "completed",
    "completed_at": "2026-10-26T08:11:58Z",
    "coverage": { "scope": "CANONICAL", "healthy_engine_count": 5, "total_engine_count": 5 },
    "scope_id": null,
    "sov": 38.5,
    "sov_status": "MEASURED",
    "trend": {
      "status": "COMPARABLE",
      "reason": null,
      "previous_window_key": "2026-W43",
      "sov_previous": 44,
      "sov_delta": -5.5
    },
    "scopes": [
      { "scope_id": "scope_local", "label": "Acme · TR · local", "sov": 38.5, "sov_status": "MEASURED", "sov_previous": 44, "sov_delta": -5.5, "trend": "COMPARABLE" },
      { "scope_id": "scope_online", "label": "Acme · TR · online", "sov": null, "sov_status": "NOT_MEASURED", "sov_previous": null, "sov_delta": null, "trend": "NOT_MEASURED" }
    ]
  }
}

measurement.completed: one event per weekly window. The top-level sov and trend are the dashboard's default scope; scopes lists every measured scope separately. sov is null when SOV could not be measured (null is not zero); status "partial" means 3–4 of 5 engines were healthy. trend.status is NO_PRIOR, NOT_COMPARABLE (reason given) or COMPARABLE; a scope's trend is NOT_MEASURED when either week has no SOV for it. sov_previous and sov_delta are null unless the trend is comparable.

Change note (2026-10-18): from this date sov_score, and avg_sov in GET /api/v1/scans and the scan.completed webhook, are pooled. Earlier values were averages of per-answer percentages, so comparing them with newer values is not valid.

Signature verification

Each request includes an X-Sovtracker-Signature header (HMAC-SHA256 hex of the raw body, signed with your webhook secret).

import crypto from 'crypto';

function verify(rawBody, headerSig, secret) {
  if (typeof headerSig !== 'string') return false;
  const expected = Buffer.from(
    crypto.createHmac('sha256', secret).update(rawBody).digest('hex')
  );
  const received = Buffer.from(headerSig);
  // timingSafeEqual throws when lengths differ: reject first.
  if (received.length !== expected.length) return false;
  return crypto.timingSafeEqual(expected, received);
}

Errors

  • 401 — Missing or invalid API key, or the plan does not include API access (Pro and up)
  • 403 — The key does not have the scope for this action
  • 429 — Too many requests: MCP allows 60 requests per minute per key, GET /api/v1/archive allows 60 requests per minute per organization (shared by all of its keys), POST /api/v1/scans allows 30 scan starts per hour per organization; a manual scan can also hit its technical limit
  • 500 — Server error — retry with exponential backoff

Questions? Edge case not covered? Get in touch.