Categories

List all categories

To list all categories, use the following endpoint:

GET https://api.categoryapi.com/prod/categories

Response

This endpoint responds with 200 OK, including a dictionary of all category IDs and category names.

{
  "499954": [
    "Animals & Pet Supplies",
    "Pet Supplies",
    "Bird Supplies",
    "Bird Cage Accessories",
    "Bird Cage Bird Baths"
  ],
  "4433": [
    "Animals & Pet Supplies",
    "Pet Supplies",
    "Cat Supplies",
    "Cat Beds"
  ],
  "5002": [
    "Animals & Pet Supplies",
    "Pet Supplies",
    "Cat Supplies",
    "Cat Treats"
  ],
  ...
}

Each category consists of:

  • A category_id, which matches the Google product categories.

  • An array of category_names, also matching the Google product classification.

Download

You can also download the list of categories in JSON format or CSV format.

Credit usage

This API endpoint does not count toward your credit usage.