Category by id using API

Is there a way to get category by id using the api? Right now I’m using categories.json and iterating over the results. This feels like a dumb question, so sorry if it is.

1 Like

You could try something like https://meta.discourse.org/c/feature.json
and get something like topic_list.topics[0].category_id. Maybe?

2 Likes

Thanks for your reply. That’s not quite what I’m after. I’m using the api to give group owners the ability to add, remove, rename, and choose color of child categories within a private group (but not outside the group). So I’m using categories.json to get the parent category (preferably by id) and then site.json to get the child categories.