{"uid":"cap_a7L5Lkj5QH_YPcikVB7D5","slug":"kihustle-heading-hierarchy-extractor-fcb8da46","name":"KiHustle Heading Hierarchy Extractor","description":"Kostenlose Guides, Solo-Playbooks und Artikel zu KI, Automation und Side Hustles — für Menschen, die mit echten Systemen online Einkommen aufbauen wollen. Transparent finanziert über faire Affiliate-Links.","url":"https://kihustle.tech/api/v1/heading-hierarchy","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"html":{"type":"string"}}},"responseSchema":{"type":"json","example":{"result":"processed","status":"success"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_KpBdAO4L2vpOp4wimFhwh","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Extracts and returns the heading hierarchy (H1-H6 structure) from an HTML document","exampleAgentPrompt":"Can you extract the heading hierarchy from this HTML so I can see the document outline? Here's the HTML: '<html><body><h1>Main Title</h1><h2>Section One</h2><h3>Subsection</h3></body></html>'","exampleUseCases":[{"title":"Table of contents generation","prompt":"I have this HTML from a blog post and I need to automatically generate a table of contents — can you pull out all the headings and their hierarchy so I can build the TOC? Here's the HTML: '<article><h1>Guide to AI Tools</h1><h2>Getting Started</h2><h3>Prerequisites</h3><h2>Advanced Tips</h2></article>'"},{"title":"SEO heading audit","prompt":"I need to audit the heading structure of this page's HTML for SEO issues — can you extract all the headings in order so I can check if the H1/H2/H3 hierarchy is correct? The HTML is: '<body><h2>Missing H1</h2><h3>Subpoint</h3><h2>Another Section</h2></body>'"},{"title":"Content outline extraction for summarization","prompt":"Here's the raw HTML of a long article — pull out just the heading hierarchy so I can get a quick structural outline of what's covered without reading the whole thing: '<html><body><h1>2024 AI Report</h1><h2>Chapter 1</h2><h3>Findings</h3><h2>Chapter 2</h2></body></html>'"}],"resultDescription":"Returns a JSON object with a 'result' field indicating 'processed' and a 'status' of 'success', along with the extracted heading hierarchy derived from the submitted HTML. The hierarchy reflects the nested H1–H6 structure present in the document.","failureModes":["Malformed or invalid HTML may produce incomplete or empty hierarchy output","Missing 'html' field in request body returns an error","Very large HTML documents may time out or be truncated","HTML with no heading tags returns an empty hierarchy","Non-HTML content passed as the html field may yield unexpected results"],"whenToPreferThis":"Use this endpoint when you need to programmatically extract the heading outline or document structure from raw HTML — for example when building table-of-contents generators, SEO auditing tools, content summarizers, or document navigation aids. Prefer this over manual parsing when you want a ready-made structured result without writing your own HTML parser.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-16T01:05:14.694Z","isFirstParty":false}