StartQuick startYour keyReferenceRead endpointsWrite endpointsLimits and errorsWebhooksNo-codeZapierMaken8n and SheetsOpenAPI file
The SmartmarketAI API
Read your score, AI visibility, competitors and rankings as JSON. Add competitors and questions. Get a signed message the moment something changes.
Create my API keyDownload the OpenAPI file
Quick start
- Open the dashboard, go to AI tools and press Create my API key. Copy it. It is shown once.
- Send it as a Bearer token.
curl http://127.0.0.1:3910/api/v1/overview \ -H "Authorization: Bearer YOUR_KEY"
The answer looks like { "data": { … } }. If your account has more than one website, add ?site= with the name, address or id.
Your key
One private key per account. We keep only a fingerprint, so we cannot show it again. Create a new key and the old one stops working. Send it as Authorization: Bearer smk_live_… or in an x-api-key header. The API is part of every paid plan.
Keys are read-only unless you tick Allow this key to make changes. Even then a key cannot publish to your website or use up your usage.
Read endpoints
All are GET and return { "data": … }.
GET/api/v1/sitesList your websites
Every website on the account, with its id, name and address.
GET/api/v1/overviewOverview
Score, AI visibility, share of voice, tone and open issues for one website.
site Website id, name or address. Needed only when the account has more than one website.
GET/api/v1/healthSite health
Every website check with its status and the fix.
site Website id, name or address. Needed only when the account has more than one website.
GET/api/v1/ai-visibilityAI visibility
How often each AI assistant names the brand, question by question.
site Website id, name or address. Needed only when the account has more than one website.
GET/api/v1/rankingsGoogle and Maps rankings
Tracked phrases with positions.
site Website id, name or address. Needed only when the account has more than one website.
GET/api/v1/historyScore history
Every check over time.
site Website id, name or address. Needed only when the account has more than one website.
GET/api/v1/fixesPending fixes
Drafted fixes waiting for approval. Use ?status= to filter.
site Website id, name or address. Needed only when the account has more than one website. · status For example pending, approved, live.
GET/api/v1/ideasContent ideas
Topics chosen to lift SEO, AI answers and Maps.
site Website id, name or address. Needed only when the account has more than one website.
GET/api/v1/sentimentBrand tone
What AI assistants say about the brand and how it reads.
site Website id, name or address. Needed only when the account has more than one website.
GET/api/v1/agentsAI crawler visits
Visits from AI crawlers and agents to your site.
site Website id, name or address. Needed only when the account has more than one website.
GET/api/v1/shopShop analytics
Shop score, product visibility, price accuracy, rival products, stores named and next steps.
site Website id, name or address. Needed only when the account has more than one website.
GET/api/v1/heatmapsPage heatmaps
Clicks and scroll depth on tracked pages, split by visitors from AI answers. Higher plans only.
site Website id, name or address. Needed only when the account has more than one website.
GET/api/v1/campaignsCampaign drafts
Ranked gaps, paid ad drafts and organic plans built from your own data, what not to pay for, and the next three campaigns. Drafts only.
site Website id, name or address. Needed only when the account has more than one website.
GET/api/v1/backlinksBacklinks
Link health score, authority, linking websites, link opportunities, new and lost links from the latest backlink check.
site Website id, name or address. Needed only when the account has more than one website.
Write endpoints
Need a key with write access. Send JSON with content-type: application/json.
POST/api/v1/competitorsAdd a competitor
POST/api/v1/questionsAdd a question to ask the AI assistants
POST/api/v1/webhooksAdd a webhook address
Returns the signing secret once.
DELETE/api/v1/webhooks/{id}Remove a webhook address
id
curl -X POST http://127.0.0.1:3910/api/v1/competitors \
-H "Authorization: Bearer YOUR_KEY" \
-H "content-type: application/json" \
-d '{"domain":"rival.com"}'
Limits and errors
| Limit | Value |
|---|---|
| Read requests | 10 a minute per key |
| Write requests | 30 a minute per key |
| Daily total | By plan. See the x-daily-remaining header. Resets at 00:00 UTC. |
| Caching | Results can be up to 5 minutes old |
Error codes
| Status | error | Meaning |
|---|---|---|
| 400 | bad_request | Missing or wrong field. The message says which. |
| 401 | invalid_key | Key missing, wrong or replaced. |
| 403 | plan_required, read_only_key | Paid plan needed, or the key has no write access. |
| 404 | not_found | Unknown endpoint or website. |
| 429 | rate_limited, daily_limit | Wait for retry-after seconds. |
Webhooks
Add an https address under AI tools, Webhooks, or with POST /api/v1/webhooks. We send JSON when:
score.drop | Your website score fell by 5 points or more |
rival.new | A new competitor shows up in AI answers |
alert.created | A new alert appears |
check.completed | A check finished |
fix.published | A fix was published to your website |
Every message carries smk-signature: t=<unix seconds>,v1=<hex>, where v1 is HMAC-SHA256 of t + "." + body with your endpoint secret. Delivery is retried after 1 minute, 10 minutes and 1 hour. An address that fails 12 times in a row is switched off.
import crypto from "node:crypto";
export function verify(rawBody, header, secret) {
const { t, v1 } = Object.fromEntries(header.split(",").map((p) => p.split("=")));
if (Math.abs(Date.now() / 1000 - Number(t)) > 300) return false; // too old
const mac = crypto.createHmac("sha256", secret).update(t + "." + rawBody).digest("hex");
return mac.length === v1.length && crypto.timingSafeEqual(Buffer.from(mac), Buffer.from(v1));
}
Zapier
When something happens
- In Zapier choose Webhooks by Zapier, Catch Hook as the trigger and copy its address.
- Paste it under AI tools, Webhooks, pick the events and press Send a test.
- Add any action: Slack, Gmail, Sheets, Notion, your CRM.
Pull your numbers
- Add Webhooks by Zapier, Custom Request as an action.
- Method
GET, URLhttp://127.0.0.1:3910/api/v1/overview. - Header
Authorization=Bearer YOUR_KEY.
Make
- Add a Webhooks, Custom webhook module, copy its address and paste it under AI tools, Webhooks.
- To read data, add an HTTP, Make a request module. URL
http://127.0.0.1:3910/api/v1/competitors, method GET, headerAuthorization: Bearer YOUR_KEY, parse response: yes. - Map
datainto the next step.
n8n, Google Sheets and Looker Studio
In n8n use Webhook for events and HTTP Request for reads with the same Bearer header. In Google Sheets, Apps Script with UrlFetchApp.fetch(url, { headers: { Authorization: "Bearer KEY" } }) fills a sheet from any read endpoint.
OpenAPI file
Every endpoint is described in /api/v1/openapi.json. Import it into Postman, Insomnia, Make or a custom GPT action.