Get a key for Places SDK for Work

For customers with a previous Google Maps APIs for Work or Google Maps API for Business license, the Places SDK is purchased as part of the Places SDK for Work. This section of the documentation describes the setup for that API.

This page is only for customers with a previous Maps APIs for Work or Maps API for Business license. This page is not applicable to customers with the new Google Maps APIs Premium Plan, which became available in January 2016.

The Places SDK for Work uses an API key to identify your application. An API key is not the same as the client ID used with the Maps JavaScript API or other Google Maps APIs for Work web services.

Including a key in your request allows you to monitor your application's API usage in the Google Cloud Platform Console, enables per-key instead of per-IP-address quota limits, and ensures that Google can contact you about your application if necessary. For more information, see Google Cloud Platform Console Help.

Get an API key

To get started using the Places SDK for Work, click the button below, which takes you to the Google Cloud Platform Console, guides you through the process, and activates the Places API automatically. Important: In the project drop-down menu, be sure to select the project created for you when you purchased the Places SDK for Work*.

Get a Key

Alternatively, follow these steps to get an API key for the Places SDK for Work:

  1. Go to the Google Cloud Platform Console.
  2. Select the project that was created for you when you signed up.
    The project name starts with Google Maps APIs for Business or Google Maps for Work or Google Maps.
  3. Click Continue to Enable the API.
  4. On the Credentials page, get an API key (and set the API key restrictions).
    Note: If you have an existing key with server restrictions, you may use that key.
  5. To prevent quota theft and secure your API key, see Using API Keys.

You can also look up an existing key in the Google Cloud Platform Console.

For more information on using the Google Cloud Platform Console, see Google Cloud Platform Console Help.

Use your key

Your key must be passed with each request as the value of a key parameter.

https://maps.googleapis.com/maps/api/place/nearbysearch/json
  ?location=-33.8670522,151.1957362
  &radius=500
  &types=food
  &name=harbour
  &key=YOUR_API_KEY

Requests made without a key will fail.

Limit IP addresses

To prevent other applications from using your key and consuming your quota, you can limit the IP addresses that can use your API key to send requests:

  1. Go to the Google Cloud Platform Console.
  2. Select the project that was created for you when you signed up.
  3. From the list of API keys, select the key you're using.
  4. In the Restrictions section, select IP addresses (web servers, cron jobs, etc.).
  5. Under Accept requests from these server IP addresses, enter the IP addresses from which your key is to be accepted, one per line. You may also enter a subnet using CIDR notation (e.g. 192.168.0.0/22).