[{"data":1,"prerenderedAt":208},["ShallowReactive",2],{"docs-\u002F":3},{"id":4,"title":5,"body":6,"breadcrumb":153,"coderail":158,"dateModified":194,"datePublished":194,"description":195,"extension":196,"meta":197,"navigation":198,"next":199,"path":202,"prev":194,"schemaType":203,"seo":204,"stem":205,"wide":206,"__hash__":207},"docs\u002Findex.md","The TagManifest API",{"type":7,"value":8,"toc":146},"minimark",[9,13,58,63,71,93,97,117,121,127],[10,11,12],"p",{},"TagManifest audits Google Tag Manager containers against 92 rules in ten categories: consent, GA4, ads, ecommerce, security, PII, performance, quality, organization and dead code. The API is synchronous — a scan returns findings and a health score in a single response.",[14,15,16,26,35,49],"hero-grid",{},[17,18,23],"hero-card",{"arrow":19,"href":20,"tag":21,"title":22},"Connect →","\u002Fmcp\u002Fconnect\u002F","Headline · MCP server","Run TagManifest inside Claude.",[10,24,25],{},"Connect Claude.ai, Claude Code, or another MCP client and ask \"audit example.com\". The client calls TagManifest and gets the findings back.",[17,27,32],{"arrow":28,"href":29,"tag":30,"title":31},"Try it →","\u002Fapi\u002Fscan-url\u002F","REST · POST \u002Fv1\u002Fscan-url","Audit any public site.",[10,33,34],{},"Send a URL and get back the container summary, the findings, and the health score in one response.",[17,36,41],{"arrow":37,"href":38,"tag":39,"title":40},"Browse →","\u002Frules\u002F","Catalog · 92 rules","Browse the ruleset.",[10,42,43,44,48],{},"Each rule has a severity, tier, category and recommendation, and regulatory citations where they apply. Run any rule individually with ",[45,46,47],"code",{},"evaluate_rule",".",[17,50,55],{"arrow":51,"href":52,"tag":53,"title":54},"Read →","\u002Fhealth-score\u002F","Concept · Health score","A 0–100 grade for your container.",[10,56,57],{},"Tiered deductions, diminishing returns, hygiene rules excluded. The same number that powers the dashboard.",[59,60,62],"h2",{"id":61},"how","How it works",[10,64,65,66,70],{},"Every TagManifest entrypoint — REST or MCP — runs the same evaluation engine on the same rule set. Calls are ",[67,68,69],"strong",{},"synchronous",": there's no scan ID, no polling, no webhooks. You get the manifest back in the response.",[72,73,74,81,87],"ol",{},[75,76,77,80],"li",{},[67,78,79],{},"Fetch."," We pull the page, find the GTM container, and parse it. Public pages and uploaded JSON exports are first-class.",[75,82,83,86],{},[67,84,85],{},"Evaluate."," All applicable rules run against the container. Most are pure functions over the parsed structure — no headless browser required.",[75,88,89,92],{},[67,90,91],{},"Score."," Findings are tier-weighted into a 0–100 health score with a letter grade and per-category breakdown.",[59,94,96],{"id":95},"paths","Two ways to call it",[10,98,99,100,103,104,107,108,112,113,116],{},"The ",[67,101,102],{},"MCP server"," is the headline product. Point Claude or another MCP client at ",[45,105,106],{},"https:\u002F\u002Fdeveloper.tagmanifest.com\u002Fmcp"," and the eight tools appear inside the chat. See ",[109,110,111],"a",{"href":20},"Connect to Claude"," for the steps. The ",[67,114,115],{},"REST API"," is for everything else — CI checks, dashboards, cron jobs, your own SDK.",[59,118,120],{"id":119},"base","Base URL",[122,123],"endpoint-bar",{"base-color":124,"method":125,"path":126},"ink","BASE","https:\u002F\u002Fdeveloper.tagmanifest.com\u002Fv1",[10,128,129,130,133,134,137,138,141,142,48],{},"REST endpoints live under the ",[45,131,132],{},"\u002Fv1"," prefix (e.g. ",[45,135,136],{},"POST \u002Fv1\u002Fscan-url","). The MCP server is at ",[45,139,140],{},"\u002Fmcp",". Changes are listed in the ",[109,143,145],{"href":144},"\u002Fchangelog\u002F","changelog",{"title":147,"searchDepth":148,"depth":148,"links":149},"",2,[150,151,152],{"id":61,"depth":148,"text":62},{"id":95,"depth":148,"text":96},{"id":119,"depth":148,"text":120},[154,156],{"label":155},"API Reference",{"label":157},"Introduction",{"cards":159,"onpage":190},[160,179],{"title":161,"tabs":162},"Request",[163,167,171,175],{"label":164,"language":165,"code":166},"cURL","bash","# Audit a public URL — synchronous\ncurl https:\u002F\u002Fdeveloper.tagmanifest.com\u002Fv1\u002Fscan-url \\\n  -H \"Authorization: Bearer $TM_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"url\": \"https:\u002F\u002Fexample.com\",\n    \"top_n\": 25,\n    \"category\": \"consent\"\n  }'\n",{"label":168,"language":169,"code":170},"Node","javascript","const res = await fetch(\"https:\u002F\u002Fdeveloper.tagmanifest.com\u002Fv1\u002Fscan-url\", {\n  method: \"POST\",\n  headers: {\n    \"Authorization\": `Bearer ${process.env.TM_API_KEY}`,\n    \"Content-Type\": \"application\u002Fjson\",\n  },\n  body: JSON.stringify({\n    url: \"https:\u002F\u002Fexample.com\",\n    top_n: 25,\n    category: \"consent\",\n  }),\n});\n\nconst result = await res.json();\nconsole.log(result.health_score.score); \u002F\u002F 49\n",{"label":172,"language":173,"code":174},"Python","python","import os\nimport requests\n\nres = requests.post(\n    \"https:\u002F\u002Fdeveloper.tagmanifest.com\u002Fv1\u002Fscan-url\",\n    headers={\"Authorization\": f\"Bearer {os.environ['TM_API_KEY']}\"},\n    json={\n        \"url\": \"https:\u002F\u002Fexample.com\",\n        \"top_n\": 25,\n        \"category\": \"consent\",\n    },\n)\n\nprint(res.json()[\"health_score\"][\"score\"])  # 49\n",{"label":176,"language":177,"code":178},"MCP","text","# Inside Claude — natural language\nUser: Audit https:\u002F\u002Fexample.com — focus on consent.\n\nClaude: I'll run scan_url on that URL.\n\n# Tool call (auto)\n{\n  \"tool\": \"scan_url\",\n  \"arguments\": {\n    \"url\": \"https:\u002F\u002Fexample.com\",\n    \"category\": \"consent\",\n    \"top_n\": 25\n  }\n}\n",{"title":180,"variant":181,"tabs":182},"200 — scan","response",[183,187],{"label":184,"language":185,"code":186},"full","json","{\n  \"scanned_at\": \"2026-11-30T13:25:53.659Z\",\n  \"duration_ms\": 412,\n  \"site\": {\n    \"url\": \"https:\u002F\u002Fexample.com\",\n    \"gtm_id\": \"GTM-EXAMPLE\",\n    \"from_cache\": false\n  },\n  \"container\": {\n    \"tag_count\": 4,\n    \"trigger_count\": 1,\n    \"variable_count\": 0,\n    \"gtm_id\": \"GTM-EXAMPLE\",\n    \"name\": \"Example container\"\n  },\n  \"findings\": [ \u002F* 2 consent findings; see the \"finding\" tab *\u002F ],\n  \"findings_total\": 2,\n  \"findings_truncated\": false,\n  \"by_category\": { \"ga4\": 4, \"security\": 2, \"ads\": 2, \"consent\": 2 },\n  \"by_tier\": { \"error\": 4, \"warning\": 2, \"optimization\": 3, \"info\": 1 },\n  \"health_score\": {\n    \"score\": 49,\n    \"grade\": \"D\",\n    \"label\": \"Patterns Found\",\n    \"deductions\": {\n      \"error\": 32,\n      \"warning\": 8,\n      \"optimization\": 11,\n      \"info\": 0,\n      \"byCategory\": { \"ga4\": 3, \"security\": 2, \"ads\": 2, \"consent\": 2 }\n    },\n    \"caps\": { \"error\": 35, \"warning\": 20, \"optimization\": 25, \"info\": 0 },\n    \"functionalIssueCount\": 9\n  }\n}\n",{"label":188,"language":185,"code":189},"finding","{\n  \"rule_id\": \"consent-no-cmp\",\n  \"title\": \"Ad\u002Ftracking tags present with no consent configuration and no CMP\",\n  \"severity\": \"high\",\n  \"tier\": \"warning\",\n  \"category\": \"consent\",\n  \"finding_count\": 1,\n  \"affected_items\": [\n    {\n      \"id\": \"3\",\n      \"name\": \"Google Ads - Lead conversion\",\n      \"type\": \"awct\"\n    }\n  ],\n  \"affected_items_total\": 1,\n  \"action\": \"Deploy a CMP and configure consent\",\n  \"recommendation\": \"If consent is managed outside GTM, verify that these tags are covered by your page-level CMP…\"\n}\n",[191,192,193],{"id":61,"label":62},{"id":95,"label":96},{"id":119,"label":120},null,"Audit Google Tag Manager containers against 92 rules. Synchronous REST API and MCP server for Claude and other MCP clients.","md",{},true,{"href":200,"title":201},"\u002Fauth\u002F","Authentication","\u002F","SoftwareApplication",{"title":5,"description":195},"index",false,"IWjpNtWvTfiAOBTQD44KRCbP0nI0oGrzIam2Rcsi3-c",1796069482064]