[{"data":1,"prerenderedAt":888},["ShallowReactive",2],{"docs-\u002Fsdks\u002Fpython\u002F":3},{"id":4,"title":5,"body":6,"breadcrumb":852,"coderail":859,"dateModified":878,"datePublished":878,"description":879,"extension":880,"meta":881,"navigation":104,"next":878,"path":882,"prev":878,"schemaType":883,"seo":884,"stem":885,"wide":886,"__hash__":887},"docs\u002Fsdks\u002Fpython.md","Python",{"type":7,"value":8,"toc":845},"minimark",[9,18,33,38,41,45,76,350,364,386,390,406,461,464,491,494,570,588,591,595,608,661,664,723,731,735,749,833,841],[10,11,12,13,17],"p",{},"There is no officially published PyPI package for TagManifest today. This page documents two approaches that work against the live API: a minimal ",[14,15,16],"code",{},"requests","-based wrapper suitable for most use cases, and a generated Python client from the OpenAPI spec for teams that want full model coverage.",[19,20,22],"callout",{"variant":21},"warn",[10,23,24,28,29,32],{},[25,26,27],"strong",{},"Beta — generated client not officially published yet."," The OpenAPI spec at ",[14,30,31],{},"\u002Fopenapi.json"," is stable, but the generated PyPI package is not in the registry. Use the manual wrapper for production, or generate a local client from the spec.",[34,35,37],"h2",{"id":36},"status","Status",[10,39,40],{},"The TagManifest REST API is stable and versioned at the path level. All six endpoints work with any HTTP client library. An officially maintained PyPI package is planned; until then, the approaches below cover the full API surface.",[34,42,44],{"id":43},"manual-requests-wrapper","Manual requests wrapper",[10,46,47,48,50,51,54,55,54,58,54,61,64,65,68,69,71,72,75],{},"The wrapper below uses the ",[14,49,16],{}," library and covers the scan and rule endpoints: ",[14,52,53],{},"scan_url",", ",[14,56,57],{},"scan_container",[14,59,60],{},"evaluate_rule",[14,62,63],{},"list_rules"," and ",[14,66,67],{},"get_rule",". Install ",[14,70,16],{}," with ",[14,73,74],{},"pip install requests"," if it is not already in your environment.",[77,78,83],"pre",{"className":79,"code":80,"language":81,"meta":82,"style":82},"language-python shiki shiki-themes github-light github-dark","import os\nimport requests\n\nBASE = \"https:\u002F\u002Fdeveloper.tagmanifest.com\u002Fv1\"\n\ndef _headers():\n    return {\"Authorization\": f\"Bearer {os.environ['TM_API_KEY']}\"}\n\ndef _post(path, payload):\n    resp = requests.post(\n        f\"{BASE}{path}\",\n        json={k: v for k, v in payload.items() if v is not None},\n        headers=_headers(),\n        timeout=30,\n    )\n    resp.raise_for_status()\n    return resp.json()\n\ndef _get(path, params=None):\n    resp = requests.get(\n        f\"{BASE}{path}\",\n        params={k: v for k, v in (params or {}).items() if v is not None},\n        headers=_headers(),\n        timeout=30,\n    )\n    resp.raise_for_status()\n    return resp.json()\n\ndef scan_url(url=None, gtm_id=None, category=None, tier=None, top_n=None, include_evidence=False):\n    return _post(\"\u002Fscan-url\", locals())\n\ndef scan_container(data, category=None, tier=None, top_n=None, include_evidence=False):\n    return _post(\"\u002Fscan\", {\"data\": data, \"category\": category,\n                          \"tier\": tier, \"top_n\": top_n,\n                          \"include_evidence\": include_evidence})\n\ndef evaluate_rule(rule_id, url=None, gtm_id=None, data=None):\n    return _post(\"\u002Fevaluate-rule\", {\"rule_id\": rule_id, \"url\": url,\n                                   \"gtm_id\": gtm_id, \"data\": data})\n\ndef list_rules(category=None, tier=None, status=None, limit=None):\n    return _get(\"\u002Frules\", {\"category\": category, \"tier\": tier,\n                           \"status\": status, \"limit\": limit})\n\ndef get_rule(rule_id):\n    return _get(\"\u002Frules-detail\", {\"rule_id\": rule_id})\n","python","",[14,84,85,93,99,106,112,117,123,129,134,140,146,152,158,164,170,176,182,188,193,199,205,210,216,221,226,231,236,241,246,252,258,263,269,275,281,287,292,298,304,310,315,321,327,333,338,344],{"__ignoreMap":82},[86,87,90],"span",{"class":88,"line":89},"line",1,[86,91,92],{},"import os\n",[86,94,96],{"class":88,"line":95},2,[86,97,98],{},"import requests\n",[86,100,102],{"class":88,"line":101},3,[86,103,105],{"emptyLinePlaceholder":104},true,"\n",[86,107,109],{"class":88,"line":108},4,[86,110,111],{},"BASE = \"https:\u002F\u002Fdeveloper.tagmanifest.com\u002Fv1\"\n",[86,113,115],{"class":88,"line":114},5,[86,116,105],{"emptyLinePlaceholder":104},[86,118,120],{"class":88,"line":119},6,[86,121,122],{},"def _headers():\n",[86,124,126],{"class":88,"line":125},7,[86,127,128],{},"    return {\"Authorization\": f\"Bearer {os.environ['TM_API_KEY']}\"}\n",[86,130,132],{"class":88,"line":131},8,[86,133,105],{"emptyLinePlaceholder":104},[86,135,137],{"class":88,"line":136},9,[86,138,139],{},"def _post(path, payload):\n",[86,141,143],{"class":88,"line":142},10,[86,144,145],{},"    resp = requests.post(\n",[86,147,149],{"class":88,"line":148},11,[86,150,151],{},"        f\"{BASE}{path}\",\n",[86,153,155],{"class":88,"line":154},12,[86,156,157],{},"        json={k: v for k, v in payload.items() if v is not None},\n",[86,159,161],{"class":88,"line":160},13,[86,162,163],{},"        headers=_headers(),\n",[86,165,167],{"class":88,"line":166},14,[86,168,169],{},"        timeout=30,\n",[86,171,173],{"class":88,"line":172},15,[86,174,175],{},"    )\n",[86,177,179],{"class":88,"line":178},16,[86,180,181],{},"    resp.raise_for_status()\n",[86,183,185],{"class":88,"line":184},17,[86,186,187],{},"    return resp.json()\n",[86,189,191],{"class":88,"line":190},18,[86,192,105],{"emptyLinePlaceholder":104},[86,194,196],{"class":88,"line":195},19,[86,197,198],{},"def _get(path, params=None):\n",[86,200,202],{"class":88,"line":201},20,[86,203,204],{},"    resp = requests.get(\n",[86,206,208],{"class":88,"line":207},21,[86,209,151],{},[86,211,213],{"class":88,"line":212},22,[86,214,215],{},"        params={k: v for k, v in (params or {}).items() if v is not None},\n",[86,217,219],{"class":88,"line":218},23,[86,220,163],{},[86,222,224],{"class":88,"line":223},24,[86,225,169],{},[86,227,229],{"class":88,"line":228},25,[86,230,175],{},[86,232,234],{"class":88,"line":233},26,[86,235,181],{},[86,237,239],{"class":88,"line":238},27,[86,240,187],{},[86,242,244],{"class":88,"line":243},28,[86,245,105],{"emptyLinePlaceholder":104},[86,247,249],{"class":88,"line":248},29,[86,250,251],{},"def scan_url(url=None, gtm_id=None, category=None, tier=None, top_n=None, include_evidence=False):\n",[86,253,255],{"class":88,"line":254},30,[86,256,257],{},"    return _post(\"\u002Fscan-url\", locals())\n",[86,259,261],{"class":88,"line":260},31,[86,262,105],{"emptyLinePlaceholder":104},[86,264,266],{"class":88,"line":265},32,[86,267,268],{},"def scan_container(data, category=None, tier=None, top_n=None, include_evidence=False):\n",[86,270,272],{"class":88,"line":271},33,[86,273,274],{},"    return _post(\"\u002Fscan\", {\"data\": data, \"category\": category,\n",[86,276,278],{"class":88,"line":277},34,[86,279,280],{},"                          \"tier\": tier, \"top_n\": top_n,\n",[86,282,284],{"class":88,"line":283},35,[86,285,286],{},"                          \"include_evidence\": include_evidence})\n",[86,288,290],{"class":88,"line":289},36,[86,291,105],{"emptyLinePlaceholder":104},[86,293,295],{"class":88,"line":294},37,[86,296,297],{},"def evaluate_rule(rule_id, url=None, gtm_id=None, data=None):\n",[86,299,301],{"class":88,"line":300},38,[86,302,303],{},"    return _post(\"\u002Fevaluate-rule\", {\"rule_id\": rule_id, \"url\": url,\n",[86,305,307],{"class":88,"line":306},39,[86,308,309],{},"                                   \"gtm_id\": gtm_id, \"data\": data})\n",[86,311,313],{"class":88,"line":312},40,[86,314,105],{"emptyLinePlaceholder":104},[86,316,318],{"class":88,"line":317},41,[86,319,320],{},"def list_rules(category=None, tier=None, status=None, limit=None):\n",[86,322,324],{"class":88,"line":323},42,[86,325,326],{},"    return _get(\"\u002Frules\", {\"category\": category, \"tier\": tier,\n",[86,328,330],{"class":88,"line":329},43,[86,331,332],{},"                           \"status\": status, \"limit\": limit})\n",[86,334,336],{"class":88,"line":335},44,[86,337,105],{"emptyLinePlaceholder":104},[86,339,341],{"class":88,"line":340},45,[86,342,343],{},"def get_rule(rule_id):\n",[86,345,347],{"class":88,"line":346},46,[86,348,349],{},"    return _get(\"\u002Frules-detail\", {\"rule_id\": rule_id})\n",[10,351,352,353,64,356,359,360,363],{},"The ",[14,354,355],{},"_post",[14,357,358],{},"_get"," helpers strip ",[14,361,362],{},"None"," values from payloads so optional parameters do not appear as explicit nulls in request bodies.",[10,365,366,369,370,54,373,54,376,64,378,381,382,385],{},[14,367,368],{},"GET \u002Frules"," accepts four query parameters: ",[14,371,372],{},"category",[14,374,375],{},"tier",[14,377,36],{},[14,379,380],{},"limit",". Any other parameter, such as ",[14,383,384],{},"layer",", is refused with a 400. The same is true of unknown fields in the POST bodies. Paths are written without a trailing slash, as on the endpoint pages.",[34,387,389],{"id":388},"generated-client","Generated client",[10,391,352,392,397,398,401,402,405],{},[393,394,396],"a",{"href":395},"\u002Fopenapi\u002F","OpenAPI spec"," is available at ",[14,399,400],{},"https:\u002F\u002Fdeveloper.tagmanifest.com\u002Fopenapi.json",". Use ",[14,403,404],{},"openapi-generator-cli"," to produce a Python client with typed models:",[77,407,411],{"className":408,"code":409,"language":410,"meta":82,"style":82},"language-bash shiki shiki-themes github-light github-dark","openapi-generator-cli generate \\\n  -i https:\u002F\u002Fdeveloper.tagmanifest.com\u002Fopenapi.json \\\n  -g python \\\n  -o .\u002Ftagmanifest-client-py \\\n  --additional-properties=packageName=tagmanifest_client\n","bash",[14,412,413,426,436,446,456],{"__ignoreMap":82},[86,414,415,418,422],{"class":88,"line":89},[86,416,404],{"class":417},"sScJk",[86,419,421],{"class":420},"sZZnC"," generate",[86,423,425],{"class":424},"sj4cs"," \\\n",[86,427,428,431,434],{"class":88,"line":95},[86,429,430],{"class":424},"  -i",[86,432,433],{"class":420}," https:\u002F\u002Fdeveloper.tagmanifest.com\u002Fopenapi.json",[86,435,425],{"class":424},[86,437,438,441,444],{"class":88,"line":101},[86,439,440],{"class":424},"  -g",[86,442,443],{"class":420}," python",[86,445,425],{"class":424},[86,447,448,451,454],{"class":88,"line":108},[86,449,450],{"class":424},"  -o",[86,452,453],{"class":420}," .\u002Ftagmanifest-client-py",[86,455,425],{"class":424},[86,457,458],{"class":88,"line":114},[86,459,460],{"class":424},"  --additional-properties=packageName=tagmanifest_client\n",[10,462,463],{},"Install the generated package into your environment:",[77,465,467],{"className":408,"code":466,"language":410,"meta":82,"style":82},"cd tagmanifest-client-py\npip install -e .\n",[14,468,469,477],{"__ignoreMap":82},[86,470,471,474],{"class":88,"line":89},[86,472,473],{"class":424},"cd",[86,475,476],{"class":420}," tagmanifest-client-py\n",[86,478,479,482,485,488],{"class":88,"line":95},[86,480,481],{"class":417},"pip",[86,483,484],{"class":420}," install",[86,486,487],{"class":424}," -e",[86,489,490],{"class":420}," .\n",[10,492,493],{},"Then import and configure:",[77,495,497],{"className":79,"code":496,"language":81,"meta":82,"style":82},"import os\n\nimport tagmanifest_client\nfrom tagmanifest_client.api.default_api import DefaultApi\nfrom tagmanifest_client.configuration import Configuration\n\nconfiguration = Configuration(\n    host=\"https:\u002F\u002Fdeveloper.tagmanifest.com\u002Fv1\",\n    access_token=os.environ[\"TM_API_KEY\"],\n)\n\nwith tagmanifest_client.ApiClient(configuration) as client:\n    api = DefaultApi(client)\n    result = api.scan_url({\"url\": \"https:\u002F\u002Fexample.com\", \"top_n\": 25})\n    print(result.health_score.score)\n",[14,498,499,503,507,512,517,522,526,531,536,541,546,550,555,560,565],{"__ignoreMap":82},[86,500,501],{"class":88,"line":89},[86,502,92],{},[86,504,505],{"class":88,"line":95},[86,506,105],{"emptyLinePlaceholder":104},[86,508,509],{"class":88,"line":101},[86,510,511],{},"import tagmanifest_client\n",[86,513,514],{"class":88,"line":108},[86,515,516],{},"from tagmanifest_client.api.default_api import DefaultApi\n",[86,518,519],{"class":88,"line":114},[86,520,521],{},"from tagmanifest_client.configuration import Configuration\n",[86,523,524],{"class":88,"line":119},[86,525,105],{"emptyLinePlaceholder":104},[86,527,528],{"class":88,"line":125},[86,529,530],{},"configuration = Configuration(\n",[86,532,533],{"class":88,"line":131},[86,534,535],{},"    host=\"https:\u002F\u002Fdeveloper.tagmanifest.com\u002Fv1\",\n",[86,537,538],{"class":88,"line":136},[86,539,540],{},"    access_token=os.environ[\"TM_API_KEY\"],\n",[86,542,543],{"class":88,"line":142},[86,544,545],{},")\n",[86,547,548],{"class":88,"line":148},[86,549,105],{"emptyLinePlaceholder":104},[86,551,552],{"class":88,"line":154},[86,553,554],{},"with tagmanifest_client.ApiClient(configuration) as client:\n",[86,556,557],{"class":88,"line":160},[86,558,559],{},"    api = DefaultApi(client)\n",[86,561,562],{"class":88,"line":166},[86,563,564],{},"    result = api.scan_url({\"url\": \"https:\u002F\u002Fexample.com\", \"top_n\": 25})\n",[86,566,567],{"class":88,"line":172},[86,568,569],{},"    print(result.health_score.score)\n",[10,571,572,573,576,577,54,579,54,581,54,583,54,585,587],{},"Method names come from the ",[14,574,575],{},"operationId"," values in the spec: ",[14,578,53],{},[14,580,57],{},[14,582,60],{},[14,584,63],{},[14,586,67],{},". The exact class, method and parameter names depend on the generator version. Check the README the generator writes into the output folder.",[10,589,590],{},"Regenerate the client whenever you pull a new version of the spec. The spec is hand-authored from the live function source and updated when endpoints change.",[34,592,594],{"id":593},"error-handling","Error handling",[10,596,352,597,599,600,603,604,607],{},[14,598,16],{}," library raises ",[14,601,602],{},"requests.exceptions.HTTPError"," when ",[14,605,606],{},"raise_for_status()"," encounters a non-2xx response. Read the response body to get the TagManifest error message:",[77,609,611],{"className":79,"code":610,"language":81,"meta":82,"style":82},"import requests\n\ntry:\n    result = scan_url(url=\"https:\u002F\u002Fexample.com\")\nexcept requests.exceptions.HTTPError as e:\n    body = e.response.json()\n    print(f\"API error {e.response.status_code}: {body.get('error')}\")\n    if e.response.status_code == 429:\n        reset_at = body.get(\"reset_at\")\n        print(f\"Rate limit resets at {reset_at}\")\n",[14,612,613,617,621,626,631,636,641,646,651,656],{"__ignoreMap":82},[86,614,615],{"class":88,"line":89},[86,616,98],{},[86,618,619],{"class":88,"line":95},[86,620,105],{"emptyLinePlaceholder":104},[86,622,623],{"class":88,"line":101},[86,624,625],{},"try:\n",[86,627,628],{"class":88,"line":108},[86,629,630],{},"    result = scan_url(url=\"https:\u002F\u002Fexample.com\")\n",[86,632,633],{"class":88,"line":114},[86,634,635],{},"except requests.exceptions.HTTPError as e:\n",[86,637,638],{"class":88,"line":119},[86,639,640],{},"    body = e.response.json()\n",[86,642,643],{"class":88,"line":125},[86,644,645],{},"    print(f\"API error {e.response.status_code}: {body.get('error')}\")\n",[86,647,648],{"class":88,"line":131},[86,649,650],{},"    if e.response.status_code == 429:\n",[86,652,653],{"class":88,"line":136},[86,654,655],{},"        reset_at = body.get(\"reset_at\")\n",[86,657,658],{"class":88,"line":142},[86,659,660],{},"        print(f\"Rate limit resets at {reset_at}\")\n",[10,662,663],{},"The errors you are most likely to encounter:",[665,666,667,679],"table",{},[668,669,670],"thead",{},[671,672,673,676],"tr",{},[674,675,37],"th",{},[674,677,678],{},"Cause",[680,681,682,691,703,715],"tbody",{},[671,683,684,688],{},[685,686,687],"td",{},"400",[685,689,690],{},"Missing, malformed or unknown request field — check parameter names and types. A misspelt field is refused, not ignored.",[671,692,693,696],{},[685,694,695],{},"401",[685,697,698,699,702],{},"Invalid or missing API key — check ",[14,700,701],{},"TM_API_KEY",".",[671,704,705,708],{},[685,706,707],{},"429",[685,709,710,711,714],{},"Daily rate limit exceeded — read ",[14,712,713],{},"reset_at"," from the body and back off.",[671,716,717,720],{},[685,718,719],{},"502",[685,721,722],{},"The target URL or GTM CDN was unreachable — retry with backoff.",[10,724,725,726,730],{},"See ",[393,727,729],{"href":728},"\u002Ferrors\u002F","Errors"," for the full list.",[34,732,734],{"id":733},"rate-limit-headers","Rate-limit headers",[10,736,737,738,54,741,744,745,748],{},"Responses to requests that were counted include ",[14,739,740],{},"X-RateLimit-Limit",[14,742,743],{},"X-RateLimit-Remaining",", and ",[14,746,747],{},"X-RateLimit-Reset",". That covers 200 responses, the 429, and errors such as 400, 404 and 502. The headers are absent on 401, 403, 405 and 503 responses, so check that they exist before reading them:",[77,750,752],{"className":79,"code":751,"language":81,"meta":82,"style":82},"import requests\n\nresp = requests.post(\n    f\"{BASE}\u002Fscan-url\",\n    json={\"url\": \"https:\u002F\u002Fexample.com\"},\n    headers=_headers(),\n    timeout=30,\n)\n\nremaining = resp.headers.get(\"X-RateLimit-Remaining\")\nreset_at = resp.headers.get(\"X-RateLimit-Reset\")\n\nif remaining is not None and int(remaining) \u003C 5:\n    print(f\"Approaching scan_url limit. Resets at {reset_at}\")\n\nresp.raise_for_status()\nresult = resp.json()\n",[14,753,754,758,762,767,772,777,782,787,791,795,800,805,809,814,819,823,828],{"__ignoreMap":82},[86,755,756],{"class":88,"line":89},[86,757,98],{},[86,759,760],{"class":88,"line":95},[86,761,105],{"emptyLinePlaceholder":104},[86,763,764],{"class":88,"line":101},[86,765,766],{},"resp = requests.post(\n",[86,768,769],{"class":88,"line":108},[86,770,771],{},"    f\"{BASE}\u002Fscan-url\",\n",[86,773,774],{"class":88,"line":114},[86,775,776],{},"    json={\"url\": \"https:\u002F\u002Fexample.com\"},\n",[86,778,779],{"class":88,"line":119},[86,780,781],{},"    headers=_headers(),\n",[86,783,784],{"class":88,"line":125},[86,785,786],{},"    timeout=30,\n",[86,788,789],{"class":88,"line":131},[86,790,545],{},[86,792,793],{"class":88,"line":136},[86,794,105],{"emptyLinePlaceholder":104},[86,796,797],{"class":88,"line":142},[86,798,799],{},"remaining = resp.headers.get(\"X-RateLimit-Remaining\")\n",[86,801,802],{"class":88,"line":148},[86,803,804],{},"reset_at = resp.headers.get(\"X-RateLimit-Reset\")\n",[86,806,807],{"class":88,"line":154},[86,808,105],{"emptyLinePlaceholder":104},[86,810,811],{"class":88,"line":160},[86,812,813],{},"if remaining is not None and int(remaining) \u003C 5:\n",[86,815,816],{"class":88,"line":166},[86,817,818],{},"    print(f\"Approaching scan_url limit. Resets at {reset_at}\")\n",[86,820,821],{"class":88,"line":172},[86,822,105],{"emptyLinePlaceholder":104},[86,824,825],{"class":88,"line":178},[86,826,827],{},"resp.raise_for_status()\n",[86,829,830],{"class":88,"line":184},[86,831,832],{},"result = resp.json()\n",[10,834,835,836,840],{},"When the limit is reached, wait until the reset time. There are no paid plans and no way to raise a limit. See ",[393,837,839],{"href":838},"\u002Frate-limits\u002F","Rate limits"," for daily caps by tool.",[842,843,844],"style",{},"html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sScJk, html code.shiki .sScJk{--shiki-default:#6F42C1;--shiki-dark:#B392F0}html pre.shiki code .sZZnC, html code.shiki .sZZnC{--shiki-default:#032F62;--shiki-dark:#9ECBFF}html pre.shiki code .sj4cs, html code.shiki .sj4cs{--shiki-default:#005CC5;--shiki-dark:#79B8FF}",{"title":82,"searchDepth":95,"depth":95,"links":846},[847,848,849,850,851],{"id":36,"depth":95,"text":37},{"id":43,"depth":95,"text":44},{"id":388,"depth":95,"text":389},{"id":593,"depth":95,"text":594},{"id":733,"depth":95,"text":734},[853,856,858],{"label":854,"href":855},"API Reference","\u002F",{"label":857},"SDKs",{"label":5},{"cards":860,"onpage":871},[861,866],{"title":862,"tabs":863},"Manual wrapper — scan URL",[864],{"label":5,"language":81,"code":865},"import os\nimport requests\n\nBASE = \"https:\u002F\u002Fdeveloper.tagmanifest.com\u002Fv1\"\n\ndef scan_url(url=None, gtm_id=None, top_n=25, **kwargs):\n    params = {k: v for k, v in\n        dict(url=url, gtm_id=gtm_id, top_n=top_n, **kwargs).items()\n        if v is not None}\n    resp = requests.post(\n        f\"{BASE}\u002Fscan-url\",\n        json=params,\n        headers={\"Authorization\": f\"Bearer {os.environ['TM_API_KEY']}\"},\n        timeout=30,\n    )\n    resp.raise_for_status()\n    return resp.json()\n\nresult = scan_url(url=\"https:\u002F\u002Fexample.com\", top_n=25)\nprint(result[\"health_score\"][\"score\"])\n",{"title":867,"tabs":868},"Generated client install",[869],{"label":410,"language":410,"code":870},"openapi-generator-cli generate \\\n  -i https:\u002F\u002Fdeveloper.tagmanifest.com\u002Fopenapi.json \\\n  -g python \\\n  -o .\u002Ftagmanifest-client-py \\\n  --additional-properties=packageName=tagmanifest_client\n\ncd tagmanifest-client-py\npip install -e .\n",[872,873,875,876,877],{"id":36,"label":37},{"id":874,"label":44},"manual-wrapper",{"id":388,"label":389},{"id":593,"label":594},{"id":733,"label":734},null,"Python client options for the TagManifest API. Manual requests wrapper and generated client via openapi-generator-cli.","md",{},"\u002Fsdks\u002Fpython","TechArticle",{"title":5,"description":879},"sdks\u002Fpython",false,"qqmoGcGOhPy6Dd597CRn5tEKfmTFcECspgGJhU43fu8",1796069482595]