{"uid":"cap_7ppl9J9PQ_Y5MBaOpTA2o","slug":"text-language-guesser-54271e18","name":"Text Language Guesser","description":"Guess whether text is English, Spanish, French, German, Italian, Portuguese, Dutch or Swedish, with a confidence margin.","url":"https://text-metrics.x402tookit.com/language-guess?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","required":["text"],"properties":{"text":{"type":"string","description":"Text, at least a sentence; up to 3000 characters"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"asOf":{"type":["null","string"]},"code":{"type":["null","string"]},"source":{"type":["null","string"]},"ranking":{"type":["array","null"],"items":{"type":"object","properties":{"code":{"type":["null","string"]},"score":{"type":["null","number"]},"language":{"type":["null","string"]}}}},"reasons":{"type":["array","null"],"items":{"type":"string"}},"summary":{"type":["null","string"]},"verdict":{"type":["null","string"]},"degraded":{"type":["boolean","null"]},"language":{"type":["null","string"]},"confidence":{"type":["null","string"]},"disclaimer":{"type":["null","string"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"wordsAnalyzed":{"type":["null","number"]}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_D6mmP-398BhAhJeNDgduE","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Detects the language of a text snippet from 8 European languages and returns a ranked confidence score.","exampleAgentPrompt":"Can you figure out what language this text is written in and how confident you are? Here's the text: 'Le soleil se couche sur la mer, et les vagues murmurent doucement.'","exampleUseCases":[{"title":"Routing multilingual support tickets","prompt":"I'm getting customer messages in multiple languages and need to route them to the right team. Can you detect the language of this support message and tell me how confident you are? 'Necesito ayuda con mi pedido, no llegó a tiempo.'"},{"title":"Validating user-submitted content language","prompt":"A user submitted a blog post that's supposed to be in English, but I'm not sure it is. Can you analyze this paragraph and tell me if it's actually English, and if not, what language it is? 'De economische situatie in Nederland verbetert langzaam maar zeker.'"},{"title":"Triaging multilingual document pipeline","prompt":"I have a document snippet and I need to know which European language it's in before I can send it to the right translation service — can you rank the most likely languages with confidence scores? Here's the text: 'Die Bundesregierung hat heute neue Maßnahmen zur Klimapolitik angekündigt.'"}],"resultDescription":"Returns the top-guessed language name and code, a confidence level string, a ranked list of all candidate languages with numeric scores, a summary of the reasoning, an array of reason strings, word count analyzed, whether the result is degraded, and a disclaimer noting any limitations.","failureModes":["Text too short to reliably detect (fewer than a sentence may return low confidence or degraded flag)","Language not in the supported set of 8 returns no valid verdict","Input text exceeds 3000 characters and is rejected","Ambiguous bilingual or code-switched text may return low confidence scores across all candidates","Network or payment failure returns no result"],"whenToPreferThis":"Choose this endpoint when you need to classify text into one of 8 specific European languages (English, Spanish, French, German, Italian, Portuguese, Dutch, Swedish) with a confidence margin and ranked probabilities. It is best for short-to-medium text snippets (up to 3000 chars). Prefer it over generic NLP pipelines when you need a lightweight, pay-per-call language detection step without managing model infrastructure.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-21T12:35:21.638Z","isFirstParty":false,"canonicalSlug":"text-language-guesser-54271e18"}