Skip to main content
GET
/
api
/
events
/
categories
List event categories
curl --request GET \
  --url http://localhost:8000/api/events/categories \
  --header 'Authorization: Bearer <token>'
[
  {
    "category": "Sports",
    "count": 2847
  },
  {
    "category": "Elections",
    "count": 1923
  },
  {
    "category": "Politics",
    "count": 1654
  },
  {
    "category": "Economics",
    "count": 1432
  },
  {
    "category": "Crypto",
    "count": 1198
  },
  {
    "category": "Entertainment",
    "count": 987
  },
  {
    "category": "Science",
    "count": 634
  },
  {
    "category": "Technology",
    "count": 512
  },
  {
    "category": "Weather",
    "count": 320
  }
]

Authorizations

Authorization
string
header
required

Use your API key as a Bearer token. Example: Authorization: Bearer mk_live_...

Response

A list of categories with event counts.

category
string

Category name.

Example:

"Sports"

count
integer

Number of events in this category.

Example:

2847