Generate Google API Key

Setting up API keys for Google Translate

This step-by-step tutorial will guide you through generating a Google Translate API Key.

    1. Create a New Project
    2. Go to API Services and enable Google Cloud Translation API
    3. Create a new API key
    4. Restrict API to particular website
    5. Restrict usage to control costs – Important!
    6. Copy API key
    7. Paste into TranslatePress Settings

Watch this short video for a quick tutorial:

In order to create a Google Translate API Key, you need a paid account. Through their terms and services, Google doesn’t allow for non-paid usage of their Translation API.

More information is available at:

To create your application’s API key simply follow the steps below:

Go to the Cloud Platform Console.

1. Create a New Project in Google Cloud console

From the top bar click to “Select a project”, then click the “New Project” button. Enter your project name and click “Create”.

Create a new project in Google Cloud console

2. Enable Google Cloud Translation API

With the new translation project selected, go to the hamburger menu to the left and visit API & Services.

From here you need to enable Google Translate API

Enable APIs and services in Google Cloud Platform

Search for Google Cloud Translation API, select it and click Enable.

How to search for google translate api in Google cloud platform

enable google clould translation api

3. Create a new Google Translate API Key

From the credentials interface create a new API Key.

create new google translate api key

4. Restrict your API Key to a particular website

restrict google api key to a particular website

In the Google Dashboard, use the HTTP Referrer provided in the description of the Google Translate API Key field in Settings -> TranslatePress -> Automatic Translation tab, as shown in the following screenshot.

TranslatePress HTTP Referrer for Google Translate API

5. Restrict Usage of Translation API

In order to have control over the cost of Google Translate API, it is highly recommended to set quotas to limit the usage.

Go to Google API’s & Services → Dashboard → Cloud Translation API → Quotas and set up quotas as shown in the screenshot below.

TranslatePress Google cloud translation quotas

6. Copy your API Key for use in TranslatePress

Google API keys credentials

7. Enable Automatic Translation and add Google Translate API Key in TranslatePress

TranslatePress lets you automatically translate your WordPress site by using Google Translate.

For this, in the WordPress dashboard, navigate to Settings -> TranslatePress , and select the Automatic Translation tab. From here make sure to Enable Automatic Translation, by setting it to Yes. Then, under Translation Engine, select Google Translate v2.

This will uncover the Google Translate API key field. Place the API key in this field and Save Changes.

Add Google API Key in TranslatePress Automatic Translation settings

That’s it! You can now simply navigate to the front-end of your WordPress powered website and browse it in the language of your choice. You’ll notice the content has been automatically translated.


Looking to go multilingual?

Get full access to TranslatePress and join 200.000+ website owners that grow their multilingual traffic.

Unlock PREMIUM Features

Or download FREE version