# dotrockets x402 Text & URL Translation API

> dotrockets x402 Text & URL Translation API is a paid API for AI agents from x402.dotrockets.com, paid per call via x402, $0.05/call, status unknown (last checked 2026-09-15).

Translates text or web page content into a target language, with optional source language specification, paying per call in USDC via x402.

## Facts

- Endpoint: GET https://x402.dotrockets.com/v1/translate
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/dotrockets-x402-text-url-translation-api-d99edf42
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_rLILkomlm6Ql27vQHeOFX

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 dotrockets-x402-text-url-translation-api-d99edf42
```

Example prompt: Translate the following text into German for me: 'The weather today is sunny and warm, perfect for a walk in the park.' Auto-detect the source language.

## When to prefer this

Choose this endpoint when your agent needs machine-payable, no-signup text or webpage translation billed per call in USDC on Base. Ideal for agentic pipelines that require pay-as-you-go translation without managing API keys, and supports both raw text and URL-based webpage translation in a single endpoint.

## Known failure modes

- Missing required 'to' parameter returns an error — target language code is mandatory
- Invalid or unsupported language code may return an error or unexpected output
- If neither 'text' nor 'url' is provided, the request may fail or return empty translation
- URL that is inaccessible or returns non-text content may fail to translate
- Auto-detection may mis-identify the source language for very short or ambiguous text snippets
- Payment failure via x402 returns 402 Payment Required before translation is attempted

## How this service works

Machine-payable APIs for AI agents over x402: cosmic live data, AI-visibility scoring, website screenshots, and scrape-to-markdown. Pay per call in USDC on Base. No API keys, no signup.

## Output

Returns a JSON object with the target language code ('to'), the detected or specified source language ('from'), and the translated text ('translation').

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "to"
 ],
 "properties": {
  "to": {
   "type": "string",
   "description": "Zielsprache, z.B. de, en, fr"
  },
  "url": {
   "type": "string",
   "description": "oder Webseite"
  },
  "from": {
   "type": "string",
   "description": "Quellsprache (Default auto)"
  },
  "text": {
   "type": "string",
   "description": "zu übersetzender Text"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "to": {
   "type": "string"
  },
  "from": {
   "type": "string"
  },
  "translation": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/dotrockets-x402-text-url-translation-api-d99edf42/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.dotrockets.com](https://www.zero.xyz/host/x402.dotrockets.com/llms.txt)
