Querying Bets¶
The Partner API supports querying historical bets, subject to the following constraints:
Date Range Filtering
You can filter results using the since and until parameters. However, if no product, or bet identifier is provided; the following date range rules apply:
- If both
sinceanduntilare provided and the range exceeds 90 days, the request will be rejected. - If only one of
sinceoruntilis provided, a 30-day window will be applied, ending or starting on the provided date. - If neither
sincenoruntilis provided, the request will return bets from the current day only.
Pagination Limits
- A maximum of 250 bets per page can be returned.
- If neither
first(forward pagination) norlast(backward pagination) is specified, the API defaults to forward pagination with 250 results per page.
{
"data": {
"bets": {
"pageInfo": {
"startCursor": "NTA=",
"endCursor": "NTA=",
"hasNextPage": true,
"hasPreviousPage": false
},
"nodes": [
{
"id": "bet-b0f724d6-b23d-4076-8a8d-5c47b4c5b3f3-1",
"toteId": "403fb4c321dc46709f1fe2f53fec089a",
"placement": {
"status": "ACCEPTED",
"stake": {
"currency": {
"code": "GBP"
},
"decimalAmount": 1.5
}
},
"ticket": {
"id": "ticket-b0f724d6-b23d-4076-8a8d-5c47b4c5b3f3",
"toteId": "956abb50b32943d0ad05bb14df0aa02b"
}
}
]
}
}
}