List Blog Categories

Returns the blog categories of the account, sorted A to Z, with the number of published articles in each. This list is public and read-only; use the slug to filter GET /v1/blog.

GET/v1/blog/categories

Authentication

Public key?key=pk_…

Public key in the key query parameter. No OAuth, no secret.

Edge cache: 5 s

Query Parameters

keystring
required

The site's public key (pk_…). It selects the account. Safe to ship to the browser.

Responses

200Success
application/json
categoriesarray[object]

Errors

401Missing or invalid public key
403TENANT_INACTIVE: the account has no active subscription (body also carries code)

Notes

  • Categories with no published article are still listed, with count: 0.
  • color is a Tailwind palette name (zinc by default, blue, emerald and so on) that you can map to your own chip style.
  • An article whose slug is literally categories cannot be read through GET /v1/blog/:slug.
Request
curl --request GET \
--url "https://api.pandaidx.com/v1/blog/categories?key={{public_key}}"
Response200 OK
{
"categories": [
{
"slug": "home-buyers",
"name": "Home Buyers",
"color": "blue",
"count": 6
},
{
"slug": "market-updates",
"name": "Market Updates",
"color": "zinc",
"count": 3
}
]
}