I want to get number of views, duration and also the rating of the particular video in youtube. Is there any way to get the information of the video by passing the video id through URL?
相关问题
- CALayer - backgroundColor flipped?
- Core Data lightweight migration crashes after App
- How can I implement password recovery in an iPhone
- how do you prevent page scroll in textarea on mobi
- Custom UITableview cell accessibility not working
相关文章
- Could I create “Call” button in HTML 5 IPhone appl
- Unable to process app at this time due to a genera
- How do you detect key up / key down events from a
- “Storyboard.storyboard” could not be opened
- Open iOS 11 Files app via URL Scheme or some other
- Can keyboard of type UIKeyboardTypeNamePhonePad be
- Can not export audiofiles via “open in:” from Voic
- XCode 4.5 giving me “SenTestingKit/SenTestKit.h” f
The article Retrieve Title, Description and Thumbnail of a YouTube Video Using AJAX describes how you can do this via simple JavaScript and/or AJAX. It uses the YouTube Data API but the the code example here is to-the-point so that you don't get lost searching the API documentation.
for the rating, you can parse the video url and find:
notice 5.0 and 719 here. 5.0 is the rating and 719 is the number of votes.
Youtube Data API.
Basically, you want to fetch a URL like
http://gdata.youtube.com/feeds/api/videos/kpcqAm8BOlE
and look at the resulting XML.