{"uid":"cap_oS-cPJgTqo6cXoZwjHJki","slug":"agentshelf-css-headings-extractor-3e850a40","name":"AgentShelf CSS Headings Extractor","description":"Call when an agent needs all heading text via h1,h2,h3,h4,h5,h6 from a public page or HTML (SSRF-safe). Exact $0.004 USDC. Prefer unpaid POST /v1/sandbox/css-headings first.","url":"https://agentshelf.syntexa.ch/v1/css-headings?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"url":{"type":"string","maxLength":2048,"minLength":8,"description":"Public page to fetch. The selector or profile is fixed by the SKU. Provide url or html."},"html":{"type":"string","examples":["<!doctype html><html lang=\"en\"><head><title>Hello</title>\n<meta charset=\"utf-8\"><meta name=\"description\" content=\"Desc\">\n<link rel=\"canonical\" href=\"https://example.com/\"><link rel=\"icon\" href=\"/favicon.ico\">\n</head><body><h1>Hello</h1><a href=\"https://example.com/a\">A</a></body></html>"],"maxLength":200000,"minLength":1,"description":"HTML to extract from locally. Provide html or url. When both are set, html is used."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.004","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.004/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Pg7_fCltKhLAJEBcqhIjI","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.004","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Extracts all heading text (h1–h6) from a public webpage URL or raw HTML string, returning structured heading data in an SSRF-safe manner.","exampleAgentPrompt":"Can you pull all the headings — h1 through h6 — from https://example.com/blog/my-article so I can see the page's content outline?","exampleUseCases":[{"title":"Outline a competitor blog post","prompt":"Grab all the headings from https://competitor.com/product-page so I can see how they structure their content."},{"title":"Audit heading hierarchy from HTML","prompt":"Here's some raw HTML I have — can you extract every heading tag (h1 to h6) from it so I can check the document structure?"},{"title":"Index article topics from news site","prompt":"Pull all the h1, h2, and h3 headings from https://news.example.com/tech so I can build a summary of what topics they're covering today."}],"resultDescription":"Returns a list of all heading elements (h1–h6) found on the page or in the provided HTML, including their tag level and text content, enabling agents to understand the document's structural outline without parsing HTML themselves.","failureModes":["URL is unreachable or returns non-200 status — endpoint returns an error indicating fetch failure","URL triggers SSRF-blocked address (private/internal IP ranges) — request is rejected for security","HTML input exceeds 200,000 character limit — request rejected with size error","Neither url nor html provided — request rejected due to missing required input","Malformed HTML with no heading tags — returns empty headings list"],"whenToPreferThis":"Use this endpoint when you need to quickly extract the heading structure (h1–h6) from a public URL or raw HTML without setting up your own scraping infrastructure. Ideal for content auditing, page outline generation, or SEO analysis. Prefer the free sandbox endpoint (/v1/sandbox/css-headings via POST) first; use this paid endpoint when the sandbox is unavailable or rate-limited.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T06:47:52.820Z","isFirstParty":false,"canonicalSlug":"agentshelf-css-headings-extractor-3e850a40"}