I am trying to implement the YouTube Data API v3 in my Python project. However it seems that I always get a error with usage limits.
Here is the specific error I am seeing:
{
"error": {
"errors": [
{
"domain": "usageLimits",
"reason": "accessNotConfigured",
"message": "Access Not Configured. YouTube Data API has not been used in project 236433974813 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/youtube.googleapis.com/overview?project=236433974813 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.",
"extendedHelp": "https://console.developers.google.com/apis/api/youtube.googleapis.com/overview?project=236433974813"
}
],
"code": 403,
"message": "Access Not Configured. YouTube Data API has not been used in project 236433974813 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/youtube.googleapis.com/overview?project=236433974813 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry."
}
}
The console says 0 quota (I cannot post images due to low reputation, but it says this when looking at the quotas.)
I have the free trial activated.
You need to first go to the GCP console and activate the YouTube Data API for your project. You must do this for each API in each project.
https://console.cloud.google.com
Related
I am using the https://www.googleapis.com/auth/youtube.readonly endpoint.
I can successfully Oauth my application, but when I use my keys I get:
"errors": [
{
"domain": "usageLimits",
"reason": "accessNotConfigured",
"message": "Access Not Configured. YouTube Data API has not been used in project 45754353xxxx before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/youtube.googleapis.com/overview?project=45754353xxxx then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.",
"extendedHelp": "https://console.developers.google.com/apis/api/youtube.googleapis.com/overview?project=45754353xxxx"
}
],
"code": 403
This was working until a few days ago. The link provided above (without the xxxx) fails to load in the google cloud console.
Any ideas?
Thanks.
create a new project, add the api you need to it and add a key for the new project.
i had the same error 403 but now it works fine. hope this help for you
I am suddenly getting a 403 error when sending requests to YouTube's data-API.
This is the error I am getting in production for all requests:
"error": {
"errors": [
{
"domain": "usageLimits",
"reason": "accessNotConfigured",
"message": "Access Not Configured. YouTube Data API has not been used in project 944988770273 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/youtube.googleapis.com/overview?project=944988770273 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.",
"extendedHelp": "https://console.developers.google.com/apis/api/youtube.googleapis.com/overview?project=944988770273"
}
],
"code": 403,
"message": "Access Not Configured. YouTube Data API has not been used in project 944988770273 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/youtube.googleapis.com/overview?project=944988770273 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry."
}
}
I haven't done anything do disable the keys, and the dashboard still says the project and key is enabled?
This seems to be due to YouTube setting my daily limit to 0 for some reason, effectively "banning" the usage on the current project in use.
If this happens error-message happens to anyone, remember to check the quotas for the project.
I filled an issue on Youtube Bug Tracker related to it. The feedback was:
This means that your project’s access to YouTube Data API Service has been disabled.
Please fill out and submit the exceptions form below: https://support.google.com/youtube/contact/yt_api_form?hl=en
No reasons why.
I get the following error when trying to access the Calendar API
{
"error": {
"errors": [
{
"domain": "usageLimits",
"reason": "dailyLimitExceededUnreg",
"message": "Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup.",
"extendedHelp": "https://code.google.com/apis/console"
}
],
"code": 403,
"message": "Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup."
}
}
However, I checked the google developer console and I am nowhere near hitting my limit (I'm at 2,500 queries when the max is 1,000,000). Also, I don't see how I am not authenticated because I use the OAuth 2.0 credentials to make the api call.
Check the status of the Google Calendar API from the Google Developer Console if it is enabaled.
Then wait for a few minutes after turning the API. You must ensure that you will get a new token each time before trying it.
You can also follow the suggested action that will help you about Google Calendar API Usage Limits error.
We utilize the Content API for Shopping to make updates to our product data. We do this several times a day, and have done so for just over 2 months.
We made several successful calls today, but then started receiving the following:
Google API Error Response:
{
"error": {
"errors": [
{
"domain": "usageLimits",
"reason": "servingLimitExceeded",
"message": "Serving Limit Exceeded"
}
],
"code": 403,
"message": "Serving Limit Exceeded"
}
}
That lasted about an hour, then we made successful calls for a bit, then started getting errors again.
Checking the Google API Console -both Quota and Reports, we have 'Unlimited requests/second/user' for the all aspects of this API.
Is there an API issue? If we are exceeded a quota, we do not see what that is.
I have tried to analyze url page using pageSpeedOnline.pagespeedapi().runpagespeed(..) api but fails with 403 "Forbidden". The api is enabled in the console and the billing is also enabled but I am blocked further since it always fails with 403. The billing was just enabled since a week back.
Below is the response of the curl request,
curl "https://www.googleapis.com/pagespeedonline/v1/runPagespeed?url=http://code.google.com/speed/page-speed/&key=API_KEY"
{
"error": {
"errors": [
{
"domain": "usageLimits",
"reason": "accessNotConfigured",
"message": "Access Not Configured. Please use Google Developers Console to activate the API for your project."
}
],
"code": 403,
"message": "Access Not Configured. Please use Google Developers Console to activate the API for your project."
}
}
Please help.
I got it resolved, by creating "Key for browser apps (with referers)" and used that API key in the project.