REST APICategories
Get category statistics
GET
Get statistics about a specific category including volume and liquidity.
ApiKeyAuthheader
x-api-key<token>API key authentication via the x-api-key header.
id*integerThe category's ID.
Format
int64application/json; charset=utf-8- response
Response for GET /v1/categories/:id/stats
success*booleandata*Category statistics data
curl -X GET 'https://api.predict.fun/v1/categories/0/stats'Example Response
{ "success": true, "data": { "totalLiquidityUsd": 0.1, "volumeTotalUsd": 0.1, "volume24hUsd": 0.1, "holdersCount": 0 }}Get category by slug GET
Get category information and its markets by slug.
Get category translations GET
Fetch all available translations for a category, its markets, and their outcomes for the requested languages in a single call. languages is a comma-separated list of BCP 47 language codes (e.g. zh-CN,ja-JP,ko-KR). If a language code has no completed translations it is omitted from the response rather than returning an error.