Skip to main content
All list endpoints use cursor-based pagination.

Parameters

ParameterTypeDescription
limitintegerMax results per page
cursorstringCursor from previous response

Response Format

{
  "pagination": {
    "total": 1250,
    "limit": 20,
    "has_more": true,
    "next_cursor": "eyJpZCI6MTIzfQ=="
  }
}

Example

cursor = None
while True:
    params = {"provider": "polymarket", "limit": "50"}
    if cursor:
        params["cursor"] = cursor
    data = requests.get(url, params=params, headers=headers).json()
    all_markets.extend(data["markets"])
    if not data["pagination"]["has_more"]:
        break
    cursor = data["pagination"]["next_cursor"]