When using the API subcategories will now be returned nested inside of
each category response under the
subcategory_list param. We already
return all the subcategory ids under the
subcategory_ids param, but
you then would have to make multiple separate API calls to fetch each of
those subcategories. This way you can get ALL of the categories
along with their subcategories in a single API response.
The UI will not be affected by this change because you need to pass in
include_subcategories=true param in order for subcategories to be
In a follow up PR I’ll add the API scoping for fetching categories so
that a readonly API key can be used for the
/categories.json endpoint. This
endpoint should be used instead of the
/site.json endpoint for
fetching a sites categories and subcategories.