This feature is only available with paid plans. Contact us to know more.
- Create leaderboards, and organise tournaments on your platform; explore our Tournaments offering if you want a turnkey tournaments solution from Gamezop.
- Give score targets to your users and reward them if they achieve scores
Server-side webhooks
You can get scores of your users in real-time providing us a POST API / webhook URL. Gamezop will push your users’ scores to this API. In order for this to work, you must also append asub query parameter to the game url received in the All Games API.
For example: https://3025.play.gamezop.com/g/NyM_JGWcx?sub=123-554-111
The value of this sub param must be a unique user identifier for the user playing the game. Max supported length of this value is 100 characters. Scores are always scoped to a game and user identifier.
Your webhook endpoint
POSThttps://api.publisher-xyz.com/games/score
Gamezop posts user scores in real-time to your webhook
Headers
Upon receiving scores from us, you must respond with an HTTP 200 Status Code
In the body of the webhook, Gamezop will send a JSON object when your users’ scores update. The data body will contain the following fields:
Client-side broadcasts
Client-side callbacks can also be made for these score updates. This is usually needed if you wish to use them to trigger custom UI elements. We could add your JS tags to games, or make broadcasts over a WebView bridge. The typical payload for client-side broadcasts look like:Do more with scores
If you want to run time-bound competitions on top of user scores — with live rankings and final results managed by Gamezop — check out our Tournaments APIs:Run tournaments on Gamezop games
Create and manage tournaments on our games, pull live leaderboard data, and fetch final results.