Using the same code as shown in video shows an error on my pc

While trying to get content of the url : “https://maps.googleapis.com/maps/api/geocode/json
It shows the followong error :
" b’{\n “error_message” : “You must use an API key to authenticate each request to Google Maps Platform APIs. For additional information, please refer to http://g.co/dev/maps-no-account”,\n “results” : [],\n “status” : “REQUEST_DENIED”\n}\n’ "
What does this mean

You need to get an API key from your google account and after that you can use this API functionality.
It will be like a big code. You can refer this https://developers.google.com/maps/documentation/javascript/get-api-key to get an API.
I hope you will understand this and in case there is still any doubt pls do ask that I will surely help you out.
If it will get clear to you pls mark it as resolved and pls provide the rating and feedback so that we can imrpove ourselves and try to improve our user experience more.
Thanks :smiley:

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.

what do i need to do after getting the key
will i have to use that in my code
if yes then how

if you get the key, it will be associated with your account and you have to use it in your project. So with that, if you make any request related to fetching any data or for searching anything with your API then the requests have been sent and you would get what you need.
So we can pass the API key to the URL so that it can specify to which account it is associated or who is making the request. Or you can pass it through the headers there are many ways just follow the course and learn how the sir is doing.
It would be great fun using these APIs to try to build some of your projects using different APIs.
I hope you will understand all this.
Thanks :slight_smile:
Pls rate and provide the feedback so that we can improve our services.
Happy Coding !!

1 Like

sir it is asking to make a billing account. What should I do i.e shoul I give it my card credentials or is there any other way to access the API

It is free for a limit amount of queries .

If you are making a project just for fun and want to use more queries then get the new key from any other account and set that but if you want to build the project for real or to market it then you may choose to pay.

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.