Skip to content

Livematches in play

Demo: Matchboard, opens in a new tab
Docs v2

Players

National team

GET

/v2/players/{id}/national-team

All plans

View as MarkdownTry in Playground →

Caps, goals and debut date for every national side the player has represented, at senior and youth level.

Returns an empty array if the player has never appeared for a national team, or if the source keeps no record of it.

Parameters

id

pathrequired

DataSportsAPI player id, a positive integer

Response

meta
count

Any /v2 call can also come back with one of the common errors.

curl -H "Authorization: Bearer sk_live_…" \
    "https://api.datasportsapi.com/v2/players/{id}/national-team"
Example
{ "data": [ { "team": { "id": 412, "name": "England", "code": "ENG", … }, "appearances": 59, "goals": 19, "debut": "2020-10-08T00:00:00.000Z" } ],
  "meta": { "count": 1 } }