Developer console not working of YouTube Data API v3 - youtube-api

Credentials page not working of YouTube Data API v3.
I accessed https://console.developers.google.com and show Dashboard page.
I inputed YouTube Data to filter and selected YouTube Data API v3.
Show API & Service of YouTube page.
Clicked Credentials of sidebar.
Failed to load. I and other everytime.
error message
Failed to load.
There was an error while loading /apis/api/youtube.googleapis.com/credentials?project={{my-project-id}}. Please try again.
Similar problems occur with console.cloud.google.com.
When I contacted GCP support, I was introduced to Stack Overflow.

Related

Is there a reason my youtube app gives me access to one youtube channel but not another?

I created a youtube app in console.developers.google.com that has the youtube data, youtube analytics and youtube reporting apis enabled. I also have access to multiple youtube channels that I'm hoping to automate some reports. several youtube channels I can login to with my app with no problem, but one in particular returns a message saying "Google has disabled this app" and I don't know why. It works will all channels but one, is there some permission that needs to be set in this particular one?

Enabling youtube data api

I generated an youtube api key, but when I use it in
https://www.googleapis.com/youtube/v3/videos?part=snippet&id=FH2zbHrRY9A&key={YOUR_API_KEY}
it shows me a warning message like
"Access Not Configured. YouTube Data API has not been used in project 950908475774 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/youtube.googleapis.com/overview?project=950908475774 then retry"
I have wrote a simple tutorial for this. See Getting Started
You can follow my tutorial to enable the service.
You need to enable this api service before you use the YouTube DATA API.

YouTube API v3 invalid grant after generating new refresh token

We have an application which uses YouTube Data API v3 so we could be able to upload and manage videos on YouTube. For several days
we have not been able to upload videos in YouTube, nor to list corresponding playlists from the channel or to make any other actions which require making requests to YouTube Data API.
When we try to list the playlists or to get a certain video by its Id or to upload a new video we get the following error message:
Error {Error:"invalid_grant", Description:"Bad Request", Uri:""} Google.Apis.Auth.OAuth2.Responses.TokenErrorResponse
We generated new refresh token from YouTube API but when we use it, we get the same error.
Then we created a new application in YouTube developers page with new credentials and newly generated refresh token but we still are getting the same error.
We think the reason the previous refresh token has become invalid is that the last time it was used is 7 months ago (the Google's documentation indicates that a refresh token expires if "The refresh token has not been used for six months.").
Does somebody know why are not we able to use the newly generated refresh token and what should we do in order to make a successful request to the YouTube API?
Thanks in advance!

Is that possible to get youtube broadcast or livestream status without access_key

I would like to load the livestream into my live list when the status is live without using the access key.
No, it is not possible.
You need a Google Account to access the Google Developers Console, request an API key, and register your application.
Register your application with Google so that it can submit API requests.
After registering your application, select the YouTube Data API as one of the services that your application uses:
Go to the Developers Console and select the project that you just registered.
Open the API Library in the Google Developers Console. If prompted, select a project or create a new one. In the list of APIs, make sure the status is ON for the YouTube Data API v3 and, if you are a YouTube Content Partner, the YouTube Content ID API.
Source

Youtube Content ID API has not been used - error 403

I'm trying to get my content-owner-id for upload videos to other channels that I have, as described here.
I'm using the code below to get content-owner-id: (PHP)
$youtubePartner = new Google_Service_YouTubePartner($this->client);
$contentOwnersListResponse = $youtubePartner->contentOwners->listContentOwners(
array('fetchMine' => true));
$contentOwnerId = $contentOwnersListResponse['items'][0]['id'];
And this is the error I got:
A service error occurred: Error calling GET
googleapis.com/youtube/partner/v1/contentOwners?fetchMine=true:
(403) Access Not Configured. Youtube Content ID API has not been used
in project XXXXXXXXXXXXX before or it is disabled. Enable it by
visiting
console.developers.google.com/apis/api/youtubePartner/overview?project=XXXXXXXXXX
then retry. If you enabled this API recently, wait a few minutes for
the action to propagate to our systems and retry.
I tried to go the the link https://console.developers.google.com/apis/api/youtubePartner/overview?project=XXXXXXXXXX but I get "The API doesn't exist or you don't have permission to access it".
Then I searched on google and find out that I need to become a CMS youtube account (I'm also a youtube partner). I also tried to go to cms.youtube.com and log in with my youtube account but I got:
Your Google Account is not linked with YouTube Content Manager. Please
try a different account or contact your Technical Account Manager for
assistance.
Can anyone explain me how to connect to CMS account?
Based from this thread:
You don't see it in the list auf available APIs, unless your account is connected to a CMS and some time has past... It takes 7-14 days unless the Content ID API is available for your account. This is a information i got from the support, but they told me, that it is an automated step.
Your account needs to be connected with a content owner. Be noted that a content owner and a partnered channel are not the same thing.
From this documentation, to request data from a YouTube Content Owner, you need to set the ids parameter value to contentOwner==OWNER_NAME, where OWNER_NAME is the content owner ID.
Check these related SO questions:
How do I get revenue reports from a YouTube CMS account using an API (for an MCN)?
Using the YouTube Analytics API with a CMS account

Resources