{"uid":"cap_7pIwb4DLMiO2lgnPtnVa2","slug":"extract-headings-as-text-c5e724de","name":"extract-headings-as-text","description":"Extract the page's headings as text: fetches the URL, pulls every headings element and returns them as plain lines, 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/text?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_ewbZQuiezrz5IjasBcpqf","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 heading elements (h1–h6) as plain-text lines with a count","exampleAgentPrompt":"Can you pull all the headings from this page — https://example.com/blog/article — and give them back to me as plain text with a count of how many there are?","exampleUseCases":[{"title":"SEO heading audit for a blog post","prompt":"Grab all the headings from https://myblog.com/seo-guide and list them as plain text so I can audit the H1, H2, and H3 structure."},{"title":"Content outline extraction for a research pipeline","prompt":"Extract every heading from https://research.org/report-2024 as plain text lines — I need the outline for my automated summarization pipeline."},{"title":"Competitive page structure analysis","prompt":"Fetch the headings from https://competitor.com/product and return them as plain text so I can see how they've structured their page content."}],"resultDescription":"A plain-text list of all heading elements (h1 through h6) found on the fetched page, one heading per line, along with a total count of headings extracted. No HTML markup, no browser required.","failureModes":["URL is unreachable or returns a non-200 status — endpoint may return an error or empty result","Page has no heading elements — returns zero count with empty lines","URL is behind a login or bot-detection wall — content may not be accessible","Malformed or missing URL parameter — request fails with a validation error","Page uses JavaScript-rendered headings — static fetch may miss dynamically injected headings"],"whenToPreferThis":"Choose this endpoint when you need a clean, plain-text list of a page's headings quickly and cheaply ($0.01/call) without spinning up a browser or writing a scraper. It is ideal for agents and pipelines that need structured page outline data — such as SEO audits, content summarization preprocessing, or competitive analysis — and where the output format of plain text lines is sufficient. Prefer sibling endpoints if you need headings in Markdown format (e.g. extract-h6-as-markdown) or JSON.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T18:57:06.280Z","isFirstParty":false,"canonicalSlug":"extract-headings-as-text-c5e724de"}