curl --request GET \
--url https://api.sportquanta.com/v1/mlb/games/{id}/lineup-card \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.sportquanta.com/v1/mlb/games/{id}/lineup-card"
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/mlb/games/{id}/lineup-card', 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/mlb/games/{id}/lineup-card",
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/mlb/games/{id}/lineup-card"
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/mlb/games/{id}/lineup-card")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sportquanta.com/v1/mlb/games/{id}/lineup-card")
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": {
"game_id": "<string>",
"league": "<string>",
"season": 123,
"full": true,
"home": {
"team_id": "<string>",
"lineup_source": "<string>",
"batters": [
{
"order_index": 123,
"player_id": "<string>",
"name": "<string>",
"localized_names": {},
"bats": "<string>",
"position": "<string>",
"all": {},
"vs_rhp": {},
"vs_lhp": {},
"vs_starter": {},
"vs_pitch_mix": {
"items": [
{}
],
"arsenal": [
{}
]
}
}
],
"opposing_starter": {
"player_id": "<string>",
"name": "<string>",
"localized_names": {},
"hand": "<string>"
},
"confidence": "<string>",
"lineup_average": {}
},
"away": {
"team_id": "<string>",
"lineup_source": "<string>",
"batters": [
{
"order_index": 123,
"player_id": "<string>",
"name": "<string>",
"localized_names": {},
"bats": "<string>",
"position": "<string>",
"all": {},
"vs_rhp": {},
"vs_lhp": {},
"vs_starter": {},
"vs_pitch_mix": {
"items": [
{}
],
"arsenal": [
{}
]
}
}
],
"opposing_starter": {
"player_id": "<string>",
"name": "<string>",
"localized_names": {},
"hand": "<string>"
},
"confidence": "<string>",
"lineup_average": {}
}
},
"_meta": {
"request_id": "<string>",
"served_from": "live",
"cache_ttl_seconds": 123,
"provenance": {},
"availability": {}
}
}Lineup card
MLB-only route. Returns BOTH teams’ lineups (9 batters each),
with every batter scored against the OPPOSING team’s probable
starter: season slash + K%/BB% + wRC+ for all, vs_rhp and
vs_lhp; the career head-to-head vs the opposing starter
(vs_starter, carries the PA count); and the batter’s
per-pitch-type outcomes plus that starter’s arsenal usage
(vs_pitch_mix). Each side also carries a lineup_average row.
The lineup is guaranteed non-empty via a cascade, reported per
side in lineup_source:
confirmed (official, statsapi) → projected (Rotowire) →
estimated (carry-forward of the team’s last lineup, or — for a
season opener — an active-roster guess ranked by platoon wRC+).
A confidence hint (high|medium|low) accompanies estimates.
Only a missing game 404s.
The response full flag is true for MLB. KBO and NPB expose a
LITE variant of this endpoint (/v1/kbo/games/{id}/lineup-card,
/v1/npb/games/{id}/lineup-card) with full:false: same
cascade + season slash line (wRC+ on KBO), but the vs_rhp,
vs_lhp, vs_starter and vs_pitch_mix blocks are omitted
until those leagues’ per-PA derivations land.
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/mlb/games/{id}/lineup-card \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.sportquanta.com/v1/mlb/games/{id}/lineup-card"
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/mlb/games/{id}/lineup-card', 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/mlb/games/{id}/lineup-card",
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/mlb/games/{id}/lineup-card"
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/mlb/games/{id}/lineup-card")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sportquanta.com/v1/mlb/games/{id}/lineup-card")
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": {
"game_id": "<string>",
"league": "<string>",
"season": 123,
"full": true,
"home": {
"team_id": "<string>",
"lineup_source": "<string>",
"batters": [
{
"order_index": 123,
"player_id": "<string>",
"name": "<string>",
"localized_names": {},
"bats": "<string>",
"position": "<string>",
"all": {},
"vs_rhp": {},
"vs_lhp": {},
"vs_starter": {},
"vs_pitch_mix": {
"items": [
{}
],
"arsenal": [
{}
]
}
}
],
"opposing_starter": {
"player_id": "<string>",
"name": "<string>",
"localized_names": {},
"hand": "<string>"
},
"confidence": "<string>",
"lineup_average": {}
},
"away": {
"team_id": "<string>",
"lineup_source": "<string>",
"batters": [
{
"order_index": 123,
"player_id": "<string>",
"name": "<string>",
"localized_names": {},
"bats": "<string>",
"position": "<string>",
"all": {},
"vs_rhp": {},
"vs_lhp": {},
"vs_starter": {},
"vs_pitch_mix": {
"items": [
{}
],
"arsenal": [
{}
]
}
}
],
"opposing_starter": {
"player_id": "<string>",
"name": "<string>",
"localized_names": {},
"hand": "<string>"
},
"confidence": "<string>",
"lineup_average": {}
}
},
"_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
Query Parameters
Limit the card to one team.
home, away Response
Both-teams lineup card payload.
Hide child attributes
Hide child attributes
True for MLB advanced cards; false for KBO/NPB lighter cards.
Hide child attributes
Hide child attributes
confirmed, projected, or estimated. Evaluate separately for each team.
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.
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.
Estimate confidence when available; not a confirmation flag.
Provider-derived document. Fields vary by league, source, and season; absent metrics are not zero.
Hide child attributes
Hide child attributes
confirmed, projected, or estimated. Evaluate separately for each team.
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.
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.
Estimate confidence when available; not a confirmation flag.
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.