{"uid":"cap_ri2v9h8QD1NjSuYHRKtkh","slug":"agentshelf-syntexa-ch-xpath-hreflang-extractor-8802a407","name":"agentshelf.syntexa.ch XPath hreflang Extractor","description":"Call when an agent needs hreflang attributes of //a via //a/@hreflang from a public page or HTML (SSRF-safe). Exact $0.01 USDC. Prefer unpaid POST /v1/sandbox/xpath-a-hreflang first.","url":"https://agentshelf.syntexa.ch/v1/xpath-a-hreflang?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"url":{"type":"string","maxLength":2048,"minLength":8,"description":"Public page to fetch. The selector or profile is fixed by the SKU. Provide url or html."},"html":{"type":"string","examples":["<!doctype html><html lang=\"en\"><head><title>Hello</title>\n<meta name=\"description\" content=\"Desc\"><meta property=\"og:title\" content=\"OG\">\n<link rel=\"canonical\" href=\"https://example.com/\"><link rel=\"icon\" href=\"/favicon.ico\">\n</head><body><h1>Hello</h1><a href=\"https://example.com/a\">A</a></body></html>"],"maxLength":200000,"minLength":1,"description":"HTML to extract from locally. Provide html or url. When both are set, html is used."}}},"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_e1A7blERs1bpCes5HeJgL","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 hreflang attribute values from all anchor tags on a given public webpage or raw HTML using XPath (//a/@hreflang), in an SSRF-safe manner.","exampleAgentPrompt":"Can you pull all the hreflang attribute values from the anchor tags on https://example.com — I want to see what language and region alternates that page declares?","exampleUseCases":[{"title":"SEO i18n audit for a website","prompt":"Check https://www.shopify.com for all hreflang values in its anchor tags — I need to audit which language and region variants they're targeting in their links."},{"title":"Validate hreflang annotations in raw HTML","prompt":"I've got this HTML snippet from our CMS build — can you extract all the hreflang attributes from anchor elements to confirm we've set up our international targeting correctly?"},{"title":"Competitive language-targeting research","prompt":"Go to https://www.booking.com and pull out every hreflang value from anchor tags on that page so I can see which locales they're serving alternate pages for."}],"resultDescription":"Returns a list of hreflang attribute values found across all anchor elements (//a/@hreflang) in the provided webpage or HTML, indicating the language and regional targeting of linked pages.","failureModes":["URL is unreachable or returns a non-200 response — extraction fails with a fetch error","HTML is malformed and XPath cannot parse any anchor elements — returns empty result","No anchor tags with hreflang attributes exist on the page — returns an empty list","URL exceeds 2048 characters or HTML exceeds 200,000 characters — rejected with validation error","SSRF-blocked URL (private IP ranges, localhost) — rejected for security reasons","Payment of $0.01 USDC not provided — request rejected with 402 Payment Required"],"whenToPreferThis":"Use this endpoint when you need a fast, paid, SSRF-safe extraction of hreflang attributes from anchor tags on a public URL or raw HTML. Prefer the free sandbox POST /v1/sandbox/xpath-a-hreflang first if available. Choose this over general-purpose scrapers when you specifically want XPath-targeted extraction of hreflang annotations without building your own parser.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T06:50:09.842Z","isFirstParty":false,"canonicalSlug":"agentshelf-syntexa-ch-xpath-hreflang-extractor-8802a407"}