问题
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