Set up the Places API (New)

  • Google Maps Platform products require API keys for authentication and billing purposes, linking your project and billing account to the API.

  • Before using the Places API, ensure you have a project with a billing account and the Places API enabled.

  • You can create and restrict API keys through the Google Cloud Console or the Cloud SDK.

  • Google strongly recommends restricting your API keys to enhance security by limiting usage to only necessary APIs for your application.

  • Include your API key with every Places API request, ensuring it is URL encoded and the request is made over HTTPS.

European Economic Area (EEA) developers

This document describes the prerequisites for using the Places API (New), how to enable it, and then how to make an authenticated request.

Prerequisites

This setup procedure requires that you have an existing Google Cloud Account and Google Cloud project with billing enabled. You should also be familiar with how you are charged for using the Places API (New).

  1. Review billing and cost for usage at Places API (New) Usage and Billing.
  2. Verify that you have a Google Cloud Account.

    Sign in to the Google Cloud console
  3. Verify that you have a Google Cloud project with billing enabled.

    Go to the Billing page
    1. Select your project to open the Billing page.
    2. On the Billing page:

      • If billing is already enabled for the selected project, and you only have a single billing account, then the Billing page opens.
      • If you have multiple billing accounts, select Go to linked billing account to see the details about the billing account associated with the project.
      • If a billing account exists but is not associated with the project, you are prompted to link a billing account with the project.
      • If no billing account exists, or you want to create a new billing a account, select Manage Billing Accounts to create a new billing account. For more information, see Create a new self-serve Cloud Billing account.