How to Create Google maps API key Updated | August 2023

preview_player
Показать описание
To create a Google Maps API key and restrict its usage, follow these steps:

Create a new project: Click on the "Select a project" dropdown at the top of the page and click on "New Project." Give your project a name and click "Create."

Enable the Maps API: In the Cloud Console, click on the "APIs & Services" "Dashboard" in the left-hand menu. Then, click on the "+ ENABLE APIS AND SERVICES" button at the top and search for "Maps JavaScript API." Click on it and then click "Enable."

Create an API key: After enabling the Maps JavaScript API, click on "APIs & Services" "Credentials" in the left-hand menu. Then, click on the "+ CREATE CREDENTIALS" button and select "API key." Your API key will be generated.

Restrict the API key: To restrict the usage of the API key, click on the "Edit" button next to the API key you just created. Under "Key restriction," choose the appropriate restriction option:

HTTP referrers (web sites): Restrict the API key to work only with specific web domains or IP addresses.
IP addresses: Restrict the API key to work only with specific server IP addresses.
Android apps: Restrict the API key to work only with specific Android package names
iOS apps: Restrict the API key to work only with specific iOS bundle identifiers
Save your changes: After setting the restrictions, click on the "Save" button to apply the changes to your API key.

Use the API key: Copy the generated API key and use it in your Google Maps API calls in your application.

Remember to keep your API key secure and not expose it publicly in your code or version control system. Restricting the API key helps protect it from unauthorized usage and ensures it is used only within your specified criteria.
Рекомендации по теме
Комментарии
Автор

Which payment method you're using I mean which bank card you are using.. I am facing big problem can you help me in this regard thanks

gearspoint
Автор

Really helpful. Thanks for this video. I was stuck here, and you solved my problem. Thanks for this video.

hilalahmad
Автор

Thanks for your tutorial!
I wanted to ask you if you could tell me what changes from a Google Maps Platform account to a Google Cloud Platform account? Maybe free credit (€200 and €300)?

Oxigene
Автор

Will money be deducted after filling card details?

debusisodia
Автор

It doesn't work if I don't leave my credit card, without a card it only works in development mode

infoguiahn
Автор

How Can i skip the Billing part.i don't have any credit card

urcadelima
Автор

Is it means i have 200$ every month? .

TheproWebhsm