YouTube API v3 returns no items

末鹿安然 提交于 2020-01-14 09:10:07

问题


A week ago I started using the YouTube API v3, and have been able to retrieve 13 items from the API using this URL:

https://www.googleapis.com/youtube/v3/search?key={MyKey}&channelId={AChannelId}&part=snippet,id&order=date&maxResults=5

Today I used this exact same call/URL and now it returns:

// 20140828161458
// https://www.googleapis.com/youtube/v3/search?key={MyKey}&channelId={AChannelId}&>part=snippet,id&order=date&maxResults=5

{
  "kind": "youtube#searchListResponse",
  "etag": "\"gLjvtM18QUCicnbwPLo7vn_YIlg/Z7muB3yLsIIdSeQTKlRVObzSk8M\"",
  "pageInfo": {
    "totalResults": 0,
    "resultsPerPage": 5
  },
  "items": [

  ]
}

So no items are being returned, eventhough there should be 13. I used another channelId to make sure the problem wasn't in the channelId, but it also returned nothing.

I have checked the Google blog, but there was no mention of a change. Anyone have an idea what could be wrong?

来源:https://stackoverflow.com/questions/25551553/youtube-api-v3-returns-no-items

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!