I asked the same question a long time ago, https://meta.discourse.org/t/how-to-get-subcategory-names-using-api/29795