# Get a team's players by role (v1)

Returns the team's current players with id, name and image, grouped as batters, all-rounders, keepers and bowlers.

- Platform: Cricbuzz
- Request: `GET https://api.toolzerhub.com/v1/cricbuzz/team/players`
- Auth: `x-api-key` header
- Cost: 1 credit per successful request. Failed requests are not billed.
- Page: https://docs.toolzerhub.com/reference/cricbuzz/teams/get-team-players

| Parameter | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `team_id` | query | yes | integer | Team id, from List Teams or a match's teamId. |

## Example request

```bash
curl "https://api.toolzerhub.com/v1/cricbuzz/team/players?team_id=<team_id>" \
  -H "x-api-key: $TOOLZERHUB_API_KEY"
```

Success responses are wrapped as `{ "data": ... }`. Errors return `{ "error": { "code", "status", "message", "retryable", "details" } }`. See https://docs.toolzerhub.com/docs/responses-and-errors.
