Stay organized with collections
Save and categorize content based on your preferences.
This document describes the prerequisites for using the Maps JavaScript API, how to enable it,
and then how to make an authenticated request.
checklist
Ensure that you meet the prerequisites.
settings
Enable the API in your Google Cloud project.
verified_user
Configure an API key to make an authenticated API 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 Maps JavaScript API.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-12 UTC."],[[["\u003cp\u003eGoogle Maps Platform requires an API key for authentication and billing purposes, associating your project with a unique alphanumeric string.\u003c/p\u003e\n"],["\u003cp\u003eYou can create and manage API keys via the Google Cloud Console or the Cloud SDK, enabling access and specifying restrictions for security.\u003c/p\u003e\n"],["\u003cp\u003eRestricting API keys is highly recommended, limiting usage to specific applications and websites for enhanced security.\u003c/p\u003e\n"],["\u003cp\u003eInclude your API key in every Maps JavaScript API request, replacing \u003ccode\u003eYOUR_API_KEY\u003c/code\u003e in the provided script snippet.\u003c/p\u003e\n"]]],["Google Maps Platform requires API keys for authentication and billing. To create an API key, navigate to the Google Maps Platform Credentials page and select \"Create credentials \\\u003e API key.\" Restricting API keys to specific applications and APIs is strongly recommended for security and to prevent financial abuse. This can be done via the console or Cloud SDK by setting application and API restrictions. Finally, include the API key in every Maps JavaScript API request.\n"],null,[]]