Base URL
All API requests should be made to:Authentication
The poly-data API is currently open access — no authentication required.Rate Limits
To ensure fair usage, the API enforces rate limits:| Scope | Limit | Window |
|---|---|---|
| Global (all endpoints) | 60 requests | 1 minute |
| Orderbooks endpoints | 30 requests | 1 minute |
| Header | Description |
|---|---|
RateLimit-Limit | Maximum requests allowed |
RateLimit-Remaining | Requests remaining in current window |
RateLimit-Reset | Unix timestamp when the limit resets |
429 Too Many Requests response.
Pagination
The API supports two pagination methods:Cursor-based (Recommended)
Use thenext object returned in responses for efficient pagination through large datasets.
Offset-based
Traditional offset pagination is available but less efficient for large datasets:Response Format
All responses are JSON. Successful responses return data directly, while errors follow this format:HTTP Status Codes
| Status Code | Description |
|---|---|
200 | Success |
400 | Bad request (missing or invalid parameters) |
404 | Resource not found |
429 | Rate limit exceeded |
500 | Internal server error |
Caching
Responses are cached briefly to improve performance:| Endpoint | Cache TTL |
|---|---|
| Most endpoints | 2-5 seconds |
/orderbooks/latest | 500ms |
Endpoints Overview
Events
Search and list prediction market events.
Markets
Get market details and token information.
Orderbooks
Access historical orderbook snapshots.
Statistics
Database size and system statistics.