Since Youtube has closed the api v2, I had to rewrite some scripts in order to read Youtube playlists. With the help of AJAX, I have managed to successfully retrieve the items in the playlist.
for (var i in data.items)
However, I am facing an issue where I am unable to read the titles of the videos. I have tried:
data.items[i].title
but it doesn't seem to be working as expected.
Here is a snippet of the Youtube data:
"items": [
{
"kind": "youtube#playlistItem",
"etag": "\"dhbhlDw5j8dK10GxeV_UG6RSReM/nUoxGPc9-1QfJdGNICJpggBOQiw\"",
"id": "PL00i2_BlzsBvKHcdXdtJhomEFSeHrz4oI",
"snippet": {
"publishedAt": "2015-05-15T06:06:55.000Z",
"channelId": "UCKBfi2UItrlUlri-31wZTGA",
"title": "Patrick Rosa - Angels in the sky (Teaser)",
I'm feeling a bit lost on what might be going wrong. Any ideas?