We use google-api-java-client to lookup videos and we would like to know if it would be possible to fetch videos on a certain tag (say sports) published between certain dates (starting from yesterday till now). How do I do this?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I was able to do this using the google-api-client 1.6.0-beta (downloaded via Maven). I modified the example code a little. The API had changed slightly since the example code was written. I added query parameters from the YouTube API Reference Guide and extended the Video class to include a couple more fields. If you look at the raw JSON returned from the query you will see you could add several others fields including thumbnails, duration, aspect ratio, comment count etc. I hope this helps.