Google Cloud Translation API
by cloud.google.com
Language and text
Added on February 9th, 2011
Checked and working on November 15th, 2026
Visit cloud.google.com →
What it does
Google Cloud Translation translates text between more than 100 languages and detects the language of a text. The Basic edition does simple text translation; the Advanced edition adds glossaries, document translation (PDF, Word) and custom models. Responses are JSON, and every request needs an API key from a Google Cloud project. Free only with billing turned on (a payment method is required), for the first 500,000 characters a month; above that, paid per character. It replaces the old Google Language API.
At a glance
- API key
- Needed, free · More APIs with a free key
- Pricing
- Free only with billing turned on (a payment method is required), for the first 500,000 characters a month; above that, paid per character.
- From the browser
- Yes (CORS)
- Formats
- JSON
- Interface
- REST
- Provider
- cloud.google.com
- Last checked
- Working on November 15th, 2026
More information: https://cloud.google.com/translate/docs
Compare: DeepL API vs Google Cloud Translation API
Is this your service? Show that it is listed
Put this badge on your website or in your README; it links to this page. About the badge
Example request
curl
curl -X POST 'https://translation.googleapis.com/language/translate/v2?key=YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"q": "hello", "target": "de"}'
JavaScript
const response = await fetch("https://translation.googleapis.com/language/translate/v2?key=YOUR_API_KEY", {
method: 'POST',
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({"q":"hello","target":"de"}),
});
const data = await response.json();
console.log(data);
Python
import requests
response = requests.post(
"https://translation.googleapis.com/language/translate/v2?key=YOUR_API_KEY",
headers={
"Content-Type": "application/json",
},
json={
"q": "hello",
"target": "de",
},
timeout=30,
)
print(response.json())
Replace YOUR_API_KEY with your own key. The JavaScript works in a web page as well as in Node.js 18 or newer.