Sto usando youtube dati API versione 3, per ottenere i migliori video di YouTube, sto chiamando l'API REST in questo modo:Youtube dati API V3 - No Video url
e ottenere i dati come questo è il formato jSON:
"kind": "youtube#searchResult",
"etag": "adasdasdasdasdas",
"id":
{
"kind": "youtube#video",
"videoId": "123123asdsad12"
},
"snippet":
{
"publishedAt": "date",
"channelId": "Gasdqqweqweqwr123123",
"title": "my tutle",
"description": "xyz",
"thumbnails":
{
"default":
{
"url": "......jpg",
"width": 120,
"height": 90
},
"medium":
{
"url": "......jpg",
"width": 320,
"height": 180
},
"high":
{
"url": "......jpg",
"width": 480,
"height": 360
}
},
"liveBroadcastContent": "none"
}
ma questi dati non contengono YouTube Video url, come posso ottenerlo dal api?
thanx ha funzionato :) –
C'è un modo per ottenere il collegamento completo a livello di codice? abbiamo l'id che è OK, ma cosa succede se il formato del link cambia ad esempio "id" invece di "v". Come "https://www.youtube.com/watch?id=123123asdsad12" –
è 'v' annuncio non cambia mai :) – mpgn