Title: Issues getting Youtube API WordPress plugin Restricted
Last modified: September 24, 2019

---

# Issues getting Youtube API WordPress plugin Restricted

 *  Resolved [JohnnyScience](https://wordpress.org/support/users/johnnyscience/)
 * (@johnnyscience)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/issues-getting-youtube-api-wordpress-plugin-restricted/)
 * 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:
 * [https://www.ohiocannabis.com](https://www.ohiocannabis.com)
    [https://www.ohiocannabis.com/*](https://www.ohiocannabis.com/*)
 * I then get the following error in my Youtube video player on my website: [http://www.ohiocannabis.com/videos](http://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](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!!
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fissues-getting-youtube-api-wordpress-plugin-restricted%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Thread Starter [JohnnyScience](https://wordpress.org/support/users/johnnyscience/)
 * (@johnnyscience)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/issues-getting-youtube-api-wordpress-plugin-restricted/#post-11963564)
 * 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?
 *  Plugin Author [embedplus](https://wordpress.org/support/users/embedplus/)
 * (@embedplus)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/issues-getting-youtube-api-wordpress-plugin-restricted/#post-11975747)
 * What happens when you include the calling IP address in that error message?
 * Finally, for the http referral, you can try adding *.googleapis.com/* to the 
   restrictions for your referrers.
 *  Thread Starter [JohnnyScience](https://wordpress.org/support/users/johnnyscience/)
 * (@johnnyscience)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/issues-getting-youtube-api-wordpress-plugin-restricted/#post-12003317)
 * Hmm, so now I tried that Calling IP and it still continued to work.
 * Then I re-tried my actual IP and it actually worked & didn’t break this time.
 * I had some issues lately with my server having tons of malware because of an 
   old WP install. This must have been affected by it because I have had the malware
   cleaned up (hopefully all of it) fairly recently and now everything seems to 
   be ok.
 * But I’m curious as to the Calling IP, where would I find out more information
   about what this IP is attached to or where it’s coming from?
 * Should I remove my IP from this public message or it’s no big deal?
 * Now that the IP Restriction seems to be working, do I need to worry about adding
   the HTTP referrer Restriction anymore? I just need to do one of them to have 
   a properly Restricted API right? I don’t need to add multiple Restrictions?
    -  This reply was modified 6 years, 8 months ago by [JohnnyScience](https://wordpress.org/support/users/johnnyscience/).
    -  This reply was modified 6 years, 8 months ago by [JohnnyScience](https://wordpress.org/support/users/johnnyscience/).
    -  This reply was modified 6 years, 8 months ago by [JohnnyScience](https://wordpress.org/support/users/johnnyscience/).
    -  This reply was modified 6 years, 8 months ago by [JohnnyScience](https://wordpress.org/support/users/johnnyscience/).
 *  Thread Starter [JohnnyScience](https://wordpress.org/support/users/johnnyscience/)
 * (@johnnyscience)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/issues-getting-youtube-api-wordpress-plugin-restricted/#post-12003358)
 * Nope nevermind, using my websites correct IP gives me the same error message 
   of the Calling IP of 50.XXXX not matching
 * So what’s the deal, any idea?
 *  Thread Starter [JohnnyScience](https://wordpress.org/support/users/johnnyscience/)
 * (@johnnyscience)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/issues-getting-youtube-api-wordpress-plugin-restricted/#post-12048659)
 * Still stuck on this with an un-restricted youtube API
 * Anyone have an idea what I’m missing?
 * Thanks.
 *  [exius](https://wordpress.org/support/users/exius/)
 * (@exius)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/issues-getting-youtube-api-wordpress-plugin-restricted/#post-12558380)
 * Solved for me by adding my domains and googleapi domain like so under Website
   Restrictions (HTTP referrers):
    - *.googleapis.com/*
    - *.mydomain.com/*
    - *.mydomain2.com/*
 * Fixes the error in EmbedPlus YouTube Pro WP Plugin via the Google Cloud Platform
   API Keys Credentials.
 * [@embedplus](https://wordpress.org/support/users/embedplus/) I recommend that
   you update your instructional video to use http referrers instead of ip addresses
   for application restrictions, so people won’t get stuck.
    -  This reply was modified 6 years, 2 months ago by [exius](https://wordpress.org/support/users/exius/).

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Issues getting Youtube API WordPress plugin Restricted’ is closed to 
new replies.

 * ![](https://ps.w.org/youtube-embed-plus/assets/icon-256x256.png?rev=2165403)
 * [Embed Plus for YouTube Gallery, Livestream and Lazy Loading with Facades](https://wordpress.org/plugins/youtube-embed-plus/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/youtube-embed-plus/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/youtube-embed-plus/)
 * [Active Topics](https://wordpress.org/support/plugin/youtube-embed-plus/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/youtube-embed-plus/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/youtube-embed-plus/reviews/)

 * 6 replies
 * 1 participant
 * Last reply from: [exius](https://wordpress.org/support/users/exius/)
 * Last activity: [6 years, 2 months ago](https://wordpress.org/support/topic/issues-getting-youtube-api-wordpress-plugin-restricted/#post-12558380)
 * Status: resolved