Wednesday, January 4, 2012

[YouTube-API] Can Android Query YouTube by Specified Published Date?

I'm trying to load YouTube videos into my Android app. I need to load videos that are newer than the most recent video I have saved in my local database. I see there's a time parameter for the query as shown here:

http://code.google.com/apis/youtube/2.0/developers_guide_protocol_api_query_parameters.html#timesp

This is close to what I want, but not good enough. It only describes how to make a query based upon, today, this_week, this_month, or all_time. It doesn't describe how to make the query as greater_than or less_than a specified date/time.

I can't use the today, this_week, this_month, or all_time parameters because the user controls when/if the app updates the videos. The user may wait months to request an update. The API won't allow the number of records returned to exceed 50. There could have been more than 50 videos uploaded since the last update request. I need to get the 50 videos newer than the newest videos stored, not the newest 50 videos. Otherwise that would leave a gap I could never fill.

Also, the user may want to go back in time to view videos uploaded between specified dates, but this is of lesser concern as it would be rare.

Is there a query parameter that can achieve this?

Thanks

--
You received this message because you are subscribed to the Google Groups "YouTube APIs Developer Forum" group.
To view this discussion on the web visit https://groups.google.com/d/msg/youtube-api-gdata/-/bgCwG9JmzLQJ.
To post to this group, send email to youtube-api-gdata@googlegroups.com.
To unsubscribe from this group, send email to youtube-api-gdata+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/youtube-api-gdata?hl=en.

No comments:

Post a Comment