Skip to content

Commit 8ef41b7

Browse files
committed
Fix leaderboard api urls
1 parent cefae32 commit 8ef41b7

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

docs/services/leaderboards/web-api.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,14 @@ The API for leaderboards is publically accessible. Have fun!
1111

1212

1313
```none
14-
https://public.facepunch.com/sbox/package/leaderboard/2/?ident={package_ident}
14+
https://public.facepunch.com/sbox/package/{ident}/leaderboard/{stat}/
1515
```
1616

17+
The `ident` and `stat` are part of the URL path. Everything below is passed as a query string parameter.
18+
19+
### ident
20+
21+
The package identifier of the game whose leaderboard you want, for example `facepunch.ss1`.
1722

1823
### stat
1924

@@ -84,7 +89,7 @@ Allows a list of steamids to always show on the leaderboard, even if they're not
8489

8590

8691
```none
87-
https://public.facepunch.com/sbox/package/leaderboard/2/?ident=facepunch.ss1&stat=zombies_killed
92+
https://public.facepunch.com/sbox/package/facepunch.ss1/leaderboard/zombies_killed/
8893
```
8994

9095
```json

0 commit comments

Comments
 (0)