Get Game Physical Summary
curl --request GET \
--url https://api.uplift.ai/v1/games/{game_id}/physical \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.uplift.ai/v1/games/{game_id}/physical"
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}/physical', 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}/physical",
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}/physical"
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}/physical")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.uplift.ai/v1/games/{game_id}/physical")
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_id": "6b1e0c2a-7d8f-4a51-9b0e-2f3c1d4e5a6b",
"run_id": "f2a91c3e-0b47-4d6a-8e15-7c9d2b3a4e5f",
"thresholds": {
"hsr_kmh": 19.8,
"sprint_kmh": 25.2,
"acceleration_mps2": 3
},
"players": [
{
"player_id": "p07",
"athlete_id": "3c9e1f2a-8b7d-4c6e-9a5f-1d2e3b4c5a6f",
"period": 1,
"minutes_tracked": 44.1,
"total_distance_m": 5420,
"high_speed_running_m": 412,
"sprint_distance_m": 168,
"sprint_count": 9,
"accelerations": 21,
"decelerations": 27,
"max_speed_kmh": 33.1,
"coverage": 0.81
}
]
}{
"error": "BadRequest",
"message": "The request parameters are invalid. Please review the request and try again."
}{
"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."
}Match Data
Get Game Physical Summary
Returns physical summaries per player: distance, high-speed running, sprints, accelerations and decelerations, for the whole game, each period or each 15-minute block. Thresholds are returned with the data.
GET
/
games
/
{game_id}
/
physical
Get Game Physical Summary
curl --request GET \
--url https://api.uplift.ai/v1/games/{game_id}/physical \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.uplift.ai/v1/games/{game_id}/physical"
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}/physical', 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}/physical",
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}/physical"
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}/physical")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.uplift.ai/v1/games/{game_id}/physical")
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_id": "6b1e0c2a-7d8f-4a51-9b0e-2f3c1d4e5a6b",
"run_id": "f2a91c3e-0b47-4d6a-8e15-7c9d2b3a4e5f",
"thresholds": {
"hsr_kmh": 19.8,
"sprint_kmh": 25.2,
"acceleration_mps2": 3
},
"players": [
{
"player_id": "p07",
"athlete_id": "3c9e1f2a-8b7d-4c6e-9a5f-1d2e3b4c5a6f",
"period": 1,
"minutes_tracked": 44.1,
"total_distance_m": 5420,
"high_speed_running_m": 412,
"sprint_distance_m": 168,
"sprint_count": 9,
"accelerations": 21,
"decelerations": 27,
"max_speed_kmh": 33.1,
"coverage": 0.81
}
]
}{
"error": "BadRequest",
"message": "The request parameters are invalid. Please review the request and try again."
}{
"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.