{"uid":"cap_kX2vqWPYXZXzAZ1GzCt-C","slug":"x402node-language-detection-api-a17cd437","name":"x402node Language Detection API","description":"Detect the language of input text from Unicode script and stopword analysis with a confidence score, covers Chinese, Japanese, Korean, Cyrillic, Arabic, Hebrew, Greek, Thai and major Latin languages. language detection, detect language, language identifier, what language is this text Accepts payment on Base or Solana — either network works.","url":"https://api.x402node.dev/text/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","required":["text"],"properties":{"text":{"type":"string","description":"Input text to analyze (required)"}}}},"additionalProperties":false}}},"responseSchema":null,"example":{"request":{"lang":null,"text":"Hello, how are you today?"},"response":{"_hint":"x402 paid endpoints for AI agents — x402node.dev (utilities) · cn402.com (Chinese culture)","iso639":"en","method":"stopwords","language":"English","candidates":[{"iso":"en","hits":2,"share":0.4},{"iso":"es","hits":0,"share":0},{"iso":"fr","hits":0,"share":0}],"confidence":0.95}},"exampleRequest":{"lang":null,"text":"Hello, how are you today?"},"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_mf2vO11I4Tlq9d7PZkIeJ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","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 input text using Unicode script analysis and stopword matching, returning the identified language and a confidence score","exampleAgentPrompt":"Can you detect what language this text is written in and give me a confidence score: 'Привет, как дела?'","exampleUseCases":null,"resultDescription":"Returns the detected language name and/or ISO language code along with a confidence score indicating how certain the model is about the identification, covering Chinese, Japanese, Korean, Cyrillic, Arabic, Hebrew, Greek, Thai and major Latin-script languages","failureModes":["Text too short or ambiguous for reliable detection — low confidence score returned","Mixed-language input may cause misclassification","Unsupported or rare language returns null or low-confidence result","Empty text input returns validation error","Very short single-word inputs may yield unreliable results"],"whenToPreferThis":"Use this endpoint when you need fast, lightweight language identification from raw text using Unicode script heuristics and stopwords — ideal for routing multilingual user input, filtering content by language, or tagging documents before processing. Prefer this over heavy ML-based NLP pipelines when speed and cost matter and you need coverage across CJK, Cyrillic, Arabic, Hebrew, Greek, Thai, and major Latin languages.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:49:54.777Z","isFirstParty":false}