{"uid":"cap_Kr3O3zE3CywEZ60-n-qhO","slug":"delx-language-script-detection-7c2f2a40","name":"Delx Language & Script Detection","description":"Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.","url":"https://commerce.delx.ai/api/v1/x402/language-script-detect?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","description":"UTF-8 text to encode, chunk, index, or analyze (caller-supplied only)."}}},"responseSchema":{"type":"json","example":{"schema":"delx/util-language-script-detect/v1","scripts":{"latin":{"count":9,"percent":64.2857},"japanese":{"count":5,"percent":35.7143}},"sample_chars":16,"dominant_script":"latin"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.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_I3FyhSWB4FVm8T-0RmV6_","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 and quantifies Unicode writing scripts (Latin, Japanese, Cyrillic, etc.) present in a UTF-8 text string, returning per-script character counts, percentages, and the dominant script.","exampleAgentPrompt":"Can you detect what writing scripts are used in this text and tell me which one is dominant: '私はJohn Smithです。Nice to meet you!'","exampleUseCases":[{"title":"Multilingual content pipeline routing","prompt":"Before I route this user-submitted comment to the right language team, can you check what scripts it contains and what percentage is Latin vs non-Latin? Here's the text: 'Bonjour! こんにちは, welcome to our platform.'"},{"title":"OCR output quality validation","prompt":"I just ran OCR on a scanned document and got this text — can you check the script distribution to make sure it's predominantly Latin before I pass it to my English parser? Text: 'Helllo W0rld this is a t3st d0cument.'"},{"title":"Detecting mixed-script spam or encoding issues","prompt":"Something looks off with this text blob from our database — can you analyze what writing scripts are in it and how they break down? I want to know if it's mostly Cyrillic or Latin. Text: 'Привет Hello Мир World привет'."}],"resultDescription":"Returns a JSON object with a schema identifier, a scripts map keyed by script name (each with character count and percentage), total sample character count, and the dominant script name. Example: {\"schema\":\"delx/util-language-script-detect/v1\",\"scripts\":{\"latin\":{\"count\":9,\"percent\":64.29},\"japanese\":{\"count\":5,\"percent\":35.71}},\"sample_chars\":16,\"dominant_script\":\"latin\"}.","failureModes":["Empty or missing text field returns an error or empty scripts map","Non-UTF-8 encoded input may produce unexpected script assignments","Very short strings may yield low-confidence or skewed percentage results","Payment failure (insufficient USDC balance via x402) results in 402 Payment Required response","Network timeout for unusually large text inputs"],"whenToPreferThis":"Choose this endpoint when you need lightweight, pay-per-call script detection without signup overhead, especially within an agent workflow that already uses x402/USDC micropayments. Ideal for classifying multilingual or mixed-script text at the character level before routing, filtering, or further NLP processing. Prefer it over full language-detection APIs when you specifically need Unicode script composition (Latin, Cyrillic, CJK, etc.) rather than language identity (English, Russian, Chinese).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:44.314Z","isFirstParty":false,"canonicalSlug":"delx-language-script-detection-7c2f2a40"}