APIs / Search engines / Google Translate
1 credit per call1 endpointChecked working 6 Dec 2026
Google Translate API
Google Translate API that translates text between languages and returns JSON, with source=auto allowed. One endpoint, 1 credit per call.
{
"translated_text": "Hallo"
}Playground
Run this API
curl "https://api.perceptlayer.com/v1/google-translate/translate?text=Hello&source=en&target=de" \
-H "X-API-Key: $API_KEY"Google Translate · 1 endpoint
Endpoints
Every endpoint takes the same key. Open one for its parameters, the fields it returns and an example request.
| Endpoint | Required parameters | Returns | Cost |
|---|---|---|---|
GET/v1/google-translate/translate | sourcetexttarget | translated_text | 1 credit |
Overview
About the Google Translate API
What you can get
The Google Translate API translates text through one endpoint, translate, and returns JSON.
- Text:
textis the text to translate. - Source language:
sourcetakes a language code, orauto. - Target language:
targettakes the language code to translate into.
Both source and target accept a long list of language codes; the endpoint's page lists every allowed value.
How a call works
One call: GET /v1/google-translate/translate?source=auto&target=de&text=Hello with your key in the X-API-Key header. Translate into several languages by calling it once per target. Every successful call costs 1 credit; failed calls cost nothing.
More search engines APIs
Use cases
Translate product listings or reviews collected from other APIs
Use the Google Translate API to translate product listings or reviews collected from other APIsTranslate user-submitted text with `source=auto`
Use the Google Translate API to translate user-submitted text with `source=auto`Localise short interface strings during development
Use the Google Translate API to localise short interface strings during developmentGive a multilingual AI agent a translation tool
Use the Google Translate API to give a multilingual AI agent a translation toolFAQ
Questions
Do I need a Google Cloud project or API key?
No. You call this Google Translate API with your Perceptlayer key in the `X-API-Key` header, and the same key works for every API in the catalogue.
How much does the Google Translate API cost?
Each successful call costs one credit. New accounts get free credits to start, and credit packs bring the price down as you scale.
What format are responses in?
The endpoint returns JSON, with no HTML parsing on your side.
Is this the official Google Translate API?
No. Perceptlayer is an independent service and is not affiliated with Google Translate. It returns Google Translate data as JSON with a Perceptlayer key, so there is no Google Translate developer account, app review or partner approval to get first. It only reads data: if Google Translate has an official API and you need to act on your own Google Translate account, such as posting, managing orders or reading private data, use that one.
Should I build a Google Translate scraper instead?
You can, but a Google Translate scraper is code you maintain: page changes break it, requests get blocked, and Google Translate's terms govern how you collect data. The Google Translate API gives you 1 endpoint of named JSON fields for 1 credit per successful call, and failed calls cost nothing. A scraper makes sense only for data these endpoints don't return, so check the response in the playground on this page first.
Try the Google Translate API with 100 free credits
No credit card. Failed calls are never billed.