Leaderboards API
The Leaderboards API provides access to game rankings and statistics for players across various categories.
Endpoint
Authentication
All requests require the X-API-Key header. See Authentication for details.
Query Parameters
You must specify at least one leaderboard type parameter. Multiple leaderboard types can be requested in a single call.
Response
Leaderboard Entry
Response Structure
The response is an object with keys for each requested leaderboard type, containing arrays of leaderboard entries:
Examples
Get Credits Leaderboard
Response:
Get Multiple Leaderboards
Response:
Get Leaderboards for Specific User
When filtering by username, only entries for that user are returned across all requested leaderboards:
Response:
Get All Available Leaderboards
JavaScript Example
Leaderboard Types
credits
Rankings based on total credits (in-game currency) accumulated.
highestLevels
Rankings based on character level achieved.
combatsWon
Rankings based on total number of combat victories.
itemsCrafted
Rankings based on total number of items crafted.
jobsPerformed
Rankings based on total number of jobs completed.
overdoses
Rankings based on number of overdoses (if applicable to game mechanics).
missionsCompleted
Rankings based on total number of missions completed.
Error Responses
Notes
- Multiple Types: You can request multiple leaderboard types in a single API call
- At Least One Type Required: You must specify at least one leaderboard type parameter (beyond the required auth parameters)
- Name Filter: When using the
nameparameter, you must also specify at least one leaderboard type - Case Sensitivity: User names are case-insensitive when filtering
- Response Keys: The response object keys match the parameter names (e.g.,
credits,combatsWon, etc.)
Use Cases
- Display global rankings on websites
- Show player statistics and rankings
- Create leaderboard widgets for streaming
- Build achievement tracking tools
- Compare player performance across categories
- Generate ranking reports and analytics