# African Languages Translation API
Translate to/from **Chichewa, Yao, Tumbuka, Swahili** — African languages spoken by **200M+ people** with near-zero digital API coverage.
**Pricing:** $0.01/request via RapidAPI
## Supported Languages
| Language | Code | Region | Speakers |
|---------------|--------|---------------------------------------------|------------|
| **Chichewa** | `ny` | Malawi, Zambia, Mozambique, Zimbabwe | 12M+ |
| **Yao** | `yao` | Malawi, Mozambique, Tanzania | 3M+ |
| **Tumbuka** | `tum` | Malawi, Zambia, Tanzania | 2M+ |
| **Swahili** | `sw` | Tanzania, Kenya, Uganda, Rwanda, DRC, etc. | 200M+ |
## API Endpoints
### POST /translate
Translate text between English and an African language.
```json
{
"text": "hello",
"source": "english",
"target": "chichewa"
}
```
Response:
```json
{
"success": true,
"translated_text": "moni",
"source_language": "english",
"target_language": "chichewa",
"confidence": "dictionary_match",
"cost": "$0.01"
}
```
### POST /translate/detect
Detect which African language a text is in.
```json
{
"text": "zikomo kwambiri"
}
```
### GET /translate/languages
List all supported languages with metadata.
### GET /health
API health check.
## Headers
| Header | Required | Description |
|----------------------|----------|---------------------------------------|
| `X-RapidAPI-Key` | Yes | Your RapidAPI subscription key |
| `Content-Type` | Yes | `application/json` |
## Deploy to Render (free — no credit card)
### Option A: Deploy via Render Blueprint (recommended)
Push to GitHub, then one click:
1. Create a GitHub repo, push this project
2. Go to render.com → **New Blueprint**
3. Connect your GitHub repo — Render reads `render.yaml` automatically
4. Click **Apply** — deployed in ~2 minutes
### Option B: Manu …