curl --request GET \
--url https://api.sportquanta.com/v1/{league}/players/{id}/profile \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.sportquanta.com/v1/{league}/players/{id}/profile"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.sportquanta.com/v1/{league}/players/{id}/profile', 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.sportquanta.com/v1/{league}/players/{id}/profile",
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.sportquanta.com/v1/{league}/players/{id}/profile"
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.sportquanta.com/v1/{league}/players/{id}/profile")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sportquanta.com/v1/{league}/players/{id}/profile")
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{
"data": {
"data": {
"player_id": "<string>",
"active": true,
"recent_games": [
{
"game_id": "<string>",
"date": "<string>",
"status": "<string>",
"season": 123,
"team_id": "<string>",
"opponent_id": "<string>",
"home": true,
"game_type": "<string>",
"team_runs": 123,
"opponent_runs": 123,
"result": "<string>",
"batting": {
"ab": 123,
"r": 123,
"h": 123,
"rbi": 123,
"hr": 123,
"doubles": 123,
"triples": 123,
"bb": 123,
"so": 123,
"sb": 123,
"position": "<string>",
"batting_order": 123
},
"pitching": {
"appearance_order": 123,
"ip": 123,
"h": 123,
"r": 123,
"er": 123,
"bb": 123,
"k": 123,
"hr": 123,
"decision": "<string>",
"pitch_count": 123,
"game_score": 123
}
}
],
"name": "<string>",
"localized_names": {},
"team_id": "<string>",
"position": "<string>",
"bats": "<string>",
"throws": "<string>",
"season": 123,
"batting": {},
"pitching": {},
"splits": {
"vs_rhp": {},
"vs_lhp": {}
},
"injury": {
"status": "<string>",
"status_text": "<string>",
"comment": "<string>",
"updated_at": "<string>",
"eta_class": "<string>",
"eta_confidence": "<string>"
}
}
},
"_meta": {
"request_id": "<string>",
"served_from": "live",
"cache_ttl_seconds": 123,
"provenance": {},
"availability": {}
}
}Player profile
Requires the stats entitlement (a paid plan). See Responses & Errors for the success envelope and availability rules.
curl --request GET \
--url https://api.sportquanta.com/v1/{league}/players/{id}/profile \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.sportquanta.com/v1/{league}/players/{id}/profile"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.sportquanta.com/v1/{league}/players/{id}/profile', 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.sportquanta.com/v1/{league}/players/{id}/profile",
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.sportquanta.com/v1/{league}/players/{id}/profile"
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.sportquanta.com/v1/{league}/players/{id}/profile")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sportquanta.com/v1/{league}/players/{id}/profile")
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{
"data": {
"data": {
"player_id": "<string>",
"active": true,
"recent_games": [
{
"game_id": "<string>",
"date": "<string>",
"status": "<string>",
"season": 123,
"team_id": "<string>",
"opponent_id": "<string>",
"home": true,
"game_type": "<string>",
"team_runs": 123,
"opponent_runs": 123,
"result": "<string>",
"batting": {
"ab": 123,
"r": 123,
"h": 123,
"rbi": 123,
"hr": 123,
"doubles": 123,
"triples": 123,
"bb": 123,
"so": 123,
"sb": 123,
"position": "<string>",
"batting_order": 123
},
"pitching": {
"appearance_order": 123,
"ip": 123,
"h": 123,
"r": 123,
"er": 123,
"bb": 123,
"k": 123,
"hr": 123,
"decision": "<string>",
"pitch_count": 123,
"game_score": 123
}
}
],
"name": "<string>",
"localized_names": {},
"team_id": "<string>",
"position": "<string>",
"bats": "<string>",
"throws": "<string>",
"season": 123,
"batting": {},
"pitching": {},
"splits": {
"vs_rhp": {},
"vs_lhp": {}
},
"injury": {
"status": "<string>",
"status_text": "<string>",
"comment": "<string>",
"updated_at": "<string>",
"eta_class": "<string>",
"eta_confidence": "<string>"
}
}
},
"_meta": {
"request_id": "<string>",
"served_from": "live",
"cache_ttl_seconds": 123,
"provenance": {},
"availability": {}
}
}Authorizations
Send a workspace API token in the Authorization: Bearer <token> header.
Path Parameters
League for this reference section: kbo.
kbo Query Parameters
Opt in to per-field provenance on supported single game, match, team, player, and venue reads. Lists and composites accept the flag but generally omit provenance. It is returned under _meta.provenance only when source metadata exists.
Response
Identity, season line, splits, recent form, and injury status.
Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
Provider-derived document. Fields vary by league, source, and season; absent metrics are not zero.
Provider-derived document. Fields vary by league, source, and season; absent metrics are not zero.
Hide child attributes
Hide child attributes
live, cache Response cache TTL; independent of source freshness. Omitted when zero.
Endpoint-specific availability context, including soccer roster coverage.