Skip to content
API v2 docs

Players

Player videos

GET

/v2/players/{id}/videos

All plans

Markdown copyOpen in the playground →

Videos about a player published on official channels and hosted elsewhere (YouTube): the link, title, host and the host’s thumbnail. DataSportsAPI hosts no video itself.

Most players have none, which gives an empty array. Link to the video on its host, or embed it there when embeddable is true.

Parameters

id

pathrequired

DataSportsAPI player id, a positive integer

Response

data
Video[]
meta
count
errors
404 not_found — DataSportsAPI has never issued this player 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/players/{id}/videos"
Example
{ "data": [ { "title": "…", "description": null, "url": "https://www.youtube.com/watch?v=…", "provider": "youtube",
      "thumbnailUrl": "https://i.ytimg.com/vi/…/maxresdefault.jpg", "embeddable": true } ],
  "meta": { "count": 1 } }