curl --request GET \
--url https://demo.spreecommerce.org/api/v2/storefront/post_categories{
"data": [
{
"id": "1",
"type": "post_category",
"attributes": {
"title": "Resources",
"slug": "resources",
"created_at": "2025-08-11T20:58:24.354Z",
"updated_at": "2025-08-11T20:58:24.354Z",
"description": null
},
"relationships": {}
},
{
"id": "2",
"type": "post_category",
"attributes": {
"title": "Articles",
"slug": "articles",
"created_at": "2025-08-11T20:58:24.365Z",
"updated_at": "2025-08-11T20:58:24.365Z",
"description": null
},
"relationships": {}
},
{
"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": {}
}
],
"meta": {
"count": 3,
"total_count": 3,
"total_pages": 1
},
"links": {
"self": "http://localhost:3000/api/v2/storefront/post_categories",
"next": "http://localhost:3000/api/v2/storefront/post_categories?page=1",
"prev": "http://localhost:3000/api/v2/storefront/post_categories?page=1",
"last": "http://localhost:3000/api/v2/storefront/post_categories?page=1",
"first": "http://localhost:3000/api/v2/storefront/post_categories?page=1"
}
}Returns a list of Post Categories. This endpoint is only available in Spree 5.2 or later.
curl --request GET \
--url https://demo.spreecommerce.org/api/v2/storefront/post_categories{
"data": [
{
"id": "1",
"type": "post_category",
"attributes": {
"title": "Resources",
"slug": "resources",
"created_at": "2025-08-11T20:58:24.354Z",
"updated_at": "2025-08-11T20:58:24.354Z",
"description": null
},
"relationships": {}
},
{
"id": "2",
"type": "post_category",
"attributes": {
"title": "Articles",
"slug": "articles",
"created_at": "2025-08-11T20:58:24.365Z",
"updated_at": "2025-08-11T20:58:24.365Z",
"description": null
},
"relationships": {}
},
{
"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": {}
}
],
"meta": {
"count": 3,
"total_count": 3,
"total_pages": 1
},
"links": {
"self": "http://localhost:3000/api/v2/storefront/post_categories",
"next": "http://localhost:3000/api/v2/storefront/post_categories?page=1",
"prev": "http://localhost:3000/api/v2/storefront/post_categories?page=1",
"last": "http://localhost:3000/api/v2/storefront/post_categories?page=1",
"first": "http://localhost:3000/api/v2/storefront/post_categories?page=1"
}
}Fetch only resources with corresponding IDs
Filter Post Categories by title
Number of requested page when paginating collection
Number of requested records per page when paginating collection
Sort post categories by attribute. Prefix with "-" for descending order. Available options: id, title, created_at, updated_at
id, -id, title, -title, created_at, -created_at, updated_at, -updated_at Success
Show child attributes
"1"
Show child attributes
Title of the post category
"News"
URL-friendly identifier for the post category
"news"
"2020-02-16T07:14:54.617Z"
"2020-02-16T07:14:54.617Z"
Description of the post category
null
Was this page helpful?