Title: YouTube API, got error: 1
Last modified: March 4, 2017

---

# YouTube API, got error: 1

 *  Resolved [inktvusa](https://wordpress.org/support/users/inktv/)
 * (@inktv)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/youtube-api-got-error-1/)
 *     ```
       Checking your key ...
       Something went wrong, WP YouTube Lyte might not have been able to retrieve information from the YouTube API, got error: 1
       Checking your key ...
       API key not OK, your key seems to be valid, but restricted to an IP-address which is not your server's.Try changing the allowed IP for your API key to include this one: xxx.xxx.xxx.xxx
       ```
   
 * What’s the deal with this error all of a sudden?
    -  This topic was modified 9 years, 3 months ago by [inktvusa](https://wordpress.org/support/users/inktv/).

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

 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/youtube-api-got-error-1/#post-8875449)
 * the first one is if Lyte doesn’t succeed in getting a response from YT, but that
   seems to be fixed when you get the second error which is a problem with your 
   key configuration in youtube. try removing any ip-restriction on the key or simply
   create a new one.
 * yt api key’s can be a pain, we’ve all been there I’m afraid ..
 * frank
 *  Thread Starter [inktvusa](https://wordpress.org/support/users/inktv/)
 * (@inktv)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/youtube-api-got-error-1/#post-8900673)
 * Hi Frank,
 * All API keys that I have are working for every plugin that requires it. However,
   with this plugin, I am getting “Client errors (4xx)” in my API Dashboard. I tested
   my key using this URL :
 * `https://www.googleapis.com/youtube/v3/videos?part=snippet&id=<vid-id>&key=<my-
   key>`
 * This is the error I received in the JSON response :
 * {
    “error”: { “errors”: [ { “domain”: “usageLimits”, “reason”: “ipRefererBlocked”,“
   message”: “The request did not specify any referer. Please ensure that the client
   is sending referer or use the API Console to remove the referer restrictions.”,“
   extendedHelp”: “[https://console.developers.google.com/apis/credentials?project=462388451704&#8221](https://console.developers.google.com/apis/credentials?project=462388451704&#8221);}],“
   code”: 403, “message”: “The request did not specify any referer. Please ensure
   that the client is sending referer or use the API Console to remove the referer
   restrictions.” } }
 * Can you please update your plugin to specify the referrer which could be the 
   IP or domain name, please?
 * Thank you.
 *  Thread Starter [inktvusa](https://wordpress.org/support/users/inktv/)
 * (@inktv)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/youtube-api-got-error-1/#post-8900679)
 * Hi Frank,
 * All API keys that I have are working for every plugin that requires it. However,
   with this plugin, I am getting “Client errors (4xx)” in my API Dashboard. I tested
   my key using this URL :
 * `https://www.googleapis.com/youtube/v3/videos?part=snippet&id=<vid-id>&key=<my-
   key>`
 * This is the error I received in the JSON response :
 * {
    “error”: { “errors”: [ { “domain”: “usageLimits”, “reason”: “ipRefererBlocked”,“
   message”: “The request did not specify any referer. Please ensure that the client
   is sending referer or use the API Console to remove the referer restrictions.”,“
   extendedHelp”: “[https://console.developers.google.com/apis/credentials?project=462388451704&#8221](https://console.developers.google.com/apis/credentials?project=462388451704&#8221);}],“
   code”: 403, “message”: “The request did not specify any referer. Please ensure
   that the client is sending referer or use the API Console to remove the referer
   restrictions.” } }
 * Can you please update your plugin to specify the referrer which could be the 
   IP or domain name, please?
 * Thank you!
 *  Thread Starter [inktvusa](https://wordpress.org/support/users/inktv/)
 * (@inktv)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/youtube-api-got-error-1/#post-8900762)
 * Frank,
 * In addition, I tried a key without a referrer restriction and it worked properly.
   It would still be great if you could update the plugin to include the referrer.
 * Thank you for such a great plugin. 🙂
 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/youtube-api-got-error-1/#post-8901576)
 * > In addition, I tried a key without a referrer restriction and it worked properly.
 * that’s indeed the best approach.
 * > It would still be great if you could update the plugin to include the referrer.
 * I’ll put in on my list of possible improvements, thanks! 🙂
 * have a nice weekend,
    frank

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

The topic ‘YouTube API, got error: 1’ is closed to new replies.

 * ![](https://ps.w.org/wp-youtube-lyte/assets/icon-128x128.png?rev=1836005)
 * [WP YouTube Lyte](https://wordpress.org/plugins/wp-youtube-lyte/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-youtube-lyte/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-youtube-lyte/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-youtube-lyte/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-youtube-lyte/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-youtube-lyte/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * Last activity: [9 years, 2 months ago](https://wordpress.org/support/topic/youtube-api-got-error-1/#post-8901576)
 * Status: resolved