This API retrieves the leaderboard rankings of customers within your loyalty program in Gameball, either for a specific date range or for all time. Results are ordered from the highest to the lowest rank, displaying each customer's rank, progress, and tier details.
Request
- Base URL: https://api.gameball.co
- URL: https://api.gameball.co/api/v4.0/integrations/leaderboard
- Auth: API key in header apikey and API key in header secretkey
Query parameters
The start date of the leaderboard range. If not provided, the leaderboard shows all-time data.
The end date of the leaderboard range. If not provided, the leaderboard shows all-time data.
Unique identifier for the customer that you can reference across the customer's whole lifetime. It is used to get the rank of this customer in the leaderboard.
Filter leaderboard results based on a specific reward campaign.
Filter results by customers who are tagged with a specific tag.
Filter leaderboard results by reward campaign tags.
Response
Leaderboard retrieved successfully
Example response
{
"leaderboard": [
{
"displayName": "John Doe",
"customerId": "cust_12345",
"progress": 2500,
"rank": 1,
"tierName": "Gold",
"tierIcon": "https://cdn.gameball.co/uploads/gb-library/levels-icons/level-a1.webp"
}
],
"customerRank": 1,
"customersCount": 100
}Changes
- info
the endpoint scheme security
apiKey AND secretKeywas added to the API - info
the endpoint scheme security
apiKeywas removed from the API - info
the endpoint scheme security
secretKeywas removed from the API
- info
- info
removed the non-success response with the status
- info