# GET /v2/leagues/{id}/top-performances/recent

Group: Leagues

The standout player lines from the league’s most recent day of matches, ranked on a single statistic; every entry includes the match it came from and the full box-score line.

Plans: Every plan, Free included.

Note: For the best single-match figures of the whole season, see /v2/leagues/{id}/top-performances; this endpoint covers the latest day only. If the league has not played lately, the list is empty.

## Parameters

| Name | In | Required | Description |
| --- | --- | --- | --- |
| `id` | path | yes | league id issued by DataSportsAPI, a positive integer |
| `order` | query | no | points (the default), rebounds, assists, steals, blocks or rating |

## Response

- `data`: `RecentPerformance[]`
- `meta`: league, order, count
- Objects: RecentPerformance (https://datasportsapi.com/markdown/reference.md#recentperformance)

## Errors

- 400 bad_request — order is not one of the listed values
- 404 not_found — DataSportsAPI has never assigned this league id

Plus the errors every /v2 call shares (https://datasportsapi.com/markdown/docs/errors.md).

## Request

cURL:

```bash
curl -H "Authorization: Bearer sk_live_…" \
    "https://api.datasportsapi.com/v2/leagues/{id}/top-performances/recent"
```

TypeScript:

```ts
const { data, meta } = await client.leagues.recentPerformances(id);
```

Python:

```python
res = client.leagues.recent_performances(id)
```

Go:

```go
res, err := client.Leagues.RecentPerformances(ctx, id, &datasportsapi.LeaguesRecentPerformancesParams{})
```

CLI:

```bash
$ dsa leagues recent-performances <id>
```

## Example response

```json
{ "data": [ { "player": { "id": 817232, "name": "Damian Lillard", … }, "team": { "name": "Portland Trail Blazers", … }, "fixture": { "id": 16824911, … },
      "statistics": { "points": 33, "rebounds": 6, "assists": 0, "threePointsMade": 5, … } }, … ],
  "meta": { "league": 132, "order": "points", "count": 10 } }
```

---

Base URL: https://api.datasportsapi.com. Authenticate each /v2 call with the header `Authorization: Bearer <key>` (secret keys begin with `sk_live_`).
HTML: https://datasportsapi.com/docs/leagues/recent-performances/ · Group: https://datasportsapi.com/markdown/docs/leagues.md · All docs: https://datasportsapi.com/markdown/docs.md · Data model: https://datasportsapi.com/markdown/reference.md
