# How to get a category name with the ID via API

**URL:** <https://meta.discourse.org/t/how-to-get-a-category-name-with-the-id-via-api/65926>\
**Category:** Development\
**Created:** [10 juli 2017 om 08:48 UTC](https://meta.discourse.org/t/how-to-get-a-category-name-with-the-id-via-api/65926 "2017-07-10T08:48:03Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![nedbat](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nedbat/32/150103_2.png) [@nedbat](https://meta.discourse.org/u/nedbat)\
**Post date:** [16 maart 2020 om 22:22 UTC](https://meta.discourse.org/t/how-to-get-a-category-name-with-the-id-via-api/65926/8 "2020-03-16T22:22:21Z")

</div>

site.json seems to be the way to get a list of all categories. Is it mentioned somewhere in [docs.discourse.org](http://docs.discourse.org)? I was scouring the docs looking for a way to get the names of subcategories and couldn’t find it. Or is there a better way?

---

_[View the full topic](https://meta.discourse.org/t/how-to-get-a-category-name-with-the-id-via-api/65926)._
