Android14
Android14

Reputation: 1125

Getting "The provided API key is expired." error on using Places API

I have generated Server key from Google console for Places API key. But whenever i am hitting the service i am getting " The provided API key is expired " error.

I have tried regenerating the key but still got same error.

Upvotes: 49

Views: 42535

Answers (5)

netk
netk

Reputation: 41

After 48 hours of regenerating my Google Maps API key I was receiving this error.

It turned out I had not restarted my React application for over >48 hours in my local environment. Updating my .env file did nothing to update the key with a browser refresh, the app process had to be stopped and restarted in the terminal.

Upvotes: 1

Rahman Rezaee
Rahman Rezaee

Reputation: 2165

ExpiredKeyMapError Error

The API key included in the script element that loads the API has expired or is not recognized by the system. You may receive this error after creating a new API key if you try to use the key before it is recognized by the system. Wait a few minutes and try again, or you may need to generate a new API key in the Google Cloud Platform Console.

Upvotes: 0

Shripad Bhat
Shripad Bhat

Reputation: 2443

I have faced same issue... But finally got resolved. Google place services will take 10 minutes to make the services available for new API KEY created. Services will start working after 10 minutes, till then we get error as "The provided API key is expired."

Upvotes: 155

Rajesh N
Rajesh N

Reputation: 6683

Make sure, your key is present in google play console or not. I had the same problem but when I checked my key on google place it was not there. It might be deleted by me by mistake or Google had deleted that key due to some reason. But by creating new key and I checked after 10 minute it is working.

Upvotes: 1

Abdallah Alaraby
Abdallah Alaraby

Reputation: 2249

You have to activate the access in services in Google console by going to APIs then activate Places API

Upvotes: 0

Related Questions