That data is not available in the snippet
field. Instead, make a second API call to the channels.list()
with the video IDs and request the contentDetails
and statistics
fields in your response. You can find documentation on the video resource here.
Get videos from youtube api from channel
-
07-07-2023 - |
Question
How can i get videos from the youtube channel with duration and views count?
I tried this request:
but response doesn't contains duration/views count. Any ideas? Thx.
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow