Skip to main content
GET
Get active market count per category
Category IDs vs category names. The response’s category object uses numeric category IDs as keys ({ "1": 10, "2": 5, ... }). Use these IDs only for filtering — they are not human-readable labels, and their mapping to names is not fixed across environments.To display or match category names ("Crypto", "Sports", "Hourly", etc.), read the human-readable categories array on each market from Browse Active Markets or Get Market Details. Every market returns categories: string[], and those strings are the labels shown in the UI.To build an ID → name mapping in your client:
  1. Call GET /markets/categories/count to list active category IDs and counts.
  2. For each ID, call GET /markets/active/{categoryId} with limit=1 and read categories[0] from the returned market to learn the human-readable name.
  3. Cache the mapping — category IDs are stable across a session.

Response

Object containing category counts and total count

category
object
required

Number of active markets per category

Example:
totalCount
number
required

Total number of active markets

Example:

23