在开发 Google Chrome 扩展程序时,我偶然发现了一个问题,我不确定是我做错了什么还是 Youtube Data API v3 错误。
所以问题是,即使我在“list”调用中指定 type:“video”,我也会得到播放列表结果。
为了确保我的代码没有问题,我去了: https ://developers.google.com/youtube/v3/docs/search/list#try-it
我在字段中添加了以下内容:
part: snippet
channelId: UCy1Ms_5qBTawC-k7PVjHXKQ
maxResults: 50
q: Content Patch
type: video
在我得到的结果上:
"id": {
"kind": "youtube#playlist", // < Playlist item :\
"playlistId": "PLB9225A9DA3422059"
},
"kind": "youtube#searchResult",
"etag": "\"oLweQuB9Vh7wAB9a0AIHg_K-wsM/dR9GDZWu_nfsoaj5bdrHQ3Ng_GA\"",
"snippet": {
"publishedAt": "2012-10-31T13:02:09.000Z",
"channelId": "UCy1Ms_5qBTawC-k7PVjHXKQ",
"title": "Content Patch",
"description": "A daily gaming news show, which efficiently integrates opinionated commentary and also our viewers' feedback in a concise and to-the-point manner.",
谁能指出我正确的方向?谢谢你的时间。