{"uid":"cap_23gw0I5G-VZIYeQ9YpbuC","slug":"page-header-blocks-html-fragment-extraction-5798b80d","name":"Page Header Blocks — HTML Fragment Extraction","description":"Page header blocks — HTML fragment extraction: HTML fragment extraction for Page header blocks. One public HTTPS page or supplied HTML; static parsing, no JavaScript rendering, login or access bypass. Specialised preset in a shared 50-profile, 20-operation engine. 0.01 USDC includes one bounded html fragment extraction result.","url":"https://market.datapackvibe.com/x402/assistant-bx-web-headers-html?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"url":{"type":"string","default":"","maxLength":2048},"html":{"type":"string","default":"<!doctype html><html><head></head><body><header id=\"sample\" data-kind=\"example\">Example product guide</header></body></html>","maxLength":100000},"term":{"type":"string","default":"product","maxLength":100,"minLength":1},"attribute":{"type":"string","default":"id","pattern":"^[a-zA-Z][a-zA-Z0-9:_-]{0,49}$","maxLength":50},"previous_texts":{"type":"array","items":{"type":"string","default":"","maxLength":1000},"default":["Older example"],"maxItems":200,"minItems":0},"attribute_value":{"type":"string","default":"sample","maxLength":200}}},"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_LZThxynyoXb5oNs3sWksT","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":"Extracts header block HTML fragments from a webpage URL or supplied HTML, matching by term, attribute, and attribute value.","exampleAgentPrompt":"Can you extract the header block HTML fragment from https://example.com/product-guide where the element has an id attribute equal to 'main-header', searching for the term 'product'?","exampleUseCases":[{"title":"Scrape site navigation header","prompt":"Pull the HTML fragment for the header block on https://acmecorp.com/home — look for an element with the attribute 'data-kind' set to 'nav' and the term 'navigation'."},{"title":"Extract header from supplied HTML","prompt":"I have this HTML snippet and I want you to extract the header block that has an id of 'page-top' and contains the term 'welcome' — here's the HTML: <!doctype html><html><head></head><body><header id='page-top'>Welcome to our site</header></body></html>"},{"title":"Identify branded hero header element","prompt":"Go to https://shop.brandexample.com and extract the header element that has a class attribute equal to 'hero-banner' and is related to the term 'brand'."}],"resultDescription":"Returns a bounded HTML fragment for the matched page header block element. The result includes the extracted HTML snippet corresponding to the element identified by the specified attribute, attribute value, and term. Cost is 0.01 USDC per call.","failureModes":["URL is inaccessible or returns a non-200 status — no HTML extracted","No header element found matching the specified attribute and attribute value — empty or null result","Supplied HTML exceeds 100,000 character limit — request rejected","Term parameter missing or too short (minLength 1) — validation error","Attribute name contains invalid characters — pattern validation failure","JavaScript-rendered content not present since only static parsing is performed"],"whenToPreferThis":"Choose this endpoint when you need to extract a specific header block HTML fragment from a static webpage or provided HTML string, identified by a known attribute name and value, without needing JavaScript rendering, login, or full-page scraping. It is well-suited for targeted header element extraction in a cost-effective single-operation call at $0.01 USDC.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-22T12:41:37.916Z","isFirstParty":false,"canonicalSlug":"page-header-blocks-html-fragment-extraction-5798b80d"}