{"uid":"cap_uuW8CXDZAXlLaCeDKF8Cb","slug":"canonical-url-declaration-html-fragment-extractor-3cd08e4e","name":"Canonical URL Declaration HTML Fragment Extractor","description":"Canonical URL declarations — HTML fragment extraction: HTML fragment extraction 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 html fragment extraction result.","url":"https://market.datapackvibe.com/x402/assistant-bx-web-canonical-html?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_Y4JL26C8xGpvjDOIRn_Da","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 canonical URL declarations from HTML by parsing the <link rel='canonical'> tag from a supplied URL or raw HTML string","exampleAgentPrompt":"Can you extract the canonical URL tag from this page — https://example.com/product-page — and give me back the full HTML fragment for the link element with id 'main-canonical'?","exampleUseCases":[{"title":"SEO canonical tag audit","prompt":"I need to check what canonical URL is declared on https://www.myblog.com/article/seo-tips — can you pull the canonical link HTML fragment for me so I can verify it's pointing to the right page?"},{"title":"Duplicate content check for e-commerce","prompt":"Here's the raw HTML for our product page — can you extract the canonical URL declaration from it? The link element has attribute 'data-role' set to 'canonical-tag'."},{"title":"CMS template canonical validation","prompt":"I'm building a CMS and want to confirm my template emits the right canonical tag. Here's the generated HTML — please extract the canonical link element with id 'page-canonical' so I can check the href value."}],"resultDescription":"Returns a bounded HTML fragment containing the extracted canonical URL declaration (the <link rel='canonical'> element) matching the specified attribute and attribute value, parsed statically from either a fetched public HTTPS page or supplied raw HTML — no JavaScript rendering or authentication required.","failureModes":["URL is not publicly accessible or returns a non-200 status — extraction fails","Canonical link element not present in HTML — returns empty or no result","Attribute or attribute_value does not match any element — no fragment returned","HTML exceeds 100,000 character limit — input rejected","URL exceeds 2,048 character length — input rejected","Page requires JavaScript rendering to expose canonical tag — static parser cannot find it","Network timeout when fetching URL — extraction fails"],"whenToPreferThis":"Choose this endpoint when you need to statically extract the canonical URL declaration (<link rel='canonical'>) from a single public page or known HTML string, especially in SEO auditing, content deduplication, or CMS validation workflows. It is well-suited for lightweight, low-cost ($0.01) per-page checks where JavaScript rendering is not needed and you know the target attribute to identify the element. Prefer alternatives if the page requires authentication, JavaScript rendering, or if you need to extract many different types of structured data beyond the canonical tag.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-18T18:45:51.387Z","isFirstParty":false,"canonicalSlug":"canonical-url-declaration-html-fragment-extractor-3cd08e4e"}