GET /metrics/:metricId
Description
Get a game-wide leaderboard for a metric.
The leaderboard may take a while to update to reflect the correct rank of a player in a given metric.
Resource URL
https://api.playlyfe.com/metrics/:metricId
Method
GET
Scopes
player, game, debug
Parameters
| Location | Parameter Name | Default Value | Description |
|---|---|---|---|
| Query | skip | 0 | Number of players to skip |
| Query | limit | 10 | Maximum number of players to return |
| Query | order | desc | The order in which the leaderboard must be sorted. It can have values asc or desc. |
Example
Request
GET https://api.playlyfe.com/metrics/xp
Response
[
{
"player": {
"id": "neo",
"alias": "Neo"
},
"score": "1000000001"
},
{
"player": {
"id": "morpheus",
"alias": "Morpheus"
},
"score": "100000"
},
{
"player": {
"id": "trinity",
"alias": "Trinity"
},
"score": "10000"
}
]