Skip to main content

Latest Bets Queries

These queries provide paginated information about recent bets placed by all users.

latestBets​

Returns a paginated list of the most recent bets placed by all users, filtered by bet type with limit and offset for pagination.

Query​

query LatestBets($limit: Int, $offset: Int, $type: QueryUserBetType) {
latestBets(limit: $limit, offset: $offset, type: $type) {
data {
user {
id
username
avatarUrl
}
game {
id
name
thumbnailUrl
provider
}
wonAmount
betAmount
currency
time
}
count
limit
offset
}
}

Parameters​

ParameterTypeDescriptionRequiredDefault
limitIntMaximum number of results to returnNo10
offsetIntNumber of results to skipNo0
typeQueryUserBetTypeFilter by bet type (SPORT, CASINO, BOTH)NoCASINO

Response​

{
"data": {
"latestBets": {
"data": [
{
"user": {
"id": "60da4b45bc06b53c4851a123",
"username": "player123",
"avatarUrl": "https://example.com/avatars/player123.jpg"
},
"game": {
"id": "cg-123456",
"name": "Book of Dead",
"thumbnailUrl": "https://example.com/games/book-of-dead.jpg",
"provider": "Play'n GO"
},
"wonAmount": 125.5,
"betAmount": 25.0,
"currency": "USD",
"time": "2023-05-15T14:32:15Z"
},
{
"user": {
"id": "60da4b45bc06b53c4851a124",
"username": "gambler456",
"avatarUrl": "https://example.com/avatars/gambler456.jpg"
},
"game": {
"id": "cg-789012",
"name": "Gonzo's Quest",
"thumbnailUrl": "https://example.com/games/gonzos-quest.jpg",
"provider": "NetEnt"
},
"wonAmount": 0,
"betAmount": 50.0,
"currency": "EUR",
"time": "2023-05-15T14:31:45Z"
}
],
"count": 158,
"limit": 10,
"offset": 0
}
}
}

latestBetsByProvider​

Returns a paginated list of the most recent bets for a specific game provider, filtered by bet type with limit and offset for pagination.

Query​

query LatestBetsByProvider(
$providerId: String!
$limit: Int
$offset: Int
$type: QueryUserBetType
) {
latestBetsByProvider(
providerId: $providerId
limit: $limit
offset: $offset
type: $type
) {
data {
user {
id
username
avatarUrl
}
game {
id
name
thumbnailUrl
provider
}
wonAmount
betAmount
currency
time
}
count
limit
offset
}
}

Parameters​

ParameterTypeDescriptionRequiredDefault
providerIdStringID of the game providerYes-
limitIntMaximum number of results to returnNo10
offsetIntNumber of results to skipNo0
typeQueryUserBetTypeFilter by bet type (SPORT, CASINO, BOTH)NoCASINO

Response​

Similar to latestBets but filtered to a specific provider.

latestBetsByGame​

Returns a paginated list of the most recent bets for a specific casino game, filtered by bet type with limit and offset for pagination.

Query​

query LatestBetsByGame(
$gameId: String!
$limit: Int
$offset: Int
$type: QueryUserBetType
) {
latestBetsByGame(
gameId: $gameId
limit: $limit
offset: $offset
type: $type
) {
data {
user {
id
username
avatarUrl
}
game {
id
name
thumbnailUrl
provider
}
wonAmount
betAmount
currency
time
}
count
limit
offset
}
}

Parameters​

ParameterTypeDescriptionRequiredDefault
gameIdStringID of the casino gameYes-
limitIntMaximum number of results to returnNo10
offsetIntNumber of results to skipNo0
typeQueryUserBetTypeFilter by bet type (SPORT, CASINO, BOTH)NoCASINO

Response​

Similar to latestBets but filtered to a specific game.

latestBetsByCasinoPage​

Returns a paginated list of the most recent bets for a specific casino page, filtered by bet type with limit and offset for pagination.

Query​

query LatestBetsByCasinoPage(
$casinoPageSlug: String!
$limit: Int
$offset: Int
$type: QueryUserBetType
) {
latestBetsByCasinoPage(
casinoPageSlug: $casinoPageSlug
limit: $limit
offset: $offset
type: $type
) {
data {
user {
id
username
avatarUrl
}
game {
id
name
thumbnailUrl
provider
}
wonAmount
betAmount
currency
time
}
count
limit
offset
}
}

Parameters​

ParameterTypeDescriptionRequiredDefault
casinoPageSlugStringSlug of the casino pageYes-
limitIntMaximum number of results to returnNo10
offsetIntNumber of results to skipNo0
typeQueryUserBetTypeFilter by bet type (SPORT, CASINO, BOTH)NoCASINO

Response​

Similar to latestBets but filtered to games on a specific casino page.

Notes​

  1. For privacy reasons, users with hidden preferences are filtered out from the results.
  2. The response includes pagination metadata (count, limit, offset) for implementing pagination controls.
  3. The results are ordered by bet amount in descending order.
  4. The currency field represents the original currency of the bet, which may differ from the user's preferred currency.