Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Youtube API permission 403 Forbidden error

Tags:

I'm following the tutorial on this page but I keep getting a 403 Forbidden error when I run the app and try to do a search.

I enabled Youtube Data API v3 on the https://console.developers.google.com/ page and I created an Android API key.

Any suggestions? Thank you.

Could not search: com.google.api.client.googleapis.json.GoogleJsonResponseException: 403 Forbidden { "code" : 403, "errors" : [ { "domain" : "usageLimits", "message" : "There is a per-IP or per-Referer restriction configured on your API key and the request does not match these restrictions. Please use the Google Developers Console to update your API key configuration if request from this IP or referer should be allowed.", "reason" : "ipRefererBlocked", "extendedHelp" : "https://console.developers.google.com" } ], "message" : "There is a per-IP or per-Referer restriction configured on your API key and the request does not match these restrictions. Please use the Google Developers Console to update your API key configuration if request from this IP or referer should be allowed." } 
like image 838
kj tolentino Avatar asked Feb 18 '15 18:02

kj tolentino


People also ask

How do I fix REST API 403 forbidden?

Check the Requested URL The most common cause of a 403 Forbidden Error is simply inputting an incorrect URL. As discussed before, many tightly secured web servers disallow access to improper URLs.

Why is Youtube API not working?

Your API key may not be working because you're using it for the wrong project. Be sure you're using the key for the project that you created it for, especially if you created multiple projects at the same time. If it's still not working, consider creating a new API key entirely.

What does youtube error 403 mean?

The 403 Forbidden Error happens when the web page (or another resource) that you're trying to open in your web browser is a resource that you're not allowed to access.

How do I fix Google authorization error 403?

"code": 403, "message": "The user does not have sufficient permissions for file {fileId}." To fix this error, instruct the user to contact the file's owner and request edit access. You can also check user access levels in the metadata retrieved by files.


1 Answers

I have resolved the problem by creating a Browser key instead of an android key. The browser key needs to have no entry so that it'll say "all refered allowed"

like image 146
kj tolentino Avatar answered Oct 03 '22 10:10

kj tolentino