Does youtube v3 Data api have the number of identifiers you can send to video.list?

I want to get the total playing time of the youtube playlist, so first I request the video id for each item in the playlist, and then I request the duration of all the videos.

The limit on the number of items returned by the playlist is 50, so I need to make a few requests until I get to the end of the playlist.

Youtube Data API v3 The document entry for / videos / list says that in the id parameter for api you can list several video identifiers, and that pageToken "not supported for use with the id parameter". Therefore, I can send more than 50 identifiers to return the entire collection, but when I do this, I get a 400 response with the message "The request indicates an invalid filter parameter" ("invalidFilters").

Is there a limit on the number of identifiers you can send? If so, what is it?

+9
source share
2 answers

The limit is 50 identifiers. You have to request /videos on the playlist page, you cannot just have one giant request.

+14
source

I think about it, but I have a problem with the fact that the code cannot get more than 600 identifiers / headers in one run.

0
source

Source: https://habr.com/ru/post/1246294/


All Articles