YouTube Data API Errors - youtube-api

I've been working on a project that uses the YouTube Data API to source Videos and their channels.
Over the past 2 days we have been seeing a lot of 500 errors from /youtube/v3/channels endpoint. Is there a platform issue?
{
"error": {
"errors": [
{
"domain": "global",
"reason": "backendError",
"message": "Backend Error"
}
],
"code": 500,
"message": "Backend Error"
}
}

When using the YouTube Data API v3 demos available in the Google API Explorer (and when the "backendError" appears), I tend use the try-it functionality available in the YouTube Data API v3 official documentation instead.
Here are some examples:
try-it for video.list API
try-it for channels.list API
If you still get this same error (or a similar one) in both sites (Google API Explorer website and YouTube Data API v3 official documentation website), you have to check your parameters, wait some minutes and try again.
If the problem persists, contact Google support.

Related

call Read Reports API from MS Graph API in Microsoft Teams but using this Api

I'm trying to call Read Reports API from MS Graph API in Microsoft Teams but using this API :
https://graph.microsoft.com/v1.0/reports/getTeamsUserActivityUserDetail(period='D7')?$format=application/json
but it gives me the following error:
Unhandled Rejection (Error):
{
"error": {
"code":"S2SUnauthorized",
"message":"Invalid permission."
}
}
I'm using MSAL authentication and Graph client, I did everything exactly the same in the tutorial of Microsoft Graph and I provided the required permission, Registered the App, added everything correctly in Azure and Granted permission by admin, changed them to Application from delegate it works for all other APIs but this API isn't working.
I couldn't found any documentation related to call Read Reports API. It could be helpful if you have shared the tutorial which you are following. Please check this documentation for call record API

Our YouTube Data API Keys are getting error "accessNotConfigured"

We are working with YouTube Data APIs for more than 5 years now and we have an enterprise offering which is been used from 90% of all Media and Entertainment organizations in the US. That includes YouTube Originals btw.
For the past 2 weeks our API Keys are blocked and returning 403 errors:
"domain": "usageLimits",
"reason": "accessNotConfigured",
"message": "Access Not Configured. YouTube Data API has not been used..."
We successfully go over an App Review last July at which point we also got a Quota increase. For the past 2 weeks, I am submitting forms to increase the quota (since it is set to Zero with no apparent reason) and emailing support and basically zero response from YouTube. At this point, our business is at risk since we cannot fulfill data requests by Customers and there is no communication from YouTube.
We even provided them with App Access and logins (since as I mentioned above YouTube besides a data provider is also a customer) and we do see humans from YouTube login our app and playing around but no meaningful response yet.
We also created new keys but with a limit of 10000 calls a day its impossible to collect all necessary data mainly because our customers have videos with 10s of thousands of comments.
Any suggestions or anybody from YouTube monitoring this?

What limits exist with Youtube Data API V3 BESIDES the quota allocation?

My client has an application that allows users to upload videos to youtube from a mobile application. They are first uploaded to the client's server, and then that server uploads them to youtube via the Youtube Data API V3 package from google. As traffic has picked up, the application has periods where the upload process returns a 400 error, and the uploads to YouTube fail. This usually lasts an hour and a half or so, and then the uploads begin working again.
I have already checked the Quota limits in the Developer Console area. We are not exceeding the daily quota. I also noticed the client was not using the QuotaUser field (or the deprecated UserIP field), so the next outage I ran a test to see if setting that would alleviate the stoppage, it did not. I also tried uploading from a different IP, in case the client's server IP was just being blocked temporarily, and that did not work either.
Is there a maximum number of videos upload limit in a given time period, or some other limiting factor BESIDES the quota limits?
{
"error": {
"errors": [
{
"domain": "youtube.video",
"reason": "uploadLimitExceeded",
"message": "The user has exceeded the number of videos they may upload."
}
],
"code": 400,
"message": "The user has exceeded the number of videos they may upload."
}
}
Evidently they limit the number of videos you can upload a day. Averaging historical data, it appears to be ~100 a day. Must be broken into smaller chunks, as the service comes back after much less than 24 hours.

YouTube API 'The user is not enabled for live streaming' while the user is

While making a request to create a new broadcast, I get this error.
{
"error": {
"errors": [
{
"domain": "youtube.liveBroadcast",
"reason": "liveStreamingNotEnabled",
"message": "The user is not enabled for live streaming.",
"extendedHelp": "https://www.youtube.com/features"
}
],
"code": 403,
"message": "The user is not enabled for live streaming."
}
}
But the user is enabled! They make streams on regular basis, and I don't know how to solve this. All users of my app are doing OK with this, but two specific users get this error.
Any ideas?
The YouTube Live Streaming API lets you create, update, and manage live events on YouTube. Using the API, you can schedule events (broadcasts) and associate them with video streams, which represent the actual broadcast content.
The main intent of the YouTube Live Streaming API is to allow you to create, update and manage your events programmatic via the API. There for it would make sense for Google to insist that the authenticating account would have live streaming enabled.
I suggest you check that it is enabled for us with the API. Remember that the YouTube Api authentication is channel based so you may need to check what channel you have authenticated with. If the user has more the one maybe you are looking at one that does not have live streaming enabled. How to enable Live streaming
While I do agree it seams strange if all you are going to do is list things that you would need to have live streaming enabled this appears to be the way the API works.
I have logged this as an issue / feature request. Live Streaming API: live streaming not enabled

Consume google custom search json apis on iOS app

I am trying to fetch images from google and show them inside my app for which I am trying to consume custom search apis of google what I have done till now:
Create a custom search engine.
In the API list I have turned on Custom Search
API key for my app with its bundle identifier
GTL library, GTLService, NSURL connection
But every time I get the result:
"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." }}
To activate an API for your project, do the following:
1.)Go to the Google Developers Console.
Select a project.
In the sidebar on the left, select APIs & auth.
In the displayed list of available APIs, find the one you want to activate, and set its status to ON.
UPDATE:
2.) Then go to "API Access" and specify your calling domains or IP addresses

Resources