Youtube REST API v3 - include statistics for video in search query result

前端 未结 2 1455
渐次进展
渐次进展 2021-02-20 02:27

I want to perform search queries using Youtube API v3. What I need is to retrieve video ids and statistics for each video. From the docs I can see that statistics is not returne

相关标签:
2条回答
  • 2021-02-20 03:10

    In the guide, they specify "the part names that you can include in the parameter value are id and snippet" when using https://www.googleapis.com/youtube/v3/search. (statistics is not an accepted value).

    So I think that you have to make two requests as you say, at least that is what I'm doing. I couldn't find any other solution. I would be interested to know if there was a workaround...

    0 讨论(0)
  • 2021-02-20 03:10

    To avoid redundancy of data returned and not to use bandwidth with extra data, "video search data" and "video statistics" data are decoupled in API. You are right about two calls. In general, to get faster response, only use the "part" s in request that you will use in your application.

    0 讨论(0)
提交回复
热议问题