{"uid":"cap_cfRw-SEt5GvlIRRjoL3J_","slug":"extract-headings-as-csv-43432633","name":"extract-headings-as-csv","description":"Extract the page's headings as csv: fetches the URL, pulls every headings element and returns them as CSV rows, 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/csv?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_xYNYHmSGhYjKwtWOHgAsu","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 and extracts all heading elements (h1–h6) returning them as CSV rows with a count","exampleAgentPrompt":"Can you extract all the headings from https://example.com and give me the results as a CSV with the heading level, text, and a total count?","exampleUseCases":[{"title":"SEO heading audit for a landing page","prompt":"Pull all the headings from https://acme.com/product and return them as CSV rows so I can audit the H1 and H2 structure for SEO."},{"title":"Comparing page outlines across competitors","prompt":"Grab all heading elements from https://competitor.com/pricing as a CSV — I want to see the heading level and text for each one so I can compare their page structure to ours."},{"title":"Content pipeline table of contents extraction","prompt":"For the article at https://blog.example.com/how-to-guides/intro, extract every heading as a CSV row so my pipeline can auto-generate a table of contents."}],"resultDescription":"A CSV-formatted response containing one row per heading found on the page, with columns indicating the heading tag level (e.g. h1, h2, h3) and the heading text content, plus a count of total headings extracted.","failureModes":["URL is unreachable or returns a non-200 status — empty result or error response","Page has no heading elements — CSV returned with zero rows and count of 0","URL is malformed or missing — request validation error","Page is JavaScript-rendered and requires a browser — headings may be missing from static fetch","Payment not completed — x402 payment required response before content is returned"],"whenToPreferThis":"Choose this endpoint when you need a structured, machine-readable CSV of all heading elements from a single web page without running a browser. It is ideal for SEO audits, content pipeline ingestion, page outline extraction, or any agent workflow where only heading data is needed and CSV output simplifies downstream processing. Prefer it over full-page scrapers when you want lightweight, heading-only structured output at low cost ($0.01/call).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T18:56:39.495Z","isFirstParty":false,"canonicalSlug":"extract-headings-as-csv-43432633"}