{"uid":"cap_KsAaQ9Al9-g2lhtfMlGoL","slug":"code-snippets-joined-text-extraction-f0e938d0","name":"Code Snippets Joined Text Extraction","description":"Code snippets — Joined text extraction: Joined text 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 joined text extraction result.","url":"https://market.datapackvibe.com/x402/assistant-bx-web-code-text?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_xSxTwZBrs1_bCGJXd5qP3","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 and joins all text content from code snippet elements on a web page or supplied HTML, filtered by a search term and optional HTML attribute/value.","exampleAgentPrompt":"Can you extract the joined text from all code snippet elements on https://docs.example.com/api-reference that contain the term 'authentication', specifically looking at elements where the id attribute equals 'auth-sample'?","exampleUseCases":[{"title":"Extract code examples from docs page","prompt":"Go to https://developer.example.com/quickstart and pull out all the joined text from code snippets where the class attribute equals 'language-python' and the content relates to 'install'."},{"title":"Parse code blocks from pasted HTML","prompt":"Here's some raw HTML from a tutorial page — can you extract the joined text from the code elements that have a data-lang attribute equal to 'javascript' and are related to the term 'fetch'?"},{"title":"Retrieve code sample for diff tracking","prompt":"Extract the joined text from code snippet elements on https://changelog.myapp.io/v2 where the id is 'snippet-main' and the term is 'config', and compare it against these previous texts I have stored: ['old config example']."}],"resultDescription":"Returns a single bounded joined text string representing the concatenated visible text content extracted from matching code snippet elements on the page, filtered by the specified search term and attribute/value constraints. Static parsing only — no JavaScript rendering or authentication bypass.","failureModes":["URL is unreachable or returns a non-200 response","HTML exceeds the 100,000-character limit","No matching code elements found for the given term/attribute/value combination","Attribute name does not match the pattern (must start with a letter, alphanumeric/colon/underscore/hyphen)","term is empty or missing (minLength:1 enforced)","Page requires JavaScript rendering (not supported — static parsing only)","Page requires login or access bypass (not supported)"],"whenToPreferThis":"Choose this endpoint when you need to extract and join text specifically from code snippet HTML elements (<code> tags) on a static public webpage or supplied HTML, with optional filtering by a search term and attribute/value pair. Prefer this over generic text extractors when the target content is code blocks specifically. Do not use if the page requires JavaScript rendering or login.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-21T00:52:34.277Z","isFirstParty":false,"canonicalSlug":"code-snippets-joined-text-extraction-f0e938d0"}