Is it possible to do a search for videos updated after date? [YouTube-Data-Api]

坚强是说给别人听的谎言 提交于 2019-12-13 05:31:08

问题


I am wondering if it is possible to get a list of videos that have been updated after a specified date? I am writing an application that helps users manage their videos titles, thumbnails, tags, descriptions, etc. This app really targets content creators that put out episodic content on a set schedule but also includes data of past videos. I am currently able to retrieve videos but I don't want to have to retrieve every video at the start of the application. It's both costly as far as the quota is concerned and time consuming. What I would like to do, is retrieve every video when the application starts up for the first time and store the data (done) and then any time after that, retrieve only new videos and/or videos that have been updated since the last date checked. If this is possible please let me know how I would go about this.

If not and a Google engineer happens to see this, this functionality would make for a very useful feature.


回答1:


Maybe you want to use publishedAfter and publishedBefore from ressource search.list.

The publishedAfter parameter indicates that the API response should only contain resources created after the specified time. The value is an RFC 3339 formatted date-time value (1970-01-01T00:00:00Z). (string)

The publishedBefore parameter indicates that the API response should only contain resources created before the specified time. The value is an RFC 3339 formatted date-time value (1970-01-01T00:00:00Z). (string)



来源:https://stackoverflow.com/questions/35098906/is-it-possible-to-do-a-search-for-videos-updated-after-date-youtube-data-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!