{"uid":"cap_bajYLJe4dqpEl_-2tqPBI","slug":"extract-canonical-and-alternates-as-markdown-b85e6669","name":"Extract Canonical and Alternates as Markdown","description":"Extract the page's canonical and alternates as markdown: fetches the URL, pulls every canonical and alternates element and returns them as a Markdown list, with a count. Structured, one-element-type extraction for agents and pipelines; no browser needed. $0.01 per page.","url":"https://page.intel.rallylive.ca/page/canonical-and-alternates/markdown?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","properties":{}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"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__ihaVXXjP_JokW9Dz-itW","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":"Fetches a web page URL, extracts all canonical and alternate link elements, and returns them as a formatted Markdown list with a count.","exampleAgentPrompt":"Can you fetch https://example.com/blog/my-post and extract all canonical and alternate link elements from the page, returning them as a Markdown list?","exampleUseCases":[{"title":"SEO canonical tag audit","prompt":"Pull the canonical and alternate link elements from https://www.myshop.com/products/blue-sneakers and give me a Markdown list so I can check if the canonical is set correctly."},{"title":"Multilingual hreflang discovery","prompt":"Fetch https://globalsite.com/en/about and extract all the alternate hreflang links — I want to see which languages and regions the page targets, formatted as a Markdown list."},{"title":"Content pipeline metadata extraction","prompt":"For each article URL I give you, starting with https://news.example.com/article/12345, extract the canonical and alternate elements and return them as Markdown so I can feed the results into my content deduplication pipeline."}],"resultDescription":"A Markdown-formatted list of all canonical and alternate link elements found on the fetched page, along with a count of how many elements were extracted. Each item in the list represents one canonical or alternate link element discovered in the page's HTML head.","failureModes":["URL is unreachable or returns a non-200 status — endpoint may return an empty list or error","Page has no canonical or alternate elements — returns an empty Markdown list with a count of 0","Malformed or relative URLs in the page's link elements may be returned as-is","Pages with JavaScript-rendered metadata may be missed since no browser is used","Rate limits or payment failures (x402) may block the request"],"whenToPreferThis":"Choose this endpoint when you need a clean, structured Markdown list of only canonical and alternate link elements from a page — ideal for SEO audits, hreflang discovery, and content deduplication pipelines. It requires no browser and is cheaper and faster than full-page scraping when you only need these specific link elements. Prefer it over generic scraping endpoints when your downstream pipeline expects Markdown-formatted output with a count.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T18:47:55.828Z","isFirstParty":false,"canonicalSlug":"extract-canonical-and-alternates-as-markdown-b85e6669"}