Issues getting Youtube API Wordpress plugin Restricted

242 views
Skip to first unread message

JohnnyScience

unread,
Sep 24, 2019, 7:13:02 AM9/24/19
to Google Cloud Developers

I'm still having no luck getting this Youtube API Restricted properly. 

Every time I try to give it HTTP referrers Restrictions & add the following Website Restrictions:


I then get the following error in my Youtube video player on my website: www.ohiocannabis.com/videos

Sorry, there was a YouTube API error: The referrer https://www.googleapis.com/youtube/v3/playlistItems?part=snippet,status&playlistId=UUkbzQe9G_drgd3QoLmHZNfw&maxResults=15&key=AIzaSyArOPULA9UG52ZQUO7ddZMxrpC6odiFW4I does not match the referrer restrictions configured on your API key. Please use the API Console to update your key restrictions. Please make sure you performed the steps in this video to create and save a proper server API key.

(I unrestricted it so that my videos populate for now, so you may not see that error message on my Videos page)

Any idea on what I'm doing wrong to get this plugin to Restrict & work properly?

Thank you!!

JohnnyScience

unread,
Sep 24, 2019, 8:12:15 AM9/24/19
to Google Cloud Developers
So I just tried to restrict the API key with the IP option and enabled it and added my IP address as:

107.154.147.253

But then when I go to my video page, it's now telling me:

Sorry, there was a YouTube API error: The calling IP address 50.116.78.101 does not match the IP restrictions configured on the API key. Please use the API Console to update your key restrictions.

So who/what/where is this "Calling IP" coming from that it would have a much different IP than my website domain?

George (Cloud Platform Support)

unread,
Sep 24, 2019, 12:21:35 PM9/24/19
to Google Cloud Developers
Your issue seems to be related to Youtube API, rather than Cloud Platform. You can avail yourself of help and support opportunities for Youtube API. Support for YouTube Data API is provided on Stack Overflow. Google engineers monitor and answer questions with the youtube-apiyoutube-data-api, and youtube-v3-api tags. Valuable information may be gathered on the YouTube Embed Plugin documentation page
Reply all
Reply to author
Forward
0 new messages