1
votes

I am using youtube data api (GET https://www.googleapis.com/youtube/v3/channels?part=snippet&categoryId=GCQ29va2luZyAmIEhlYWx0aA&maxResults=5&key={YOUR_API_KEY}). but getting no channel list in response. tried for so many categoryId's from different regionCode.

response from youtube api - 200

{
     "kind": "youtube#channelListResponse",
     "etag": "Wu2llbfqCdxIVjGbVPm2DslKPCA/ewwRz0VbTYpp2EGbOkvZ5M_1mbo",
     "pageInfo": {
       "totalResults": 0,
       "resultsPerPage": 5
     },
    "items": [
    ]
}
1

1 Answers

0
votes

Looks like you copy pasted the URI

GET https://www.googleapis.com/youtube/v3/channels

,attached an API_KEY then pasted it on your browser.

What I would recommend is use the Try-it for testing then use OAuth for authorization when actually coding the app. You can see several Quickstarts in the Youtube Guide.