How To Get Google Maps API Key
Using Google maps on your website requires Google Maps Credentials. In this post, I will guide you on How To Get Google Maps API Key.
Steps To Get Google Maps API Key
1. Go to the Google Cloud Console.
2. Create a project (If you already have a project, skip this step)
Choose “Select a project“.
![Choose "Select a project"](https://i0.wp.com/www.magetop.com/blog/wp-content/uploads/2021/10/Choose-Select-a-project.png?resize=800%2C201&ssl=1)
Next, choose “NEW PROJECT“.
![Next, choose "NEW PROJECT"](https://i0.wp.com/www.magetop.com/blog/wp-content/uploads/2021/10/Next-choose-NEW-PROJECT.png?resize=800%2C520&ssl=1)
Enter your Project name and choose CREATE button.
![Enter your Project name and choose CREATE button](https://i0.wp.com/www.magetop.com/blog/wp-content/uploads/2021/10/Enter-your-Project-name-and-choose-CREATE-button.png?resize=800%2C402&ssl=1)
3. Add Maps JavaScript API and Places API from Library.
Choose Library.
![Choose Library](https://i0.wp.com/www.magetop.com/blog/wp-content/uploads/2021/10/Choose-Library.png?resize=800%2C303&ssl=1)
Find Maps JavaScript API, Places API and enable them.
![Find Maps JavaScript API, Places API and enable them](https://i0.wp.com/www.magetop.com/blog/wp-content/uploads/2021/10/Find-Maps-JavaScript-API-Places-API-and-enable-them.png?resize=800%2C304&ssl=1)
![Enable Maps JavaScript API](https://i0.wp.com/www.magetop.com/blog/wp-content/uploads/2021/10/Enable-Maps-JavaScript-API.png?resize=800%2C500&ssl=1)
![Enable Places API](https://i0.wp.com/www.magetop.com/blog/wp-content/uploads/2021/10/Enable-Places-API.png?resize=800%2C500&ssl=1)
4. Get Google Maps API Credentials
Choose Credentials.
![Choose Credentials](https://i0.wp.com/www.magetop.com/blog/wp-content/uploads/2021/10/Choose-Credentials.png?resize=800%2C289&ssl=1)
Next, select CREATE CREDENTIALS -> API key.
![Next, select CREATE CREDENTIALS -> API key](https://i0.wp.com/www.magetop.com/blog/wp-content/uploads/2021/10/Next-select-CREATE-CREDENTIALS-API-key.png?resize=800%2C269&ssl=1)
Select RESTRICT KEY.
![Select RESTRICT KEY](https://i0.wp.com/www.magetop.com/blog/wp-content/uploads/2021/10/Select-RESTRICT-KEY.png?resize=800%2C318&ssl=1)
In the Application restrictions section, choose the application according to your needs. If this API Key use for the website, select HTTP referrers (web sites).
![select HTTP referrers (web sites)](https://i0.wp.com/www.magetop.com/blog/wp-content/uploads/2021/10/Select-HTTP-referrers-web-sites.png?resize=800%2C404&ssl=1)
In the Website restrictions, you can add your website URL to use only for 1 page, or if left blank, the API key will be used for all websites.
In the API restrictions section, select Restrict key and choose Maps JavaScript API, Places API.
![select Restrict key and choose Maps JavaScript API, Places API](https://i0.wp.com/www.magetop.com/blog/wp-content/uploads/2021/10/Select-Restrict-key-and-choose-Maps-JavaScript-API-Places-API.png?resize=800%2C292&ssl=1)
When complete, choose the SAVE button.
![When complete, choose the SAVE button](https://i0.wp.com/www.magetop.com/blog/wp-content/uploads/2021/10/When-complete-choose-the-SAVE-button.png?resize=800%2C424&ssl=1)
Click to copy icon to get Google Maps API Key.
![Click to copy icon to get Google Maps API Key](https://i0.wp.com/www.magetop.com/blog/wp-content/uploads/2021/10/Click-to-copy-icon-to-get-Google-Maps-API-Key.png?resize=800%2C328&ssl=1)
Follow us for the more helpful posts!
We hope this is a useful post for you.
You can read more useful posts like How To Configure Payment Failed Email In Magento 2.
Thank you for reading!