{"uid":"cap_af5HB6HUd4JRK_fgf1s6H","slug":"netintel-production-440c-up-railway-app-3cae094a","name":"NetIntel Language Detection","description":"Detect the language of any text input using character frequency analysis and n-gram pattern matching — returns the detected language, ISO code, confidence score, and top alternative languages so agents can route multilingual content, trigger translation workflows, and classify text without a paid NLP API.","url":"https://netintel-production-440c.up.railway.app/lang-detect/analyze","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","required":["text"],"properties":{"text":{"type":"string","description":"Text to detect the language of (1-10000 characters)"}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"grade":{"type":"string"},"score":{"type":"number"},"script":{"type":"string"},"findings":{"type":"array"},"confidence":{"type":"string"},"word_count":{"type":"number"},"text_length":{"type":"number"},"alternatives":{"type":"array"},"language_code":{"type":"string"},"is_multilingual":{"type":"boolean"},"detected_language":{"type":"string"}}}}}}},"responseSchema":{"type":"json","example":{"grade":"A","score":100,"script":"Latin","findings":[],"confidence":"high","word_count":41,"text_length":214,"alternatives":[{"code":"pl","score":0.05,"language":"Polish"},{"code":"cs","score":0.05,"language":"Czech"},{"code":"pt","score":0.02,"language":"Portuguese"}],"language_code":"en","is_multilingual":false,"detected_language":"English"}},"example":{"request":{"input":{"body":{"text":"Hello, this is a test message to detect the language. The quick brown fox jumps over the lazy dog."},"type":"http","method":"POST","bodyType":"json"}},"response":{"grade":"A","score":100,"script":"Latin","findings":[],"confidence":"high","word_count":19,"text_length":98,"alternatives":[{"code":"nl","score":0.11,"language":"Dutch"},{"code":"cs","score":0.11,"language":"Czech"},{"code":"hu","score":0.11,"language":"Hungarian"}],"language_code":"en","is_multilingual":true,"detected_language":"English"}},"exampleRequest":{"text":"Hello, this is a test message to detect the language. The quick brown fox jumps over the lazy dog."},"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_V4wy4jva3HveX-uRTAiGh","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","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 input using character frequency analysis and n-gram pattern matching, returning the detected language name, ISO code, confidence score, and top alternative candidates.","exampleAgentPrompt":"What language is this text written in, and how confident are you? — 'Bonjour, je m'appelle Marie et je travaille à Paris.'","exampleUseCases":null,"resultDescription":"Returns the detected language (e.g. 'French'), its ISO 639 code (e.g. 'fr'), a confidence score between 0 and 1, and a ranked list of top alternative language candidates with their own scores — enough to route or filter multilingual content reliably.","failureModes":["Text too short for reliable detection — low confidence score returned","Mixed-language or code-switched text may yield low confidence or wrong top language","Constructed or nonsense text returns low confidence with unreliable language assignment","Empty or whitespace-only input returns a validation error","Very short strings like single words may match multiple languages with near-equal confidence"],"whenToPreferThis":"Choose this endpoint when you need lightweight, low-cost language detection without a paid NLP platform dependency. Ideal for routing multilingual content, pre-filtering before translation, or classifying user-submitted text in pipelines where cost per call matters. The confidence score and alternative candidates make it suitable for downstream decision logic.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:42:51.694Z","isFirstParty":false}