YouTube API v3批处理

Nou*_*r T 5 java youtube-api

YouTube API v3是否支持批量处理?我使用正常的单个请求编写了我的代码,但它需要永远执行,因为它是大约40000个请求.

小智 4

是的,v3 支持批处理,但与 v2 不同。

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

“v3 API 支持 v2 API 支持的批处理用例之一。v3 API 的channels.list、channelSections.list、guideCategories.list、playlistItems.list、playlists.list、subscriptions.list、videoCategories.list、和videos.list方法都支持id参数,该参数可用于指定以逗号分隔的ID列表(视频ID,频道ID等)。使用这些方法,您可以使用单个检索多个资源的列表要求。”