Read endpoints for stats and leaderboards are public. Write/submit routes need an API key — request one from the API owner before integrating.
01 · Usage
Before you call it
- GET stats and leaderboard work without authentication.
- POST/GET submit endpoints require a valid
x-api-keyheader. - Do not embed or leak API keys in client-side game scripts or public repos.
- Leaderboard stats:
level,gold,xpare supported upstream.
02 · Endpoints
Routes
GET
/api/lsrpg/stats?username={username}
Player stats
GET
/api/lsrpg/leaderboard?stat=level&limit=10
Leaderboard
POST
/api/lsrpg/stats
Submit stats (JSON body)
GET
/api/lsrpg/stats/submit/{username}/{level}/{xp}/{gold}/…
Submit stats (path format)
GET
/api/lsrpg/leaderboard/submit/{rank}/{username}/{value}
Submit leaderboard entry
03 · Playground
Try a request
Response
Run a request to see the response here.