player_role field in GET /api/player_info.
Authentication
All requests must include a valid API key, either as anx-api-key header or as a Bearer token in the Authorization header.
Request
The role value to look up (e.g.,
"Box-to-Box Midfielder", "Goalkeeper"). If omitted, all role descriptions are returned. The value must exactly match one of the role names listed in the Roles Reference below.Response
Whenrole is provided:
The role name as supplied in the request.
A description of the role’s tactical characteristics and responsibilities.
role is omitted:
An array containing all role objects.
Errors
| Status | Description |
|---|---|
400 | The role parameter was provided but does not match any known role. The error response includes an allowed_roles array listing all valid values. |
Examples
Single role response
All roles response (truncated)
