{"uid":"cap_qEhtBap3iEO2bSKKJPt2Z","slug":"canonical-url-declarations-element-count-08c32f81","name":"Canonical URL Declarations — Element Count","description":"Canonical URL declarations — Element count: Element count for Canonical URL declarations. 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 element count result.","url":"https://market.datapackvibe.com/x402/assistant-bx-web-canonical-count?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><link rel=\"canonical\" href=\"https://www.iana.org/help/example-domains\" id=\"sample\"></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_5tfqjI1aYgxIyaPK5NTgK","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":"Counts the number of canonical URL declaration elements on a given public HTTPS page or supplied HTML snippet via static parsing.","exampleAgentPrompt":"Can you count how many canonical URL declaration elements are on https://www.example.com/product-page? I want to know if there are duplicate or missing canonicals.","exampleUseCases":[{"title":"SEO audit for duplicate canonicals","prompt":"Check https://www.myshop.com/shoes/running-shoes for canonical URL elements and tell me how many there are — I want to make sure there isn't more than one canonical tag causing SEO issues."},{"title":"Validate canonical in raw HTML","prompt":"I have some raw HTML I want to test — can you count how many canonical URL declaration elements appear in it? Here's the HTML: <!doctype html><html><head><link rel=\"canonical\" href=\"https://example.com/page\"><link rel=\"canonical\" href=\"https://example.com/other\"></head><body></body></html>"},{"title":"Pre-publish canonical check","prompt":"Before I publish this page, count the canonical link elements in my HTML to make sure there's exactly one — the attribute I care about is 'href' and I want to confirm it's set correctly."}],"resultDescription":"Returns a bounded integer count of how many canonical URL declaration elements were found on the parsed page or in the supplied HTML. The count reflects static HTML parsing without JavaScript rendering, login, or access bypass.","failureModes":["URL is not publicly accessible or returns a non-200 HTTP status","HTML exceeds the 100,000 character maximum length","URL exceeds 2,048 character limit","Page requires JavaScript rendering to expose canonical tags (not supported)","Page is behind authentication or a login wall (not supported)","Network timeout or unreachable host"],"whenToPreferThis":"Choose this endpoint when you need a fast, low-cost static parse to count canonical URL elements on a public page or in raw HTML — especially for SEO audits, pre-publish checks, or automated quality gates. It is not suitable for JavaScript-rendered pages, authenticated pages, or when you need the actual canonical href values rather than a count.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-05T06:42:53.546Z","isFirstParty":false,"canonicalSlug":"canonical-url-declarations-element-count-08c32f81"}