Google Places API | API keys with referer restrictions cannot be used with this API

Hello,

I’m trying to hit the Google Places API, to create a “Geo Search” which will return me my results from the Google Places API, when I hit it, I get an error stating that I can’t use HTTPS Refferrer Security Feature of the Google Cloud Console, and I need to use an IP Restriction instead.

So here arise two questions,

  1. What IP I’m supposed to put in? Is there some specific?
  2. Is the IP shared among all the WeWeb pages? (When calling via sever for CORS)
{
   "error_message" : "API keys with referer restrictions cannot be used with this API.",
   "predictions" : [],
   "status" : "REQUEST_DENIED"
}

I found this page and some StackOverflow questions, suggesting the IP Restriction approach.

Hello,

If you are on a paid plan, in your dashboard, you can click on the settings tab and you will see the IP.
Hope that helps you :slight_smile:

2 Likes