1
votes

I am using youtube api v3 for get channel's show list. For that i am using following method as it in document, https://www.googleapis.com/youtube/v3/search?channelType=show&part=snippet&channelId=UC55IWqFLDH1Xp7iu1_xknRA&key={YOUR_API_KEY} Its give error like 400 Bad Request. Can any one tell me what's wrong wih this api?

Thanks, Ankur

1

1 Answers

1
votes

You need to set type=channel as it says in

"debugInfo": "code: ERROR_INVALID_FILTER\nlocation: \nhttp status: 400\n[debug] Filters on channels are only available when type=channel\n\ncom.google.api.server.core.Fault: ImmutableErrorDefinition{base=BAD_REQUEST, category=USER_ERROR, cause=null, debugInfo=code: ERROR_INVALID_FILTER\nlocation: \nhttp status: 400\n[debug] Filters on channels are only available when type=channel\n, domain=youtube.search, extendedHelp=null, httpHeaders={}, httpStatus=badRequest, internalReason=Reason{arguments={}, cause=null,