MazeRank API
A REST API for your AI visibility data and your done-for-you fixes. Data endpoints are GET; fix actions (mark done, dismiss, write a solution) are POST. Responses are JSON wrapped in { "data": … } and accept CORS requests. Nothing is ever published or sent on your behalf.
https://api.mazerank.com/v1https://mcp.mazerank.comOlder integrations may use the previous direct URLs (https://…convex.site/api/v1 and …/mcp). They still work with the same keys, but please switch to api.mazerank.com and mcp.mazerank.com. The OpenAPI spec is at api.mazerank.com/openapi.json.
Every response carries MazeRank-Version: 2026-10-19; fix responses also include api_version. Changes within a version only add fields. Machine-readable spec: openapi.json (OpenAPI 3.1). MCP tool descriptions: MCP tools.
Authentication
Create a key in the app under Account → API & MCP. Keys start with lr_, are shown once and stored hashed. Send the key as a bearer token or in X-Api-Key.
curl https://api.mazerank.com/v1/sites \
-H "Authorization: Bearer lr_YOUR_KEY"curl https://api.mazerank.com/v1/sites \
-H "X-Api-Key: lr_YOUR_KEY"An account key reads the websites you own; for agencies that's every client. You can limit a key to specific sites when you create it; other sites then return 404. Keys only change data with the fixes_write scope, and only fix statuses and solutions. Revoke any key at any time. Up to 20 active keys per account.
Scopes
Each key has one or more scopes. Each endpoint and MCP tool needs exactly one.
sitesratesenginescompetitorsanswersalertsreportsfixesfixes_writeplanaccuracyfactsfacts_writefixes reads fixes, evidence and existing solutions. fixes_write also marks fixes done, dismisses or reopens them, writes solutions (which can use the site's monthly budget) and prepares change sets (apply). plan reads the weekly plan, wins and receipts; accuracy reads Accuracy and wrong answers; facts / facts_write read and set business facts. Keys created before these existed don't include them.
Rate limits
120 requests per minute per key, shared between REST and MCP. Successful responses include X-RateLimit-Limit and X-RateLimit-Remaining. Over the limit you get 429 with Retry-After: 60. Writing solutions is also limited to 30 requests per key per hour.
Errors
Errors return { "error": "code" }; fix errors add message and, where it helps, detail and the budget fields.
| Status | error | Meaning |
|---|---|---|
| 401 | missing_api_key | No key, or the key doesn't start with lr_. |
| 401 | invalid_api_key | Key not found or revoked. |
| 403 | missing_scope | The key lacks the scope; the response includes "scope". |
| 404 | site_not_found | Unknown site id, or not readable by this key. |
| 404 | not_found | Unknown path. |
| 405 | method_not_allowed | POST is only accepted on fix actions. |
| 429 | rate_limited | Over the per-minute limit (or the solution limit per hour). Retry-After is set. |
| 404 | fix_not_found | Unknown fix id for this site (or retired: the latest check no longer supports it). |
| 400 | invalid_parameter | A filter or argument is invalid; see "detail". |
| 409 | invalid_transition | That status change isn't allowed from the fix's current status; see "detail". |
| 403 | plan_required | The site has no active plan (free preview), or the action needs a higher plan. |
| 402 | free_pick_required | Spark: full solutions are picked by you. Call again with use_free=true to spend this month's free one on this fix. |
| 402 | budget_exhausted | No full solutions left this month for this site (Pro 20, Scale 60, Spark 1). They renew on the 1st (UTC). |
| 404 | no_solution | No solution written yet. POST …/solution (or get_fix_solution with generate=true) to write one. |
| 202 | generating | A solution for this fix is being written. Retry in 30–60 seconds. |
| 502 | generation_failed | Writing the solution failed; nothing was counted. Retry later. |
List sites
Websites this key can read. Agency keys see every client.
curl "https://api.mazerank.com/v1/sites" \
-H "Authorization: Bearer $LR_KEY"{
"data": [{
"id": "k57f3x2c9q8w1e6r4t0y",
"name": "Lumen CRM",
"website": "https://lumencrm.com",
"city": null, "country": "US",
"languages": ["en", "es"],
"plan": "spark",
"agencyClient": true,
"brandId": null, "location": null
}]
}Get site
One website, same shape as an item in List sites.
| id | path · string | Site id from GET /sites. |
curl "https://api.mazerank.com/v1/sites/SITE_ID" \
-H "Authorization: Bearer $LR_KEY"{ "data": { "id": "k57f3x2c9q8w1e6r4t0y", "name": "Lumen CRM", … } }Mention rates
Mention rate is the percentage of AI answers that name the business. Returns the last 7 days and one row per completed weekly run.
| id | path · string | Site id from GET /sites. |
| weeks | query · integer | Weeks of history. Default 12, max 52. |
curl "https://api.mazerank.com/v1/sites/SITE_ID/mention-rates?weeks=12" \
-H "Authorization: Bearer $LR_KEY"{
"data": {
"current": { "mentionRate": 42.0, "answers": 312, "window": "last 7 days" },
"weekly": [
{ "week": "2026-09-28", "mentionRate": 38.4, "answers": 296 },
{ "week": "2026-10-05", "mentionRate": 40.2, "answers": 301 }
]
}
}Engines
Mention rate per AI engine over the last 7 days, highest first. Engine ids: chatgpt, google_aio, google_ai_mode, gemini, perplexity, claude.
| id | path · string | Site id from GET /sites. |
curl "https://api.mazerank.com/v1/sites/SITE_ID/engines" \
-H "Authorization: Bearer $LR_KEY"{
"data": [
{ "engine": "perplexity", "label": "Perplexity", "mentionRate": 55.0, "answers": 52 },
{ "engine": "chatgpt", "label": "ChatGPT", "mentionRate": 41.2, "answers": 52 }
]
}Competitors
Businesses AI names most often for this site's questions over the last 7 days, compared with the site itself.
| id | path · string | Site id from GET /sites. |
| limit | query · integer | Default 20, max 50. |
curl "https://api.mazerank.com/v1/sites/SITE_ID/competitors?limit=20" \
-H "Authorization: Bearer $LR_KEY"{
"data": {
"you": { "name": "Lumen CRM", "mentionRate": 42.0 },
"tracked": ["Pipeflow"],
"competitors": [
{ "name": "Pipeflow", "mentionRate": 51.3 },
{ "name": "Dealbase", "mentionRate": 33.0 }
]
}
}Answers
Recent individual AI answers, newest first. answer is truncated to 4,000 characters.
| id | path · string | Site id from GET /sites. |
| limit | query · integer | Default 50, max 200. |
| engine | query · string | Filter by engine id, e.g. chatgpt. |
curl "https://api.mazerank.com/v1/sites/SITE_ID/answers?limit=20&engine=chatgpt" \
-H "Authorization: Bearer $LR_KEY"{
"data": [{
"id": "j97…", "date": "2026-10-12",
"question": "best CRM for small agencies",
"language": "en", "city": null, "engine": "chatgpt",
"mentioned": true, "rank": 2, "sentiment": "positive",
"competitors": ["Pipeflow"],
"citations": ["https://www.example.com/best-crm-for-agencies"],
"ownSiteCited": false,
"answer": "Here are some well-reviewed options…"
}]
}Alerts
Alerts, newest first: mention-rate drops, competitors overtaking and wrong facts in AI answers. Up to 50.
| id | path · string | Site id from GET /sites. |
curl "https://api.mazerank.com/v1/sites/SITE_ID/alerts" \
-H "Authorization: Bearer $LR_KEY"{
"data": [{
"id": "m12…", "type": "drop", "status": "open", "engine": "chatgpt",
"createdAt": "2026-10-12T07:04:11.000Z",
"text": "ChatGPT mentions dropped from 48% to 31%.",
"quote": null
}]
}Reports
Latest monthly PDF and the shareable weekly report link. URLs are null until a report exists.
| id | path · string | Site id from GET /sites. |
curl "https://api.mazerank.com/v1/sites/SITE_ID/reports" \
-H "Authorization: Bearer $LR_KEY"{
"data": {
"monthlyPdf": { "month": "2026-09", "generatedAt": "2026-10-01T06:00:00.000Z" },
"pdfUrl": "…/report.pdf?t=…",
"weeklyReportUrl": "https://mazerank.com/r/…",
"lastWeeklyEmailFor": "2026-10-12"
}
}This week's plan
Up to 3 tasks for this week (fixes and wrong-answer corrections) with effort, who can do it and the estimated gain. task_id is s:<fix id> or c:<correction id>.
| id | path · string | Site id from GET /sites. |
curl "https://api.mazerank.com/v1/sites/SITE_ID/plan" \
-H "Authorization: Bearer $LR_KEY"{
"data": {
"week_of": "2026-10-19",
"tasks": [{ "task_id": "s:jx7a…", "type": "fix", "fix_id": "jx7a…", "kind": "article", "title": "Publish a CRM pricing page", "status": "todo", "slot": "big", "effort_minutes": 90, "who": ["developer"], "estimated_gain": "+3 pts" }]
}
}Swap a task
"Not this one": replaces an open task with the next best one. Account keys only.
| id | path · string | Site id from GET /sites. |
| task_id | path · string | From This week's plan. |
curl -X POST "https://api.mazerank.com/v1/sites/SITE_ID/plan/tasks/{task_id}/swap" \
-H "Authorization: Bearer $LR_KEY"{ "data": { "week_of": "2026-10-19", "tasks": [ … ] }, "replaced": "s:jx7a…", "new_task_id": "s:k2b9…" }Wins
The month's wins: tasks done, proven, extra questions that now name the business (and on which engines), wrong answers corrected, score change, with receipt links.
| id | path · string | Site id from GET /sites. |
| month | query · YYYY-MM | Default: this month (UTC). |
curl "https://api.mazerank.com/v1/sites/SITE_ID/wins?month=20" \
-H "Authorization: Bearer $LR_KEY"{ "data": { "month": "2026-10", "tasks_done": 5, "proven": 2, "more_questions_named": 4, "engines": ["ChatGPT", "Perplexity"], "wrong_answers_corrected": 1, "score": { "from": 31, "to": 38 }, "items": [ … ] } }Accuracy
Correct / checkable claims AI makes about the business, per engine and per week. Shown as a percentage from 8 checkable claims. Separate from the visibility score.
| id | path · string | Site id from GET /sites. |
curl "https://api.mazerank.com/v1/sites/SITE_ID/accuracy" \
-H "Authorization: Bearer $LR_KEY"{ "data": { "accuracy_pct": 86, "correct": 43, "checkable": 50, "wrong": 4, "outdated": 2, "mixed_up": 1, "misleading": 0, "unverifiable": 9, "by_engine": [ … ], "weekly": [ … ] } }Wrong answers
Claims that don't match the confirmed facts: the claim, the quote, the engine, verdict, severity and the likely source page.
| id | path · string | Site id from GET /sites. |
| verdict | query · string | Comma list. Default wrong, outdated, mixed_up, misleading. |
| limit | query · integer | Default 50, max 200. |
curl "https://api.mazerank.com/v1/sites/SITE_ID/claims?verdict=20&limit=20" \
-H "Authorization: Bearer $LR_KEY"{ "data": [{ "id": "k9…", "date": "2026-10-16", "engine": "chatgpt", "field": "hours", "claim": "Open on Sundays", "quote": "…open every day, including Sundays…", "verdict": "wrong", "severity": "high", "likely_source": { "kind": "directory", "url": "https://…", "domain": "…" } }], "total": 4 }Business facts
The facts AI answers are checked against, with status (confirmed or to review) and source.
| id | path · string | Site id from GET /sites. |
curl "https://api.mazerank.com/v1/sites/SITE_ID/facts" \
-H "Authorization: Bearer $LR_KEY"{ "data": [{ "id": "f1…", "field": "phone", "key": null, "value": "+351 21 000 0000", "status": "confirmed", "source": "owner", "confirmed_at": "2026-10-12T09:00:00.000Z" }], "fields": ["name", "domain", "what", "service", … ] }Set facts
Adds confirmed facts, only with the owner's say-so. One-value fields (phone, hours…) replace the current value, which stays in history; services and prices add a row. AI claims are re-graded. Not available on super-admin keys.
| id | path · string | Site id from GET /sites. |
curl "https://api.mazerank.com/v1/sites/SITE_ID/facts" \
-H "Authorization: Bearer $LR_KEY"{ "data": [ … current facts … ], "changed": ["f9…"] }CSV exports
kind = answers (scope answers), fixes or proofs (fixes), claims (accuracy). Also /sites/{id}/plan.csv (plan). UTF-8 CSV, up to 5000 rows; cells that start with = + - @ get a leading apostrophe so spreadsheets don't run them.
| id | path · string | Site id from GET /sites. |
| kind | path · string | answers, fixes, claims or proofs. |
curl "https://api.mazerank.com/v1/sites/SITE_ID/export/{kind}.csv" \
-H "Authorization: Bearer $LR_KEY"id,date,engine,question,…
jx7a…,2026-10-16,chatgpt,best crm for small teams,…Fixes
Fixes are the actions MazeRank ranks for each site after every check: beat a competitor's page, build a tool, get listed, pitch an article, answer in communities, fix technical blockers. Each one carries its evidence and, when written, a done-for-you solution in structured parts you can publish or hand to your own tools. Typical agent flow:
GET /sites/{id}/fixes/next(optionally?category=content) for the fix to do now.POST …/fixes/{fix_id}/startso others see it's taken.- If it has no solution yet,
POST …/solution(uses the monthly budget) and poll until 200. GET …/fixes/{fix_id}?include=solutionand followimplementation.agent_prompt.- Fill the placeholders, run the verification checks, publish, then
POST …/done. MazeRank re-checks the questions; the status becomesverified.
Responses are compact by default. Add include=solution only when you are about to implement a fix. Ids are stable while the fix exists; revision changes when its evidence changes.
Workflow
Every fix has one status. Moves that aren't listed return 409 invalid_transition with the current status.
| status | Meaning | Next |
|---|---|---|
| open | Ranked and waiting. | start, done, dismiss |
| in_progress | Someone (or an agent) is on it. Set by POST …/start. | apply, done, dismiss, reopen |
| awaiting_approval | A change set was handed to your agent (POST …/apply); a person approves the PR or draft. | done, dismiss, reopen |
| done | Marked done. Its questions are re-checked at ~72 hours, day 7 if needed and day 21. | reopen |
| verified | The re-check window is over; Get fix shows before/after. | reopen |
| dismissed | Hidden. Nothing deleted. | reopen |
Categories: content (pages, articles), tool (free tools), technical (llms.txt, schema, robots.txt), listing (directories), reviews_community, outreach.
Implementation brief
Every fix from Get fix and Get next fix carries implementation, built from its evidence and solution, in the site's language.
| goal | One sentence: what to publish or change, and why AI will cite it. |
| acceptance_criteria | Checklist that defines done. |
| steps[] | Ordered: n, action (create_page, edit_page, add_schema, add_file, external_profile, manual), title, target. |
| files[] | Paths and URLs to create or edit: page slug, where the JSON-LD goes, /llms.txt, /robots.txt, external profile URLs. |
| who_can_do_it | developer, agent and/or owner_manual (listings, reviews and outreach need the owner). |
| placeholders[] | Every [[FILL IN: …]] blank (PREENCHER in Portuguese, COMPLETAR in Spanish) with its label and part. |
| dependencies[] | What must exist first: the solution (type solution), placeholders, or another fix. |
| verification[] | Checks with a URL: page returns 200, Rich Results Test, validator.schema.org, readable without JavaScript, the MazeRank re-check. |
| agent_prompt | One string to paste into Cursor, Claude Code or any coding agent. With include=solution it embeds the solution parts (agent_prompt_has_content: true); otherwise it says where to fetch them. |
The agent prompt never asks to deploy, publish or send anything: it leaves changes for review and lists the blanks still to fill.
List fix categories
The six fix categories with counts per status. Use an id as category= on List fixes or Get next fix.
| id | path · string | Site id from GET /sites. |
curl "https://api.mazerank.com/v1/sites/SITE_ID/fix-categories" \
-H "Authorization: Bearer $LR_KEY"{
"api_version": "2026-10-19",
"data": [
{ "id": "content", "label": "Content and pages", "types": ["article"], "counts": { "open": 3, "in_progress": 1, "done": 2, "verified": 1, "dismissed": 0, "total": 7 } },
{ "id": "tool", "label": "Free tools", "types": ["tool"], "counts": { … } },
{ "id": "technical", … }, { "id": "listing", … }, { "id": "reviews_community", … }, { "id": "outreach", … }
]
}List fixes
The site's fixes, ranked: rank 1 is the one to do first. Each fix is grounded in the latest check: the pages AI cited instead of you, for which questions. Retired fixes (the latest check no longer supports them) are never listed. Includes the site's full-solution budget for the month.
| id | path · string | Site id from GET /sites. |
| category | query · string | Comma list: content, tool, technical, listing, reviews_community, outreach (see List fix categories). |
| status | query · string | active (default: open + in_progress), open, in_progress, done, verified, dismissed or all. |
| type | query · string | Comma list: article, tool, directory, outreach, community, technical. |
| impact | query · string | Comma list: high, medium, low. |
| limit | query · integer | Default 20, max 50. |
| cursor | query · string | next_cursor from the previous page. |
curl "https://api.mazerank.com/v1/sites/SITE_ID/fixes?category=20&status=open&type=article,tool&impact=high&limit=20" \
-H "Authorization: Bearer $LR_KEY"{
"api_version": "2026-10-19",
"data": [{
"id": "jx7a…", "key": "article:crm-pricing",
"type": "article", "category": "content", "status": "open",
"title": "Beat Pipeflow's guide to CRM pricing",
"impact": "high", "effort": 2, "rank": 1, "score": 0.82,
"why": "AI cites a competitor's price guide for 4 of your questions; your site isn't cited.",
"target": "crm pricing", "versus": "Pipeflow",
"counts": { "questions": 4, "cited_pages": 3, "answers_checked": 22 },
"solution_available": null,
"created_at": "2026-10-12T06:10:00.000Z", "started_at": null, "done_at": null,
"revision": "1x9k2p"
}],
"total": 9, "next_cursor": "bzoyMA",
"budget": { "plan": "pro", "full_per_month": 20, "used_this_month": 3, "budget_remaining": 17, "spark_pick_required": false, "renews_at": "2026-11-01T00:00:00.000Z" }
}Get fix
One fix with its evidence: every cited page (URL, domain, source type, format, how often AI cited it), the questions and engines where you were missed, who AI named instead, for done fixes the re-check before/after, and the implementation brief (see Implementation brief). Compact by default; include=solution adds the written solution under "solution" and puts its content into agent_prompt.
| id | path · string | Site id from GET /sites. |
| fix_id | path · string | Fix id from List fixes. Stable while the fix exists. |
| include | query · string | solution: add the solution and a content-complete agent_prompt. |
curl "https://api.mazerank.com/v1/sites/SITE_ID/fixes/FIX_ID?include=20" \
-H "Authorization: Bearer $LR_KEY"{
"data": {
"id": "jx7a…", "type": "article", "title": "Beat Pipeflow's guide…", "rank": 1, …,
"evidence": {
"cited_pages": [{
"url": "https://rival.example/crm-pricing", "title": "CRM pricing guide",
"domain": "rival.example", "source_type": "competitor", "format": "article",
"cited_count": 7, "relevance": 0.9, "traits": ["1,800 words", "price table", "FAQ"]
}],
"questions": [{ "question_id": "k3…", "text": "how much does a CRM cost for a small agency",
"answers_checked": 6, "engines_missed": ["chatgpt", "perplexity"], "named_instead": ["Pipeflow"] }],
"competitors_named": [{ "name": "Pipeflow", "questions": 4 }]
},
"recheck": null,
"solution_state": { "status": "ready", "mode": "full", "updated_at": "…" },
"implementation": {
"goal": "Publish a page at /crm-pricing that answers “how much does a CRM cost for a small agency” better than rival.example, so AI engines can cite Your Business.",
"who_can_do_it": ["developer", "agent", "owner_manual"],
"acceptance_criteria": ["https://yourbusiness.com/crm-pricing returns 200 and is linked from at least one existing page", "JSON-LD is in the <head> and validates with no errors", "No [[…]] placeholders left on the live page", …],
"steps": [
{ "n": 1, "action": "create_page", "title": "Create the page with the site's normal layout", "target": "/crm-pricing" },
{ "n": 2, "action": "edit_page", "title": "Set the title tag and meta description", "target": "/crm-pricing" },
{ "n": 4, "action": "add_schema", "title": "Add the JSON-LD in the page <head>", "target": "/crm-pricing" }, …
],
"files": [{ "path": "/crm-pricing", "url": "https://yourbusiness.com/crm-pricing", "action": "add_schema", "placement": "<head>: <script type="application/ld+json">" }, …],
"placeholders": [{ "label": "price", "token": "[[FILL IN: price]]", "part": "article" }],
"dependencies": [{ "type": "placeholders", "detail": "1 placeholder(s) only the business can fill" }],
"verification": [
{ "check": "Page is live", "how": "GET returns 200 (not a redirect to the home page)", "url": "https://yourbusiness.com/crm-pricing" },
{ "check": "Schema is valid", "how": "Google Rich Results Test shows Article/FAQ with no errors", "url": "https://search.google.com/test/rich-results?url=…" }, …
],
"agent_prompt": "You are implementing a MazeRank fix in the codebase of https://yourbusiness.com (Your Business). Write every visible text in English.
Fix: …
Steps:
1. [create_page] …",
"agent_prompt_has_content": false
}
}
}Get next fix
The fix to work on now: the in-progress one if there is one (resume), otherwise rank 1 of the open fixes. Same shape as Get fix. data is null when nothing is left.
| id | path · string | Site id from GET /sites. |
| category | query · string | Optional category id. |
| include | query · string | solution: as on Get fix. |
curl "https://api.mazerank.com/v1/sites/SITE_ID/fixes/next?category=20&include=20" \
-H "Authorization: Bearer $LR_KEY"{
"api_version": "2026-10-19",
"data": { "id": "jx7a…", "status": "open", "rank": 1, "category": "content", "evidence": { … }, "implementation": { … } },
"remaining": 6,
"budget": { "plan": "pro", "budget_remaining": 17, … }
}Get solution
The written solution as structured parts, ready to copy. Never generates: 404 no_solution until one is written, 202 generating while it's being written. Parts depend on the fix type (below); blanks lists every placeholder you must fill before publishing.
| id | path · string | Site id from GET /sites. |
| fix_id | path · string | Fix id from List fixes. Stable while the fix exists. |
curl "https://api.mazerank.com/v1/sites/SITE_ID/fixes/FIX_ID/solution" \
-H "Authorization: Bearer $LR_KEY"{
"data": {
"fix_id": "jx7a…", "mode": "full", "type": "article", "language": "en",
"parts": {
"title_tag": "CRM pricing for small agencies (2026) | Your Business",
"meta_description": "What a CRM costs for a small agency, what's included and how to choose…",
"slug": "/crm-pricing",
"article_markdown": "# CRM pricing…", "article_html": "<h1>…",
"json_ld": { "@context": "https://schema.org", "@graph": [ … ] },
"faq": [{ "question": "Is there a free plan?", "answer": "…" }],
"internal_links": [{ "anchor": "book a consultation", "url": "https://yourbusiness.com/book" }],
"citable_facts": ["Treatment takes about 60 minutes", "…"]
},
"blanks": [{ "part": "article", "text": "FILL IN: price of the take-home kit" }],
"files": { "markdown": { "filename": "crm-pricing.md", "content": "…" }, "html": { … } },
"budget_remaining": 17, "plan": "pro", …
}
}Write solution
Writes the solution. Lite (an outline, no AI writing) is free and immediate. A full solution uses one of the site's monthly budget (Pro 20, Scale 60) and returns 202; poll Get solution. An existing full solution is returned free (200) unless you pass regenerate. Spark includes 1 full solution a month that you pick: without use_free you get 402 free_pick_required, never an automatic spend.
| id | path · string | Site id from GET /sites. |
| fix_id | path · string | Fix id from List fixes. Stable while the fix exists. |
| mode | body · string | full (default) or lite. |
| use_free | body · boolean | Spark only: spend this month's free full solution on this fix. |
| regenerate | body · boolean | Pro/Scale: write a new full solution even if one exists (uses budget). |
curl -X POST "https://api.mazerank.com/v1/sites/SITE_ID/fixes/FIX_ID/solution" \
-H "Authorization: Bearer $LR_KEY" \
-H "Content-Type: application/json" \
-d '{ "mode": "full" }'{
"api_version": "2026-10-19",
"status": "generating", "fix_id": "jx7a…", "mode": "full", "retry_after_seconds": 20,
"budget": { "plan": "pro", "full_per_month": 20, "used_this_month": 4, "budget_remaining": 16, … }
}Mark in progress
Marks an open fix as in progress, so teammates and other agents see it's taken; Get next fix returns it first. Idempotent. 409 invalid_transition if the fix is done or dismissed (reopen it first).
| id | path · string | Site id from GET /sites. |
| fix_id | path · string | Fix id from List fixes. Stable while the fix exists. |
curl -X POST "https://api.mazerank.com/v1/sites/SITE_ID/fixes/FIX_ID/start" \
-H "Authorization: Bearer $LR_KEY"{ "data": { "id": "jx7a…", "status": "in_progress", "started_at": "2026-10-19T14:02:11.000Z", … }, "changed": true }Mark done
Marks an open or in-progress fix done. Its questions are re-checked at ~72 hours, day 7 if needed and day 21 (a change counts when it holds in 2 of 3 runs); Get fix then shows before/after, and once the re-check window is over the status is verified. Idempotent: changed is false if it was already done. 409 invalid_transition from dismissed.
| id | path · string | Site id from GET /sites. |
| fix_id | path · string | Fix id from List fixes. Stable while the fix exists. |
curl -X POST "https://api.mazerank.com/v1/sites/SITE_ID/fixes/FIX_ID/done" \
-H "Authorization: Bearer $LR_KEY"{ "data": { "id": "jx7a…", "status": "done", "recheck": { "started_at": "…", "until": "…", "before": { "named": 1, "answers": 6 }, "after": null }, … }, "changed": true }Dismiss
Hides an open or in-progress fix. Nothing is deleted; reopen it any time. 409 invalid_transition from done.
| id | path · string | Site id from GET /sites. |
| fix_id | path · string | Fix id from List fixes. Stable while the fix exists. |
curl -X POST "https://api.mazerank.com/v1/sites/SITE_ID/fixes/FIX_ID/dismiss" \
-H "Authorization: Bearer $LR_KEY"{ "data": { "id": "jx7a…", "status": "dismissed", … }, "changed": true }Apply fix
Packages the written solution as a change set for your agent to apply with its own access: a CMS draft (WordPress, Webflow) and/or a pull request (branch, commit message, body, file changes such as the page, JSON-LD, llms.txt, robots.txt), or numbered manual steps for off-site fixes. MazeRank never pushes, merges or publishes. The fix becomes awaiting_approval; when a person has approved and it's live, call Mark done with the url. 403 plan_required without an active plan; 404 no_solution if nothing is written yet (this call never writes one).
| id | path · string | Site id from GET /sites. |
| fix_id | path · string | Fix id from List fixes. Stable while the fix exists. |
curl -X POST "https://api.mazerank.com/v1/sites/SITE_ID/fixes/FIX_ID/apply" \
-H "Authorization: Bearer $LR_KEY" \
-H "Content-Type: application/json" \
-d '{ "format": "pull_request" }'{
"data": {
"fix_id": "jx7a…", "status": "awaiting_approval",
"change_set": {
"format": "cms_draft",
"cms_draft": { "status": "draft", "title": "CRM pricing", "slug": "crm-pricing", "content_html": "…", "meta": { … }, "json_ld": "…" },
"pull_request": { "branch": "mazerank/fix-k2b9x1aa", "title": "MazeRank: …", "commit_message": "…", "body": "…", "changes": [{ "op": "create", "path": "/crm-pricing", "content": "…" }] },
"approval": { "required": true, "status": "awaiting_approval", "rule": "MazeRank never pushes, merges or publishes. …", "next": "…" }
}
}
}Fix proof
For a done fix: the same questions and engines before and after, the re-check passes, the verdict and receipt links. A signal, never a promise. /receipt returns the same with the public receipt (404 no_receipt until there is one); ?format=pdf redirects to the PDF.
| id | path · string | Site id from GET /sites. |
| fix_id | path · string | Fix id from List fixes. Stable while the fix exists. |
curl "https://api.mazerank.com/v1/sites/SITE_ID/fixes/FIX_ID/proof" \
-H "Authorization: Bearer $LR_KEY"{ "data": { "fix_id": "jx7a…", "verdict": "proven", "before": { "named": 1, "pairs": 12 }, "now": { "named": 5, "pairs": 12 }, "passes": [ … ], "receipt_url": "https://mazerank.com/proof/…", "receipt_pdf_url": "https://api.mazerank.com/proof.pdf?t=…" } }Reopen
Moves a fix back to open from in_progress, awaiting_approval, done, verified or dismissed (clears started_at).
| id | path · string | Site id from GET /sites. |
| fix_id | path · string | Fix id from List fixes. Stable while the fix exists. |
curl -X POST "https://api.mazerank.com/v1/sites/SITE_ID/fixes/FIX_ID/reopen" \
-H "Authorization: Bearer $LR_KEY"{ "data": { "id": "jx7a…", "status": "open", … }, "changed": true }Solution parts
parts only contains the fields for the fix's type. Text is in the site's language. Placeholders look like [[FILL IN: …]] (in the site's language) and are all listed in blanks; MazeRank doesn't invent prices, reviews or claims.
| article | title_tag, meta_description, slug, article_markdown, article_html, json_ld, faq, internal_links, citable_facts |
| tool | build_prompt (paste into Lovable, Bolt, v0 or Cursor), target_keyword, title_tag, meta_description, slug, page_markdown, page_html, json_ld, faq |
| directory | listing: short_description, long_description, name_address_contact, categories, services, signup_url, steps, photos, review_request |
| outreach | outreach: to, subject, body, follow_up, why_fit, send = "copy_only" (MazeRank never sends it) |
| community | community: review_request_email, review_request_sms, reply_positive, reply_negative, thread_answer, video_outline |
| technical | technical: llms_txt, robots_txt, business_json_ld, faq_html |
| lite (any type) | outline_markdown, cited_page_covers |
Budgets
- Pro: 20 full solutions per site per month. Scale: 60.
- Spark: 1 full solution a month, on the fix you pick. The API never spends it for you: pass
use_free: trueon that fix. Otherwise you get402 free_pick_required. - Lite outlines are free on every paid plan. Reading an existing solution is always free.
- Failed writes aren't counted. Budgets renew on the 1st (UTC);
renews_atsays when. - Sites without a plan (free preview) get
403 plan_requiredfor solutions.
curl -X POST "https://api.mazerank.com/v1/sites/SITE_ID/fixes/FIX_ID/solution" \
-H "Authorization: Bearer $LR_KEY" -H "Content-Type: application/json" \
-d '{"mode":"full","use_free":true}'Agent walkthrough
An agent with a fixes_write key working through a site's content fixes, end to end. The same steps work over MCP with the tools of the same names, or with the work_through_fixes prompt.
curl "https://api.mazerank.com/v1/sites/SITE_ID/fix-categories" -H "Authorization: Bearer $LR_KEY"
# → content: 3 open · technical: 1 open · listing: 2 open …curl "https://api.mazerank.com/v1/sites/SITE_ID/fixes/next?category=content" -H "Authorization: Bearer $LR_KEY"
# → data.id = FIX_ID, data.implementation.dependencies = [] (solution ready)
curl -X POST "https://api.mazerank.com/v1/sites/SITE_ID/fixes/FIX_ID/start" -H "Authorization: Bearer $LR_KEY"
# → status: in_progresscurl -X POST "https://api.mazerank.com/v1/sites/SITE_ID/fixes/FIX_ID/solution" -H "Authorization: Bearer $LR_KEY" -H "Content-Type: application/json" -d '{"mode":"full"}'
# → 202 { "status": "generating", "retry_after_seconds": 20, "budget": { "budget_remaining": 16 } }curl "https://api.mazerank.com/v1/sites/SITE_ID/fixes/FIX_ID?include=solution" -H "Authorization: Bearer $LR_KEY" | jq -r .data.implementation.agent_prompt > fix.md
# Paste fix.md into Cursor / Claude Code: it creates /crm-pricing, adds title, meta,
# the article, FAQ and JSON-LD in <head>, links it from the home page, and lists the blanks.curl -s -o /dev/null -w "%{http_code}" https://yourbusiness.com/crm-pricing # 200
# + Rich Results Test / validator.schema.org from implementation.verification
curl -X POST "https://api.mazerank.com/v1/sites/SITE_ID/fixes/FIX_ID/done" -H "Authorization: Bearer $LR_KEY"
# optional: -d '{"url":"https://yourbusiness.com/crm-pricing"}' (the live page; feeds the proof)
# → status: done; re-checks at ~72 h, day 7 and day 21; later: verified, and GET …/proof shows before/afterThen call Get next fix again. Spark sites: step 3 needs use_free: true, and only on the fix the owner picked; ask them first.
MCP server
The same data is available to AI agents over the Model Context Protocol. The server uses streamable HTTP in stateless JSON mode: POST JSON-RPC messages (single or batched), get JSON back. Protocol 2025-06-18; 2025-03-26 is also accepted. Auth, keys and rate limits are the same as REST. See MazeRank Agents for an overview.
https://mcp.mazerank.comcurl https://mcp.mazerank.com \
-H "Authorization: Bearer $LR_KEY" \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call",
"params":{"name":"get_engines","arguments":{"site_id":"SITE_ID"}}}'{
"jsonrpc": "2.0", "id": 1,
"result": {
"isError": false,
"content": [{ "type": "text", "text": "{\"data\":[…]}" }],
"structuredContent": { "data": [ … ] }
}
}Supported methods: initialize, ping, tools/list, tools/call. Auth failures return HTTP 401 with JSON-RPC error code -32001.
Tools
Read tools are annotated readOnlyHint: true; fix actions are non-destructive and idempotent. tools/list only returns tools the key has scopes for. Tool results match the REST responses. Full descriptions and input schemas: MCP tools.
| Tool | Scope | Arguments |
|---|---|---|
| list_sites | sites | — |
| get_mention_rates | rates | site_id, weeks? |
| get_engines | engines | site_id |
| get_competitors | competitors | site_id, limit? |
| get_answers | answers | site_id, limit?, engine? |
| get_alerts | alerts | site_id |
| get_reports | reports | site_id |
| list_fix_categories | fixes | site_id |
| list_fixes | fixes | site_id, category?, status?, type?, impact?, limit?, cursor? |
| get_fix | fixes | site_id, fix_id, include? |
| get_next_fix | fixes | site_id, category?, include? |
| get_fix_solution | fixes (+fixes_write to generate) | site_id, fix_id, generate?, mode?, use_free?, regenerate? |
| mark_fix_in_progress | fixes_write | site_id, fix_id |
| mark_fix_done | fixes_write | site_id, fix_id, published_url? |
| dismiss_fix | fixes_write | site_id, fix_id, reason? |
| reopen_fix | fixes_write | site_id, fix_id |
| apply_fix | fixes_write | site_id, fix_id, format? |
| get_fix_proof | fixes | site_id, fix_id |
| get_plan | plan | site_id |
| get_wins | plan | site_id, month? |
| get_accuracy | accuracy | site_id |
| list_wrong_answers | accuracy | site_id, verdict?, limit? |
| get_facts | facts | site_id |
| update_fact | facts_write | site_id, field, value, key? |
{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{
"name":"get_fix_solution",
"arguments":{"site_id":"SITE_ID","fix_id":"FIX_ID","generate":true}}}Prompts
Keys with the fixes scope also get MCP prompts (prompts/list, prompts/get): ready-made workflows your client can offer as slash commands.
work_through_fixes(site_id, category?, max_fixes?): Walk through the site's fixes one by one: pick the next fix, read its evidence and brief, implement it (or guide the owner), verify, mark it done, repeat.implement_fix(site_id, fix_id): Implement a single fix in the current codebase using its brief and solution.
curl https://mcp.mazerank.com -H "Authorization: Bearer $LR_KEY" -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","id":1,"method":"prompts/get",
"params":{"name":"work_through_fixes","arguments":{"site_id":"SITE_ID","category":"content"}}}'Client setup
// ~/.cursor/mcp.json
{
"mcpServers": {
"mazerank": {
"url": "https://mcp.mazerank.com",
"headers": { "Authorization": "Bearer lr_YOUR_KEY" }
}
}
}claude mcp add --transport http mazerank \
https://mcp.mazerank.com \
--header "Authorization: Bearer lr_YOUR_KEY"// claude_desktop_config.json
{
"mcpServers": {
"mazerank": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://mcp.mazerank.com",
"--header", "Authorization:Bearer ${LR_KEY}"],
"env": { "LR_KEY": "lr_YOUR_KEY" }
}
}
}// OpenAI Responses API (ChatGPT models)
const res = await openai.responses.create({
model: "gpt-5",
tools: [{
type: "mcp",
server_label: "mazerank",
server_url: "https://mcp.mazerank.com",
headers: { Authorization: "Bearer " + process.env.LR_KEY },
require_approval: "never",
}],
input: "Which competitors beat us in AI answers this week?",
});