{"uid":"cap_bnSg2_CyvwfXDBQgL3XGx","slug":"agentshelf-css-h2-extractor-33211da4","name":"AgentShelf CSS H2 Extractor","description":"Call when an agent needs h2 text via h2 from a public page or HTML (SSRF-safe). Exact $0.001 USDC. Prefer unpaid POST /v1/sandbox/css-h2 first.","url":"https://agentshelf.syntexa.ch/v1/css-h2?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.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_qBu8K7dsr9yMpj-59gmVv","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Extracts all H2 heading text from a public web page URL or raw HTML input, with SSRF protection.","exampleAgentPrompt":"Can you grab all the H2 headings from https://example.com/article and list them for me?","exampleUseCases":[{"title":"Section outline from article","prompt":"Pull all the H2 headings from https://docs.python.org/3/library/functions.html so I can see how the page is structured."},{"title":"Competitor page analysis","prompt":"Extract all H2 headings from https://www.competitor.com/features — I want to see what sections they highlight on their features page."},{"title":"H2 headings from raw HTML","prompt":"I have some raw HTML from a scraped page — can you extract just the H2 heading text from it? Here's the HTML: <html><body><h2>Introduction</h2><h2>Getting Started</h2></body></html>"}],"resultDescription":"A list of all H2 heading text values found in the provided URL's page content or the supplied raw HTML, returned as structured data. If a URL is provided the service fetches the page (with SSRF protection) and parses its H2 elements; if raw HTML is provided it is parsed directly.","failureModes":["URL points to a private/internal IP address (SSRF rejection)","URL is unreachable or returns non-200 status","HTML input exceeds 200,000 character limit","No H2 tags found in the page or HTML (empty result)","Malformed URL input","Payment not completed — 402 response returned"],"whenToPreferThis":"Use this endpoint when you specifically need only H2 headings from a page — not all headings (h1–h6) — and want a lightweight, cost-efficient extraction ($0.001 USDC). Prefer this over the broader all-headings endpoint when you only care about second-level headings. If you already have the raw HTML, pass it directly to avoid a second network fetch.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T03:52:39.716Z","isFirstParty":false,"canonicalSlug":"agentshelf-css-h2-extractor-33211da4"}