I have the following link to access:
https://www.googleapis.com/youtube/v3/search?part=snippet&maxResults=5&q=brksedu&key={YOUR_API_KEY}
When accessed directly it returns an array like this:
{
"kind": "youtube#searchListResponse",
"etag": "\"I_8xdZu766_FSaexEaDXTIfEWc0/Y3YIz5M5plLC7zcRxibBlX47-aU\"",
"nextPageToken": "CAIQAA",
"regionCode": "BR",
"pageInfo": {
"totalResults": 159704,
"resultsPerPage": 2
},
"items": [
{
"kind": "youtube#searchResult",
"etag": "\"I_8xdZu766_FSaexEaDXTIfEWc0/UDOCuqtHTALjQUfIUcgkxYCRNPg\"",
"id": {
"kind": "youtube#channel",
"channelId": "UCWKtHaeXVzUscYGcm0hEunw"
},
"snippet": {
"publishedAt": "2010-07-30T02:06:06.000Z",
"channelId": "UCWKtHaeXVzUscYGcm0hEunw",
"title": "BRKsEDU",
"description": "Canal de gameplays e vlogs de games e entretenimento! Ou seja: tenho o melhor trabalho do mundo! =) Jogos favoritos: Life Is Strange, Shadow of the ...",
"thumbnails": {
"default": {
"url": "https://yt3.ggpht.com/-4VkVjXuRhlU/AAAAAAAAAAI/AAAAAAAAAAA/MtEHi_HPB5E/s88-c-k-no-mo-rj-c0xffffff/photo.jpg"
},
"medium": {
"url": "https://yt3.ggpht.com/-4VkVjXuRhlU/AAAAAAAAAAI/AAAAAAAAAAA/MtEHi_HPB5E/s240-c-k-no-mo-rj-c0xffffff/photo.jpg"
},
"high": {
"url": "https://yt3.ggpht.com/-4VkVjXuRhlU/AAAAAAAAAAI/AAAAAAAAAAA/MtEHi_HPB5E/s240-c-k-no-mo-rj-c0xffffff/photo.jpg"
}
},
"channelTitle": "BRKsEDU",
"liveBroadcastContent": "upcoming"
}
},
{
"kind": "youtube#searchResult",
"etag": "\"I_8xdZu766_FSaexEaDXTIfEWc0/iFm3mPRQQ_2agP1yM-gTXXMIzlk\"",
"id": {
"kind": "youtube#video",
"videoId": "uIMfeKEyOCE"
},
"snippet": {
"publishedAt": "2016-09-25T14:48:40.000Z",
"channelId": "UCWKtHaeXVzUscYGcm0hEunw",
"title": "FORZA HORIZON 3 #5 - Correndo Contra um Trem!? (PC Gameplay)",
"description": "Vídeo gameplay do jogo Forza Horizon 3, game exclusivo Microsoft disponível para Xbox One e PC. Forza Horizon 3 está disponível dublado e legendado em ...",
"thumbnails": {
"default": {
"url": "https://i.ytimg.com/vi/uIMfeKEyOCE/default.jpg",
"width": 120,
"height": 90
},
"medium": {
"url": "https://i.ytimg.com/vi/uIMfeKEyOCE/mqdefault.jpg",
"width": 320,
"height": 180
},
"high": {
"url": "https://i.ytimg.com/vi/uIMfeKEyOCE/hqdefault.jpg",
"width": 480,
"height": 360
}
},
"channelTitle": "BRKsEDU",
"liveBroadcastContent": "none"
}
}
]
}
My question is: How to access this url with ajax and get the elements of the return. For example, I want to get the channelTitle. Thanks!