# Translate Text API

> Translate short text (<=500 chars) between language codes via MyMemory Translated. Free tier is 5,000 words/day shared across callers; no auth required.

Category: [Communication APIs](https://upapi.io/apis/communication) · Last updated 2026-06-12

## How to call it

- Endpoint: `POST https://api.upapi.io/translate-text.get`, key in the `X-Api-Key` header, JSON body.
- Cost: 1 weighted unit per call.
- Timeout: 15 seconds.
- Cache: identical requests are served from cache for 86400 seconds, unbilled.
- Try it without writing code: https://app.upapi.io/try/translate-text.get

```bash
curl -X POST https://api.upapi.io/translate-text.get \
  -H 'Content-Type: application/json' \
  -H 'x-api-key: YOUR_API_KEY' \
  -d '{ "text": "Hello, world", "source": "auto", "target": "en" }'
```

## Request parameters

- `text` (string, required) — Text to translate (<=500 chars)
- `source` (string) — Source language code (or 'auto')
- `target` (string, required) — Target language code (e.g. en, fr, de, ja, es)

## Response fields

- `text` (string, required)
- `matches` (array, required)
- `matches[].source` (string, required)
- `matches[].quality` (number, required)
- `matches[].translation` (string, required)
- `quality` (number, required)
- `fetchedAt` (string, required)
- `sourceLang` (string, required)
- `targetLang` (string, required)
- `translation` (string, required)

## Example request and response

The example response is generated from the published output schema: it shows the shape and field names, not values from a recorded call.

```json
{
  "text": "Hello, world",
  "source": "auto",
  "target": "en"
}
```

```json
{
  "text": "Hello, world",
  "matches": [
    {
      "source": "en",
      "quality": 1,
      "translation": "example"
    }
  ],
  "quality": 1,
  "fetchedAt": "example",
  "sourceLang": "example",
  "targetLang": "example",
  "translation": "example"
}
```

## Frequently asked questions

### How much does the Translate Text API cost per call?

Each call spends 1 weighted unit of your plan's monthly quota. Full pricing is at https://upapi.io/pricing.

### How do I authenticate to the Translate Text API?

Send your key in the X-Api-Key header. A free guest key is available without creating an account.

### Are Translate Text API responses cached?

Yes — identical requests are served from cache for 86400 seconds, and a cache hit is not billed.
