YouTube API - Querying by publish date

后端 未结 2 1934
伪装坚强ぢ
伪装坚强ぢ 2021-02-04 14:08

I\'m writing a webapp that uses the YouTube Code API to do specific types of searches. In this case, I\'m trying to search for all videos that match a query, and which were upl

2条回答
  •  后悔当初
    2021-02-04 14:46

    youtube api v3 supports publishedAfter and publishedBefore parameters with search results. For example:

    https://www.googleapis.com/youtube/v3/search?key={{YOUKEY}}&channelId={{CHANNELID}}&part=snippet,id&order=date&maxResults=50&publishedAfter=2014-09-21T00:00:00Z&publishedBefore=2014-09-22T02:00:00Z
    

提交回复
热议问题