Skip to content

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 since and until are provided and the range exceeds 90 days, the request will be rejected.
  • If only one of since or until is provided, a 30-day window will be applied, ending or starting on the provided date.
  • If neither since nor until is 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) nor last (backward pagination) is specified, the API defaults to forward pagination with 250 results per page.
query GetBets {
  bets(since: "2025-01-01T00:00:00Z" until: "2025-01-31T00:00:00Z" first: 1) {
    pageInfo {
      startCursor
      endCursor
      hasNextPage
      hasPreviousPage
    }
    nodes {
      id
      toteId
      placement {
        status
        stake {
          currency {
            code
          }
          decimalAmount
        }
      }
      ticket {
        id
        toteId
      }
    }
  }
}
{
  "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"
          }
        }
      ]
    }
  }
}