{"uid":"cap_uXJZU3kLar77zwb-xPPs3","slug":"code-snippets-distinct-value-extraction-e8bdf599","name":"Code Snippets — Distinct Value Extraction","description":"Code snippets — Distinct value extraction: Distinct value 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 distinct value extraction result.","url":"https://market.datapackvibe.com/x402/assistant-bx-web-code-unique?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_Xu8tKjxg_K7Ndb1w_lIDU","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 unique/distinct values of a specified HTML attribute from all code snippet elements on a given webpage or HTML string.","exampleAgentPrompt":"From the page at https://docs.example.com/api-reference, extract all distinct values of the data-kind attribute found on code snippet elements — skip any that match 'Older example' since I've already seen those.","exampleUseCases":[{"title":"Audit code snippet types on docs site","prompt":"Go to https://developer.myplatform.com/docs and extract all distinct values of the data-language attribute from every code snippet on the page — I want to know what programming languages are represented."},{"title":"Deduplicate snippet IDs from pasted HTML","prompt":"I have this HTML chunk from our internal wiki — can you pull out all the unique id values from every code element in it, and skip any you've already seen like 'intro-snippet' and 'setup-block'?"},{"title":"Catalog code block roles on a tutorial page","prompt":"Scan https://tutorials.codeschool.io/getting-started and list every distinct value of the role attribute on code tags — I'm building a map of what types of code examples they use."}],"resultDescription":"Returns a bounded set of distinct (deduplicated) values for the specified attribute across all code snippet elements found on the page or in the supplied HTML, excluding any values already provided in the previous_texts list.","failureModes":["URL is inaccessible, behind a login, or requires JavaScript rendering — static parsing will return empty or partial results","HTML exceeds 100,000 character limit — request rejected","Attribute name does not match the allowed pattern (must start with a letter, alphanumeric/colon/underscore/hyphen, max 50 chars)","No code snippet elements found matching the term or attribute filter — returns empty distinct set","URL and HTML both omitted — engine may default to empty result","More than 200 items in previous_texts — request rejected"],"whenToPreferThis":"Choose this endpoint when you need to extract and deduplicate a specific HTML attribute's values from code snippet elements on a static webpage or raw HTML, without needing JavaScript execution or authenticated browsing. It is ideal for cataloging unique identifiers, data attributes, or labels across code blocks in documentation, tutorials, or API reference pages.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-21T00:52:35.593Z","isFirstParty":false,"canonicalSlug":"code-snippets-distinct-value-extraction-e8bdf599"}