Error in posting GET request to Google maps API

I first tried with the following code:

However I was asked to create an APPI key so I registered in the Google cloud platform and made an API key for myself however it was not fitting into the url alonwith the parameters part so I simply pasted their example url and replaced the key parameter but still it is showing request denied. It is as follows:

Please guide.

Hello @Charu510, you can refer to this. https://www.youtube.com/watch?v=ckPEY2KppHc&t=5s&ab_channel=CodingEntrepreneurs
It is one of the best tutorials on geolocation and surely asks if anything isn’t clear to you.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.