Returns the details of a specified Post Category, including related posts. You can use either the category slug or ID. This endpoint is only available in Spree 5.2 or later.
JavaScript
const options = {method: 'GET'}; fetch('https://demo.spreecommerce.org/api/v2/storefront/post_categories/{id}', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err));
{ "data": { "id": "3", "type": "post_category", "attributes": { "title": "News", "slug": "news", "created_at": "2025-08-11T20:58:24.375Z", "updated_at": "2025-08-11T20:58:24.375Z", "description": null }, "relationships": { "posts": { "data": [ { "id": "1", "type": "post" } ] } } } }
Post Category slug or ID
Include related resources (available: posts)
Success
Post Category represents a category for organizing blog posts or news articles.
Show child attributes
Was this page helpful?