{"uid":"cap_nDQya_cp9e94D5wN2xPgl","slug":"extract-h2-headings-as-markdown-9fad88d5","name":"Extract H2 Headings as Markdown","description":"Extract the page's h2 as markdown: fetches the URL, pulls every h2 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/h2/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_0MBXVgnqx4kpgZ6yv90oK","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 web page URL and returns all H2 elements as a Markdown list with a count, requiring no browser.","exampleAgentPrompt":"Can you grab all the H2 headings from https://example.com/blog/intro-to-ai and return them as a Markdown list so I can see the article's structure?","exampleUseCases":[{"title":"Outline extraction for content audit","prompt":"Fetch all the H2 headings from https://docs.acme.com/getting-started and give me the full Markdown list so I can review the documentation structure."},{"title":"SEO heading analysis","prompt":"What H2 headings does https://competitor.com/product use? Get them as a Markdown list so I can compare their page structure to ours."},{"title":"Table of contents generation","prompt":"Pull every H2 from https://myblog.com/2024/annual-report and format them as a Markdown list — I want to build a quick table of contents from them."}],"resultDescription":"A Markdown-formatted list of every H2 element found on the fetched page, along with a count of how many H2 headings were extracted.","failureModes":["URL is unreachable or returns a non-200 status — empty result or error response","Page has no H2 elements — returns empty list with count of 0","URL is behind authentication or bot protection — fetch fails","Malformed or missing URL parameter — request validation error","Network timeout fetching the remote page — timeout error"],"whenToPreferThis":"Choose this endpoint when you need a quick, structured extraction of only H2 headings from a web page as Markdown, especially in agent pipelines or automated workflows where browser rendering is unavailable. Prefer it over general scraping tools when you specifically need H2-level structure (not H1, H3, or full content) at low cost ($0.01/page) with no setup required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T18:47:19.449Z","isFirstParty":false,"canonicalSlug":"extract-h2-headings-as-markdown-9fad88d5"}