{"uid":"cap_ERGTfqLAQ-6t0PsPR2eXM","slug":"agent-data-tools-revmesh2074-workers-dev-language-detection-api-franc-39e5a2e0","name":"Language Detection API (franc, ISO 639-1/639-3)","description":"Detect language of a text: the language as an ISO 639-1 and 639-3 code with its English name, from 82 languages (franc), offline and fast. Use to route a message to the right translator, model or support team, or to tag content by language.","url":"https://agent-data-tools.revmesh2074.workers.dev/language/detect?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","required":["text"],"properties":{"text":{"type":"string","description":"The text (up to 10,000 characters)"}}},"responseSchema":{"type":"object","properties":{"language":{"type":"object","properties":{"name":{"type":"string"},"iso6391":{"type":"string"},"iso6393":{"type":"string"}}},"confident":{"type":"boolean"},"candidates":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"score":{"type":"number"},"iso6393":{"type":"string"}}}},"characters":{"type":"number"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USD","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_I9ui6zWeiEPe_TTKVpmb1","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":"agent-data-tools.revmesh2074.workers.dev","brandSlug":"agent-data-tools-revmesh2074-workers-dev-x402","brandBaseUrl":"https://agent-data-tools.revmesh2074.workers.dev","brandDocsUrl":null,"whatItDoes":"Detects the language of a given text, returning ISO 639-1 and ISO 639-3 codes with English name and confidence candidates from 82 languages","exampleAgentPrompt":"What language is this text written in: 'Bonjour, je voudrais savoir comment annuler ma commande'? Give me the ISO code and how confident you are.","exampleUseCases":[{"title":"Multilingual support inbox routing","prompt":"Before I forward this customer message to the right support agent, tell me what language it's in: 'Necesito ayuda con mi pedido número 4521, no ha llegado.'"},{"title":"Auto-tagging user-generated content","prompt":"I'm building a content feed — can you detect the language of this post so I can tag it correctly? The text is: '오늘 날씨가 정말 좋네요!'"},{"title":"Pre-translation language check","prompt":"I want to translate this snippet but first confirm it's actually French and not Italian: 'Je ne comprends pas pourquoi mon compte a été bloqué.'"}],"resultDescription":"Returns a JSON object with the top detected language (ISO 639-1 code, ISO 639-3 code, English name), a boolean indicating detection confidence, an array of candidate languages each with name, ISO 639-3 code, and a numeric score, plus the character count of the input text.","failureModes":["Very short or single-word inputs may yield low-confidence results or incorrect detection","Heavily mixed-language text may produce unreliable top candidate","Languages not among the 82 supported by franc will not be correctly identified","Text with mostly numbers, symbols, or code may return low confidence","Empty or whitespace-only text may return an error or null result"],"whenToPreferThis":"Choose this endpoint when you need fast, offline language identification without sending data to a heavy ML model — especially for routing, tagging, or preprocessing before translation. It covers 82 languages and returns both ISO 639-1 and ISO 639-3 codes with scored candidates, making it ideal for pipelines that need structured language metadata rather than just a label. Prefer it over LLM-based detection when latency or cost per call matters and the text is at least a sentence long.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-12-03T12:51:09.923Z","isFirstParty":false,"canonicalSlug":"agent-data-tools-revmesh2074-workers-dev-language-detection-api-franc-39e5a2e0"}