ðĨLeaderboard Webhooks
Let InHouseQueue send your leaderboard directly to you!
Last updated
Let InHouseQueue send your leaderboard directly to you!
Last updated
InHouseQueue can send your leaderboard to any Webhook URL you choose after each game. If you have a website or another API integration, you can use this feature to create your own custom leaderboard.
A Web Server with a Public URL:
You need a website or server that is accessible online. This could be a website you own or a cloud server you set up.
Create a POST Endpoint:
Set up a specific URL on your server (e.g., https://yourwebsite.com/webhook
) that can accept POST requests. This is where InHouseQueue will send the data.
Handle Incoming JSON Data:
Configure your endpoint to receive and process the JSON data that InHouseQueue sends after each game. This usually involves writing some code to parse the JSON and use the information as needed.
Test Your Endpoint:
Make sure your endpoint is working correctly by sending test POST requests. You can use tools like Postman to simulate the webhook and verify that your server receives and handles the data properly.
In most cases, the JSON payload will look like this.
If you have a season running the season
object is included in the payload.
Top-Level Fields
season
Object
leaderboard
Object
player_entries
Array Items
Field
Type
Description
Optional
game
string
The game identifier (e.g., "lol"
).
No
seasons
object
Information about the current season.
Yes
leaderboard
object
Contains all leaderboard details.
No
Field Path
Type
Description
season.name
string
The name of the current season (e.g., "A season name"
).
season.number
integer
The number identifier of the season (e.g., 10
).
Field
Type
Description
is_unique
boolean
Indicates if the leaderboard is unique. More information here
sorted_by
string
How the leaderboard is sorted. It can be MMR or WINS
leaderboard_channel_id
integer
Discord channel ID for the leaderboard.
player_entries
array
of object
List of players in the leaderboard.
Field
Type
Description
name
string
Player's in-game name (e.g., "__snipy__"
).
most_played_role
object
The player's most played role. OPTIONAL: This object will NOT appear if you are playing "custom" game.
most_played_role.name
string
Name of the role (e.g., "top"
).
most_played_role.frequency
integer
Number of times the role was played (e.g., 999
).
position
integer
Player's position in the leaderboard (e.g., 1
). Note: The player in first place with have the position of 0
.
wins
integer
Number of wins the player has (e.g., 99
).
losses
integer
Number of losses the player has (e.g., 99
).
total_games
integer
Total games played by the player (e.g., 198
).
win_rate_percentage
integer
Player's win rate percentage (e.g., 50
).
mmr
integer
Player's MMR for this leaderboard. (e.g., 1000
) - Note: This is NOT included if your sorted_by
is WINS.