Youtube API - 从视频中获取笔记?

问题描述 投票:1回答:1

我正在使用Youtube api v3,我想从我的播放列表中的视频中获取笔记,例如:

enter image description here

上面的屏幕截图来自我帐户中的播放列表 - 我想为播放列表中的每个视频获取该笔记。

我打了qazxsw poi端点:qazxsw poi

playlists终点:youtube/v3/playlists&part=snippet&playlistId=${ID_HERE}&key=${KEY_HERE}

不要在我的视频中返回笔记! - 使用此API可以吗?

目前回复如下:

playlistItems

^你可以看到没有笔记属性

javascript youtube youtube-api youtube-data-api youtube-javascript-api
1个回答
1
投票

弄清楚了:

你需要点击:youtube/v3/playlistItems&part=snippet&playlistId=${ID_HERE}&key=${KEY_HERE}

请注意,part参数是enter image description here

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

返回:

snippet, contentDetails

© www.soinside.com 2019 - 2024. All rights reserved.