Subcategory Name API

Hey,

Can anyone please help me to get subcategories name through the API. I get all the details of categories but i only get subcategory id. I want name of the subcategory.

One more thing - color and text color of a subcategory will be same as parent category ?

1 Like

You can get details about all categories, including subcategories, by making a request to /site.json.

The badge color for a subcategory is set by you when you create the subcategory. For subcategories, the parent badge color is displayed along with the subcategory color. For example:

image

or

image

The first color is the parent category badge color, the second color is for the subcategory.

5 Likes