api docs

lsrpg

Read endpoints for stats and leaderboards are public. Write/submit routes need an API key — request one from the API owner before integrating.

Before you call it

  • GET stats and leaderboard work without authentication.
  • POST/GET submit endpoints require a valid x-api-key header.
  • Do not embed or leak API keys in client-side game scripts or public repos.
  • Leaderboard stats: level, gold, xp are supported upstream.

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

Try a request

Response
Run a request to see the response here.