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

Group: Leagues

The best player lines of the league’s last day of matches, ordered by one statistic, each with its match and the full box-score line.

Note: The season’s best single-match figures are /v2/leagues/{id}/top-performances; this one is the last day’s. An empty list when the league played no match lately.

## Parameters

| Name | In | Required | Description |
| --- | --- | --- | --- |
| `id` | path | yes | our numeric id (positive integer) |
| `order` | query | no | points (default), rebounds, assists, steals, blocks or rating |

## Response

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

## Errors

- 400 bad_request — an order not in the list
- 404 not_found — a league id we never issued

Plus the common errors (https://sportsapi.app/markdown/en/docs.md#errors).

## Request

cURL:

```bash
curl -H "Authorization: Bearer sk_live_…" \
    "https://api.sportsapi.app/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, &sportsapi.LeaguesRecentPerformancesParams{})
```

CLI:

```bash
$ sportsapi 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.sportsapi.app. Send your API key as `Authorization: Bearer <key>` on every /v2 request; keys are created in the dashboard (https://sportsapi.app/dashboard).
HTML: https://sportsapi.app/docs/leagues/recent-performances · All docs: https://sportsapi.app/markdown/en/docs.md
