2013-06-18 76 views
0

我想要使用YouTube API從YouTube獲取視頻列表。我正在使用API​​密鑰。當我使用下面的網址一切工作正常,我得到想要的結果: GET https://www.googleapis.com/youtube/v3/videos?part=id%2Csnippet%2CcontentDetails&id=I6zuKbBlmRo&key= {YOUR_API_KEY}使用YouTube視頻時無法獲取fileDetails部分API

但是當我添加fileDetails的部分參數,我得到這個反應的403禁止錯誤: GET https://www.googleapis.com/youtube/v3/videos?part=id%2Csnippet%2CcontentDetails%2CfileDetails&id=I6zuKbBlmRo&key= { YOUR_API_KEY}

403禁止

任何幫助將不勝感激。

感謝

回答

3

來自YouTube APIv3文檔:

The **fileDetails** object encapsulates information about the video file that was 
    uploaded to YouTube, including the file's resolution, duration, audio and video 
    codecs, stream bitrates, and more. **This data can only be retrieved by the video owner.** 

只有所有者才能獲得這些屬性。

+0

嗨,我是視頻的擁有者。那麼除了apikey之外,我們如何驗證相同的身份。我有json的關鍵,但我不知道如何附加在網址 –

+0

我有一段時間沒有看過那個api .... – sirvon

相關問題