# GET /v2/teams/{id}/featured-players

Group: Teams

For each of a team’s upcoming matches, the player the source picks out to watch, together with the rating that earned him the spot.

Plans: Every plan, Free included.

Note: fixtureId is the upcoming match the player is featured for; ratedFixtureId is the earlier match his rating comes from. A team with no featured players gives an empty array.

## Parameters

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

## Response

- `data`: `FeaturedPlayer[]`
- `meta`: count
- Objects: FeaturedPlayer (https://datasportsapi.com/markdown/reference.md#featuredplayer)

## 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}/featured-players"
```

TypeScript:

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

Python:

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

Go:

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

CLI:

```bash
$ dsa teams featured-players <id>
```

## Example response

```json
{ "data": [ { "fixtureId": 202914, "player": { "id": 3912, "name": "Fermín López", … }, "rating": 8.3, "ratedFixtureId": 202880 }, … ],
  "meta": { "count": 3 } }
```

---

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/featured-players/ · Group: https://datasportsapi.com/markdown/docs/teams.md · All docs: https://datasportsapi.com/markdown/docs.md · Data model: https://datasportsapi.com/markdown/reference.md
