Set up the Maps JavaScript API

This document describes the steps needed to start using the Maps JavaScript API.

Ensure that you meet the prerequisites.

Enable the API in your Google Cloud project.

Configure an API key to make an authenticated API request.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026-03-16 UTC.