我使用YouTube數據API版本3,讓高層YouTube視頻,我調用REST API是這樣的:YouTube數據API V3 - 無視頻網址
,並得到這樣的數據這是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"
}
但這個數據不包含youtube視頻網址,我怎麼能從api獲取它?
感謝名單,它的工作:) – 2014-10-17 18:11:22
有沒有辦法得到充分的鏈接程序?我們有可以確定的id,但是如果鏈接格式更改爲「id」而不是「v」,該怎麼辦?像「https://www.youtube.com/watch?id=123123asdsad12」 – 2015-05-20 09:34:28
它'v'廣告時,它永遠不會改變:) – mpgn 2015-05-20 10:11:50