使用 youtube API 3.0 检索 youtube 视频位置标签

Retrieving youtube video location tag using youtube API 3.0

我在从 Youtube API 检索视频位置标签时遇到一些问题。标签设置在

下面是我尝试过的方法,我无法在我的数据中看到视频位置标签。

 var youtubeService = new YouTubeService(initialiser);
 var ListRequest = new Google.Apis.YouTube.v3.PlaylistItemsResource.ListRequest(youtubeService, "");
 ListRequest = youtubeService.PlaylistItems.List("snippet");
 ListRequest.PlaylistId = _PlayListID; var playlistItemsListResponse = playlistItemsListRequest.Execute();

您似乎正在使用 Playlistitems.list 方法

Returns a collection of playlist items that match the API request parameters. You can retrieve all of the playlist items in a specified playlist or retrieve one or more playlist items by their unique IDs.

PlaylistItems resource其中不包含有关播放列表项位置的任何信息。

Video.list returns a list of videos which used to have a locationDescription property which has been deprecated since June 1, 2017

剩下的唯一 属性 似乎有任何关于视频位置的信息是 recordingDetails 您必须检查其中包含的内容。但同样这是在视频上而不是播放列表项上。

The recordingDetails object encapsulates information about the location, date and address where the video was recorded.