GET
/
api
/
v2
/
storefront
/
post_categories
List all Post Categories
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"
  }
}

Query Parameters

filter[ids]
string

Fetch only resources with corresponding IDs

filter[title]
string

Filter Post Categories by title

page
integer

Number of requested page when paginating collection

per_page
integer

Number of requested records per page when paginating collection

sort
enum<string>

Sort post categories by attribute. Prefix with "-" for descending order. Available options: id, title, created_at, updated_at

Available options:
id,
-id,
title,
-title,
created_at,
-created_at,
updated_at,
-updated_at

Response

200 - application/json

Success

data
Post Category · object[]
meta
object