Get Game
curl --request GET \
--url https://api.uplift.ai/v1/games/{game_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.uplift.ai/v1/games/{game_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.uplift.ai/v1/games/{game_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.uplift.ai/v1/games/{game_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.uplift.ai/v1/games/{game_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.uplift.ai/v1/games/{game_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.uplift.ai/v1/games/{game_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"game": {
"game_id": "6b1e0c2a-7d8f-4a51-9b0e-2f3c1d4e5a6b",
"status": "completed",
"run_id": "f2a91c3e-0b47-4d6a-8e15-7c9d2b3a4e5f",
"date": "2026-10-18",
"competition": "Example League",
"home_team": {
"team_id": "t-0451",
"team_side": "home",
"name": "Home FC"
},
"away_team": {
"team_id": "t-0388",
"team_side": "away",
"name": "Away United"
},
"pitch": {
"length_m": 105,
"width_m": 68
},
"periods": [
{
"period": 1,
"duration_s": 2843,
"home_attacking_direction": "left_to_right"
},
{
"period": 2,
"duration_s": 2911,
"home_attacking_direction": "right_to_left"
}
],
"roster": [
{
"player_id": "p07",
"team_id": "t-0451",
"shirt_number": 7,
"name": "Player Seven",
"position": "midfielder",
"athlete_id": "3c9e1f2a-8b7d-4c6e-9a5f-1d2e3b4c5a6f"
}
],
"data_available": [
"events",
"segments",
"physical",
"tracking"
]
}
}{
"error": "Unauthorized",
"message": "Bearer token is missing or invalid."
}{
"error": "Forbidden",
"message": "You do not have permission to access this resource."
}{
"error": "NotFound",
"message": "The specified game_id was not found."
}{
"error": "TooManyRequests",
"message": "The rate limit has been exceeded. Please wait and try again later."
}{
"error": "InternalServerError",
"message": "An unexpected error occurred on the server. Please try again later."
}Games
Get Game
Returns one game with its roster, each team’s attacking direction per period, its latest run and status.
GET
/
games
/
{game_id}
Get Game
curl --request GET \
--url https://api.uplift.ai/v1/games/{game_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.uplift.ai/v1/games/{game_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.uplift.ai/v1/games/{game_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.uplift.ai/v1/games/{game_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.uplift.ai/v1/games/{game_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.uplift.ai/v1/games/{game_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.uplift.ai/v1/games/{game_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"game": {
"game_id": "6b1e0c2a-7d8f-4a51-9b0e-2f3c1d4e5a6b",
"status": "completed",
"run_id": "f2a91c3e-0b47-4d6a-8e15-7c9d2b3a4e5f",
"date": "2026-10-18",
"competition": "Example League",
"home_team": {
"team_id": "t-0451",
"team_side": "home",
"name": "Home FC"
},
"away_team": {
"team_id": "t-0388",
"team_side": "away",
"name": "Away United"
},
"pitch": {
"length_m": 105,
"width_m": 68
},
"periods": [
{
"period": 1,
"duration_s": 2843,
"home_attacking_direction": "left_to_right"
},
{
"period": 2,
"duration_s": 2911,
"home_attacking_direction": "right_to_left"
}
],
"roster": [
{
"player_id": "p07",
"team_id": "t-0451",
"shirt_number": 7,
"name": "Player Seven",
"position": "midfielder",
"athlete_id": "3c9e1f2a-8b7d-4c6e-9a5f-1d2e3b4c5a6f"
}
],
"data_available": [
"events",
"segments",
"physical",
"tracking"
]
}
}{
"error": "Unauthorized",
"message": "Bearer token is missing or invalid."
}{
"error": "Forbidden",
"message": "You do not have permission to access this resource."
}{
"error": "NotFound",
"message": "The specified game_id was not found."
}{
"error": "TooManyRequests",
"message": "The rate limit has been exceeded. Please wait and try again later."
}{
"error": "InternalServerError",
"message": "An unexpected error occurred on the server. Please try again later."
}The Game Data API is in preview. Endpoints, fields and limits may change before release, and it is not yet available to call.