{"uid":"cap_hoe9tXlggbIEpvQnjNr3o","slug":"extract-page-headings-as-markdown-0ffa0a21","name":"Extract Page Headings as Markdown","description":"Extract the page's headings as markdown: fetches the URL, pulls every headings element and returns them as a Markdown list, with a count. Structured, one-element-type extraction for agents and pipelines; no browser needed. $0.01 per page.","url":"https://page.intel.rallylive.ca/page/headings/markdown?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"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","properties":{}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_u7SStDL8MDY-dydLTQZf6","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches a URL and extracts all heading elements (h1–h6) from the page, returning them as a structured Markdown list with a count.","exampleAgentPrompt":"Can you fetch the headings from https://example.com/blog/article and return them as a markdown list so I can see the article's structure at a glance?","exampleUseCases":[{"title":"Audit blog post structure","prompt":"Pull all the headings from https://myblog.com/seo-guide and show them as a markdown list so I can check whether the article has a clear H1, H2, and H3 structure."},{"title":"Build table of contents for docs","prompt":"I need a quick markdown outline of all the headings on https://docs.myproject.io/getting-started — can you extract them for me so I can build a table of contents?"},{"title":"Compare heading structure across pages","prompt":"Grab the headings as markdown from https://competitor.com/features and https://mysite.com/features so I can compare how each page is structured."}],"resultDescription":"Returns a Markdown-formatted list of all heading elements (h1–h6) found on the page, along with a total count of headings. The output is structured and machine-readable, suitable for downstream pipeline processing.","failureModes":["URL is unreachable or returns a non-200 status — endpoint returns an error with no headings","Page has no heading elements — returns an empty list with a count of zero","URL points to a non-HTML resource (PDF, image) — may return empty or error","Paywalled or JavaScript-rendered content may yield incomplete heading extraction since no browser is used","Invalid or malformed URL input results in a request error"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, structured extraction of only heading elements from a webpage without spinning up a full browser. It is ideal for AI pipelines that need document structure metadata, SEO audits, table-of-contents generation, or outline comparisons. Prefer it over full-page scrapers when you only care about headings and want a low-cost ($0.01/call), fast, no-browser solution that returns clean Markdown.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T18:57:02.433Z","isFirstParty":false,"canonicalSlug":"extract-page-headings-as-markdown-0ffa0a21"}