https://github.com/explodingcamera/cs2leaderboard
API with historical data for the Counter-Strike: 2 leaderboard, updated daily.
https://github.com/explodingcamera/cs2leaderboard
api counter-strike counter-strike-2 leaderboard
Last synced: 7 months ago
JSON representation
API with historical data for the Counter-Strike: 2 leaderboard, updated daily.
- Host: GitHub
- URL: https://github.com/explodingcamera/cs2leaderboard
- Owner: explodingcamera
- License: mit
- Created: 2023-09-30T15:45:31.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-30T01:42:07.000Z (8 months ago)
- Last Synced: 2024-10-30T03:59:16.766Z (8 months ago)
- Topics: api, counter-strike, counter-strike-2, leaderboard
- Language: TypeScript
- Homepage: https://explodingcamera.github.io/cs2leaderboard/
- Size: 69 MB
- Stars: 14
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# cs2leaderboard
A free-to-use API for the CS2 leaderboard data. Includes daily snapshots of the leaderboard and useful metadata, such as game stats and ratings. Feel free to use this data for your own projects, but please link back to this repository if you do.
# API Endpoints
> **Data for a specific region or 'global'**\
> [https://explodingcamera.github.io/cs2leaderboard/data/latest/{region}.json](https://explodingcamera.github.io/cs2leaderboard/data/latest/{region}.json)> **Historical data for a specific region or 'global'**\
> [https://explodingcamera.github.io/cs2leaderboard/data/historical/{region}/{date}.json](https://explodingcamera.github.io/cs2leaderboard/data/historical/{region}/{date}.json)| Parameter | Type | Description |
| :--- | :--- | :--- |
| `region` | `string` | A list of all regions can be found [here](https://explodingcamera.github.io/cs2leaderboard/data/meta.json) |
| `date` | `string` | A list of all captured dates can be found [here](https://explodingcamera.github.io/cs2leaderboard/data/timestamps.csv) |Returns the leaderboard data for the given region on the given date.
Returns the latest leaderboard data for the given region.## Example Response
```json
[
{
"rank": 1,
"rating": 18302,
"name": "uDEADSHOT",
"matches_won": 45,
"matches_lost": 4,
"map_stats": {
"anubis": 1,
"inferno": 0,
"mirage": 3,
"vertigo": 3,
"overpass": 0,
"nuke": 0,
"ancient": 3,
"undefined": 0
},
"time_achieved": "2023-10-02T17:38:41.000Z",
"region": "africa"
},
[...]
]
```