Assigned
Status Update
Comments
sn...@google.com <sn...@google.com> #3
Hi,
Thank you for quick response. Yes, I actually copied curl code above from the API explorer.
I also tried with Python code below:
request = youtube.search().list(
part="snippet",
maxResults=50,
order="viewCount",
publishedAfter="2024-09-01T00:00:00Z",
q="artificial intelligence",
videoPaidProductPlacement="true",
)
response = request.execute()
return response
This also gave me invalid parameter error:
TypeError: Got an unexpected keyword argument videoPaidProductPlacement
ru...@kevit.io <ru...@kevit.io> #4
Hello,
I wanted to check if there are any updates regarding this issue, as it is critical for my application. Could you share whether it's planned to be resolved and if there is an estimated timeline for a fix?
I would greatly appreciate any insights you can provide.
Thank you for your time and support.
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: