{"uid":"cap_1mWEBC3sx8yt5l6g-GWQu","slug":"extract-canonical-and-alternates-as-json-f492b940","name":"Extract Canonical and Alternates as JSON","description":"Extract the page's canonical and alternates as json: fetches the URL, pulls every canonical and alternates element and returns them as a JSON array, 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/json?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_AkH2zwzq97T5T5TuZUdUF","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 and extracts all canonical link elements and alternate link elements, returning them as a structured JSON array with a count.","exampleAgentPrompt":"Can you fetch https://www.example.com/blog/my-post and extract all the canonical and alternate link elements from that page as a JSON array?","exampleUseCases":[{"title":"SEO audit for canonical tags","prompt":"I need to check whether https://www.mysite.com/products/shoes has a canonical URL set and what alternate language versions are declared — can you pull those link elements as JSON?"},{"title":"Hreflang inventory for localization","prompt":"Fetch https://www.globalshop.com/en/homepage and give me a JSON list of all the canonical and hreflang alternate links so I can see which language versions are being declared."},{"title":"Duplicate content check pipeline","prompt":"I'm building a pipeline to audit our site for duplicate content issues — can you extract the canonical and alternate elements from https://www.myblog.com/article/123 as JSON so I can feed it into my deduplication script?"}],"resultDescription":"A JSON array containing all canonical and alternate link elements found on the fetched page, along with a count of how many elements were extracted. Each element in the array represents one canonical or alternate link tag parsed from the page's HTML.","failureModes":["URL is unreachable or returns a non-200 status — likely returns an error or empty result","Page has no canonical or alternate link elements — returns an empty array with count 0","URL is malformed or missing — request validation error","Page blocks server-side fetching (e.g. requires JavaScript rendering) — may return incomplete results","Payment not provided or insufficient — x402 payment required error"],"whenToPreferThis":"Choose this endpoint when you need a structured, machine-readable JSON extraction of canonical and alternate link elements from a single web page without needing a browser. It is purpose-built for SEO metadata pipelines, hreflang audits, and canonical tag verification where you only need these specific link element types — not full page scraping or general metadata extraction.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T18:47:13.614Z","isFirstParty":false,"canonicalSlug":"extract-canonical-and-alternates-as-json-f492b940"}