Fetch Neighbours Ranks

get
Fetch Neighbours Ranks

https://leaderboard-example.lvis.io/base_url/ranks/neighbours
Request
Response
Request
Path Parameters
base_url
required
string
Base leaderboard URL for read endpoint. See Overview section for details.
Query Parameters
private_id
required
string
Private user ID.
n_above
required
integer
Number of entries above user, max 20.
n_below
required
integer
Number of entries below user, max 19.
Response
200: OK
[
{
"name": "User 553224",
"public_id": "",
"score": 320,
"rank": 23,
"level": null,
"public_data": null
},
{
"name": "User 112344",
"public_id": "",
"score": 314,
"rank": 24,
"level": null,
"public_data": null
},
{
"name": "User 134535",
"public_id": "",
"score": 307,
"rank": 25,
"level": null,
"public_data": null
},
{
"name": "User 23543",
"public_id": "",
"score": 302,
"rank": 26,
"level": null,
"public_data": null
}
]
404: Not Found
{
"error": "error text"
}

Example

curl --request GET \
--url https://leaderboard-example.lvis.io/api/projects/edc619ed-32f3-4dcc-a2e6-1d213fbaf6a0/leaderboards/season/ranks/neighbours?private_id=c593fafd-b620-424b-905a-3ecec663e9e0&n_above=2&n_below=1

‚Äč