{"uid":"cap_3UFbMQXL3GkeDrYC9BqYs","slug":"page-language-detect-bf763737","name":"page-language-detect","description":"Page language detection: the declared html lang and content-language, the language detected from the text itself (12 European languages plus CJK/Arabic scripts), agreement between the two, and the hreflang alternates count. Route content to the right model or translator. $0.01 per page.","url":"https://intel.rallylive.ca/site/language","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_z9jZJO8BKRCizdwPe1em4","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":"Detects the declared HTML language, content-detected language, agreement between them, and hreflang alternate count for any web page URL.","exampleAgentPrompt":"Check what language https://example.com/about is actually written in and whether the HTML lang attribute matches — also tell me how many hreflang alternates it has.","exampleUseCases":[{"title":"Route page to correct translator","prompt":"Before I send https://shop.brandsite.de/produkte to a translation service, can you detect what language it's actually written in and confirm whether the HTML lang declaration matches?"},{"title":"Audit multilingual site hreflang coverage","prompt":"I'm auditing our international site — can you check https://blog.company.com/news and tell me how many hreflang alternate links it has and whether the declared language matches what's actually on the page?"},{"title":"Detect CJK or Arabic script on a page","prompt":"Can you tell me if https://newsite.example.com uses Chinese, Japanese, Korean, or Arabic content — and whether the page's lang attribute correctly identifies the script?"}],"resultDescription":"Returns the declared HTML lang attribute value, the content-language HTTP header, the language detected from page text (covering 12 European languages plus CJK and Arabic scripts), a flag or score indicating agreement between declared and detected languages, and the count of hreflang alternate links on the page.","failureModes":["URL unreachable or returns non-200 HTTP status — no language data returned","Page has no detectable text content (e.g. purely image-based) — content detection may be unreliable or absent","Language not in supported set (only 12 European languages + CJK/Arabic) — may return unknown or low-confidence result","No HTML lang attribute present — declared lang field returns null or empty","Payment not processed — 402 response before any analysis is performed"],"whenToPreferThis":"Choose this endpoint when you need to verify or route pages based on language before passing them to a translation API or language-specific model, or when auditing multilingual sites for hreflang SEO correctness. It is specifically valuable when you need both the declared language and the content-detected language together with their agreement, rather than just a simple language guess.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T13:13:14.095Z","isFirstParty":false}