Your marketing data, one request away.

Read scores, AI visibility, competitors and rankings as clean JSON. Get a signed webhook the moment something changes. One private key and no SDK to install.

Get your API keyRead the reference

16read endpoints

5signed webhook events

$

terminalGET /api/v1/overview

bash

curl https://app.smartmarketai.com/api/v1/overview \
  -H "Authorization: Bearer $SMARTMARKET_KEY"

{
  "data": {
    "business": "Northbank Financial",
    "score": 88, "scoreChange": 2,
    "openIssues": 7,
    "aiVisibility": {
      "answersNamingYou": 59,
      "answersSampled": 112
    },
    "shareOfVoicePercent": 29
  }
}

From zero to your first response in a minute.

Create a key in the dashboard, send it with any request, and use the JSON wherever it helps: a sheet, a script, a warehouse or a workflow.

First request

curl

curl https://app.smartmarketai.com/api/v1/overview \
  -H "Authorization: Bearer YOUR_KEY"

What comes back.

Every response is JSON with a data object. The overview carries the headline numbers, and the other endpoints go deeper into one area each.

200 · application/json

json

{
  "data": {
    "business": "Northbank Financial",
    "url": "https://northbank.example",
    "checkedAt": "2026-10-30T09:12:00Z",
    "score": 88,
    "scoreChange": 2,
    "scoreByArea": { … },
    "openIssues": 7,
    "aiVisibility": {
      "answersNamingYou": 59,
      "answersSampled": 112,
      "byAssistant": [ { "assistant": "ChatGPT", "named": 9, "of": 16 }, … ]
    },
    "shareOfVoicePercent": 29,
    "google": { "visibilityPercent": 24, "phrasesInTop3": 4, … },
    "topFixes": [ { "rank": 1, "title": "…", "how": "…" } ]
  }
}

Keys, and what they can and cannot do.

A key is read-only unless you decide otherwise, and no key can touch your website or use up your usage.

Authentication

Key formatStarts with smk_live_. Shown once when you create it. Only a fingerprint is stored.

Sending itAuthorization: Bearer smk_live_… or an x-api-key header.

Several sitesAdd ?site= with the site id when your account has more than one website.

Write accessOff by default. Tick Allow this key to make changes to add competitors, questions and webhook addresses.

What a key cannot doPublish to your website or use up your usage. Never, whatever the setting.

Replacing a keyCreate a new one and delete the old one. A deleted key stops working at once.

Sixteen read endpoints.

Each one is a GET under /api/v1. Results can be up to five minutes old, and every endpoint accepts ?site= for accounts with several websites.

Read endpoints

GET/api/v1/sitesWebsites on the account, with id, name and address

GET/api/v1/overviewScore, AI visibility, share of voice, tone, open issues

GET/api/v1/healthEvery website check with status and fix

GET/api/v1/ai-visibilityNamed or not, assistant by assistant, question by question

GET/api/v1/competitorsRivals named in AI answers, share of voice

GET/api/v1/rankingsGoogle and Maps positions for tracked phrases

GET/api/v1/historyEvery check over time

GET/api/v1/fixesDrafted fixes and where each stands (?status=)

GET/api/v1/ideasContent ideas with search volume

GET/api/v1/sentimentTone, themes and quotes from AI answers

GET/api/v1/agentsAI crawler and agent visits

GET/api/v1/shopShop score, products, price accuracy, rivals

GET/api/v1/heatmapsClicks and scroll depth, split by AI visitors

GET/api/v1/campaignsRanked gaps and campaign drafts

GET/api/v1/backlinksLink health, linking sites, opportunities

GET/api/v1/agent-readyAgentic commerce score and store fixes

Four write endpoints, opt in.

Only a key you allow to make changes can use these. They add things to your account and never publish anything to your site.

Write endpoints

POST/api/v1/competitorsAdd a competitor by domain

POST/api/v1/questionsAdd a question to ask the assistants

POST/api/v1/webhooksAdd a webhook address. The signing secret is returned once

DELETE/api/v1/webhooks/{id}Remove a webhook address

Webhooks, signed and retried.

Add up to five https addresses. We send JSON when something happens, sign every message and try again if your server is down.

In short

Check the signature before you trust a message.

Every request carries smk-signature with a timestamp and an HMAC-SHA256 of the timestamp, a dot and the raw body. Reject anything older than five minutes.

Verify in your language

javascript

import crypto from "node:crypto";

export function verify(rawBody, header, secret) {
  const parts = Object.fromEntries(header.split(",").map((p) => p.split("=")));
  const age = Math.abs(Date.now() / 1000 - Number(parts.t));
  if (age > 300) return false; // reject old messages
  const mac = crypto.createHmac("sha256", secret)
    .update(parts.t + "." + rawBody).digest("hex");
  return crypto.timingSafeEqual(Buffer.from(mac), Buffer.from(parts.v1));
}

Limits and errors, in plain numbers.

Rate limits are per key. The x-daily-remaining header tells you what is left today, and the allowance resets at 00:00 UTC.

10/minread requests per key

30/minwrite requests per key

5 mincache on every result

Errors

CodeMeaning
401 invalid_keyKey missing, wrong or replaced
403 plan_requiredNo paid plan, or a read-only key used to write
429 rate_limitedWait a minute. retry-after is sent
429 daily_limitDaily allowance used. resetsAt is in the body

Patterns that save an afternoon.

Two short snippets most integrations need: loop every site on an account, and wait politely when you hit a limit.

Recipes

javascript

const sites = (await get("/api/v1/sites")).data;
for (const s of sites) {
  const o = (await get("/api/v1/overview?site=" + s.id)).data;
  console.log(s.name, o.score, o.aiVisibility.answersNamingYou + "/" + o.aiVisibility.answersSampled);
}

Ready-made routes into your tools.

Zapier, Make and n8n can call the API or receive webhooks. Google Sheets and Looker Studio read from a private feed of ten flat tables.

Looker Studio and Sheets tables

summaryOne row per website, latest numbers

score_historyEvery past check

ai_visibilityHow often each assistant named you

sentimentTone of answers that name you

sentiment_themesWhat assistants say, by theme

competitorsBusinesses named instead of you

rankings_googleGoogle position per phrase

rankings_mapsMaps position per search

agent_dailyAI agent visits by day

agent_pagesPages AI agents read most

An OpenAPI file for everything else.

Download it at /api/v1/openapi.json and import it into Postman, Make or n8n, or use it as a custom GPT action.

Import it

bash

curl https://app.smartmarketai.com/api/v1/openapi.json -o smartmarketai.json

Questions

Which plans include the API?

Every paid plan. The daily request allowance depends on your plan, and the x-daily-remaining header tells you how much is left.

Can a key change my website or use up your usage?

No. A key cannot publish to your site or use up your usage. It is read-only unless you allow changes, and then it can only add competitors, questions and webhook addresses.

Is there an OpenAPI file?

Yes, at /api/v1/openapi.json. Import it into Postman, Make or n8n, or use it as a custom GPT action.

How fresh is the data?

Results can be up to five minutes old. Checks run on your plan schedule, so the underlying numbers change when a check finishes, and the check.completed webhook tells you when.

What happens if my webhook server is down?

We retry at once, then after 1 minute, 10 minutes and 1 hour. After 12 failures in a row the address is switched off, and you can turn it back on from the dashboard.

Can I use it from a browser?

Keep the key on a server. A key in browser code can be read by anyone who opens the page, so call the API from your backend or from an automation tool.

Try it on your own site

Get your API keyRead the reference