# x402 Arabic API – i18n JSON Localization

> x402 Arabic API – i18n JSON Localization is a paid API for AI agents from arabic-x402-api-base.motaz-crypto.workers.dev, paid per call via x402, $0.02/call, status unknown (last checked 2026-11-02).

Localizes an i18n JSON resource object into Arabic (Gulf-dialect-aware MSA), preserving keys, placeholders, HTML tags, 0x addresses, numbers, URLs, and code verbatim, paid per request via x402 (USDC).

## Facts

- Endpoint: POST https://arabic-x402-api-base.motaz-crypto.workers.dev/localize-ar-json?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-arabic-api-i18n-json-localization-14cb81de
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_YptIH9wpVJu38CZ7rf5on

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability x402-arabic-api-i18n-json-localization-14cb81de -d '<json body>'
```

Example prompt: Take my English i18n JSON — like {"cta": "Connect Wallet", "fee": "Fee: %s USDC", "greeting": "Hello, {name}!"} — and localize all the string values into Gulf-dialect Arabic, keeping the keys, placeholders, and HTML tags exactly as they are.

## When to prefer this

Choose this endpoint when you need bulk Arabic localization of structured i18n JSON (not a single string), especially for Gulf or Saudi audiences, with guaranteed preservation of HTML markup, ICU plural patterns, interpolation placeholders, 0x addresses, and numeric format strings. Prefer it over generic translation APIs when your payload is already structured as a locale file and you need the keys and non-string values untouched. The x402 micropayment model ($0.02/call) makes it cost-effective for per-deployment or per-build localization pipelines.

## Known failure modes

- Input JSON exceeds 200 string values or 8000 characters — request rejected
- Nesting depth exceeds 8 levels — may cause unexpected results
- Missing or invalid x402 payment header — 402 Payment Required returned
- Reuse of a payment header for a different request within 1 hour — 409 Conflict returned
- Non-string values in JSON that cannot be localized are passed through unchanged
- Cloudflare Workers AI model unavailability — upstream 5xx error

## How this service works

Arabic-native, Gulf-dialect aware Arabic API for agents: Arabic<->English translation (optional Web3 glossary), Arabic summarization, Saudi/Gulf dialect<->MSA conversion and i18n JSON localization. Keeps 0x addresses, numbers, URLs and code verbatim. Paid per request with x402 (USDC). Lost response: resend the IDENTICAL payment header to the same endpoint within 1 hour to get the same stored response (200, no second charge); any other payment reuse returns 409.

## Output

Returns a JSON object containing: the localized i18n JSON with Arabic string values (keys unchanged), the AI model used, total string count, number of strings successfully localized, and a checks object showing retry count, any keys that fell back to the original, and the fallback ratio.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "json": {
   "type": "object",
   "description": "i18n resource object (nested allowed, depth <= 8). Max 200 string values and 8000 characters across all strings. Keys are never changed; non-string values pass through.",
   "additionalProperties": true
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "json": {
   "cta": "انقر على <b>ربط المحفظة</b>",
   "fee": "الرسوم: %s USDC",
   "items": "{count, plural, one {# عنصر} other {# عناصر}}",
   "greeting": "مرحبًا، {name}!"
  },
  "model": "@cf/qwen/qwen3-30b-a3b-fp8",
  "total": 4,
  "checks": {
   "retried": 0,
   "fallbackKeys": [],
   "fallbackRatio": 0
  },
  "localized": 4
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-arabic-api-i18n-json-localization-14cb81de/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from arabic-x402-api-base.motaz-crypto.workers.dev](https://www.zero.xyz/host/arabic-x402-api-base.motaz-crypto.workers.dev/llms.txt)
