Developers · API reference

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.

Base URL
https://api.mazerank.com/v1
MCP server
https://mcp.mazerank.com

Older 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.

Bearer
curl https://api.mazerank.com/v1/sites \
  -H "Authorization: Bearer lr_YOUR_KEY"
Header
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_write

fixes 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.

StatuserrorMeaning
401missing_api_keyNo key, or the key doesn't start with lr_.
401invalid_api_keyKey not found or revoked.
403missing_scopeThe key lacks the scope; the response includes "scope".
404site_not_foundUnknown site id, or not readable by this key.
404not_foundUnknown path.
405method_not_allowedPOST is only accepted on fix actions.
429rate_limitedOver the per-minute limit (or the solution limit per hour). Retry-After is set.
404fix_not_foundUnknown fix id for this site (or retired: the latest check no longer supports it).
400invalid_parameterA filter or argument is invalid; see "detail".
409invalid_transitionThat status change isn't allowed from the fix's current status; see "detail".
403plan_requiredThe site has no active plan (free preview), or the action needs a higher plan.
402free_pick_requiredSpark: full solutions are picked by you. Call again with use_free=true to spend this month's free one on this fix.
402budget_exhaustedNo full solutions left this month for this site (Pro 20, Scale 60, Spark 1). They renew on the 1st (UTC).
404no_solutionNo solution written yet. POST …/solution (or get_fix_solution with generate=true) to write one.
202generatingA solution for this fix is being written. Retry in 30–60 seconds.
502generation_failedWriting the solution failed; nothing was counted. Retry later.

List sites

GET/api/v1/sitesscope: sites

Websites this key can read. Agency keys see every client.

Request
curl "https://api.mazerank.com/v1/sites" \
  -H "Authorization: Bearer $LR_KEY"
Response · 200
{
  "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

GET/api/v1/sites/{id}scope: sites

One website, same shape as an item in List sites.

idpath · stringSite id from GET /sites.
Request
curl "https://api.mazerank.com/v1/sites/SITE_ID" \
  -H "Authorization: Bearer $LR_KEY"
Response · 200
{ "data": { "id": "k57f3x2c9q8w1e6r4t0y", "name": "Lumen CRM", … } }

Mention rates

GET/api/v1/sites/{id}/mention-ratesscope: 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.

idpath · stringSite id from GET /sites.
weeksquery · integerWeeks of history. Default 12, max 52.
Request
curl "https://api.mazerank.com/v1/sites/SITE_ID/mention-rates?weeks=12" \
  -H "Authorization: Bearer $LR_KEY"
Response · 200
{
  "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

GET/api/v1/sites/{id}/enginesscope: engines

Mention rate per AI engine over the last 7 days, highest first. Engine ids: chatgpt, google_aio, google_ai_mode, gemini, perplexity, claude.

idpath · stringSite id from GET /sites.
Request
curl "https://api.mazerank.com/v1/sites/SITE_ID/engines" \
  -H "Authorization: Bearer $LR_KEY"
Response · 200
{
  "data": [
    { "engine": "perplexity", "label": "Perplexity", "mentionRate": 55.0, "answers": 52 },
    { "engine": "chatgpt", "label": "ChatGPT", "mentionRate": 41.2, "answers": 52 }
  ]
}

Competitors

GET/api/v1/sites/{id}/competitorsscope: competitors

Businesses AI names most often for this site's questions over the last 7 days, compared with the site itself.

idpath · stringSite id from GET /sites.
limitquery · integerDefault 20, max 50.
Request
curl "https://api.mazerank.com/v1/sites/SITE_ID/competitors?limit=20" \
  -H "Authorization: Bearer $LR_KEY"
Response · 200
{
  "data": {
    "you": { "name": "Lumen CRM", "mentionRate": 42.0 },
    "tracked": ["Pipeflow"],
    "competitors": [
      { "name": "Pipeflow", "mentionRate": 51.3 },
      { "name": "Dealbase", "mentionRate": 33.0 }
    ]
  }
}

Answers

GET/api/v1/sites/{id}/answersscope: answers

Recent individual AI answers, newest first. answer is truncated to 4,000 characters.

idpath · stringSite id from GET /sites.
limitquery · integerDefault 50, max 200.
enginequery · stringFilter by engine id, e.g. chatgpt.
Request
curl "https://api.mazerank.com/v1/sites/SITE_ID/answers?limit=20&engine=chatgpt" \
  -H "Authorization: Bearer $LR_KEY"
Response · 200
{
  "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

GET/api/v1/sites/{id}/alertsscope: alerts

Alerts, newest first: mention-rate drops, competitors overtaking and wrong facts in AI answers. Up to 50.

idpath · stringSite id from GET /sites.
Request
curl "https://api.mazerank.com/v1/sites/SITE_ID/alerts" \
  -H "Authorization: Bearer $LR_KEY"
Response · 200
{
  "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

GET/api/v1/sites/{id}/reportsscope: reports

Latest monthly PDF and the shareable weekly report link. URLs are null until a report exists.

idpath · stringSite id from GET /sites.
Request
curl "https://api.mazerank.com/v1/sites/SITE_ID/reports" \
  -H "Authorization: Bearer $LR_KEY"
Response · 200
{
  "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

GET/api/v1/sites/{id}/planscope: 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>.

idpath · stringSite id from GET /sites.
Request
curl "https://api.mazerank.com/v1/sites/SITE_ID/plan" \
  -H "Authorization: Bearer $LR_KEY"
Response · 200
{
  "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

POST/api/v1/sites/{id}/plan/tasks/{task_id}/swapscope: plan + fixes_write

"Not this one": replaces an open task with the next best one. Account keys only.

idpath · stringSite id from GET /sites.
task_idpath · stringFrom This week's plan.
Request
curl -X POST "https://api.mazerank.com/v1/sites/SITE_ID/plan/tasks/{task_id}/swap" \
  -H "Authorization: Bearer $LR_KEY"
Response · 200
{ "data": { "week_of": "2026-10-19", "tasks": [ … ] }, "replaced": "s:jx7a…", "new_task_id": "s:k2b9…" }

Wins

GET/api/v1/sites/{id}/winsscope: plan

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.

idpath · stringSite id from GET /sites.
monthquery · YYYY-MMDefault: this month (UTC).
Request
curl "https://api.mazerank.com/v1/sites/SITE_ID/wins?month=20" \
  -H "Authorization: Bearer $LR_KEY"
Response · 200
{ "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

GET/api/v1/sites/{id}/accuracyscope: 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.

idpath · stringSite id from GET /sites.
Request
curl "https://api.mazerank.com/v1/sites/SITE_ID/accuracy" \
  -H "Authorization: Bearer $LR_KEY"
Response · 200
{ "data": { "accuracy_pct": 86, "correct": 43, "checkable": 50, "wrong": 4, "outdated": 2, "mixed_up": 1, "misleading": 0, "unverifiable": 9, "by_engine": [ … ], "weekly": [ … ] } }

Wrong answers

GET/api/v1/sites/{id}/claimsscope: accuracy

Claims that don't match the confirmed facts: the claim, the quote, the engine, verdict, severity and the likely source page.

idpath · stringSite id from GET /sites.
verdictquery · stringComma list. Default wrong, outdated, mixed_up, misleading.
limitquery · integerDefault 50, max 200.
Request
curl "https://api.mazerank.com/v1/sites/SITE_ID/claims?verdict=20&limit=20" \
  -H "Authorization: Bearer $LR_KEY"
Response · 200
{ "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

GET/api/v1/sites/{id}/factsscope: facts

The facts AI answers are checked against, with status (confirmed or to review) and source.

idpath · stringSite id from GET /sites.
Request
curl "https://api.mazerank.com/v1/sites/SITE_ID/facts" \
  -H "Authorization: Bearer $LR_KEY"
Response · 200
{ "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

PUT/api/v1/sites/{id}/factsscope: facts_write

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.

idpath · stringSite id from GET /sites.
Request
curl "https://api.mazerank.com/v1/sites/SITE_ID/facts" \
  -H "Authorization: Bearer $LR_KEY"
Response · 200
{ "data": [ … current facts … ], "changed": ["f9…"] }

CSV exports

GET/api/v1/sites/{id}/export/{kind}.csvscope: per kind

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.

idpath · stringSite id from GET /sites.
kindpath · stringanswers, fixes, claims or proofs.
Request
curl "https://api.mazerank.com/v1/sites/SITE_ID/export/{kind}.csv" \
  -H "Authorization: Bearer $LR_KEY"
Response · 200
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:

  1. GET /sites/{id}/fixes/next (optionally ?category=content) for the fix to do now.
  2. POST …/fixes/{fix_id}/start so others see it's taken.
  3. If it has no solution yet, POST …/solution (uses the monthly budget) and poll until 200.
  4. GET …/fixes/{fix_id}?include=solution and follow implementation.agent_prompt.
  5. Fill the placeholders, run the verification checks, publish, then POST …/done. MazeRank re-checks the questions; the status becomes verified.

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.

statusMeaningNext
openRanked and waiting.start, done, dismiss
in_progressSomeone (or an agent) is on it. Set by POST …/start.apply, done, dismiss, reopen
awaiting_approvalA change set was handed to your agent (POST …/apply); a person approves the PR or draft.done, dismiss, reopen
doneMarked done. Its questions are re-checked at ~72 hours, day 7 if needed and day 21.reopen
verifiedThe re-check window is over; Get fix shows before/after.reopen
dismissedHidden. 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.

goalOne sentence: what to publish or change, and why AI will cite it.
acceptance_criteriaChecklist 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_itdeveloper, 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_promptOne 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

GET/api/v1/sites/{id}/fix-categoriesscope: fixes

The six fix categories with counts per status. Use an id as category= on List fixes or Get next fix.

idpath · stringSite id from GET /sites.
Request
curl "https://api.mazerank.com/v1/sites/SITE_ID/fix-categories" \
  -H "Authorization: Bearer $LR_KEY"
Response · 200
{
  "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

GET/api/v1/sites/{id}/fixesscope: 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.

idpath · stringSite id from GET /sites.
categoryquery · stringComma list: content, tool, technical, listing, reviews_community, outreach (see List fix categories).
statusquery · stringactive (default: open + in_progress), open, in_progress, done, verified, dismissed or all.
typequery · stringComma list: article, tool, directory, outreach, community, technical.
impactquery · stringComma list: high, medium, low.
limitquery · integerDefault 20, max 50.
cursorquery · stringnext_cursor from the previous page.
Request
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"
Response · 200
{
  "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

GET/api/v1/sites/{id}/fixes/{fix_id}scope: fixes

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.

idpath · stringSite id from GET /sites.
fix_idpath · stringFix id from List fixes. Stable while the fix exists.
includequery · stringsolution: add the solution and a content-complete agent_prompt.
Request
curl "https://api.mazerank.com/v1/sites/SITE_ID/fixes/FIX_ID?include=20" \
  -H "Authorization: Bearer $LR_KEY"
Response · 200
{
  "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

GET/api/v1/sites/{id}/fixes/nextscope: fixes

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.

idpath · stringSite id from GET /sites.
categoryquery · stringOptional category id.
includequery · stringsolution: as on Get fix.
Request
curl "https://api.mazerank.com/v1/sites/SITE_ID/fixes/next?category=20&include=20" \
  -H "Authorization: Bearer $LR_KEY"
Response · 200
{
  "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

GET/api/v1/sites/{id}/fixes/{fix_id}/solutionscope: fixes

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.

idpath · stringSite id from GET /sites.
fix_idpath · stringFix id from List fixes. Stable while the fix exists.
Request
curl "https://api.mazerank.com/v1/sites/SITE_ID/fixes/FIX_ID/solution" \
  -H "Authorization: Bearer $LR_KEY"
Response · 200
{
  "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

POST/api/v1/sites/{id}/fixes/{fix_id}/solutionscope: fixes_write

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.

idpath · stringSite id from GET /sites.
fix_idpath · stringFix id from List fixes. Stable while the fix exists.
modebody · stringfull (default) or lite.
use_freebody · booleanSpark only: spend this month's free full solution on this fix.
regeneratebody · booleanPro/Scale: write a new full solution even if one exists (uses budget).
Request
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" }'
Response · 202
{
  "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

POST/api/v1/sites/{id}/fixes/{fix_id}/startscope: fixes_write

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).

idpath · stringSite id from GET /sites.
fix_idpath · stringFix id from List fixes. Stable while the fix exists.
Request
curl -X POST "https://api.mazerank.com/v1/sites/SITE_ID/fixes/FIX_ID/start" \
  -H "Authorization: Bearer $LR_KEY"
Response · 200
{ "data": { "id": "jx7a…", "status": "in_progress", "started_at": "2026-10-19T14:02:11.000Z", … }, "changed": true }

Mark done

POST/api/v1/sites/{id}/fixes/{fix_id}/donescope: fixes_write

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.

idpath · stringSite id from GET /sites.
fix_idpath · stringFix id from List fixes. Stable while the fix exists.
Request
curl -X POST "https://api.mazerank.com/v1/sites/SITE_ID/fixes/FIX_ID/done" \
  -H "Authorization: Bearer $LR_KEY"
Response · 200
{ "data": { "id": "jx7a…", "status": "done", "recheck": { "started_at": "…", "until": "…", "before": { "named": 1, "answers": 6 }, "after": null }, … }, "changed": true }

Dismiss

POST/api/v1/sites/{id}/fixes/{fix_id}/dismissscope: fixes_write

Hides an open or in-progress fix. Nothing is deleted; reopen it any time. 409 invalid_transition from done.

idpath · stringSite id from GET /sites.
fix_idpath · stringFix id from List fixes. Stable while the fix exists.
Request
curl -X POST "https://api.mazerank.com/v1/sites/SITE_ID/fixes/FIX_ID/dismiss" \
  -H "Authorization: Bearer $LR_KEY"
Response · 200
{ "data": { "id": "jx7a…", "status": "dismissed", … }, "changed": true }

Apply fix

POST/api/v1/sites/{id}/fixes/{fix_id}/applyscope: fixes_write

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).

idpath · stringSite id from GET /sites.
fix_idpath · stringFix id from List fixes. Stable while the fix exists.
Request
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" }'
Response · 200
{
  "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

GET/api/v1/sites/{id}/fixes/{fix_id}/proofscope: fixes

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.

idpath · stringSite id from GET /sites.
fix_idpath · stringFix id from List fixes. Stable while the fix exists.
Request
curl "https://api.mazerank.com/v1/sites/SITE_ID/fixes/FIX_ID/proof" \
  -H "Authorization: Bearer $LR_KEY"
Response · 200
{ "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

POST/api/v1/sites/{id}/fixes/{fix_id}/reopenscope: fixes_write

Moves a fix back to open from in_progress, awaiting_approval, done, verified or dismissed (clears started_at).

idpath · stringSite id from GET /sites.
fix_idpath · stringFix id from List fixes. Stable while the fix exists.
Request
curl -X POST "https://api.mazerank.com/v1/sites/SITE_ID/fixes/FIX_ID/reopen" \
  -H "Authorization: Bearer $LR_KEY"
Response · 200
{ "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.

articletitle_tag, meta_description, slug, article_markdown, article_html, json_ld, faq, internal_links, citable_facts
toolbuild_prompt (paste into Lovable, Bolt, v0 or Cursor), target_keyword, title_tag, meta_description, slug, page_markdown, page_html, json_ld, faq
directorylisting: short_description, long_description, name_address_contact, categories, services, signup_url, steps, photos, review_request
outreachoutreach: to, subject, body, follow_up, why_fit, send = "copy_only" (MazeRank never sends it)
communitycommunity: review_request_email, review_request_sms, reply_positive, reply_negative, thread_answer, video_outline
technicaltechnical: 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: true on that fix. Otherwise you get 402 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_at says when.
  • Sites without a plan (free preview) get 403 plan_required for solutions.
Spark: spend the free solution on one fix
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.

1 · What is there to do?
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 …
2 · Take the next content fix and claim it
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_progress
3 · No solution yet? Write one (uses 1 of the monthly budget), then wait
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"}'
# → 202 { "status": "generating", "retry_after_seconds": 20, "budget": { "budget_remaining": 16 } }
4 · Get the brief with the content and hand it to the coding agent
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.
5 · Verify, then mark done
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/after

Then 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.

Endpoint
https://mcp.mazerank.com
Call a tool
curl 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"}}}'
Response
{
  "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.

ToolScopeArguments
list_sitessites—
get_mention_ratesratessite_id, weeks?
get_enginesenginessite_id
get_competitorscompetitorssite_id, limit?
get_answersanswerssite_id, limit?, engine?
get_alertsalertssite_id
get_reportsreportssite_id
list_fix_categoriesfixessite_id
list_fixesfixessite_id, category?, status?, type?, impact?, limit?, cursor?
get_fixfixessite_id, fix_id, include?
get_next_fixfixessite_id, category?, include?
get_fix_solutionfixes (+fixes_write to generate)site_id, fix_id, generate?, mode?, use_free?, regenerate?
mark_fix_in_progressfixes_writesite_id, fix_id
mark_fix_donefixes_writesite_id, fix_id, published_url?
dismiss_fixfixes_writesite_id, fix_id, reason?
reopen_fixfixes_writesite_id, fix_id
apply_fixfixes_writesite_id, fix_id, format?
get_fix_prooffixessite_id, fix_id
get_planplansite_id
get_winsplansite_id, month?
get_accuracyaccuracysite_id
list_wrong_answersaccuracysite_id, verdict?, limit?
get_factsfactssite_id
update_factfacts_writesite_id, field, value, key?
Write a fix's solution from an agent
{"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.
Get a prompt
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
// ~/.cursor/mcp.json
{
  "mcpServers": {
    "mazerank": {
      "url": "https://mcp.mazerank.com",
      "headers": { "Authorization": "Bearer lr_YOUR_KEY" }
    }
  }
}
Claude Code
claude mcp add --transport http mazerank \
  https://mcp.mazerank.com \
  --header "Authorization: Bearer lr_YOUR_KEY"
Claude Desktop (via mcp-remote)
// 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
// 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?",
});