curl --request POST \
--url https://api.aisa.one/apis/v1/baseballsavant-mlb-com/baseball-statcast/search-statcast \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"end_date": "2026-05-08",
"start_date": "2026-05-08"
}
'import requests
url = "https://api.aisa.one/apis/v1/baseballsavant-mlb-com/baseball-statcast/search-statcast"
payload = {
"end_date": "2026-05-08",
"start_date": "2026-05-08"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({end_date: '2026-05-08', start_date: '2026-05-08'})
};
fetch('https://api.aisa.one/apis/v1/baseballsavant-mlb-com/baseball-statcast/search-statcast', 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.aisa.one/apis/v1/baseballsavant-mlb-com/baseball-statcast/search-statcast",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'end_date' => '2026-05-08',
'start_date' => '2026-05-08'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/baseballsavant-mlb-com/baseball-statcast/search-statcast"
payload := strings.NewReader("{\n \"end_date\": \"2026-05-08\",\n \"start_date\": \"2026-05-08\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/baseballsavant-mlb-com/baseball-statcast/search-statcast")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"end_date\": \"2026-05-08\",\n \"start_date\": \"2026-05-08\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/baseballsavant-mlb-com/baseball-statcast/search-statcast")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"end_date\": \"2026-05-08\",\n \"start_date\": \"2026-05-08\"\n}"
response = http.request(request)
puts response.read_body{
"count": 5,
"next_cursor": "5",
"observed_at_ms": 1791156857514,
"pitches": [
{
"arm_angle_deg": 29.6,
"at_bat_number": 3,
"away_score": 0,
"away_team": "NYY",
"balls": 1,
"bat_speed_mph": 78.3,
"batter_id": 592450,
"bb_type": "line_drive",
"delta_home_win_exp": 0.007,
"delta_run_exp": -0.184,
"description": "hit_into_play",
"estimated_ba": 0.331,
"estimated_slg": 0.619,
"estimated_woba": 0.401,
"events": "field_out",
"game_date": "2026-05-08",
"game_pk": 823794,
"game_year": 2026,
"hit_distance_ft": 309,
"home_score": 0,
"home_team": "MIL",
"inning": 1,
"inning_half": "Top",
"launch_angle_deg": 20,
"launch_speed_mph": 99.2,
"outs_when_up": 2,
"p_throws": "R",
"pfx_x_ft": -1.07,
"pfx_z_ft": 1.34,
"pitch_name": "4-Seam Fastball",
"pitch_number": 4,
"pitch_type": "FF",
"pitcher_id": 694819,
"plate_x_ft": -0.35794275582673185,
"plate_z_ft": 2.093973646259121,
"play_description": "Aaron Judge lines out to right fielder Sal Frelick.",
"player_name": "Judge, Aaron",
"release_extension_ft": 7.4,
"release_speed_mph": 103.6,
"release_spin_rate_rpm": 2703,
"result_type": "X",
"stand": "R",
"strikes": 2,
"sv_id": null,
"swing_length_ft": 8.1,
"woba_value": 0,
"zone": 7
},
{
"arm_angle_deg": 28.7,
"at_bat_number": 3,
"away_score": 0,
"away_team": "NYY",
"balls": 0,
"bat_speed_mph": 77.6,
"batter_id": 592450,
"bb_type": null,
"delta_home_win_exp": 0.002,
"delta_run_exp": -0.062,
"description": "foul",
"estimated_ba": null,
"estimated_slg": null,
"estimated_woba": null,
"events": null,
"game_date": "2026-05-08",
"game_pk": 823794,
"game_year": 2026,
"hit_distance_ft": 220,
"home_score": 0,
"home_team": "MIL",
"inning": 1,
"inning_half": "Top",
"launch_angle_deg": 43,
"launch_speed_mph": 74.3,
"outs_when_up": 2,
"p_throws": "R",
"pfx_x_ft": -1.05,
"pfx_z_ft": 1.23,
"pitch_name": "4-Seam Fastball",
"pitch_number": 2,
"pitch_type": "FF",
"pitcher_id": 694819,
"plate_x_ft": -0.30442126217486654,
"plate_z_ft": 2.6396527197019664,
"play_description": null,
"player_name": "Judge, Aaron",
"release_extension_ft": 7.6,
"release_speed_mph": 103.5,
"release_spin_rate_rpm": 2640,
"result_type": "S",
"stand": "R",
"strikes": 1,
"sv_id": null,
"swing_length_ft": 7.7,
"woba_value": null,
"zone": 4
},
{
"arm_angle_deg": 29.5,
"at_bat_number": 3,
"away_score": 0,
"away_team": "NYY",
"balls": 0,
"bat_speed_mph": null,
"batter_id": 592450,
"bb_type": null,
"delta_home_win_exp": 0.002,
"delta_run_exp": -0.046,
"description": "called_strike",
"estimated_ba": null,
"estimated_slg": null,
"estimated_woba": null,
"events": null,
"game_date": "2026-05-08",
"game_pk": 823794,
"game_year": 2026,
"hit_distance_ft": null,
"home_score": 0,
"home_team": "MIL",
"inning": 1,
"inning_half": "Top",
"launch_angle_deg": null,
"launch_speed_mph": null,
"outs_when_up": 2,
"p_throws": "R",
"pfx_x_ft": -0.97,
"pfx_z_ft": 1.21,
"pitch_name": "4-Seam Fastball",
"pitch_number": 1,
"pitch_type": "FF",
"pitcher_id": 694819,
"plate_x_ft": -0.655273179372026,
"plate_z_ft": 2.1942968523895026,
"play_description": null,
"player_name": "Judge, Aaron",
"release_extension_ft": 7.6,
"release_speed_mph": 103.3,
"release_spin_rate_rpm": 2667,
"result_type": "S",
"stand": "R",
"strikes": 0,
"sv_id": null,
"swing_length_ft": null,
"woba_value": null,
"zone": 7
},
{
"arm_angle_deg": 31.2,
"at_bat_number": 3,
"away_score": 0,
"away_team": "NYY",
"balls": 0,
"bat_speed_mph": null,
"batter_id": 592450,
"bb_type": null,
"delta_home_win_exp": -0.001,
"delta_run_exp": 0.029,
"description": "ball",
"estimated_ba": null,
"estimated_slg": null,
"estimated_woba": null,
"events": null,
"game_date": "2026-05-08",
"game_pk": 823794,
"game_year": 2026,
"hit_distance_ft": null,
"home_score": 0,
"home_team": "MIL",
"inning": 1,
"inning_half": "Top",
"launch_angle_deg": null,
"launch_speed_mph": null,
"outs_when_up": 2,
"p_throws": "R",
"pfx_x_ft": -0.88,
"pfx_z_ft": 1.45,
"pitch_name": "4-Seam Fastball",
"pitch_number": 3,
"pitch_type": "FF",
"pitcher_id": 694819,
"plate_x_ft": 0.7647939847092927,
"plate_z_ft": 1.5864706073251795,
"play_description": null,
"player_name": "Judge, Aaron",
"release_extension_ft": 7.8,
"release_speed_mph": 103.1,
"release_spin_rate_rpm": 2754,
"result_type": "B",
"stand": "R",
"strikes": 2,
"sv_id": null,
"swing_length_ft": null,
"woba_value": null,
"zone": 14
},
{
"arm_angle_deg": 31.2,
"at_bat_number": 44,
"away_score": 0,
"away_team": "NYY",
"balls": 1,
"bat_speed_mph": 70.5,
"batter_id": 592450,
"bb_type": null,
"delta_home_win_exp": 0.01,
"delta_run_exp": -0.179,
"description": "swinging_strike",
"estimated_ba": null,
"estimated_slg": null,
"estimated_woba": 0,
"events": "strikeout",
"game_date": "2026-05-08",
"game_pk": 823794,
"game_year": 2026,
"hit_distance_ft": null,
"home_score": 5,
"home_team": "MIL",
"inning": 6,
"inning_half": "Top",
"launch_angle_deg": null,
"launch_speed_mph": null,
"outs_when_up": 1,
"p_throws": "R",
"pfx_x_ft": -0.99,
"pfx_z_ft": 1.25,
"pitch_name": "4-Seam Fastball",
"pitch_number": 4,
"pitch_type": "FF",
"pitcher_id": 694819,
"plate_x_ft": 0.8239812581726247,
"plate_z_ft": 2.649560513634593,
"play_description": "Aaron Judge strikes out swinging.",
"player_name": "Judge, Aaron",
"release_extension_ft": 7.7,
"release_speed_mph": 102.4,
"release_spin_rate_rpm": 2736,
"result_type": "S",
"stand": "R",
"strikes": 2,
"sv_id": null,
"swing_length_ft": 6.7,
"woba_value": 0,
"zone": 6
}
],
"query": {
"end_date": "2026-05-08",
"game_type": "R",
"pitch_types": [],
"player_id": 592450,
"player_type": "batter",
"season": 2026,
"start_date": "2026-05-08",
"team": null
},
"source_url": "https://baseballsavant.mlb.com/statcast_search/csv?hfPT=&hfGT=R%7C&hfSea=2026%7C&player_type=batter&batters_lookup%5B%5D=592450&hfTeam=&game_date_gt=2026-05-08&game_date_lt=2026-05-08&group_by=name-event&min_pitches=0&min_results=0&min_pas=0&player_event_sort=api_p_release_speed&sort_order=desc&type=details&all=true&minors=false&wbc=false",
"total": 13
}Search statcast
Statcast pitch-level data for a known player_id (or team abbreviation) in a date window; narrow the window or add pitch_types to keep results small.
curl --request POST \
--url https://api.aisa.one/apis/v1/baseballsavant-mlb-com/baseball-statcast/search-statcast \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"end_date": "2026-05-08",
"start_date": "2026-05-08"
}
'import requests
url = "https://api.aisa.one/apis/v1/baseballsavant-mlb-com/baseball-statcast/search-statcast"
payload = {
"end_date": "2026-05-08",
"start_date": "2026-05-08"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({end_date: '2026-05-08', start_date: '2026-05-08'})
};
fetch('https://api.aisa.one/apis/v1/baseballsavant-mlb-com/baseball-statcast/search-statcast', 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.aisa.one/apis/v1/baseballsavant-mlb-com/baseball-statcast/search-statcast",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'end_date' => '2026-05-08',
'start_date' => '2026-05-08'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/baseballsavant-mlb-com/baseball-statcast/search-statcast"
payload := strings.NewReader("{\n \"end_date\": \"2026-05-08\",\n \"start_date\": \"2026-05-08\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/baseballsavant-mlb-com/baseball-statcast/search-statcast")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"end_date\": \"2026-05-08\",\n \"start_date\": \"2026-05-08\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/baseballsavant-mlb-com/baseball-statcast/search-statcast")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"end_date\": \"2026-05-08\",\n \"start_date\": \"2026-05-08\"\n}"
response = http.request(request)
puts response.read_body{
"count": 5,
"next_cursor": "5",
"observed_at_ms": 1791156857514,
"pitches": [
{
"arm_angle_deg": 29.6,
"at_bat_number": 3,
"away_score": 0,
"away_team": "NYY",
"balls": 1,
"bat_speed_mph": 78.3,
"batter_id": 592450,
"bb_type": "line_drive",
"delta_home_win_exp": 0.007,
"delta_run_exp": -0.184,
"description": "hit_into_play",
"estimated_ba": 0.331,
"estimated_slg": 0.619,
"estimated_woba": 0.401,
"events": "field_out",
"game_date": "2026-05-08",
"game_pk": 823794,
"game_year": 2026,
"hit_distance_ft": 309,
"home_score": 0,
"home_team": "MIL",
"inning": 1,
"inning_half": "Top",
"launch_angle_deg": 20,
"launch_speed_mph": 99.2,
"outs_when_up": 2,
"p_throws": "R",
"pfx_x_ft": -1.07,
"pfx_z_ft": 1.34,
"pitch_name": "4-Seam Fastball",
"pitch_number": 4,
"pitch_type": "FF",
"pitcher_id": 694819,
"plate_x_ft": -0.35794275582673185,
"plate_z_ft": 2.093973646259121,
"play_description": "Aaron Judge lines out to right fielder Sal Frelick.",
"player_name": "Judge, Aaron",
"release_extension_ft": 7.4,
"release_speed_mph": 103.6,
"release_spin_rate_rpm": 2703,
"result_type": "X",
"stand": "R",
"strikes": 2,
"sv_id": null,
"swing_length_ft": 8.1,
"woba_value": 0,
"zone": 7
},
{
"arm_angle_deg": 28.7,
"at_bat_number": 3,
"away_score": 0,
"away_team": "NYY",
"balls": 0,
"bat_speed_mph": 77.6,
"batter_id": 592450,
"bb_type": null,
"delta_home_win_exp": 0.002,
"delta_run_exp": -0.062,
"description": "foul",
"estimated_ba": null,
"estimated_slg": null,
"estimated_woba": null,
"events": null,
"game_date": "2026-05-08",
"game_pk": 823794,
"game_year": 2026,
"hit_distance_ft": 220,
"home_score": 0,
"home_team": "MIL",
"inning": 1,
"inning_half": "Top",
"launch_angle_deg": 43,
"launch_speed_mph": 74.3,
"outs_when_up": 2,
"p_throws": "R",
"pfx_x_ft": -1.05,
"pfx_z_ft": 1.23,
"pitch_name": "4-Seam Fastball",
"pitch_number": 2,
"pitch_type": "FF",
"pitcher_id": 694819,
"plate_x_ft": -0.30442126217486654,
"plate_z_ft": 2.6396527197019664,
"play_description": null,
"player_name": "Judge, Aaron",
"release_extension_ft": 7.6,
"release_speed_mph": 103.5,
"release_spin_rate_rpm": 2640,
"result_type": "S",
"stand": "R",
"strikes": 1,
"sv_id": null,
"swing_length_ft": 7.7,
"woba_value": null,
"zone": 4
},
{
"arm_angle_deg": 29.5,
"at_bat_number": 3,
"away_score": 0,
"away_team": "NYY",
"balls": 0,
"bat_speed_mph": null,
"batter_id": 592450,
"bb_type": null,
"delta_home_win_exp": 0.002,
"delta_run_exp": -0.046,
"description": "called_strike",
"estimated_ba": null,
"estimated_slg": null,
"estimated_woba": null,
"events": null,
"game_date": "2026-05-08",
"game_pk": 823794,
"game_year": 2026,
"hit_distance_ft": null,
"home_score": 0,
"home_team": "MIL",
"inning": 1,
"inning_half": "Top",
"launch_angle_deg": null,
"launch_speed_mph": null,
"outs_when_up": 2,
"p_throws": "R",
"pfx_x_ft": -0.97,
"pfx_z_ft": 1.21,
"pitch_name": "4-Seam Fastball",
"pitch_number": 1,
"pitch_type": "FF",
"pitcher_id": 694819,
"plate_x_ft": -0.655273179372026,
"plate_z_ft": 2.1942968523895026,
"play_description": null,
"player_name": "Judge, Aaron",
"release_extension_ft": 7.6,
"release_speed_mph": 103.3,
"release_spin_rate_rpm": 2667,
"result_type": "S",
"stand": "R",
"strikes": 0,
"sv_id": null,
"swing_length_ft": null,
"woba_value": null,
"zone": 7
},
{
"arm_angle_deg": 31.2,
"at_bat_number": 3,
"away_score": 0,
"away_team": "NYY",
"balls": 0,
"bat_speed_mph": null,
"batter_id": 592450,
"bb_type": null,
"delta_home_win_exp": -0.001,
"delta_run_exp": 0.029,
"description": "ball",
"estimated_ba": null,
"estimated_slg": null,
"estimated_woba": null,
"events": null,
"game_date": "2026-05-08",
"game_pk": 823794,
"game_year": 2026,
"hit_distance_ft": null,
"home_score": 0,
"home_team": "MIL",
"inning": 1,
"inning_half": "Top",
"launch_angle_deg": null,
"launch_speed_mph": null,
"outs_when_up": 2,
"p_throws": "R",
"pfx_x_ft": -0.88,
"pfx_z_ft": 1.45,
"pitch_name": "4-Seam Fastball",
"pitch_number": 3,
"pitch_type": "FF",
"pitcher_id": 694819,
"plate_x_ft": 0.7647939847092927,
"plate_z_ft": 1.5864706073251795,
"play_description": null,
"player_name": "Judge, Aaron",
"release_extension_ft": 7.8,
"release_speed_mph": 103.1,
"release_spin_rate_rpm": 2754,
"result_type": "B",
"stand": "R",
"strikes": 2,
"sv_id": null,
"swing_length_ft": null,
"woba_value": null,
"zone": 14
},
{
"arm_angle_deg": 31.2,
"at_bat_number": 44,
"away_score": 0,
"away_team": "NYY",
"balls": 1,
"bat_speed_mph": 70.5,
"batter_id": 592450,
"bb_type": null,
"delta_home_win_exp": 0.01,
"delta_run_exp": -0.179,
"description": "swinging_strike",
"estimated_ba": null,
"estimated_slg": null,
"estimated_woba": 0,
"events": "strikeout",
"game_date": "2026-05-08",
"game_pk": 823794,
"game_year": 2026,
"hit_distance_ft": null,
"home_score": 5,
"home_team": "MIL",
"inning": 6,
"inning_half": "Top",
"launch_angle_deg": null,
"launch_speed_mph": null,
"outs_when_up": 1,
"p_throws": "R",
"pfx_x_ft": -0.99,
"pfx_z_ft": 1.25,
"pitch_name": "4-Seam Fastball",
"pitch_number": 4,
"pitch_type": "FF",
"pitcher_id": 694819,
"plate_x_ft": 0.8239812581726247,
"plate_z_ft": 2.649560513634593,
"play_description": "Aaron Judge strikes out swinging.",
"player_name": "Judge, Aaron",
"release_extension_ft": 7.7,
"release_speed_mph": 102.4,
"release_spin_rate_rpm": 2736,
"result_type": "S",
"stand": "R",
"strikes": 2,
"sv_id": null,
"swing_length_ft": 6.7,
"woba_value": 0,
"zone": 6
}
],
"query": {
"end_date": "2026-05-08",
"game_type": "R",
"pitch_types": [],
"player_id": 592450,
"player_type": "batter",
"season": 2026,
"start_date": "2026-05-08",
"team": null
},
"source_url": "https://baseballsavant.mlb.com/statcast_search/csv?hfPT=&hfGT=R%7C&hfSea=2026%7C&player_type=batter&batters_lookup%5B%5D=592450&hfTeam=&game_date_gt=2026-05-08&game_date_lt=2026-05-08&group_by=name-event&min_pitches=0&min_results=0&min_pas=0&player_event_sort=api_p_release_speed&sort_order=desc&type=details&all=true&minors=false&wbc=false",
"total": 13
}Request contract
- Method and path: POST /apis/v1/baseballsavant-mlb-com/baseball-statcast/search-statcast
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/baseballsavant-mlb-com/baseball-statcast/search-statcast
{
"operationId": "baseballsavant-mlb-com.baseball-statcast.search-statcast",
"method": "POST",
"path": "/apis/v1/baseballsavant-mlb-com/baseball-statcast/search-statcast",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [],
"security": [
{
"bearerAuth": []
}
],
"requestBody": {
"content": {
"application/json": {
"examples": {
"provider": {
"summary": "Official provider example; checked against AIsa request constraints",
"value": {
"end_date": "2026-05-08",
"limit": 5,
"player_id": 592450,
"start_date": "2026-05-08"
}
}
},
"schema": {
"additionalProperties": true,
"properties": {
"cursor": {
"description": "Continuation cursor from a previous response's `next_cursor`; send it with the same other inputs to get the next page.",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"end_date": {
"description": "Last game date, YYYY-MM-DD; same season as `start_date`, at most 31 days later. Pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$.",
"type": "string"
},
"game_type": {
"default": "R",
"description": "`R` regular season (default), `F` wild card, `D` division series, `L` league championship, `W` World Series, `S` spring training.\n\nProvider reference: allowed values [\"R\", \"F\", \"D\", \"L\", \"W\", \"S\"]; default \"R\".",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body",
"oneOf": [
"R",
"F",
"D",
"L",
"W",
"S"
]
}
},
"limit": {
"default": 200,
"description": "Maximum rows per page (default 200, max 1000).\n\nProvider reference: minimum 1; maximum 1000; default 200.",
"type": "number",
"x-alexandria-option-metadata": {
"in": "body",
"max": 1000,
"min": 1
}
},
"pitch_types": {
"description": "Statcast pitch codes to keep (FF, SI, FC, SL, ST, SV, CU, KC, CH, FS, KN, ...).",
"items": {
"type": "string"
},
"type": "array",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"player_id": {
"description": "MLBAM player id (the `player_id` returned by `search_players`, also used by MLB.com and statsapi.mlb.com).\n\nProvider reference: minimum 1.",
"type": "number",
"x-alexandria-option-metadata": {
"in": "body",
"min": 1
}
},
"player_type": {
"default": "batter",
"description": "`batter` searches by the batter, `pitcher` by the pitcher (default `batter`).\n\nProvider reference: allowed values [\"batter\", \"pitcher\"]; default \"batter\".",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body",
"oneOf": [
"batter",
"pitcher"
]
}
},
"start_date": {
"description": "First game date, YYYY-MM-DD. Pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$.",
"type": "string"
},
"team": {
"description": "Team abbreviation as Savant uses it (e.g. `NYY`); filters the batting or fielding team per `player_type`. Pattern: ^[A-Z]{2,3}$.",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
}
},
"required": [
"end_date",
"start_date"
],
"type": "object"
}
}
},
"required": true
},
"x-aisa-status": "enabled",
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
Cost and request rules
Usage-based pricing. Default request estimate: $0.0005 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.Authorizations
Body
Response
Pitch-by-pitch Statcast search (/statcast_search/csv, the site's CSV export) for one batter or pitcher, or one team, over a date window of at most 31 days in one season: pitch type, velocity, spin, movement, location, count, result, and batted-ball metrics (exit velocity, launch angle, distance, xBA/xwOBA, bat speed). Rows are returned as the site orders them and paged with limit/cursor. The export has no play UUID; use get_player_gamelogs for play_id.
The response contains the tool result directly.
The provider identifies pitches as the primary payload key.
| Documented field | Provider type | Description |
|---|---|---|
arm_angle_deg | number | |
at_bat_number | number | |
away_score | number | |
away_team | string | |
balls | number | |
bat_speed_mph | number | |
batter_id | number | |
bb_type | string | Batted-ball type: ground_ball, line_drive, fly_ball, popup; null when not in play. |
delta_home_win_exp | number | |
delta_run_exp | number | |
description | string | Pitch outcome, e.g. called_strike, hit_into_play. |
estimated_ba | number | xBA of the batted ball. |
estimated_slg | number | |
estimated_woba | number | |
events | string | Plate-appearance result on the final pitch (e.g. home_run); null on other pitches. |
game_date | string | YYYY-MM-DD. |
game_pk | number | |
game_year | number | |
hit_distance_ft | number | |
home_score | number | |
home_team | string | |
inning | number | |
inning_half | string | Top or Bot. |
launch_angle_deg | number | |
launch_speed_mph | number | |
outs_when_up | number | |
p_throws | string | Pitcher hand R/L. |
pfx_x_ft | number | Horizontal movement, feet, catcher's view. |
pfx_z_ft | number | Vertical movement, feet. |
pitch_name | string | |
pitch_number | number | Pitch number within the plate appearance. |
pitch_type | string | Statcast pitch code (FF, SL, ...). |
pitcher_id | number | |
plate_x_ft | number | |
plate_z_ft | number | |
play_description | string | Play-by-play sentence; null on non-final pitches. |
player_name | string | The searched player as Last, First. |
release_extension_ft | number | |
release_speed_mph | number | |
release_spin_rate_rpm | number | |
result_type | string | B ball, S strike, X in play. |
stand | string | Batter side R/L. |
strikes | number | |
sv_id | string | Statcast tracking id of the pitch when present. |
swing_length_ft | number | |
woba_value | number | |
zone | number | Statcast zone 1-14. |
These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.