# Cambodia Hero Statistics

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

Picks, bans, wins and win rate (percent) of every hero in the Cambodian professional league this season. Leaderboards: the top 5 heroes by picks, bans and win rate. Only heroes picked or banned this season are listed; hero images are served through this API. Data is read from the league's official public site and cached for 5 minutes.

## Request

`GET https://arena.rone.dev/api/esports/kh/statistics/heroes`

### Example

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

## Example response

```json
{
  "leaderboards": [
    {
      "title": "Top 5 Pick",
      "entries": [
        {
          "rank": 1,
          "name": "Hirara",
          "hero": {
            "name": "Hirara",
            "image": "https://wsrv.nl/?url=https%3A%2F%2Fmlbb-image.scoregg.com%2Fhero_h%2F85.png"
          },
          "value": 103
        }
      ]
    }
  ],
  "heroes": [
    {
      "hero": {
        "name": "Hirara",
        "image": "https://wsrv.nl/?url=https%3A%2F%2Fmlbb-image.scoregg.com%2Fhero_h%2F85.png"
      },
      "picks": 103,
      "bans": 40,
      "wins": 55,
      "win_rate": 53.0
    }
  ]
}
```

## Links

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