Skip to content

Studio

Get highlight videos. When your token has only access to the club resource group you don't need to pass the X-Resource-Group-Id header.

Request

token = get(
   `https://api.teamtvsport.com/api/studio/highlightVideos`,
   headers={
      "Content-Type": "application/json",
      "Authorization": `Bearer ${API_TOKEN}`,
      "X-Resource-Group-Id": clubResourceGroupId
   }
)

Response

[
   {
      "createdAt" : "2022-10-20T06:27:36.216502Z",
      "embedCode" : "<div style=\"position:relative;overflow:hidden;padding-bottom:56.25%\"><iframe src=\"https://cdn.jwplayer.com/players/dF60HNMO-IhwLzZyK.html\" width=\"100%\" height=\"100%\" frameborder=\"0\" scrolling=\"auto\" title=\"Goal\" style=\"position:absolute;\" allowfullscreen></iframe></div>",
      "embedUrl": "https://cdn.jwplayer.com/players/dF60HNMO-IhwLzZyK.html",
      "match" : {
         "awayTeam" : {
            "name" : "Racing Bruxelles H1",
            "teamId" : "ab027abc-2af9-4f50-b20d-1234567a"
         },
         "homeTeam" : {
            "name" : "Braxgata H1",
            "teamId" : "7f76cd68-27f1-11eb-81a1-1234567b"
         },
         "name" : "Braxgata H1 - Racing Bruxelles H1",
         "scheduledAt" : "2022-10-19T14:30:00.000000Z",
         "score" : {
            "away" : 0,
            "home" : 2
         },
         "sportingEventId" : "5a8e85d1-1b97-4c60-8b24-1234567c"
      },
      "publicationId" : "ad0a09fa-111d-440f-aae6-1234567d",
      "publicationType": "vod",
      "resourceGroupId" : "7f880fa6-27f1-11eb-8ff7-1234567c",
      "thumbnailUrl" : "https://cdn.jwplayer.com/thumbs/dF60HNMO-720.jpg",
      "title" : "PC's & Goals Braxgata H1 - Racing H1 2-0"
   }
]

Get livestreams

Request

token = get(
   `https://api.teamtvsport.com/api/studio/livestreams`,
   headers={
      "Content-Type": "application/json",
      "Authorization": `Bearer ${API_TOKEN}`,
      "X-Resource-Group-Id": clubResourceGroupId
   }
)

Response

[
   {
      "startTime" : "2024-06-10T19:25:00.000Z",
      "endTime" : "2024-06-10T21:00:00.000Z",
      "title" : "Braxgata H1 - Racing Bruxelles H1",
      "embedCode" : "<iframe width=\"560\" height=\"315\" src=\"https://www.youtube.com/embed/2CD9aEjFZwU\" title=\"YouTube video player\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen></iframe>",
      "publicationId" : "aaaa-bbbb-cccc-ddddddddd-eeee",
      "resourceGroupId" : "8272-2223-aaaa-bbbbbcccccc-ffff",
      "match" : {
         "awayTeam" : {
            "name" : "Racing Bruxelles H1",
            "teamId" : "ab027abc-2af9-4f50-b20d-1234567a"
         },
         "homeTeam" : {
            "name" : "Braxgata H1",
            "teamId" : "7f76cd68-27f1-11eb-81a1-1234567b"
         },
         "name" : "Braxgata H1 - Racing Bruxelles H1",
         "scheduledAt" : "2024-01-30T19:25:00.000Z",
         "sportingEventId" : "5a8e85d1-1b97-4c60-8b24-1234567c"
      }
   },
  {
      "startTime" : "2024-01-30T19:25:00.000Z",
      "endTime" :  "2024-01-30T21:00:00.000Z",
      "title" : "Braxgata H1 - Racing Bruxelles H1",
      "embedCode" : "<iframe width=\"560\" height=\"315\" src=\"https://www.youtube.com/embed/2CD9aEjFZwU\" title=\"YouTube video player\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen></iframe>",
      "publicationId" : "aaaa-bbbb-cccc-ddddddddd-eeee",
      "resourceGroupId" : "8272-2223-aaaa-bbbbbcccccc-ffff",
      "match" : {
         "awayTeam" : {
            "name" : "Racing Bruxelles H1",
            "teamId" : "ab027abc-2af9-4f50-b20d-1234567a"
         },
         "homeTeam" : {
            "name" : "Braxgata H1",
            "teamId" : "7f76cd68-27f1-11eb-81a1-1234567b"
         },
         "name" : "Braxgata H1 - Racing Bruxelles H1",
         "scheduledAt" : "2024-01-30T19:30:00.000Z",
         "sportingEventId" : "5a8e85d1-1b97-4c60-8b24-1234567c"
      }
   }
]