Youtube API - Get notes from videos?

馋奶兔 提交于 2019-12-02 10:54:34

问题


Im using Youtube api v3, I want to get the notes from videos in my playslist for example:

The screenshot above is from a playlist I have in my account - I want to get that note for each video in my playlist.

Ive hit playlists endpoint: youtube/v3/playlists&part=snippet&playlistId=${ID_HERE}&key=${KEY_HERE}

and playlistItems endpoint: youtube/v3/playlistItems&part=snippet&playlistId=${ID_HERE}&key=${KEY_HERE}

Neither return the notes in my videos! - Is this possible using this API ?

Currently responses look like this:

^ You can see there is no notes property


回答1:


Figured it out:

You need to hit: https://www.googleapis.com/youtube/v3/playlistItems?part=snippet,contentDetails&playlistId=${PLAYLIST_ID}&key=${API_KEY}

Note the part parameter is snippet, contentDetails

See: https://developers.google.com/youtube/v3/docs/playlistItems#contentDetails

Returns:



来源:https://stackoverflow.com/questions/55326461/youtube-api-get-notes-from-videos

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!