是否有可能以某种方式通过标签浏览 youtube 视频?

Is possible somehow explore youtube videos by hashtag?

我一直在查看 YouTube API,我想知道是否可以通过主题标签以某种方式搜索 YouTube 视频,例如

我想浏览 YouTube 视频以获得标签 #funny

我已阅读 YouTube API 文档,但未找到任何内容。

Search: list

Returns a collection of search results that match the query parameters specified in the API request. By default, a search result set identifies matching video, channel, and playlist resources, but you can also configure queries to only retrieve a specific type of resource.

根据我的经验,这是对视频的标题和描述的全文搜索,因此假设您的哈希标签在描述中,您应该能够搜索它们。

请求

GET https://www.googleapis.com/youtube/v3/search?part=snippet&maxResults=25&q=%23funny&key={YOUR_API_KEY}

回应

{
 "kind": "youtube#searchListResponse",
 "etag": "\"RmznBCICv9YtgWaaa_nWDIH1_GM/wR5yPzOxAnu-87xJGtSkLXz_78Q\"",
 "nextPageToken": "CBkQAA",
 "regionCode": "DK",
 "pageInfo": {
  "totalResults": 1000000,
  "resultsPerPage": 25
 },
 "items": [
  {
   "kind": "youtube#searchResult",
   "etag": "\"RmznBCICv9YtgWaaa_nWDIH1_GM/IByts9zZTVNkc5EfbIDTKpE6pf8\"",
   "id": {
    "kind": "youtube#video",
    "videoId": "DODLEX4zzLQ"
   },
   "snippet": {
    "publishedAt": "2017-06-17T10:03:47.000Z",
    "channelId": "UCKy3MG7_If9KlVuvw3rPMfw",
    "title": "WATCH and TRY TO STOP LAUGHING - Super FUNNY VIDEOS compilation",
    "description": "Can you hold your laugh while watching these clips? :) Mix of best and funniest animal & human fails. We bet you will lose this laugh challenge. Anyways, what is your favorite clip? :) Hope...",
    "thumbnails": {
     "default": {
      "url": "https://i.ytimg.com/vi/DODLEX4zzLQ/default.jpg",
      "width": 120,
      "height": 90
     },
     "medium": {
      "url": "https://i.ytimg.com/vi/DODLEX4zzLQ/mqdefault.jpg",
      "width": 320,
      "height": 180
     },
     "high": {
      "url": "https://i.ytimg.com/vi/DODLEX4zzLQ/hqdefault.jpg",
      "width": 480,
      "height": 360
     }
    },
    "channelTitle": "Tiger Productions",
    "liveBroadcastContent": "none"
   }
  },

这是它返回的视频WATCH and TRY TO STOP LAUGHING - Super FUNNY VIDEOS compilation#funny 在描述中。

你可以在这里自己试一下Google Apis Explorer