{"uid":"cap_QVTK2wrKBt7YyovnChe2O","slug":"link-rel-alternate-hreflang-25e7caf1","name":"link-rel-alternate-hreflang","description":"The rel=\"alternate\" links of a page: every matching <link>/<a> with href and hreflang, resolved to absolute URLs, with a count. Link-relationship discovery. $0.01 per page.","url":"https://site.intel.rallylive.ca/site/link-rel/alternate-hreflang?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_XoDyrRHyxVjCH2aDV8dZ8","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 all rel='alternate' hreflang link elements from a page, returning each href resolved to an absolute URL along with its hreflang attribute value and a total count","exampleAgentPrompt":"Can you fetch https://example.com/about and extract all of its rel='alternate' hreflang link tags, giving me the resolved absolute URLs and which language/region each one targets?","exampleUseCases":[{"title":"Multilingual SEO audit for a webpage","prompt":"Pull up https://www.myshop.com/products/shoes and tell me all the hreflang alternate links it declares — I want to see each language code and the resolved URL so I can check our international SEO setup."},{"title":"Discovering localized page versions","prompt":"For the page https://blog.acme.com/en/post-123, find all the alternate hreflang links so I can map out which localized versions of this article exist and where they live."},{"title":"Verifying hreflang implementation on a new launch","prompt":"We just launched https://globalcorp.com/home — can you extract its rel=alternate hreflang tags and list every language-region variant with its absolute URL so we can verify the implementation is correct?"}],"resultDescription":"Returns a list of all <link> and <a> elements matching rel='alternate' that also carry an hreflang attribute, each with its href resolved to an absolute URL and the hreflang value, plus a total count of matching elements found on the page.","failureModes":["Page returns non-200 status — no links extracted","Page has no rel='alternate' hreflang tags — returns empty list with count 0","URL is malformed or unreachable — request fails","Page requires JavaScript rendering — statically served links only may be returned","Relative href values that cannot be resolved to absolute URLs may be omitted"],"whenToPreferThis":"Choose this endpoint when you specifically need hreflang-qualified alternate links (i.e. language/region variants) rather than all alternate links in general. Use it for internationalization audits, multilingual SEO checks, or building a map of localized page versions. Prefer the sibling link-rel-alternate endpoint if you want all alternate links regardless of hreflang attribute presence.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-21T18:31:11.318Z","isFirstParty":false,"canonicalSlug":"link-rel-alternate-hreflang-25e7caf1"}