{"uid":"cap_wXkuhTfpSg8PiP9qJlWeM","slug":"web-page-headings-extractor-1456df1f","name":"Web Page Headings Extractor","description":"The document outline of a page: every heading with its level and anchor, in order. Body: {url}.","url":"https://api.x-402.online/v1/web/headings?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"properties":{}},"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_BKqyw_m6tUwqjXjlhBmX4","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Extracts all headings from a web page, returning each heading's text, level (H1-H6), and anchor in document order","exampleAgentPrompt":"Can you pull out all the headings and their anchor links from https://docs.example.com/getting-started so I can see the full document outline?","exampleUseCases":[{"title":"Documentation page navigation map","prompt":"Give me the full outline of https://docs.stripe.com/api — every heading with its level and anchor — so I can see what sections are covered."},{"title":"Article structure analysis","prompt":"What are all the headings and their levels on this blog post? Here's the URL: https://www.smashingmagazine.com/2024/01/guide-to-css-grid/"},{"title":"SEO heading audit","prompt":"Pull all the H1, H2, and H3 headings from https://www.mycompany.com/about so I can check if the page structure makes sense for SEO."}],"resultDescription":"An ordered list of all headings found on the page, each with its heading level (e.g. H1, H2, H3), the visible heading text, and the anchor fragment (if present), matching the document's top-to-bottom order.","failureModes":["URL is unreachable or returns a non-200 status — no headings returned","Page is JavaScript-rendered and headings are not in static HTML — partial or empty result","URL is malformed or missing — input validation error","Page has no headings at all — empty list returned","Rate limiting or payment failure — 402 or 429 response"],"whenToPreferThis":"Use this endpoint when you need a lightweight, structured outline of a page's heading hierarchy without fetching full page content. Prefer it over full-page scraping when you only need section titles and anchors — for table-of-contents generation, SEO audits, document navigation, or quickly understanding a page's structure.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-03T00:43:17.431Z","isFirstParty":false,"canonicalSlug":"web-page-headings-extractor-1456df1f"}