- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Retrieve a Category in Storefront
In this document, learn how to retrieve a product category and its details in the storefront.
There are two ways to retrieve a product category:
- Retrieve a category by its ID.
- Retrieve a category by its
handle
field. This is useful if you're creating human-readable URLs in your storefront.
Retrieve a Product Category by ID#
To retrieve a product category by its ID, send a request to the Get a Product Category API route:
The response has a product_category
field, which is a product category object.
Retrieve a Product Category by Handle#
To retrieve a product by its handle, send a request to the List Product Categories API route passing it the handle
query parameter:
Was this page helpful?