Featured players
GET
/
Markdown copyOpen in the playground →
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.
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
idpathrequired
DataSportsAPI team id, a positive integer
Response
- data
FeaturedPlayer[]- meta
- count
- errors
- 404
not_found— DataSportsAPI has never assigned this id
The errors every /v2 call shares (key, plan, quota, rate) are listed under error codes.
curl -H "Authorization: Bearer sk_live_…" \
"https://api.datasportsapi.com/v2/teams/{id}/featured-players"Example
{ "data": [ { "fixtureId": 202914, "player": { "id": 3912, "name": "Fermín López", … }, "rating": 8.3, "ratedFixtureId": 202880 }, … ],
"meta": { "count": 3 } }