# Indonesia Player Pools

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

For every hero, the players of the Indonesian professional league who have played it this season: **total** different players, and per player the team, **photo** (served through this API), **picks** and **win_rate** (percent). 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/player-pools`

### Example

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

## Example response

```json
{
  "heroes": [
    {
      "hero": {
        "name": "Miya",
        "image": "https://wsrv.nl/?url=https%3A%2F%2Fmlbb-image.scoregg.com%2Fhero_h%2F85.png"
      },
      "total": 10,
      "players": [
        {
          "name": "Zeonn",
          "team": {
            "name": "TLID",
            "full_name": "TEAM LIQUID ID",
            "logo": "https://wsrv.nl/?url=https%3A%2F%2Fexample.com%2Fteams%2Fevos.png"
          },
          "picks": 7,
          "win_rate": 71.0
        }
      ]
    }
  ]
}
```

## Links

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