HomeAPI
SEO API. Put your SEO data straight into your own tools and client reports.
Pull your Google rankings, Google Analytics 4 reports, Core Web Vitals, ChatGPT and Gemini answers, AI referral visits, link pipeline, uptime and site alerts over HTTP as JSON. Every endpoint serves the same numbers you see in MarketingTracer. All plans include API access at no extra cost.
OpenAPI 3.1
Feed openapi.json into your AI editor to generate calls and types.
Same JSON shape
Every answer wraps snake_case fields in data and meta.
Read-only keys
No API call can change site settings or trigger an outreach mail.
In every plan
You get 60 calls per minute per personal key at no extra cost.
SEO data endpoints by topic
Thirty-five endpoints run over both REST and MCP. Twelve more tools on the MCP server read Google Search Console, GA4 and the on-page SEO scan.
Organic Google positions by keyword and country, on desktop or mobile. 4 REST and MCP endpoints return monthly history, ranking pages, top 20 results and competitors.
Prompts in ChatGPT and Gemini, and Google AI Overviews on your keywords. Read brand citations, competing domains, GA4 AI sessions and revenue over 8 endpoints in REST and MCP.
Your own link-building pipeline and live-link checks. 4 endpoints in REST and MCP inspect pipeline stages, anchor texts, follow status and outreach queues.
Real-user LCP, INP and CLS for your site and up to six competitors. 5 REST and MCP endpoints return 104-week CrUX history, p75 by device, LCP diagnostics and GA4 session metrics.
Homepage status, incident history and response times from 30-minute checks. 3 endpoints in REST and MCP return 7-day and 30-day uptime, outages, firewall blocks and SSL expiry.
A 90-day event feed across the whole site, plus problems open right now. Read SSL and https issues, outages, SEO scan changes and Core Web Vitals drops over 2 REST and MCP endpoints.
Site totals, daily trends and traffic breakdowns from Google Analytics 4. 9 REST and MCP endpoints return channels, sources, landing and viewed pages, audience, events, products and referrers.
Your Google traffic in Search Console and GA4 next to the on-page SEO scan. 12 MCP-only tools query search performance, analytics, audit issues, AI readiness and SEO diagnostics.
What you can build with the SEO API
You build the exact screen or report your team wants to open. MarketingTracer keeps the measurements and link checks running behind it.
Join rankings and AI citations with your own business numbers
Drop openapi.json into Cursor or Claude Code. In a couple of afternoons you can put together an internal dashboard for your site. Place Google positions from serp.keywords and ChatGPT or Gemini citations from aiinsights.prompts right next to your own margin or stock table. Pull aiinsights.traffic_pages to see which pages bring GA4 revenue from AI visits.
Keep your Monday report or team dashboard fed on schedule
On Monday morning your team wants to see what moved in Google and AI answers, and whether your won links are still live. A Sunday-night script pages through serp.keywords and checks aiinsights.summary for shifts in cited prompts. Then linkbuilding.overview confirms every live link still carries the agreed anchor text. Because the API is read-only, that job can never edit a site or send an outreach mail by mistake.
How to call the REST API
Send a POST request with a JSON body to /rest/v1/<endpoint> on app.marketingtracer.com. Public endpoints only read, so GET with the same arguments in the query string works too. Machine-readable schemas for all 35 REST endpoints live at https://app.marketingtracer.com/
Pass your personal API key in the Authorization header as a bearer token. Copy the key from the /mcp page in the app. Your key carries the same site access and role as your login. Read site_id from the site's URL in the app, or list your sites with the list_sites MCP tool.
curl -X POST https://app.marketingtracer.com/rest/v1/serp.keywords \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"site_id": "65a1b2c3d4e5f60718293a4b", "limit": 2}'
Below is a real anonymised serp.keywords response. Only the first keyword is shown here.
{
"data": [
{
"id": "6ae0d00f1a123fbf9d03c6d2",
"keyword": "auto zonnescherm",
"country": "nl",
"device": "desktop",
"group": "prio",
"starred": false,
"target_url": null,
"search_volume": 5400,
"state": "ok",
"paused": false,
"last_measured_month": "2026-10",
"position": 2,
"previous_position": null,
"change": null,
"positions": [
{"month": "2026-09", "position": null, "measured": false},
{"month": "2026-10", "position": 2, "measured": true}
],
"pages": [
{
"url": "https://www.example-shop.com/sunshades",
"positions": [
{"month": "2026-09", "position": null},
{"month": "2026-10", "position": 2}
]
}
],
"competitors": []
},
…
],
"meta": {
"site_id": "65a1b2c3d4e5f60718293a4b",
"next_cursor": "2",
"total": 10
}
}
Response shape and error codes
Every HTTP 200 response returns data alongside a meta object:
{"data": …, "meta": {"site_id": "65a1b2c3d4e5f60718293a4b"}}
Summary and single-item endpoints put an object in data and site_id in meta. Date comparisons add period to meta. List endpoints return an array in data, with total and next_cursor in meta. Pass cursor and limit to page forward until next_cursor comes back null.
- Names: English
snake_caseeverywhere. Each item usesidfor its own ID. References use<thing>_id, such assite_idorkeyword_id. - Dates and numbers: Fields that end in
_atcarry UTC timestamps in ISO 8601 (2026-10-30T12:31:00Z). Days useYYYY-MM-DDand months useYYYY-MM. Number suffixes state the scale, such as_pct(0 to 100) and_eur. - Nulls and URLs:
nullmeans unmeasured or unknown. A measured zero comes back as0. Keys are never omitted. Full URLs inurlandtarget_urlincludehttps://. Everydomainfield is a bare hostname.
Failed calls return an HTTP error status and an error object with code and message. The API rejects unknown arguments so a typo in a field name never fails silently.
{"error": {"code": "no_access", "message": "This account has no access to site …"}}
| Status | error.code | When you get it |
|---|---|---|
400 | unknown_argument, missing_argument, invalid_argument | You passed an unknown argument, left out a required one, or sent an invalid value. |
401 | not_authenticated | The bearer API key is missing or invalid. |
403 | no_access, tool_off | Your account cannot access this site, or the tool is switched off for it. |
404 | unknown_endpoint, not_found | The endpoint name does not exist, or no site matches site_id. |
405 | method_not_allowed | Only POST and GET requests are accepted. |
429 | rate_limited | Your key went over 60 calls in the current minute. Wait the number of seconds in Retry-After. |
500 | internal | Something went wrong on our servers. |
60 calls per minute per API key
Each personal API key allows 60 calls per minute across REST and MCP together. Clicking around in the MarketingTracer web app uses your browser session. Those clicks never count toward your key limit.
Responses include X-RateLimit-Limit and X-RateLimit-Remaining headers. When a script passes 60 calls in a minute, the API returns HTTP 429. The Retry-After header tells you how many seconds to wait.
Read-only access in every plan
Every public REST endpoint and MCP tool is read-only. That makes your key safe for nightly scripts and internal dashboards, because no call can change site settings or send an outreach mail.
Your MarketingTracer subscription includes the REST API and the MCP server at no extra cost. See the plans on our pricing page.
White-label SEO API. Fetch client SEO data from your own domain.
The whole MarketingTracer dashboard is white label, with your logo and colours. On your custom hostname, /rest/v1/*, openapi.json, /rest/v1/docs and the MCP server all answer under your agency's name. One personal API key reaches every client site your login can open. You decide whether your clients also get the API and the MCP.
Use the same API key in Claude Code and Cursor
Your personal bearer key also connects Claude Code and Cursor to /rest/mcp/server on app.marketingtracer.com. All 35 REST endpoints appear there with the same fields under get_* names, so serp.keywords becomes get_serp_keywords.
That server adds 12 MCP tools for Search Console, GA4 and the on-page SEO scan. Your assistant gets 47 tools across your sites.
Which pages lost clicks in Search Console this month? Check whether their tracked Google positions or ChatGPT citations dropped too, and see what changed in the SEO scan.
diagnose_traffic_drop get_serp_keywords get_aiinsights_promptsFree 14-day trial
MarketingTracer smart A.I. tool shows you what you need to rank. Then we'll help you get it done.
- No credit card required
- No installation needed
- No strings attached
FAQ
Something else? Ask us.
What is the MarketingTracer SEO API?
The MarketingTracer SEO API is a read-only HTTP JSON interface at /rest/v1/* for the sites in your account. Its 35 public endpoints cover Rank tracker, AI Insights, Linkbuilding, Core Web Vitals, Uptime, Alerts and Analytics. The same endpoints power the web app and the MCP server, and each response uses the {"data", "meta"} JSON envelope.
Is the SEO API included in my plan?
Yes. Every MarketingTracer subscription includes the REST API and the MCP server at no extra cost. Rank tracker measurements start on a paid plan, so serp.summary returns trial: true during the free trial. See the pricing page for the plans.
Where do I find my API key and site_id?
Your personal API key sits on the MCP page (/mcp) inside the MarketingTracer app. Copy it there and send it in the Authorization: Bearer header. Each site's site_id is in its app URL. You can also list every site ID with the list_sites MCP tool.
What is the rate limit?
Each personal API key allows 60 calls per minute across the REST API and the MCP server combined. Every response sends X-RateLimit-Limit and X-RateLimit-Remaining headers. If you go over the limit, HTTP 429 returns Retry-After with the seconds left in that minute.
Can I fetch Google Search Console, GA4 or on-page SEO scan data over REST?
Google Analytics 4 is on the REST API with nine analytics.* endpoints for totals, channels, sources, pages, audience, events, products and referrers, plus aiinsights.traffic_* for AI assistant visits. See Google Analytics 4 API for every endpoint. Search Console, the on-page SEO scan and the free-form get_analytics tool for any GA4 dimension and metric are MCP-only. You reach those 12 tools through the SEO MCP server, and Google Search Console MCP lists every argument.
Can a script edit settings or send outreach mails through the API?
No. Both the REST API and the MCP server are read-only. Scripts and AI assistants can read every report on your sites, and no call can change site settings or remove tracked keywords. Outreach mails never fire from the API either.
Does the SEO API work on a white-label domain?
Yes. On your custom white-label domain, /rest/v1/*, openapi.json, /rest/v1/docs and the MCP server all answer under your agency's name. They serve the same endpoints and JSON fields as app.marketingtracer.com. One personal API key reaches every client site your role can open.