Skip to content
API v2 docs

Managers & referees

Agency season figures

GET

/v2/agencies/{id}/season-stats

All plans

Markdown copyOpen in the playground →

An agency’s players this season, each with his appearances and average rating, the best rating first, counted for his club (scope=club, the default) or for his national team (scope=national). Available since 2026-11-24.

A player without a club has team null on the club list. Ratings are the source’s match ratings, averaged over the appearances shown. Each row includes the player's position (since 2026-11-25), null when the source has none.

Parameters

id

pathrequired

DataSportsAPI agency id, a positive integer

scope

query

club | national; club when omitted

Response

meta
count
errors
400 bad_request — scope is neither club nor national404 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/agencies/{id}/season-stats"
Example
{ "data": [ { "player": { "id": 868812, "name": "Vinícius Júnior", … }, "team": { "id": 4748, "name": "Brazil", … },
    "appearances": 5, "rating": 8 }, … ],
  "meta": { "count": 18 } }