Get youtube video's title with jQuery using youtube api

api, jquery, youtube

Solution

Use jQuery's JSON call to the YouTube API to get the results back and then use jQuery to put the results where you want them. You can use firebug's NET tab to make sure you requests/respoonses are coming back correctly and then use console.log() to make sure you parsed the response correctly.

eg. URL:

GET https://gdata.youtube.com/feeds/api/videos/(the-video-id)?v=2&alt=json

More info:

YouTube API for a specific video

Developer's Guide: JSON / JavaScript

Problem

What is the easiest way to get the title from the youtybe video , for example this video title : http://www.youtube.com/watch?v=Wp7B81Kx66o Thanks !

Original source

Related problems