> For the complete documentation index, see [llms.txt](https://quantaapi.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://quantaapi.gitbook.io/docs/cricket-api/player-details.md).

# Player Details

Get complete information about an individual cricket player using their player ID.

### 🧾 Fetch Detailed Information of a Player

This API provides full details of a specific cricket player, including name, age, nationality, role, batting and bowling styles, team, and profile image. It's perfect for player profile pages, stats dashboards, and team insights.

## 🚀 How to get Player Details

To get Player Details, make a POST request to the following endpoint:

<kbd><mark style="color:green;">POST<mark style="color:green;"></kbd><kbd><https://cricket.quantaapi.com/api/v1/players/{id}/details></kbd>

**Headers**

| Name          | Value              |
| ------------- | ------------------ |
| Content-Type  | `application/json` |
| Authorization | `Bearer <token>`   |

**Response**

{% tabs %}
{% tab title="200" %}

```json
{
    "status": "success",
    "message": "Players list fetched successfully.",
    "code": 200,
    "type": "SUCCESS",
    "data": {
        "id": "player_B6lNa9fb0xVhlD07hwsw8iw0p",
        "name": "Virat Kohli",
        "role": "Batsman",
        "batting_style": "Right Handed Bat",
        "bowling_style": "Right-arm medium",
        "date_of_birth": "1988-11-05",
        "place_of_birth": "Delhi",
        "country": "India"
    },
    "info": {
        "id": "player_B6lNa9fb0xVhlD07hwsw8iw0p",
        "timestamp_utc": "2025-05-17 14:00:07",
        "version": "v1.0",
        "credits_used": 4,
        "response_time": 173.23
    }
}
```

{% endtab %}

{% tab title="401" %}

```json
{
    "status": "error",
    "message": "The provided authorization token is invalid or expired",
    "code": 401,
    "type": "AUTHORIZATION_INVALID"
}
```

{% endtab %}
{% endtabs %}
