featured channel URLs missing from YouTube API v3 - youtube-data-api

I have noticed that the YouTube Data API is no longer showing the featuredChannelsUrls list in brandingSettings.channel (in the actual reply, it's still in the docs), but I cannot find any deprecation info online. Anyone has any info on this or observed the same behavior?

Related

How to exclude deleted comments count from YouTube Analytics API?

I have mentioned 2 YouTube APIs below, the YouTube data api, and the YouTube Analytics api. They are each giving giving different comments count.
YouTube data api is showing the comments count properly. YouTube Analytics api is showing incorrect.
We got to know that the second API gives the count for deleted and live chat. I have attached the screenshot for reference. Is there anyway from the second API we can get the exact count by removing the deleted comments count ?
YouTube data api Video.list method
https://www.googleapis.com/youtube/v3/videos?part=statistics,contentDetails,snippet&id=ZJFnAYqt570&key=
This endpoint is showing comments count 8 which is correct.
YouTube Analytics api jobs.reports.get
https://youtubeanalytics.googleapis.com/v2/reports?endDate=2022-03-31&ids=channel%3D%3DUCdf14FHPLt7omkE9CmyrVHA&metrics=views%2Ccomments%2Clikes%2Cdislikes&startDate=2022-03-01&filters=videoid%3D%3DZJFnAYqt570&key=
This endpoint is showing comments count 36 which is incorrect.
Note: Even in https://studio.youtube.com/ the count is showing 36
These are two completely different API's you cant and shouldn't be comparing them in this manner.
To begin with The YouTube data api just returns to you the actual data. While the YouTube Analytics api returns to you analytics. YouTube studio operates on YouTube analytics api so it does not surprise me that it is showing the same data.
There is currently no way to filter out deleted comments. Analytics is preformed upon the number of comments not their status.
Why not adding a feature request?

down indicator for google classroom api

It seems that Google Classroom API may be down this morning, is there any way to know that is the case (my code is failing, but I don't think it's my side.)
I can't find a down detector for Google Classroom API.
You can view the status of their services using Google Workspace Status Dashboard
This page provides status information on the services that are part of Google Workspace
You could also see the history of issues at the bottom link
For under Google Ads, visit Google Ads Status Dashboard
For other issues, you can visit Issue Tracker and search for related posts reported by other users.
Note:
Seems like there were no recent outages on Classroom's side based on the status dashboard.
Google acknowledged an issue regarding the Classroom API not working. It took them 6 days for it to be fixed for our District, and I have no idea how widespread the issue was.

Youtube Data api search.list order not working

Sorting videos from a channel over method search.list stopped working for about three days back.
I tried too in Api explorer from google on web:
https://developers.google.com/apis-explorer/?hl=en_US#p/youtube/v3/youtube.search.list?part=snippet&channelId=UCPvnjqveFmBfTWBVShPIcZg&maxResults=5&order=rating&_h=10
Can this be solved on my side?
Is there another way to get all the videos from the channel to be returned via api?
This is an issue of Youtube Data API.
Already reported this issue by someone on Google forum and below is reply from Google employee:
https://support.google.com/youtube/thread/2494861?msgid=2520468
YouTube is aware the search/sorting functions aren't working as
expected – this is temporary and part of our efforts to better
respond, review and remove graphic, violative content from YouTube.
Thanks for your patience while we work through this. Will update this
thread when these features are working normally again, feel free to
subscribe for updates.
Also, Bugs are reported for this on issue tracker:
https://issuetracker.google.com/issues/128673031
https://issuetracker.google.com/issues/128673552
Both issue have comment from Google employee as below:
Thank you all for bringing this up here. These specific filters have been currently disabled on both YouTube.com and through the APIs.
We should have updates on this soon. Thanks again.
Update on 27/3:
Now it's working normally again, as per threads.

Youtube API v3 - where is the flag for adult/nsfw?

Google API v3 docs
I've tried requesting for all 13 "parts" and none of them gave me a flag to say if the returned video is NSFW/R-rated.
Is that unavailable in this api?
Ah found it.
contentDetails.contentRating.ytRating
only valid value is: ytAgeRestricted
apparently that section doesn't come back on non-age-restricted videos, which is why I never saw it.

How to detect restricted youtube videos via the api?

How can I use the youtube api to determine if a video is blocked for students in restricted mode? I have looked through quite a few resources and they all seem like outdated or inaccurate responses. When I go to https://www.googleapis.com/youtube/v3/videos?part=contentDetails&id=IERz1PmkdC4&key={myAPIKey} I get contentDetails but it does not include "contentRating": { "ytRating": "ytAgeRestricted"} even though I know this video is blocked for students in restricted mode.
Is this the wrong api to determine restriction information on a video? Or do I need to be the owner of the video to fetch this info? Or is it no longer possible to get this info via this api?
Currently I have found that I can use a call to https://www.youtube.com/get_video_info?html5=1&video_id=IERz1PmkdC4 when logged in as a student in restricted mode, this will return an error but unrestricted videos will not return an error. But this is an unsupported solution that I would rather avoid.
Resources I have already looked at:
The V3 API documentation - https://developers.google.com/youtube/v3/docs/videos#properties
There is a question here in stack overflow that seems to have an inaccurate response -
Checking if video is age restricted with v3 of YouTube API
An untagged question with no response - http://stackoverflow.hex1.ru/questions/35120259/how-can-i-tell-if-a-youtube-video-cannot-be-viewed-with-restricted-mode-enabled
This didn't help - How do I check if a youtube video is blocked/restricted/deleted

Resources