{"uid":"cap_Tg0tJkQoyusnJ5ca_tqt1","slug":"arabic-pipeline-api-arabic-text-search-5871d850","name":"Arabic Pipeline API – Arabic Text Search","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/search?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"mode":{"enum":["phrase","words","fuzzy"],"type":"string"},"text":{"type":"string","description":"The text to search."},"query":{"type":"string","description":"What to look for."},"max_results":{"type":"integer","maximum":100,"minimum":1},"max_distance":{"type":"integer","maximum":2,"minimum":0},"context_chars":{"type":"integer","maximum":200,"minimum":0}}},"responseSchema":{"type":"json","example":{"mode":"words","count":1,"matches":[{"end":17,"text":"فَاطِمَةُ","score":1,"start":8,"snippet":"قَالَتْ فَاطِمَةُ: مرحبا بالعالم"}],"cost_usd":0.002,"endpoint":"POST /text/search","total_matches":1}},"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_4MQBpSPVjFc3sNlLpMOKd","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":"Search Arabic text for a query using phrase, word, or fuzzy matching, returning matched spans with surrounding context","exampleAgentPrompt":"Search this Arabic paragraph for the word 'فَاطِمَةُ' using words mode, return up to 10 results with 50 characters of context on each side: قَالَتْ فَاطِمَةُ: مرحبا بالعالم","exampleUseCases":[{"title":"Quranic term lookup in passage","prompt":"I have a block of Arabic Quranic text and I need to find every place the word 'رَحْمَة' appears — use words mode, give me up to 20 results and 100 characters of context around each match."},{"title":"Fuzzy name search in Arabic document","prompt":"Search this Arabic document for the name 'محمد' using fuzzy mode with a max edit distance of 1, so I catch spelling variants — return up to 50 matches with 80 characters of surrounding context."},{"title":"Exact phrase detection in Arabic news","prompt":"Check this Arabic news article for the exact phrase 'الذكاء الاصطناعي' using phrase mode and tell me all the positions and snippets where it appears, up to 30 results."}],"resultDescription":"Returns a JSON object with the search mode used, total match count, cost in USD, and an array of match objects each containing the start and end character positions, the matched text, a relevance score, and a context snippet of surrounding characters.","failureModes":["Empty text or query returns zero matches with count 0","Unsupported mode value causes a 400 validation error","max_distance outside 0–2 or max_results outside 1–100 returns a 400 error","Payment not completed returns a 402 challenge before results are served","Very long texts may time out on the serverless worker edge runtime","Non-Arabic or mixed-script input may produce unexpected match positions"],"whenToPreferThis":"Choose this endpoint when you need to search within Arabic text with support for diacritics, approximate spelling (fuzzy), or word-boundary-aware matching. It is purpose-built for Arabic script and handles right-to-left nuances that generic text search ignores. Prefer it over generic substring search when working with classical Arabic, Quranic text, or Arabic names where spelling variation is expected. The x402 micropayment model means no API key setup is needed, making it ideal for one-off or low-volume agent tasks.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:34:18.698Z","isFirstParty":false,"canonicalSlug":"arabic-pipeline-api-arabic-text-search-5871d850"}