Title: API Error
Last modified: August 14, 2020

---

# API Error

 *  [niller56](https://wordpress.org/support/users/niller56/)
 * (@niller56)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/api-error-54/)
 * 1 week ago I used the plugin with great success but today I keep getting this
   error:
    “{ “error”: { “code”: 403, “message”: “Requests from referer [https://www.googleapis.com/youtube/v3/videos?part=id&key=AIzaSyA2fDlRNMHSqzkKmSPdLlmSLCCR2xxxxxx&chart=mostPopular](https://www.googleapis.com/youtube/v3/videos?part=id&key=AIzaSyA2fDlRNMHSqzkKmSPdLlmSLCCR2xxxxxx&chart=mostPopular)
   are blocked.”, “errors”: [ { “message”: “Requests from referer [https://www.googleapis.com/youtube/v3/videos?part=id&key=AIzaSyA2fDlRNMHSqzkKmSPdLlmSLCCR2xxxxxx&chart=mostPopular](https://www.googleapis.com/youtube/v3/videos?part=id&key=AIzaSyA2fDlRNMHSqzkKmSPdLlmSLCCR2xxxxxx&chart=mostPopular)
   are blocked.”, “domain”: “global”, “reason”: “forbidden” } ], “status”: “PERMISSION_DENIED”}}”
 * I have not changed anything, still using the same Youtube API. Please help me!
 * The last 6 numbers in API is left out with XXXXXX
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fapi-error-54%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [CodeFlavors](https://wordpress.org/support/users/codeflavors/)
 * (@codeflavors)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/api-error-54/#post-13266629)
 * Hi,
 * It looks like there’s a referer or IP restriction set on your API in Google Cloud
   Console. If you remove all restrictions on your key, does it work?
 * As a note, this is not a plugin issue, it is strictly related to how your key
   is set up in Google Cloud Console.
 *  Thread Starter [niller56](https://wordpress.org/support/users/niller56/)
 * (@niller56)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/api-error-54/#post-13268150)
 * Thanks for the reply. It was the restriktion that was the problem.
    Is it not
   a bit dangerous not to restrict the API?
 * But many thanks for a great plug-in.
 *  Plugin Author [CodeFlavors](https://wordpress.org/support/users/codeflavors/)
 * (@codeflavors)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/api-error-54/#post-13268844)
 * Hi,
 * The key restrictions are intended as a way of enforcing security; since you generated
   the key for your own use and you’re the only one that knows it it shouldn’t be
   a problem.
 * On the other hand, you could try different settings and see if you can use any
   of the restrictions available into the settings. Most likely you had something
   wrong into the setup. Here’s the page where the restrictions are described: [https://cloud.google.com/docs/authentication/api-keys#adding_http_restrictions](https://cloud.google.com/docs/authentication/api-keys#adding_http_restrictions)

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

The topic ‘API Error’ is closed to new replies.

 * ![](https://ps.w.org/videographywp/assets/icon-128x128.png?rev=1409566)
 * [Featured Video for WordPress - VideographyWP](https://wordpress.org/plugins/videographywp/)
 * [Support Threads](https://wordpress.org/support/plugin/videographywp/)
 * [Active Topics](https://wordpress.org/support/plugin/videographywp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/videographywp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/videographywp/reviews/)

## Tags

 * [api call](https://wordpress.org/support/topic-tag/api-call/)

 * 3 replies
 * 2 participants
 * Last reply from: [CodeFlavors](https://wordpress.org/support/users/codeflavors/)
 * Last activity: [5 years, 7 months ago](https://wordpress.org/support/topic/api-error-54/#post-13268844)
 * Status: not resolved