{"uid":"cap_C27G6Cu_-cV-ZNv5YA1Pj","slug":"agentsvc-io-language-detection-api-9447b1a3","name":"agentsvc.io Language Detection API","description":"86 APIs for AI agents: web scraping and crawling to Markdown, AI summaries, data extraction and cited answers, screenshots and PDF, PDF, OCR and document conversion, news, paper and developer search and more, paid per call with USDC on Base, Solana, Polygon or Arbitrum via x402. No account, no API key, free sample on every service.","url":"https://agentsvc.io/api/v1/proxy/language-detect?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"top":{"type":"integer","default":3,"maximum":10,"minimum":1},"text":{"type":"string"}}},"responseSchema":{"type":"json","example":{"data":{"iso639_1":"fr","iso639_3":"fra","language":"French","reliable":true,"candidates":[{"name":"French","score":1,"iso639_1":"fr","iso639_3":"fra"},{"name":"Spanish","score":0.622,"iso639_1":"es","iso639_3":"spa"}],"characters":68,"confidence":0.878},"success":true}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0025","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.0025/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0025","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0025","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ArsqONTTurZMiB7Tzgd7F","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0025","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Detects the natural language of a text snippet and returns ranked candidate languages with ISO 639 codes and confidence scores","exampleAgentPrompt":"What language is this text written in — 'Bonjour, comment allez-vous aujourd'hui?' — and give me the top 3 candidate languages with their confidence scores.","exampleUseCases":[{"title":"Route multilingual support tickets","prompt":"I have a customer message that just came in: 'Necesito ayuda con mi pedido urgente.' Can you detect what language this is so I know which support team to route it to? Give me the top 2 language candidates."},{"title":"Validate user locale claims","prompt":"A user says they speak French but submitted this bio: 'Ich liebe es, in der Natur zu sein.' Can you detect what language it actually is and tell me how confident the detection is?"},{"title":"Language gate before translation","prompt":"Before I send this paragraph to the Spanish translator, can you confirm what language it's written in? Here's the text: 'Questo è un documento importante per la riunione di domani.' Show me the top 3 possible languages."}],"resultDescription":"A JSON object containing the top detected language name, its ISO 639-1 and ISO 639-3 codes, a reliability boolean, a confidence score between 0 and 1, the character count of the input, and an ordered list of up to N candidate languages each with their own name, score, and ISO codes.","failureModes":["Text too short or ambiguous — low confidence score with reliable:false returned","Unsupported or rare language — detection falls back to closest relative with lower score","Empty or missing text field — likely 400 Bad Request","Top parameter exceeds maximum of 10 — validation error","Payment failure via x402 — 402 Payment Required response before processing"],"whenToPreferThis":"Choose this endpoint when you need lightweight, pay-per-call language identification with ISO 639 codes and ranked candidates without managing API keys or subscriptions. It is ideal for agent pipelines that need to route, filter, or preprocess text by language. Prefer it over heavier NLP platforms when you only need language detection and want micro-payment billing via USDC on Base.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T12:41:54.699Z","isFirstParty":false,"canonicalSlug":"agentsvc-io-language-detection-api-9447b1a3"}