Get info about a YouTube video

后端 未结 1 782
面向向阳花
面向向阳花 2021-01-26 12:34

I\'m looking to get the title and duration of a YouTube video and display it within my app. I want to do this dynamically since there will be several videos and they will change

相关标签:
1条回答
  • 2021-01-26 12:52

    You need to use the Youtube API, details on how to do this for a single video are here:

    https://developers.google.com/youtube/2.0/developers_guide_protocol_video_entries

    Here's the URL to get the API data for Friday:

    https://gdata.youtube.com/feeds/api/videos/kfVsfOSbJY0?v=2

    0 讨论(0)
提交回复
热议问题