# Get product categories
You can return a list of all your product categories.
GET
/product-categories-by-id/
# Request
- CURL
- JavaScript
- PHP
- Python
curl -X GET -H "Authorization: Token <your_64_char_api_key>"
-H "Accept: */*; version=2"
"https://<your_app_subdomain>.user.com/api/public/product-categories-by-id/"
# Response
{
"count": 2,
"next": null,
"previous": null,
"results": [
{
"id": 30,
"name": "my category_1",
"custom_id": "my_id_1",
"description": "category description"
},
{
"id": 32,
"name": "my category_2",
"custom_id": "custom_id_2",
"description": "category description"
}
]
}