Youtube API主题ID搜索无效

时间:2016-04-26 06:56:33

标签: search youtube-api freebase

我正在尝试使用YouTube Data API搜索特定主题ID'/ m / 06j8x'。我得到0结果。

GET https://www.googleapis.com/youtube/v3/search?part=snippet&topicId=%2Fm%2F06j8x&key={YOUR_API_KEY}

结果:

{
 "kind": "youtube#searchListResponse",
 "etag": "\"CuSCwMPVmgi8taDtE2LV6HdgkN0/ghbGp-0DJeq3NChI2_0bgqHroaA\"",
 "regionCode": "IN",
 "pageInfo": {
  "totalResults": 0,
  "resultsPerPage": 5
 },
 "items": [
 ]
}

当我为特定的视频ID检查相同内容时,我在topicDetails中获得了相关的主题ID:

{
 "kind": "youtube#videoListResponse",
 "etag": "\"CuSCwMPVmgi8taDtE2LV6HdgkN0/EmFw8XpBwZEL9mvH8a_hdr9d_Sg\"",
 "pageInfo": {
  "totalResults": 1,
  "resultsPerPage": 1
 },
 "items": [
  {

   "kind": "youtube#video",
   "etag": "\"CuSCwMPVmgi8taDtE2LV6HdgkN0/3BJWWacFULs5wKF-_-SeORU2QP4\"",
   "id": "uONflvUz6sc",
   "topicDetails": {
    "topicIds": [
     "/m/06j8x"
    ],
    "relevantTopicIds": [
     "/m/074ft",
     "/m/04rlf",
     "/m/06x7h_",
     "/m/04rlf"
    ]
   }
  }
 ]
}

我无法弄清楚为什么会这样。是因为youtube只搜索相关主题ID吗?

0 个答案:

没有答案