Quantcast
Channel: Active questions tagged youtube-api - Stack Overflow
Viewing all articles
Browse latest Browse all 3717

Youtube API channels by categoryId

$
0
0

I am trying to filter channels by categoryId in the youtube API

When I do not include the categoryId in my query params I get this which is to be expectedhttps://www.googleapis.com/youtube/v3/channels?key=(MY_API_KEY_HERE)&categoryId=1&part=id,status,snippet,brandingSettings

{"error": {"code": 400,"message": "No filter selected. Expected one of: mySubscribers, categoryId, mine, id, forUsername, managedByMe","errors": [            {"message": "No filter selected. Expected one of: mySubscribers, categoryId, mine, id, forUsername, managedByMe","domain": "youtube.parameter","reason": "missingRequiredParameter","location": "parameters.","locationType": "other"            }        ]    }}

If i enter a categoryId in the query params using any of the categories I get from this list then I get this result which doesnt make sense since i would assume the categoryId is a filter so why is it None?

https://www.googleapis.com/youtube/v3/channels?key=(MY_API_KEY_HERE)&categoryId=1&part=id,status,snippet,brandingSettings

https://www.googleapis.com/youtube/v3/videoCategories?part=snippet&regionCode=CA&key=(MY_API_KEY_HERE)

{"error": {"code": 400,"message": "Request contains an invalid argument.","errors": [            {"domain": "youtube.api.CommonRequestError","reason": "ERROR_FILTER_NONE_SELECTED"            }        ],"status": "INVALID_ARGUMENT"    }}

Viewing all articles
Browse latest Browse all 3717

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>