Translateer
A free Google Translate API backed by a real browser session.
Usage
Example Response
The response below matches the request shown above.
Loading
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| text | string | The text to translate. | [Required] |
| from | string | The language code of the source text. | auto |
| to | string | The language code of the target text. | zh-CN |
| audio | boolean |
If true, include audio data URLs under from.audio,
to.audio, and the nested dictionary objects when
available.
|
false |
Audio responses are returned asdata:audio/*;base64,...URLs, so enablingaudiocan make the JSON response much larger.
The language code is in ISO-639-1 format. See all available code listed here.
Response Fields
Paths use dot notation. Optional fields only appear when Google returns them for the current request.
Long text is translated in smaller chunks to avoid Google-side pagination. In that mode, the API returns the stitchedresultand, when stable across chunks,from.detectedLanguage, but does not merge audio or dictionary metadata across the full text.
| Path | Type | Meaning |
|---|---|---|
result |
string | The translated text. |
from |
object? | Source-side metadata. |
from.detectedLanguage |
string? | Detected source language when from=auto. |
from.didYouMean |
string? | Spelling correction suggested by Google. |
from.suggestions[] |
object[]? |
Autocomplete suggestions with text and
translation.
|
from.pronunciation |
string? | Pronunciation of the source text. |
from.audio |
string? | Source speaker audio when audio=true. |
from.dictionary |
object? | Source-side dictionary details when Google exposes them. |
from.dictionary.headword |
string? | Dictionary headword for the source text. |
from.dictionary.pronunciation |
string? | Pronunciation of the source dictionary headword. |
from.dictionary.audio |
string? |
Source dictionary audio when audio=true.
|
from.dictionary.examples[] |
string[]? | Example usages for the source dictionary headword. |
from.dictionary.definitions |
object? | Definitions grouped by part of speech. |
from.dictionary.synonyms |
object? | Standalone synonym groups grouped by part of speech. |
from.dictionary.synonyms.<partOfSpeech>[]
|
object[] |
Groups with optional labels[] and
words[].
|
from.dictionary.related[] |
string[]? | Related words from Google’s See also section. |
from.dictionary.definitions.<partOfSpeech>[]
|
object[] |
Entries with definition and optional
example, labels, and
synonyms.
|
from.dictionary.translations |
object? | Dictionary translations grouped by part of speech. |
from.dictionary.translations.<partOfSpeech>[]
|
object[] |
Entries with translation,
reversedTranslations, and
frequency.
|
to |
object? | Target-side metadata. |
to.pronunciation |
string? | Pronunciation of the translated text when Google returns it outside the dictionary card. |
to.audio |
string? | Translated speaker audio when audio=true. |
to.dictionary |
object? | Target-side dictionary details when Google exposes them. |
to.dictionary.headword |
string? | Dictionary headword for the translated text. |
to.dictionary.pronunciation |
string? | Pronunciation of the target dictionary headword. |
to.dictionary.audio |
string? | Target dictionary audio when audio=true. |
to.dictionary.examples[] |
string[]? | Example usages for the translated headword. |
to.dictionary.definitions |
object? | Definitions grouped by part of speech. |
to.dictionary.synonyms |
object? | Standalone synonym groups grouped by part of speech. |
to.dictionary.synonyms.<partOfSpeech>[] |
object[] |
Groups with optional labels[] and
words[].
|
to.dictionary.related[] |
string[]? | Related words from Google’s See also section. |
to.dictionary.definitions.<partOfSpeech>[]
|
object[] |
Entries with definition and optional
example, labels, and
synonyms.
|
to.dictionary.translations |
object? | Dictionary translations grouped by part of speech. |
to.dictionary.translations.<partOfSpeech>[]
|
object[] |
Entries with translation,
reversedTranslations, and
frequency.
|
Disclaimer
- This service is not provided by the official Google Translate. It is provided as a service to the public for educational purposes only.
- This service has no guarantee that the translation will be accurate. The service is not responsible for any errors or omissions. The service is provided as is and without warranty.
- You can also self-host this service. See the source code below.
Source Code
GitHub: songkeys/translateer
Sponsor
If you find this project useful, please consider sponsoring me. It will be used to maintain the service and improve the quality.