# Google Translate API

Translate text between 100+ languages using Google Translate.

- **Documentation:** [https://scrappa.co/docs/google-translate-api/google_translate_api](https://scrappa.co/docs/google-translate-api/google_translate_api)
- **API group:** Google Translate API
- **Endpoint:** `GET https://scrappa.co/api/google-translate`

## Authentication

Send your Scrappa API key in the `X-API-KEY` request header. Paid endpoints also support accountless x402 payments when called without an API key.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `text` | string | Yes | The text to translate |
| `source` | string | Yes | Source language code (e.g., "en", "de"), or "auto" to detect the input language |
| `target` | string | Yes | Target language code (e.g., "en", "de") |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/google-translate?text=Hello&source=en&target=de"
```

## Example response

```json
{
    "translated_text": "Hallo"
}
```

## More Scrappa resources

- [API documentation](https://scrappa.co/docs)
- [Full LLM-readable API reference](https://scrappa.co/llms-full.txt)
- [OpenAPI specification](https://scrappa.co/docs/api.json)
- [Pricing](https://scrappa.co/pricing)
