I'm including my YouTube channel with my videos on my site. But there's a part of Json that I can not recover.
I'm doing this:
$.each($feed.items, function(i,item){
var url = item.videoId;
I commented on the code for you to see from Json. But it's coming undefined .
{
"kind": "youtube#searchListResponse",
"etag": "\"***/***"",
"nextPageToken": "CAUQAA",
"pageInfo": {
"totalResults": 9,
"resultsPerPage": 5
},
"items": [
{
"kind": "youtube#searchResult",
"etag": "\"***/***"",
"id": {
"kind": "youtube#video",
"videoId": "*************" ############################## AQUI
},
"snippet": {
"publishedAt": "2015-05-26T17:47:49.000Z",
"channelId": "****",
"title": "TITULO",
"description": "",
"thumbnails": {
"default": {
"url": "default.jpg"
},
"medium": {
"url": "qdefault.jpg"
},
"high": {
"url": "hqdefault.jpg"
}
},
"channelTitle": "TESTE",
"liveBroadcastContent": "none"
}
},