{"uid":"cap_jZ1mbVVyjTs-hXogUPtWW","slug":"code-snippets-prior-text-set-comparison-dc2c8b28","name":"Code Snippets Prior Text-Set Comparison","description":"Code snippets — Prior text-set comparison: Prior text-set comparison 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 prior text-set comparison result.","url":"https://market.datapackvibe.com/x402/assistant-bx-web-code-compare?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_ak0kl4Xu-2iJUt-sHyQYf","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 a code snippet element from a webpage and compares its current text content against a set of previously recorded texts to detect changes.","exampleAgentPrompt":"Check the code snippet with id 'installation-example' on https://docs.example.com/quickstart and tell me if its text has changed compared to these previous versions: 'npm install mylib' and 'npm i mylib --save'.","exampleUseCases":[{"title":"Monitor SDK installation snippet for changes","prompt":"Scrape the code block with attribute id='install-cmd' on https://developer.acme.com/sdk and compare its current text against these two older versions: 'pip install acme-sdk==1.0' and 'pip install acme-sdk==1.1' — has it changed?"},{"title":"Audit API example code on docs page","prompt":"Pull the code snippet with data-kind='api-example' from https://api.stripe.com/docs/charges and compare it against my stored prior texts: 'curl https://api.stripe.com/v1/charges' and 'stripe charges create' — let me know if anything is different."},{"title":"Track tutorial code block for updates","prompt":"Fetch the page at https://tutorial.pythonsite.org/lesson3 and check the <code> element with id='step-one' to see if its text matches any of these previous versions: 'print(hello)' or 'print(\"hello world\")'."}],"resultDescription":"Returns a bounded prior text-set comparison result indicating whether the current text of the targeted code snippet element matches, partially matches, or differs from the supplied array of previously recorded texts, along with the extracted current text content of the element.","failureModes":["URL is unreachable or returns non-200 status — crawl fails with no content","Element with specified attribute/value not found on page — no match result","JavaScript-rendered content not available — static parser cannot access dynamically loaded code snippets","HTML payload too large (over 100,000 characters) — request rejected","previous_texts array empty or missing — comparison has no baseline to check against","Invalid attribute name pattern — request validation error"],"whenToPreferThis":"Choose this endpoint when you need to detect whether a specific code snippet element on a static webpage has changed relative to a known set of prior text values. It is ideal for monitoring documentation, SDK references, or tutorial pages where code blocks are embedded in static HTML and can be targeted by a known attribute. Prefer it over general-purpose diff tools when you need a pay-per-call, no-infrastructure solution scoped specifically to code elements.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-21T00:52:34.653Z","isFirstParty":false,"canonicalSlug":"code-snippets-prior-text-set-comparison-dc2c8b28"}