{"uid":"cap_Oe4oakb1tdFFr8FV8phFv","slug":"code-snippets-attribute-presence-check-8e1a9722","name":"Code Snippets — Attribute Presence Check","description":"Code snippets — Attribute presence check: Attribute presence check 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 presence check result.","url":"https://market.datapackvibe.com/x402/assistant-bx-web-code-attribute-presence?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_cBMuotXHPAevpU4Acaxq8","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":"Checks whether a specific HTML attribute (optionally with a given value) is present on code snippet elements matching a search term in a given webpage or HTML fragment.","exampleAgentPrompt":"Check the page at https://example.com/docs whether any code snippet containing the word 'authentication' has an 'id' attribute with the value 'auth-sample' — just static HTML parsing, no JavaScript needed.","exampleUseCases":[{"title":"Documentation attribute audit","prompt":"Can you check https://docs.myproject.io/quickstart to see if any code snippets mentioning 'install' have a 'data-lang' attribute present?"},{"title":"Verify accessibility markup on code blocks","prompt":"I have this HTML snippet — can you check if any code element that contains the word 'example' has an 'aria-label' attribute set?"},{"title":"QA check for CMS-generated code tags","prompt":"Look at the page https://myblog.com/tutorial and tell me whether any code snippet with the word 'config' has an 'id' attribute equal to 'config-block'."}],"resultDescription":"Returns a bounded attribute presence check result indicating whether the specified HTML attribute (and optionally its expected value) was found on code snippet elements containing the given search term within the provided URL or HTML content. Includes match details based on static parsing only — no JavaScript rendering is performed.","failureModes":["URL is unreachable or returns a non-200 status — no HTML fetched, check fails","HTML content exceeds 100,000 character limit — input rejected","Attribute name does not match allowed pattern (must start with a letter, max 50 chars) — validation error","Search term is empty or missing — required field error","Page content is JavaScript-rendered only — static parser finds no code elements","Attribute present but value does not match the specified attribute_value — returns not-found result"],"whenToPreferThis":"Use this endpoint when you need a lightweight, low-cost ($0.01) static HTML check to confirm whether code snippet elements on a public page or supplied HTML fragment carry a specific attribute, optionally with an exact value match. Prefer it over full browser-based scrapers when the page content is server-rendered and no JavaScript execution is needed. Ideal for documentation QA, CMS audits, and automated accessibility or schema checks on code blocks.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-21T00:52:36.987Z","isFirstParty":false,"canonicalSlug":"code-snippets-attribute-presence-check-8e1a9722"}