Source: https://dinakar-rewind.docs.pageloop.ai/api-reference/attending/getattendedplayerstats

# Per-player aggregate stats across attended games

GET `https://api.rewind.rest/v1/attending/players/{id}/stats`

Aggregate stat lines for one player across the games you attended (no-shows excluded). MLB players return a hitter or pitcher line; other leagues return appearance summaries.

## Authorization

#### Authorization (header, string, required)

API key. Read keys (rw\_live\_...) access GET endpoints. Admin keys (rw\_admin\_...) access all endpoints.

## Path Parameters

#### id (path, integer, required)

## Query Parameters

#### season (query, integer)

Optional. Single-season slice (matches event\_data.season). Omit for career across all attended games.

## Response

#### 200

Player aggregate stats

#### 401

Unauthorized

#### error (string, required)

#### status (integer, required)

#### 404

Not found

#### error (string, required)

#### status (integer, required)

#### Request

```bash cURL
curl -X GET 'https://api.rewind.rest/v1/attending/players/{id}/stats' \
  -H 'Authorization: Bearer <token>'
```

```javascript JavaScript
const res = await fetch('https://api.rewind.rest/v1/attending/players/{id}/stats', {
  method: 'GET',
  headers: {
    'Authorization': 'Bearer <token>',
  },
});
const data = await res.json();
```

```python Python
import requests

res = requests.get(
    'https://api.rewind.rest/v1/attending/players/{id}/stats',
    headers={'Authorization': 'Bearer <token>'}
)
data = res.json()
```

#### Response

```json 401
{
  "error": "Not found",
  "status": 404
}
```

```json 404
{
  "error": "Not found",
  "status": 404
}
```
