Events are the top-level containers for related markets. For example, “2024 Presidential Election” is an event that contains multiple markets like “Will candidate A win?” and “Will candidate B win?”.
List Events
List all events, ordered by end date.
Query Parameters
Unix timestamp in milliseconds from previous response
Event ID from previous response
Example
curl "https://poly-data.xyz/events?limit=20"
Response:
{
"limit": 20,
"count": 20,
"next": {
"cursor_end_date": 1735689600000,
"cursor_id": 500
},
"data": [
{
"id": 101,
"title": "2024 Presidential Election",
"slug": "2024-presidential-election",
"volume": 15000000,
"market_ids": ["5001", "5002", "5003"],
"market_count": 3
}
]
}
Search Events
Search events by text query.
Query Parameters
Filter by archived status
Examples
Search for crypto-related events:
curl "https://poly-data.xyz/events/search?q=bitcoin"
Search for active sports events only:
curl "https://poly-data.xyz/events/search?q=superbowl&active=true&closed=false"
Response:
{
"q": "bitcoin",
"filters": {
"active": null,
"closed": null,
"archived": null
},
"limit": 50,
"count": 12,
"next": null,
"data": [
{
"id": 205,
"title": "Bitcoin Price Milestones",
"slug": "bitcoin-price-milestones",
"volume": 8500000,
"market_ids": ["6001", "6002"],
"market_count": 2
}
]
}
Get Event
Get a single event by ID.
Path Parameters
Example
curl "https://poly-data.xyz/events/101"
Response:
{
"id": 101,
"title": "2024 Presidential Election",
"slug": "2024-presidential-election",
"description": "Markets for the 2024 US Presidential Election",
"volume": 15000000,
"market_ids": ["5001", "5002", "5003"],
"market_count": 3,
"active": true,
"closed": false,
"archived": false
}
Get Event Markets
Get all markets belonging to an event.
Path Parameters
Query Parameters
Results per page (1-1000)
Market ID cursor for pagination
Example
curl "https://poly-data.xyz/events/101/markets?limit=50"
Response:
{
"event_id": "101",
"limit": 50,
"data": [
{
"id": 5001,
"event_id": 101,
"question": "Will candidate A win?",
"volume_24h": 250000,
"liquidity": 500000,
"active": true,
"closed": false
},
{
"id": 5002,
"event_id": 101,
"question": "Will candidate B win?",
"volume_24h": 180000,
"liquidity": 420000,
"active": true,
"closed": false
}
],
"next": null
}