Skip to main content
GET
/
2
/
pm
/
categories
Get prediction market categories
curl --request GET \
  --url https://demo-api.mobula.io/api/2/pm/categories
{
  "data": [
    {
      "id": "<string>",
      "name": "<string>",
      "marketsCount": 123,
      "activeMarketsCount": 123,
      "volume24hUSD": 123,
      "totalVolumeUSD": 123
    }
  ],
  "pagination": {
    "page": 123,
    "offset": 123,
    "limit": 123,
    "pageEntries": 123
  },
  "hostname": "<string>",
  "took": 123
}

Query Parameters

limit
number
default:"50"
Number of categories to return.
offset
number
default:"0"
Pagination offset.

Response

data
array
Array of category objects.
pagination
object
Pagination metadata.
hostname
string
Server node identifier.
took
number
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
}

Query Parameters

limit
number
default:50

Number of categories to return (1-100).

offset
number
default:0

Pagination offset.

Response

200 - application/json

Categories list

data
object[]
pagination
object
hostname
string
took
number