{"uid":"cap_TjEZA9hkVg2sBy6xDzb6w","slug":"code-snippets-attribute-extraction-f02429d4","name":"Code Snippets — Attribute Extraction","description":"Code snippets — Attribute extraction: Attribute extraction for Code snippets. 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 attribute extraction result.","url":"https://market.datapackvibe.com/x402/assistant-bx-web-code-attributes?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><code id=\"sample\" data-kind=\"example\">Example product guide</code></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_HfLHj-zpIgD1t7TjutwIl","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 the value of a specified HTML attribute from code snippet elements on a given webpage or HTML document.","exampleAgentPrompt":"From this HTML page at https://docs.example.com/snippets, find the code element containing the term 'authentication' and extract the value of its data-kind attribute.","exampleUseCases":[{"title":"Extract snippet IDs from docs page","prompt":"Go to https://developer.myapp.com/guides and find the code element that contains the term 'install', then extract its id attribute value."},{"title":"Audit attribute values in supplied HTML","prompt":"I have this HTML: <!doctype html><html><body><code id=\"setup\" data-type=\"shell\">npm install mylib</code></body></html> — find the code element related to 'install' and tell me the value of the data-type attribute."},{"title":"Find code snippet by attribute value","prompt":"On the page https://examples.framework.io/quickstart, find the code block where the id attribute equals 'quickstart-example' and extract the inner text related to 'configuration'."}],"resultDescription":"Returns the extracted value of the specified HTML attribute from the matched code snippet element on the provided page or HTML. The result is bounded to one attribute extraction per call, based on static HTML parsing with no JavaScript execution.","failureModes":["URL is unreachable or returns a non-200 status, resulting in no content to parse","The specified term does not match any code element on the page, returning an empty result","The attribute name does not exist on the matched element, returning null or empty","HTML exceeds the 100,000 character limit and is truncated or rejected","JavaScript-rendered content is not available since only static HTML is parsed","The page requires login or access control, which is not bypassed"],"whenToPreferThis":"Use this endpoint when you need to extract a specific HTML attribute from a code snippet element on a static webpage or a known HTML document, especially when the attribute name and a keyword to identify the relevant code block are known. It is best suited for documentation pages, developer guides, or any static HTML source where code tags carry meaningful attributes. Prefer this over general-purpose scrapers when the target is specifically a code element and precision attribute extraction (not full-page scraping) is the goal.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-21T00:52:27.564Z","isFirstParty":false,"canonicalSlug":"code-snippets-attribute-extraction-f02429d4"}