# GET /v2/teams/{id}/performance

Group: Teams

A team’s most recent matches, up to ten and oldest first, each with the source’s score for how good the result was: the points of a form graph in a single request.

Plans: Every plan, Free included.

Note: A score above 0 marks a good result and below 0 a poor one, and the same result counts for more against a stronger opponent. When the source has no scores the array is empty. Matches before your plan’s history are left out, and meta.historyFrom then gives the first day included.

## Parameters

| Name | In | Required | Description |
| --- | --- | --- | --- |
| `id` | path | yes | DataSportsAPI team id, a positive integer |

## Response

- `data`: `TeamPerformanceEntry[]`
- `meta`: count, and historyFrom if your plan caused older matches to be dropped
- Objects: TeamPerformanceEntry (https://datasportsapi.com/markdown/reference.md#teamperformanceentry)

## Errors

- 404 not_found — DataSportsAPI has never assigned this 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/teams/{id}/performance"
```

TypeScript:

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

Python:

```python
res = client.teams.performance(id)
```

Go:

```go
res, err := client.Teams.Performance(ctx, id)
```

CLI:

```bash
$ dsa teams performance <id>
```

## Example response

```json
{ "data": [ { "fixture": { "id": 202880, "status": { "type": "finished", … }, … }, "score": 1.05 }, { "fixture": { … }, "score": -0.8 }, … ],
  "meta": { "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/teams/performance/ · Group: https://datasportsapi.com/markdown/docs/teams.md · All docs: https://datasportsapi.com/markdown/docs.md · Data model: https://datasportsapi.com/markdown/reference.md
