# ScrapFly Text Translation API

> ScrapFly Text Translation API is a paid API for AI agents from scrapfly.vercel.app, paid per call via x402, $0.05/call, status unknown (last checked 2026-10-24).

Translates text from one language to another, with optional source language detection

## Facts

- Endpoint: POST https://scrapfly.vercel.app/api/translate?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-24
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/scrapfly-text-translation-api-33201c0c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_26lorAqcag6XsZ-xemZRt

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 scrapfly-text-translation-api-33201c0c -d '<json body>'
```

Example prompt: Translate this text into Spanish: 'The weather today is sunny and warm, perfect for a walk in the park.' I don't know the source language, so auto-detect it.

## When to prefer this

Use this endpoint when you need fast, per-request text translation with automatic source language detection and pay-per-use pricing via USDC on Base. Prefer it when integrating translation into an agent workflow that already uses x402 micropayments, or when you want simple REST-based translation without managing API keys for large translation platforms.

## Known failure modes

- Unsupported language code returns a failure or empty response
- Missing required 'text' or 'target' fields results in a validation error
- Very long text may exceed limits and return a partial or failed response
- Ambiguous or malformed source language hint may cause incorrect source detection
- Network timeout or service unavailability returns a non-200 status

## How this service works

69 endpoints for data, content generation, and web scraping. Pay per request via x402 on Base chain.

## Output

Returns a JSON object with a success boolean and a data object containing the translated text result. On success, the data field holds the translated content in the target language.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "text",
  "target"
 ],
 "properties": {
  "text": {
   "type": "string",
   "description": "text"
  },
  "source": {
   "type": "string",
   "description": "source"
  },
  "target": {
   "type": "string",
   "description": "target"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "success"
 ],
 "properties": {
  "data": {
   "type": "object"
  },
  "success": {
   "type": "boolean"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/scrapfly-text-translation-api-33201c0c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from scrapfly.vercel.app](https://www.zero.xyz/host/scrapfly.vercel.app/llms.txt)
