{"uid":"cap_PdVY9bDHfwUSt5Cz228SU","slug":"extract-canonical-and-alternates-as-text-9bca7979","name":"extract-canonical-and-alternates-as-text","description":"Extract the page's canonical and alternates as text: fetches the URL, pulls every canonical and alternates element and returns them as plain lines, 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/text?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_je8bwJg0_phjQmzFmVf4r","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 webpage and extracts all canonical and alternate link elements, returning them as plain-text lines with a count","exampleAgentPrompt":"Can you fetch https://example.com/blog/my-post and extract all of its canonical and alternate link elements, returning them as plain text lines with a count?","exampleUseCases":[{"title":"SEO canonical tag audit","prompt":"Pull all canonical and alternate link elements from https://acmecorp.com/products/widget as plain text so I can audit whether the canonical is set correctly."},{"title":"Multilingual alternate URL discovery","prompt":"Fetch https://globalnews.com/article/12345 and list every hreflang alternate URL it has, in plain text, so I can see which language versions are declared."},{"title":"Duplicate content pipeline check","prompt":"I need to verify the canonical URL set on https://shop.example.com/sale-page — can you extract the canonical and alternates as text so my content pipeline can compare it against what we expect?"}],"resultDescription":"A plain-text response containing one canonical or alternate link element per line, plus a total count of how many elements were found on the page. No HTML or JSON structure — just clean, line-separated URLs and a summary count.","failureModes":["Target URL is unreachable or returns non-200 status, resulting in an error response","Page has no canonical or alternate elements, returning an empty result with a count of zero","Malformed or relative canonical URLs may be returned as-is without resolution","Rate limiting or payment failure (x402) if the $0.01 USDC micropayment is not processed","Very large pages may cause slow response times"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, no-browser extraction of just canonical and alternate link elements from a page in plain text format, suitable for SEO audits, content pipelines, or agent workflows that need simple line-by-line output rather than full JSON structures. Prefer it over full-page scrapers when only canonical/hreflang metadata is needed, and over JSON variants when downstream tools expect plain text.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T18:42:50.840Z","isFirstParty":false,"canonicalSlug":"extract-canonical-and-alternates-as-text-9bca7979"}