Alpha — This endpoint is part of the Prediction Markets API, currently in early access. May change without notice.
Query Parameters
Number of categories to return.
Response
Array of category objects.
Total number of markets in this category.
Number of currently active markets.
24h volume across all markets in this category.
All-time volume across all markets in USD.
Pagination metadata.
Current page number (1-indexed).
Number of entries in current page.
Request processing time in milliseconds.
Usage Example
curl -X GET "https://api.mobula.io/api/2/pm/categories"
Example Response
{
"data": [
{ "id": "politics", "name": "Politics", "marketsCount": 450, "activeMarketsCount": 120, "volume24hUSD": 5200000, "totalVolumeUSD": 890000000 },
{ "id": "crypto", "name": "Crypto", "marketsCount": 320, "activeMarketsCount": 85, "volume24hUSD": 3100000, "totalVolumeUSD": 450000000 },
{ "id": "sports", "name": "Sports", "marketsCount": 180, "activeMarketsCount": 60, "volume24hUSD": 1800000, "totalVolumeUSD": 220000000 }
],
"pagination": {
"page": 1,
"offset": 0,
"limit": 50,
"pageEntries": 3
},
"hostname": "node-xyz",
"took": 42
}