# Indonesia Player Statistics

> `GET /api/esports/id/statistics/players`: Esports endpoint of the Rone Arena API.

Season statistics of every player of the Indonesian professional league: games, total and average kills, deaths and assists, KDA and kill participation (percent), with the player's team, and the league's **leaderboards** (each entry's **value** is the figure the board ranks). A figure the league leaves out, or a substitute who has not played, is null. Leaderboards: the top 5 by kills, assists and average KDA (at least 5 games). Each player has a **role**. Data is read from the league's official public site and cached for 5 minutes.

## Request

`GET https://arena.rone.dev/api/esports/id/statistics/players`

### Example

```bash
curl -X GET 'https://arena.rone.dev/api/esports/id/statistics/players'
```

## Example response

```json
{
  "leaderboards": [
    {
      "title": "Top 5 Kills",
      "entries": [
        {
          "rank": 1,
          "name": "NNAEL",
          "team": {
            "name": "TLID",
            "full_name": "TEAM LIQUID ID",
            "logo": "https://wsrv.nl/?url=https%3A%2F%2Fexample.com%2Fteams%2Fevos.png"
          },
          "value": 305
        }
      ]
    }
  ],
  "players": [
    {
      "name": "MORENOOO",
      "team": {
        "name": "TLID",
        "full_name": "TEAM LIQUID ID",
        "logo": "https://wsrv.nl/?url=https%3A%2F%2Fexample.com%2Fteams%2Fevos.png"
      },
      "role": "Mid Lane",
      "games": 67,
      "kills": 155,
      "deaths": 109,
      "assists": 505,
      "avg_kills": 2.31,
      "avg_deaths": 1.63,
      "avg_assists": 7.54,
      "kda": 6.06,
      "kill_participation": 78.0
    }
  ]
}
```

## Links

- Try it in the playground: https://arena.rone.dev/web/esports/id/statistics/players
- Esports endpoints: https://arena.rone.dev/web/esports.md
- OpenAPI schema: https://arena.rone.dev/api/openapi.json
