Base URL
All endpoints use the base URL:https://api.predictiondata.dev
Endpoints
By Market Slug
Returns all exports for a given market.By Market Slug and Side
Returns exports for a specific side (YES or NO) of a market.side: EitherYESorNO(case-insensitive)
By Event Slug
Returns all exports for all markets within an event.By Asset ID
Returns all exports for a specific asset ID.Response Format
All endpoints return data grouped by export type:Export Types
- books: Order book snapshots (tick-level reconstructions)
- trades: Trade messages from websockets
- onchain: Onchain fill data from smart contracts
Using the Results
Once you have the export metadata from the API response, you can download the data files using the asset ID and date.Download by Asset ID
Download by Market Slug + Outcome
Alternatively, use market slug and outcome (YES/NO) instead of looking up the asset ID:{export_type}:books,trades, oronchain{asset_id}: The asset ID from the API response{market_slug}: The market slug{outcome}: EitherYESorNO{date}: Date inYYYY-MM-DDformat (note: day may be single digit, e.g.,2025-11-8instead of2025-11-08)