curl --request GET \
--url https://api.sportquanta.com/v1/mlb/players/{id}/first-inning \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.sportquanta.com/v1/mlb/players/{id}/first-inning"
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/players/{id}/first-inning', 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/players/{id}/first-inning",
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/players/{id}/first-inning"
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/players/{id}/first-inning")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sportquanta.com/v1/mlb/players/{id}/first-inning")
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": {
"entityId": "<string>",
"season": 123,
"role": "pitcher_f1",
"starts": 123,
"f1EarnedRuns": 123,
"f1Era": 123,
"nrfiCount": 123,
"nrfiPct": 123,
"f1Strikeouts": 123,
"f1Hits": 123,
"f1Walks": 123,
"f1RunsAllowed": 123,
"games": 123,
"f1RunsScored": 123,
"scoredInF1Pct": 123,
"avgF1Runs": 123
},
"_meta": {
"request_id": "<string>",
"served_from": "live",
"cache_ttl_seconds": 123,
"provenance": {},
"availability": {}
}
}First-inning splits
MLB-only route. Returns the pitcher’s pitcher_f1 document
from first_inning_stats — starts, inning-1 runs/earned runs
allowed, F1 ERA (earned runs per 9 first innings), NRFI count
and rate, and inning-1 K / H / BB. Run attribution follows
responsible_pitcher_id, so a bequeathed runner who scores in
the first breaks the starter’s NRFI. Players only — team-side
first-inning splits surface through the NRFI card.
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/players/{id}/first-inning \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.sportquanta.com/v1/mlb/players/{id}/first-inning"
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/players/{id}/first-inning', 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/players/{id}/first-inning",
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/players/{id}/first-inning"
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/players/{id}/first-inning")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sportquanta.com/v1/mlb/players/{id}/first-inning")
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": {
"entityId": "<string>",
"season": 123,
"role": "pitcher_f1",
"starts": 123,
"f1EarnedRuns": 123,
"f1Era": 123,
"nrfiCount": 123,
"nrfiPct": 123,
"f1Strikeouts": 123,
"f1Hits": 123,
"f1Walks": 123,
"f1RunsAllowed": 123,
"games": 123,
"f1RunsScored": 123,
"scoredInF1Pct": 123,
"avgF1Runs": 123
},
"_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
Required season year. Missing, invalid, or out-of-range values return invalid_query_parameter.
1920 <= x <= 2100Response
First-inning splits payload.
Hide child attributes
Hide child attributes
Pitcher canonical id (pitcher_f1) or team canonical id (team_f1).
pitcher_f1, team_f1 Earned runs per 9 first innings: f1EarnedRuns / starts × 9.
Starts with zero inning-1 runs while he pitched (see derivation doc).
Pitcher: inning-1 runs charged to him. Team: inning-1 runs conceded.
Share of games with ≥1 first-inning run scored (0–1).
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.