The Maps Embed API quickstart  |  Google for Developers (2024)

New basemap styling is coming soon to Google Maps Platform. This update to map styling includes a new default color palette, modernized pins, and improvements to map experiences and usability. All map styles will be automatically updated in March 2025. For more information on availability and how to opt in earlier, see New map style for Google Maps Platform.

  • Home
  • Products
  • Google Maps Platform
  • Documentation
  • Web
  • Maps Embed API
  • Guides
Stay organized with collections Save and categorize content based on your preferences.

Place an interactive map, or Street View panorama on your web page with a simpleHTTP request—no JavaScript required.

Costs

All Maps Embed API requests are available at no charge withunlimited usage. However, all requests still require a valid Google Cloud API key. For more information, see Usage and Billing.

Before you begin

To create an embedded map on your web page, complete the required setup steps byclicking through the following tabs:

Step 1

Console

  1. In the Google Cloud Console, on the project selector page, click Create Project to begin creating a new Cloud project.

    Go to the project selector page

  2. Make sure that billing is enabled for your Cloud project. Confirm that billing is enabled for your project.

    Google Cloud offers a $0.00 charge trial. The trial expires at either end of 90 days or after the account has accrued $300 worth of charges, whichever comes first. Cancel anytime. Google Maps Platform features a recurring $200 monthly credit. For more information, see Billing account credits and Billing.

Cloud SDK

gcloud projects create "PROJECT"

Read more about the Google Cloud SDK , Cloud SDK installation , and the following commands:

  • gcloud projects create

Step 2

To use Google Maps Platform, you must enable the APIs or SDKs you plan to use with your project.

Console

Enable the Maps Embed API

Cloud SDK

gcloud services enable \ --project "PROJECT" \ "maps-embed-backend.googleapis.com"

Read more about the Google Cloud SDK , Cloud SDK installation , and the following commands:

  • gcloud services enable
  • gcloud services disable

Step 3

This step only goes through the API Key creation process. If you use your API Key in production, we strongly recommend that you restrict your API key. You can find more information in the product-specific Using API Keys page.

The API key is a unique identifier that authenticates requests associated with your project for usage and billing purposes. You must have at least one API key associated with your project.

To create an API key:

Console

  1. Go to the Google Maps Platform > Credentials page.

    Go to the Credentials page

  2. On the Credentials page, click Create credentials > API key.
    The API key created dialog displays your newly created API key.
  3. Click Close.
    The new API key is listed on the Credentials page under API keys.
    (Remember to restrict the API key before using it in production.)

Cloud SDK

gcloud alpha services api-keys create \ --project "PROJECT" \ --display-name "DISPLAY_NAME"

Read more about the Google Cloud SDK , Cloud SDK installation , and the following commands:

  • gcloud alpha services api-keys create

Generating an iframe

Click through the following options and add a location and API key to generatean iframe for your webpage. For additional parameters and options, see Embedding a map.

Testing your iframe

To see your iframe in an HTML browser window:

  1. Open your default text editor. You should have text editors such asTextEdit or Microsoft Windows Notepad installed on your device by default.
  2. Create an HTML file and name it index.html.
  3. Add the following code with the iframe you generated above:

    <html> <!-- Replace this code comment with your iframe. --></html>
  4. Save your index.html HTML file.

  5. Load the HTML file in a web browser by dragging it from your desktop ontoyour browser; alternatively, double-clicking the file works on mostoperating systems.

Congratulations! You just set up and built a map using theMaps Embed API.

Cleaning up

You can delete your Google Cloud project to stop billing for all the resources used within that project.

  1. In the Google Cloud Console, go to the Manage resources page:

    Go to the Manage resources page

  2. If the project that you plan to delete is attached to an organization, select and expand the organization list at the top of the page.
  3. In the project list, select the project that you want to delete and click Delete.
  4. In the dialog, type the project ID and click Shut down to delete the project.

Next steps

  • Start developing with the Maps Embed API by setting up yourGoogle Cloud project:

    Set up in Cloud Console

  • For a list of additional parameters and options you can add in your iframe:

    Embedding a map

  • Extend your Maps project with the Javascript API:

    Maps Javascript API

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 2024-09-12 UTC.

The Maps Embed API quickstart  |  Google for Developers (2024)

FAQs

What is the maps embed API? ›

The Maps Embed API lets you display Street View images as interactive panoramas from designated locations throughout its coverage area. User contributed Photospheres, and Street View special collections are also available. Each Street View panorama provides a full 360-degree view from a single location.

Is the maps embed API free? ›

Note that there is no way to use only one source of Street View imagery over the other. Learn more about our Street view imagery privacy policy. Note: All Maps Embed API requests are available at no charge with unlimited usage.

How to get Google Map API key for developer? ›

Create API keys
  1. Go to the Google Maps Platform > Credentials page. Go to the Credentials page.
  2. On the Credentials page, click Create credentials > API key. The API key created dialog displays your newly created API key.
  3. Click Close. The new API key is listed on the Credentials page under API keys.

Is Google Maps free for developers? ›

Note that the Maps Embed API, Maps SDK for Android, and Maps SDK for iOS currently have no usage limits and are at no charge (usage of the API or SDKs is not applied against your $200 monthly credit).

What is map API used for? ›

The Maps JavaScript API is a client-side web API that lets you create maps to show locations anywhere in the world, add your own custom graphics, animations, and interactive custom data layers, and create location-aware features by using the Places API in the Maps JavaScript API.

How much does the Google Maps API cost? ›

Latest Google Maps API Prices and Plans
ProductDetailPricing (per 1000/request)
Static Maps1
Maps Static API$2
Dynamic Maps1
Maps Embed API Maps SDK for Android Maps SDK for iOS Maps JavaScript APIUnlimited $7 $7 $7
6 more rows

Can you use Google Maps API without paying? ›

Pricing for the Maps Embed API

All Maps Embed API requests are available at no charge with unlimited usage.

What does "embed a map" mean? ›

Embedding a Google Map into a personal website or blog is a simple way to help visitors navigate an area or easily find directions to a location. Google Maps has a "Share or embed map" feature that provides users with the map's HTML code so that they can insert it into their website's code.

Is there a free map API other than Google? ›

10 Free Google Map Alternatives
  • Mapbox. This free API has made a name for itself in the mapping world with its extensive customization options, like live-updating maps and 3D rendering capabilities. ...
  • Apple Maps. ...
  • Bing Maps. ...
  • HERE Maps. ...
  • Open Street Map. ...
  • MapQuest. ...
  • TomTom. ...
  • OpenLayers.
Jan 19, 2023

Is Google map API key free or paid? ›

API Keys is free of charge. If you use Cloud Endpoints to manage your API, you might incur charges at high traffic volumes.

What is an example of an API key? ›

The API key string is an encrypted string, for example, AIzaSyDaGmWKa4JsXZ-HjGw7ISLn_3namBGewQe .

How do I create an API key for Google developer? ›

To create your application's API key:
  1. Go to the API Console.
  2. From the projects list, select a project or create a new one.
  3. If the APIs & services page isn't already open, open the left side menu and select APIs & services.
  4. On the left, choose Credentials.
  5. Click Create credentials and then select API key.

How many Google Maps API requests are free? ›

Requests up to 25,000 per day require an API key. Requests exceeding 25,000 requests per day require an API key and a digital signature.

What is Google Maps embed API? ›

Place an interactive map or Street View panorama on your site with a simple HTTP request using the Maps Embed API. Set the Embed API URL as the src attribute of an iframe to easily embed the map in your webpage or blog.

How much does Google developer cost? ›

How to create a Google Play Developer account to submit your Android app. A Google Play Developer account is required to submit your app, along with a $25 one-time registration fee.

Why do I need Google Maps API? ›

The Google Maps API is a powerful tool that allows developers to incorporate various mapping and location-based features into their applications and websites. It provides access to detailed maps, geocoding services, directions, and satellite imagery, among other functionalities.

What is the difference between maps Static API and maps Embed API? ›

Static Street View API – Like the Static API, the street view API allows you to embed a Google Street View as a regular image without requiring JavaScript. Maps Embed API – The Embed API allows you to embed Maps and Street views as an iFrame, and unlike static Maps allows for unlimited volume at no cost.

What is API mapping? ›

API Data Mapping refers to the process of linking different target fields and data structures from different API endpoints to create an effective data integration plan. API, or Application Programming Interface, acts as a contract between two software applications.

Top Articles
i can not get Listings eligible to send offers
540 Credit Score: Is 540 a good credit score? - Upstart Learn
Jordanbush Only Fans
Kem Minnick Playboy
Metra Union Pacific West Schedule
Ups Dropoff Location Near Me
Lifewitceee
Pinellas County Jail Mugshots 2023
Craigslist Vans
Rainbird Wiring Diagram
Gore Videos Uncensored
craigslist: south coast jobs, apartments, for sale, services, community, and events
Lenscrafters Westchester Mall
Ribbit Woodbine
Graveguard Set Bloodborne
Locate Td Bank Near Me
Planets Visible Tonight Virginia
Alaska Bücher in der richtigen Reihenfolge
Cranberry sauce, canned, sweetened, 1 slice (1/2" thick, approx 8 slices per can) - Health Encyclopedia
‘Accused: Guilty Or Innocent?’: A&E Delivering Up-Close Look At Lives Of Those Accused Of Brutal Crimes
Where does insurance expense go in accounting?
Jc Post News
Nj State Police Private Detective Unit
Procore Championship 2024 - PGA TOUR Golf Leaderboard | ESPN
Simpsons Tapped Out Road To Riches
使用 RHEL 8 时的注意事项 | Red Hat Product Documentation
Leccion 4 Lesson Test
Unforeseen Drama: The Tower of Terror’s Mysterious Closure at Walt Disney World
Is Windbound Multiplayer
Doublelist Paducah Ky
Apartments / Housing For Rent near Lake Placid, FL - craigslist
University Of Michigan Paging System
Olivia Maeday
15 Primewire Alternatives for Viewing Free Streams (2024)
The Creator Showtimes Near Baxter Avenue Theatres
Till The End Of The Moon Ep 13 Eng Sub
How to Watch the X Trilogy Starring Mia Goth in Chronological Order
Texas Baseball Officially Releases 2023 Schedule
New Gold Lee
Henry County Illuminate
How are you feeling? Vocabulary & expressions to answer this common question!
Ksu Sturgis Library
2023 Fantasy Football Draft Guide: Rankings, cheat sheets and analysis
Kutty Movie Net
Lamont Mortuary Globe Az
Rocky Bfb Asset
Blackwolf Run Pro Shop
Jaefeetz
Unit 4 + 2 - Concrete and Clay: The Complete Recordings 1964-1969 - Album Review
Predator revo radial owners
Bunbrat
Dr Seuss Star Bellied Sneetches Pdf
Latest Posts
Article information

Author: Delena Feil

Last Updated:

Views: 5321

Rating: 4.4 / 5 (65 voted)

Reviews: 80% of readers found this page helpful

Author information

Name: Delena Feil

Birthday: 1998-08-29

Address: 747 Lubowitz Run, Sidmouth, HI 90646-5543

Phone: +99513241752844

Job: Design Supervisor

Hobby: Digital arts, Lacemaking, Air sports, Running, Scouting, Shooting, Puzzles

Introduction: My name is Delena Feil, I am a clean, splendid, calm, fancy, jolly, bright, faithful person who loves writing and wants to share my knowledge and understanding with you.