An open API service indexing awesome lists of open source software.

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.

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"
},
[...]
]
```