Giter VIP home page Giter VIP logo

cs2-leaderboard-api-description's Introduction

Counter-Strike 2 Leaderboard Web API

Endpoints:

Example result

{
	"result": {
		"data": 267117,
		"entries": [
			{
				"rank": 2,
				"score": 906461930,
				"detailData": "1f2a040810104b2a04081210042a0708131090e6c4082a08081410d4bcdda706",
				"name": "Kurosaki"
			},
			{
				"rank": 3,
				"score": 899482336,
				"detailData": "1e2a04081010472a04081210022a06081310a2c4082a08081410e0fddaa70600",
				"name": "月光"
			}
		]
	}
}

What data is available (and how)

  • Name

  • Leaderboard size

  • Rank (absolute)

  • CS Rating = score >> 15

  • Data related to detailData:

    • Data is almost a ScoreLeaderboardData protobuf message. The first bytes is the header, indicating the protobuf length.
    • In matchentries, each tag corresponds to a certain field, see image below. Winrate is calculated from the win/draw/loss fields.

    • For RankWindowStats, it corresponds to the map spider graph indicating player's map "preferences" (maybe derived from wins). It's a 32 bit value, each 4 bits correspond to a map.
    • TimeAchieved is probably when the player gets into the leaderboard.
  • Rank% (hidden from cs2 global LB) = Rank / data. It's an integer always capped between 1 and 99.

cs2-leaderboard-api-description's People

Contributors

zer0k-z avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

cs2-leaderboard-api-description's Issues

Contact

Hey, would love to get in contact with you. Is there any way you could share your Discord with me? Alternatively, feel free to hit me up through my contact details shared on GitHub.

Friends Leaderboard

Does anyone know how to get the "Friends" Leaderboard?
It probably isn't an API Endpoint, right?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.