能否成功地在API中搜索latlong特定半径内的视频列表,但是如何从响应数据访问latlong?
我既使用了YouTube的API Playground工具,也使用了Postman,并在VSCode中运行了一些示例代码。这是“ items”的响应列表中的1个条目。另外,视频的网址在哪里?
{
"kind": "youtube#searchResult",
"etag": "\"j6xRRd8dTPVVptg711_CSPADRfg/fsqRXEIJN16lp5xdhifY88TcbVg\"",
"id": {
"kind": "youtube#video",
"videoId": "5QPeyrHwlwk"
},
"snippet": {
"publishedAt": "2019-10-27T12:24:13.000Z",
"channelId": "UCT350j4u6alUKyF9eu2bGug",
"title": "Kincade Fire, PG&E Power Shutoffs, Extreme winds across California | Live overnight coverage",
"description": "Kincade Fire, PG&E Power Shutoffs, Extreme winds across California | Live overnight coverage 900000+ customers lose power due to PG&E public safety ...",
"thumbnails": {
"default": {
"url": "https://i.ytimg.com/vi/5QPeyrHwlwk/default.jpg",
"width": 120,
"height": 90
},
"medium": {
"url": "https://i.ytimg.com/vi/5QPeyrHwlwk/mqdefault.jpg",
"width": 320,
"height": 180
},
"high": {
"url": "https://i.ytimg.com/vi/5QPeyrHwlwk/hqdefault.jpg",
"width": 480,
"height": 360
}
},
"channelTitle": "ABC10",
"liveBroadcastContent": "none"
}
}
我希望响应数据实际上具有经度和纬度,因为我已将其输入查询中,但是它在哪里?我听说有一个名为“ recordingDetails”的属性,但是我怎么知道呢?我以为这只是向我展示“代码段”部分,但是还有其他我可以查询的部分吗?