Fetching Data & Pagination

How to efficiently retrieve and paginate through large datasets.

Pagination

Endpoints that return large result sets support limit and offset parameters. The default limit is 500 rows, with a maximum of 5,000 per request.

ParameterTypeDefaultMaxDescription
limitinteger5005,000Maximum rows to return
offsetinteger0-Number of rows to skip
Paginate through snapshots
# Page 1
GET /v1/markets/{id}/snapshots?limit=500&offset=0

# Page 2
GET /v1/markets/{id}/snapshots?limit=500&offset=500

# Page 3
GET /v1/markets/{id}/snapshots?limit=500&offset=1000

Time-Range Filtering

Use from and to parameters to restrict results to a specific time window.

Fetch snapshots for a specific hour
GET /v1/markets/{id}/snapshots?from=2026-03-10 14:00:00&to=2026-03-10 15:00:00
Timestamp Format

All timestamps use YYYY-MM-DD HH:MM:SS or YYYY-MM-DD HH:MM:SS.mmm format in UTC.

Filtering

FilterValuesApplies To
categorycrypto, sports, economics, weatherMarkets, History endpoints
subcategoryBTC, NBA, FOMC, NYC, etc.Markets, History endpoints
cryptoBTC, ETH, SOL, XRPMost endpoints (legacy)
timeframe5m, 15m, 1h, 1dMost endpoints
sideUP, DOWNSnapshot endpoints

Response Structure

Paginated responses include metadata to help you iterate through results:

Paginated response shape
{
  "market_id": "0x...",
  "total": 54000,      // Total matching rows
  "limit": 500,        // Current page size
  "offset": 0,         // Current offset
  "data": [...]        // Array of results
}
Fetching & Pagination — API Docs | Resolved Markets