Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

YouTube API v3 batch processing

does YouTube API v3 support batch processing? I've wrote my code using normal individual requests, but it takes forever to execute since it's about 40000 requests .

like image 752
Nour T Avatar asked Sep 29 '22 23:09

Nour T


1 Answers

Yes, batch processing is supported in v3 but not like in v2.

https://developers.google.com/youtube/v3/guides/implementation/deprecated#Batch_Processing

"The v3 API supports one of the batch processing use cases that the v2 API had supported. The v3 API's channels.list, channelSections.list, guideCategories.list, playlistItems.list, playlists.list, subscriptions.list, videoCategories.list, and videos.list methods all support an id parameter, which can be used to specify a comma-delimited list of IDs (video IDs, channel IDs, etc.). Using those methods, you can retrieve a list of multiple resources with a single request."

like image 128
fastone Avatar answered Oct 11 '22 17:10

fastone