Assigned
Status Update
Comments
sn...@google.com <sn...@google.com> #2
Hi, this support channel is intended for YouTube API related issues. For anything specific to Youtube website, Android or iOS app, please follow the guide posted in the link below.
You may also ask this question through our community forum:
sn...@google.com <sn...@google.com> #3
ru...@kevit.io <ru...@kevit.io> #4
Hi, thanks for reverting back. Here is the channel ID—UCTlcpma6Dx7uIZN0dFJJl9w. I get the playlist from https://developers.google.com/youtube/v3/docs/playlists/list , but I want the playlist ID in the api -- https://developers.google.com/youtube/v3/docs/videos/list because, if a video is in the playlist and I want to find which playlist it is in, then I need to go through all of the above steps 1...2...3 to get whether the video is attached to any playlist or not. So if you provide a playlist ID in https://developers.google.com/youtube/v3/docs/videos/list snippet response, then it will be easy for me.
Also, from the above description, there is a link that is mismatched; sorry for that. Here is the link that I am referring to.
"
API request with parameters used (DO NOT include your credential)
video.list api:https://developers.google.com/youtube/v3/docs/videos/list
In process of finding playlist, i am using below apis
playlist.list:https://developers.google.com/youtube/v3/docs/playlists/list
playlistItems.list:https://developers.google.com/youtube/v3/docs/playlistItems/list
"
let me know if there is any query.
Also, from the above description, there is a link that is mismatched; sorry for that. Here is the link that I am referring to.
"
API request with parameters used (DO NOT include your credential)
video.list api:
In process of finding playlist, i am using below apis
playlist.list:
playlistItems.list:
"
let me know if there is any query.
Description
- Description
In video.list API, we are getting almost all the info in snipet related to video, such as channel ID, video ID, title, description, etc.
But there is a missing *playlist ID*. I really need that field in the video.list API, because currently if I need a playlist ID for the video, I need to follow the below path to the Attech playlist in my video collection.
To find a playlist for specific videos:
Note: I only have a video ID and channel ID.
1. Need to call playlist.list api with channel ID filter
- So now i have all the playlist for that specific channel
- ex. now i have 20 playlist for that channel
- total api call = 1
2. after that, i need to call playlistItems.list for each playlist
- I need to call playlist Iteams.list api for each 20 playlist
- ex. if each playlist has 200 videos, then I need to call 4 playlistItems.list api with max 50 result.
- total api call = 20 * 4 = 80 api call
3. So, now I have to check all 4000 videos with my video ID and match it to include just the playlist ID to that video.
- I am looping in all 4000 collected video to find my video by comparing the video ID.
- After that, i can attach the playlist ID to the video ID.
This process is taking more time and resources with the API unit too.
Please add that one filed in video.list api inside of snippet object. So I can reduce the unit cost that is used in this process.
- API request with parameters used (DO NOT include your credential)
video.list api:
In process of finding playlist, i am using below apis
playlist.list:
playlistItems.list:
- Result (copy and paste a JSON response you received)
- smaple code for snippet: (I need playlist field inside of snippet)
"snippet": {
"publishedAt": "2024-12-18T12:22:30Z",
"channelId": "UCTlcpma6Dx7uIZN0dFJJl9w",
"title": "ANDERSON vs ALLEN - SNOOK-D - TABLE 1 | EvoSports",
"description": "Friendly match\n\n\n\nVenue: Snook-D - Table 1\nMatch Start time: 12/17/2024, 10:28:36 PM\n\nEvoSports Auto Streaming System. Follow and like our page for future improvements, updates, and streams!",
"thumbnails": {
"default": {
"url": "
"width": 120,
"height": 90
},
"medium": {
"url": "
"width": 320,
"height": 180
},
"high": {
"url": "
"width": 480,
"height": 360
},
"standard": {
"url": "
"width": 640,
"height": 480
},
"maxres": {
"url": "
"width": 1280,
"height": 720
}
},
- Expected result
- I need a playlist ID field inside the snippet; if a video is in the playlist, then playlist ID will be there; if not, then I am okay with an empty field or none filed.
- Is it 100% reproducible?
- Yes
- Reproducible API explorer Link
video.list api:
In process of finding playlist, i am using below apis
playlist.list:
playlistItems.list: