{"uid":"cap_AXqU1BulFSOgjUyuD5hqV","slug":"synapse-language-detection-api-803a2c67","name":"Synapse Language Detection API","description":"Public data and utility APIs paid per call in USDC on Base (x402). No accounts, no API keys. 174 routes: crypto/equity data, onchain reads, DNS/email/security intel, geo/weather, x402 payment diagnostics, dev utilities and more.","url":"https://anibalb.duckdns.org/x402/lang-detect?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","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","properties":{}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"iso":"en","language":"English","confidence":"high"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_W2w8uiMMEpZOmED80Hd7s","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","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 given text input, returning the ISO language code, language name, and confidence level","exampleAgentPrompt":"What language is this text written in: 'Bonjour, comment allez-vous?' — give me the ISO code and how confident you are.","exampleUseCases":[{"title":"Routing multilingual user messages","prompt":"I'm getting messages from users and I need to know what language each one is in before routing them to the right support team — can you detect the language of this message: 'Necesito ayuda con mi cuenta'?"},{"title":"Pre-translation language check","prompt":"Before I send this text to the translation API, can you detect what language it's in and give me the ISO code? The text is: 'Ich brauche Hilfe mit meiner Bestellung.'"},{"title":"Content moderation language tagging","prompt":"I have a user-submitted comment and need to tag it with its language before storing it — what language is 'Questo prodotto è fantastico!' and how confident are you?"}],"resultDescription":"Returns a JSON object with three fields: 'iso' (ISO 639-1 language code, e.g. 'en'), 'language' (full English name of the detected language, e.g. 'English'), and 'confidence' (string indicator such as 'high', 'medium', or 'low').","failureModes":["Missing or empty 'text' query parameter returns an error or ambiguous result","Very short text (single word or character) may yield low confidence or incorrect detection","Mixed-language text may return only the dominant language","Rare or constructed languages may not be recognized","Network or payment failure returns HTTP 402 if USDC payment is not attached correctly"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call language detection with no account setup, returning ISO code plus a confidence level. It is ideal for agents that occasionally need language identification without committing to a monthly subscription API, especially when operating within an x402 payment-enabled workflow on Base.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:41:58.113Z","isFirstParty":false,"canonicalSlug":"synapse-language-detection-api-803a2c67"}