Get category by slug
GET
/categories/{slug}Get category information and its markets by slug
Request
Path Params
slug
string
required
a string
Request samples
Responses
OK(200)
HTTP Code: 200
Content Type : JSONapplication/json
Response 200
Data Schema
success
boolean
required
a boolean
data
object
required
id
number
required
a number
slug
string
required
a string
title
string
required
a string
description
string
required
a string
imageUrl
string
required
a string
isNegRisk
boolean
required
a boolean
createdAt
string
required
date string
markets
array [object {21}]
required
startsAt
string
required
date string
status
enum<string>
required
Allowed values:
OPENRESOLVED
tags
array [object {2}]
required
Example
{
"success": true,
"data": {
"id": 0,
"slug": "string",
"title": "string",
"description": "string",
"imageUrl": "string",
"isNegRisk": true,
"createdAt": "string",
"markets": [
{
"id": 0,
"imageUrl": "string",
"title": "string",
"question": "string",
"description": "string",
"status": "REGISTERED",
"isNegRisk": true,
"feeRateBps": 0,
"resolution": {
"name": "string",
"indexSet": 0,
"onChainId": "string",
"status": "WON"
},
"oracleQuestionId": "string",
"conditionId": "string",
"resolverAddress": "string",
"outcomes": [
{
"name": "string",
"indexSet": 0,
"onChainId": "string",
"status": "WON"
}
],
"questionIndex": 0,
"pointAllocationBps": 0,
"spreadThreshold": 0,
"shareThreshold": 0,
"polymarketConditionIds": [
"string"
],
"categorySlug": "string",
"createdAt": "string",
"decimalPrecision": 2
}
],
"startsAt": "string",
"status": "OPEN",
"tags": [
{
"id": "string",
"name": "string"
}
]
}
}
Last modified: 11 days ago