{"uid":"cap_r_Qp9qdiiv7OHcBtFHi6t","slug":"code-snippets-literal-term-matches-d17cdb8c","name":"Code Snippets Literal Term Matches","description":"Code snippets — Literal term matches: Literal term matches 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 literal term matches result.","url":"https://market.datapackvibe.com/x402/assistant-bx-web-code-term?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_w6YySkpn148vpxEAue5AP","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":"Searches a web page or supplied HTML for literal term matches within code snippet elements, returning matched text content.","exampleAgentPrompt":"Search the page at https://docs.example.com/api-reference for code snippets that literally contain the term 'authentication', filtering to elements with the id attribute set to 'main-example'.","exampleUseCases":[{"title":"Find API usage examples in docs","prompt":"Scan the page at https://developer.example.com/docs/quickstart for any code snippets that contain the term 'fetch' and tell me what you find — I want to see exactly how the API call is written in their examples."},{"title":"Check if deprecated method appears in code blocks","prompt":"Go to https://legacy.myapp.com/migration-guide and search through all the code snippet elements for the literal term 'oldMethod' — I need to know if it still appears in any code examples on that page."},{"title":"Extract matching code from pasted HTML","prompt":"Here's some HTML from a tutorial page I saved — can you search through the code blocks in it for the term 'useState' and show me every snippet that contains it? The attribute I care about is 'class' with value 'code-block'."}],"resultDescription":"Returns bounded literal term match results from code snippet elements found in the parsed HTML of the given URL or supplied HTML content — specifically the text of matched code elements that contain the specified search term, limited to one result set per call.","failureModes":["URL is unreachable or returns a non-200 status, resulting in no content to parse","HTML exceeds 100,000 character limit, causing rejection","Search term is empty or missing (minLength 1 required)","Page requires JavaScript rendering, login, or dynamic loading — not supported by static parser","No code snippet elements match the specified attribute/attribute_value combination","Attribute name doesn't match required pattern, causing validation error"],"whenToPreferThis":"Choose this endpoint when you need to find literal string matches specifically inside code snippet HTML elements on a static, publicly accessible web page. It is purpose-built for developer documentation, tutorial pages, and code reference sites where you want to locate exact term occurrences in code blocks. Prefer this over general-purpose web scrapers when the target is code elements specifically, and over full-text search when you need element-scoped extraction rather than page-wide text search.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-21T00:52:35.239Z","isFirstParty":false,"canonicalSlug":"code-snippets-literal-term-matches-d17cdb8c"}