Get active market count per category
Markets
Get Category Counts
Returns the number of active markets for each category and the total market count
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:- Call
GET /markets/categories/countto list active category IDs and counts. - For each ID, call
GET /markets/active/{categoryId}withlimit=1and readcategories[0]from the returned market to learn the human-readable name. - Cache the mapping — category IDs are stable across a session.