{"uid":"cap_eepEZdM1zgRIqc17Sd1T4","slug":"arabic-language-detection-bf08e807","name":"Arabic Language Detection","description":"Nine micro-capabilities for Arabic-language work, sold per call over x402 in USDC on Base. No API key, no account, no subscription for the buyer: the first request returns a 402 payment challenge, the client pays it and retries. Text utilities are pure computation and cost nothing to serve.","url":"https://arabic-pipeline.arabic-pipeline.workers.dev/text/detect?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","description":"The text to measure."}}},"responseSchema":{"type":"json","example":{"cost_usd":0.002,"endpoint":"POST /text/detect","language":"ar","confidence":1,"script_mix":{"latin":0,"other":0,"arabic":12}}},"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_N3YmHhWQFUbRtxzCtlSz1","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 whether text is Arabic and reports language confidence and script mix breakdown","exampleAgentPrompt":"Can you check whether this text is written in Arabic and tell me how confident you are: 'مرحباً بالعالم'?","exampleUseCases":[{"title":"Filter Arabic user submissions","prompt":"I'm getting form submissions from users and need to know which ones are written in Arabic — can you check this text and tell me the language and how confident you are: 'هذا النص باللغة العربية'?"},{"title":"Multilingual content audit","prompt":"I have a batch of social media posts and I need to flag which ones mix Arabic and Latin scripts. Can you analyze this text and tell me the script breakdown: 'Arabic Pipeline هو خط أنابيب للغة العربية'?"},{"title":"Input language validation before translation","prompt":"Before I send this user message to a translation service, I want to confirm it's actually Arabic — can you detect the language and confidence for: 'كيف حالك اليوم؟'?"}],"resultDescription":"Returns a JSON object with the detected language code (e.g. 'ar'), a confidence score between 0 and 1, and a script_mix object showing character counts for arabic, latin, and other scripts, plus the endpoint name and cost in USD.","failureModes":["Empty or whitespace-only text may return low confidence or ambiguous results","Very short strings (1-2 characters) may produce unreliable confidence scores","Text that is purely numeric or punctuation may not detect Arabic","Payment challenge (HTTP 402) returned on first call if client has not yet paid via x402"],"whenToPreferThis":"Choose this endpoint when you need a fast, cheap per-call Arabic language detection with script-level detail (arabic vs latin vs other character counts) and no account or API key setup. Prefer it over general-purpose language detection APIs when Arabic-specific accuracy and micropayment economics (pay-per-call in USDC) suit your workflow.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:35:44.666Z","isFirstParty":false,"canonicalSlug":"arabic-language-detection-bf08e807"}