Following post explains you fetching Youtube title from Youtube Id

Example youtube Id of given url which will be ==YQHsXMglC9A ==

$.getJSON( "<<youtubeId>>&key=<<API KEY of google console app>>", function( data ) {
   //var obj = $.parseJSON(data);

Post Explained

So what we are doing here?

Here we are doing asynchronous ajax call to YouTube API to fetch video details using jQuery, remember that we are printing/Console.log of YouTube title, In order to fetch more information look at JSON response and work accordingly

NOTE If you need any help in setting up API keys click here