curl --request POST \
--url https://api.aisa.one/apis/v1/baseballsavant-mlb-com/baseball-statcast/get-player-gamelogs \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"player_id": 592450,
"season": 2026
}
'import requests
url = "https://api.aisa.one/apis/v1/baseballsavant-mlb-com/baseball-statcast/get-player-gamelogs"
payload = {
"player_id": 592450,
"season": 2026
}
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({player_id: 592450, season: 2026})
};
fetch('https://api.aisa.one/apis/v1/baseballsavant-mlb-com/baseball-statcast/get-player-gamelogs', 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/get-player-gamelogs",
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([
'player_id' => 592450,
'season' => 2026
]),
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/get-player-gamelogs"
payload := strings.NewReader("{\n \"player_id\": 592450,\n \"season\": 2026\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/get-player-gamelogs")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"player_id\": 592450,\n \"season\": 2026\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/baseballsavant-mlb-com/baseball-statcast/get-player-gamelogs")
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 \"player_id\": 592450,\n \"season\": 2026\n}"
response = http.request(request)
puts response.read_body{
"count": 5,
"next_cursor": "5",
"observed_at_ms": 1791156852469,
"plate_appearances": [
{
"at_bat_number": 22,
"ball_in_play": false,
"barrel": null,
"batting_team_id": 147,
"event": "strikeout",
"event_label": "Strikeout",
"exit_velocity_mph": null,
"fielding_team_id": 142,
"game_date": "2026-09-16",
"game_pk": 823655,
"hard_hit": false,
"hit_distance_ft": null,
"launch_angle_deg": null,
"opponent_pitcher": "Matthews, Zebby",
"pitch_name": "4-Seam Fastball",
"pitch_type": "FF",
"pitch_velocity_mph": 96.6,
"play_id": "c3d764a7-9199-3756-987a-c4d7b0bf6d8a",
"pull_direction": null,
"video_url": "https://baseballsavant.mlb.com/sporty-videos?playId=c3d764a7-9199-3756-987a-c4d7b0bf6d8a",
"xba": null
},
{
"at_bat_number": 3,
"ball_in_play": false,
"barrel": null,
"batting_team_id": 147,
"event": "strikeout",
"event_label": "Strikeout",
"exit_velocity_mph": null,
"fielding_team_id": 142,
"game_date": "2026-09-16",
"game_pk": 823655,
"hard_hit": false,
"hit_distance_ft": null,
"launch_angle_deg": null,
"opponent_pitcher": "Matthews, Zebby",
"pitch_name": "Slider",
"pitch_type": "SL",
"pitch_velocity_mph": 88.2,
"play_id": "a9fb81ca-254c-3ed8-96e6-e832a596fb42",
"pull_direction": null,
"video_url": "https://baseballsavant.mlb.com/sporty-videos?playId=a9fb81ca-254c-3ed8-96e6-e832a596fb42",
"xba": null
},
{
"at_bat_number": 59,
"ball_in_play": true,
"barrel": true,
"batting_team_id": 147,
"event": "home_run",
"event_label": "Home Run",
"exit_velocity_mph": 104.2,
"fielding_team_id": 142,
"game_date": "2026-09-14",
"game_pk": 823656,
"hard_hit": true,
"hit_distance_ft": 415,
"launch_angle_deg": 36,
"opponent_pitcher": "Minter, A.J.",
"pitch_name": "Cutter",
"pitch_type": "FC",
"pitch_velocity_mph": 88.6,
"play_id": "e38adf60-925c-3f22-a931-17c9e76b5f6a",
"pull_direction": "Pull",
"video_url": "https://baseballsavant.mlb.com/sporty-videos?playId=e38adf60-925c-3f22-a931-17c9e76b5f6a",
"xba": 0.586
},
{
"at_bat_number": 46,
"ball_in_play": false,
"barrel": null,
"batting_team_id": 147,
"event": "strikeout",
"event_label": "Strikeout",
"exit_velocity_mph": null,
"fielding_team_id": 142,
"game_date": "2026-09-14",
"game_pk": 823656,
"hard_hit": false,
"hit_distance_ft": null,
"launch_angle_deg": null,
"opponent_pitcher": "Hoffman, Jeff",
"pitch_name": "Slider",
"pitch_type": "SL",
"pitch_velocity_mph": 86.6,
"play_id": "69547a9e-7be5-3476-96c0-24fefeadb505",
"pull_direction": null,
"video_url": "https://baseballsavant.mlb.com/sporty-videos?playId=69547a9e-7be5-3476-96c0-24fefeadb505",
"xba": null
},
{
"at_bat_number": 24,
"ball_in_play": false,
"barrel": null,
"batting_team_id": 147,
"event": "strikeout",
"event_label": "Strikeout",
"exit_velocity_mph": null,
"fielding_team_id": 142,
"game_date": "2026-09-14",
"game_pk": 823656,
"hard_hit": false,
"hit_distance_ft": null,
"launch_angle_deg": null,
"opponent_pitcher": "Kremer, Dean",
"pitch_name": "Cutter",
"pitch_type": "FC",
"pitch_velocity_mph": 91.3,
"play_id": "c8607f01-76b8-3bfb-8e91-5461b44be381",
"pull_direction": null,
"video_url": "https://baseballsavant.mlb.com/sporty-videos?playId=c8607f01-76b8-3bfb-8e91-5461b44be381",
"xba": null
}
],
"player_id": 592450,
"season": 2026,
"source_url": "https://baseballsavant.mlb.com/player-services/gamelogs?playerId=592450&season=2026",
"total": 285
}Get player gamelogs
Per-plate-appearance detail for a known player_id and season; take play_id or game_pk into further lookups.
curl --request POST \
--url https://api.aisa.one/apis/v1/baseballsavant-mlb-com/baseball-statcast/get-player-gamelogs \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"player_id": 592450,
"season": 2026
}
'import requests
url = "https://api.aisa.one/apis/v1/baseballsavant-mlb-com/baseball-statcast/get-player-gamelogs"
payload = {
"player_id": 592450,
"season": 2026
}
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({player_id: 592450, season: 2026})
};
fetch('https://api.aisa.one/apis/v1/baseballsavant-mlb-com/baseball-statcast/get-player-gamelogs', 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/get-player-gamelogs",
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([
'player_id' => 592450,
'season' => 2026
]),
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/get-player-gamelogs"
payload := strings.NewReader("{\n \"player_id\": 592450,\n \"season\": 2026\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/get-player-gamelogs")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"player_id\": 592450,\n \"season\": 2026\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/baseballsavant-mlb-com/baseball-statcast/get-player-gamelogs")
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 \"player_id\": 592450,\n \"season\": 2026\n}"
response = http.request(request)
puts response.read_body{
"count": 5,
"next_cursor": "5",
"observed_at_ms": 1791156852469,
"plate_appearances": [
{
"at_bat_number": 22,
"ball_in_play": false,
"barrel": null,
"batting_team_id": 147,
"event": "strikeout",
"event_label": "Strikeout",
"exit_velocity_mph": null,
"fielding_team_id": 142,
"game_date": "2026-09-16",
"game_pk": 823655,
"hard_hit": false,
"hit_distance_ft": null,
"launch_angle_deg": null,
"opponent_pitcher": "Matthews, Zebby",
"pitch_name": "4-Seam Fastball",
"pitch_type": "FF",
"pitch_velocity_mph": 96.6,
"play_id": "c3d764a7-9199-3756-987a-c4d7b0bf6d8a",
"pull_direction": null,
"video_url": "https://baseballsavant.mlb.com/sporty-videos?playId=c3d764a7-9199-3756-987a-c4d7b0bf6d8a",
"xba": null
},
{
"at_bat_number": 3,
"ball_in_play": false,
"barrel": null,
"batting_team_id": 147,
"event": "strikeout",
"event_label": "Strikeout",
"exit_velocity_mph": null,
"fielding_team_id": 142,
"game_date": "2026-09-16",
"game_pk": 823655,
"hard_hit": false,
"hit_distance_ft": null,
"launch_angle_deg": null,
"opponent_pitcher": "Matthews, Zebby",
"pitch_name": "Slider",
"pitch_type": "SL",
"pitch_velocity_mph": 88.2,
"play_id": "a9fb81ca-254c-3ed8-96e6-e832a596fb42",
"pull_direction": null,
"video_url": "https://baseballsavant.mlb.com/sporty-videos?playId=a9fb81ca-254c-3ed8-96e6-e832a596fb42",
"xba": null
},
{
"at_bat_number": 59,
"ball_in_play": true,
"barrel": true,
"batting_team_id": 147,
"event": "home_run",
"event_label": "Home Run",
"exit_velocity_mph": 104.2,
"fielding_team_id": 142,
"game_date": "2026-09-14",
"game_pk": 823656,
"hard_hit": true,
"hit_distance_ft": 415,
"launch_angle_deg": 36,
"opponent_pitcher": "Minter, A.J.",
"pitch_name": "Cutter",
"pitch_type": "FC",
"pitch_velocity_mph": 88.6,
"play_id": "e38adf60-925c-3f22-a931-17c9e76b5f6a",
"pull_direction": "Pull",
"video_url": "https://baseballsavant.mlb.com/sporty-videos?playId=e38adf60-925c-3f22-a931-17c9e76b5f6a",
"xba": 0.586
},
{
"at_bat_number": 46,
"ball_in_play": false,
"barrel": null,
"batting_team_id": 147,
"event": "strikeout",
"event_label": "Strikeout",
"exit_velocity_mph": null,
"fielding_team_id": 142,
"game_date": "2026-09-14",
"game_pk": 823656,
"hard_hit": false,
"hit_distance_ft": null,
"launch_angle_deg": null,
"opponent_pitcher": "Hoffman, Jeff",
"pitch_name": "Slider",
"pitch_type": "SL",
"pitch_velocity_mph": 86.6,
"play_id": "69547a9e-7be5-3476-96c0-24fefeadb505",
"pull_direction": null,
"video_url": "https://baseballsavant.mlb.com/sporty-videos?playId=69547a9e-7be5-3476-96c0-24fefeadb505",
"xba": null
},
{
"at_bat_number": 24,
"ball_in_play": false,
"barrel": null,
"batting_team_id": 147,
"event": "strikeout",
"event_label": "Strikeout",
"exit_velocity_mph": null,
"fielding_team_id": 142,
"game_date": "2026-09-14",
"game_pk": 823656,
"hard_hit": false,
"hit_distance_ft": null,
"launch_angle_deg": null,
"opponent_pitcher": "Kremer, Dean",
"pitch_name": "Cutter",
"pitch_type": "FC",
"pitch_velocity_mph": 91.3,
"play_id": "c8607f01-76b8-3bfb-8e91-5461b44be381",
"pull_direction": null,
"video_url": "https://baseballsavant.mlb.com/sporty-videos?playId=c8607f01-76b8-3bfb-8e91-5461b44be381",
"xba": null
}
],
"player_id": 592450,
"season": 2026,
"source_url": "https://baseballsavant.mlb.com/player-services/gamelogs?playerId=592450&season=2026",
"total": 285
}Request contract
- Method and path: POST /apis/v1/baseballsavant-mlb-com/baseball-statcast/get-player-gamelogs
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/baseballsavant-mlb-com/baseball-statcast/get-player-gamelogs
{
"operationId": "baseballsavant-mlb-com.baseball-statcast.get-player-gamelogs",
"method": "POST",
"path": "/apis/v1/baseballsavant-mlb-com/baseball-statcast/get-player-gamelogs",
"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": {
"limit": 5,
"player_id": 592450,
"season": 2026
}
}
},
"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"
}
},
"limit": {
"default": 100,
"description": "Maximum rows per page (default 100, max 500).\n\nProvider reference: minimum 1; maximum 500; default 100.",
"type": "number",
"x-alexandria-option-metadata": {
"in": "body",
"max": 500,
"min": 1
}
},
"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"
},
"season": {
"description": "Season year. Statcast pitch tracking starts in 2015; the pitch-level search covers 2008 onward.\n\nProvider reference: minimum 2008; maximum 2100.",
"type": "number"
}
},
"required": [
"player_id",
"season"
],
"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
Every plate appearance of one player in one season from Baseball Savant's game logs (/player-services/gamelogs): date, game, result, final pitch, and Statcast batted-ball metrics (exit velocity, launch angle, distance, barrel, xBA) with the play id. Newest first; paged with limit/cursor. An id that exists but has no data for the season returns an empty list; an unknown id is not_found.
The response contains the tool result directly.
The provider identifies plate_appearances as the primary payload key.
| Documented field | Provider type | Description |
|---|---|---|
at_bat_number | number | |
ball_in_play | boolean | |
barrel | boolean | True when Statcast classified the batted ball as a barrel; null when not a ball in play. |
batting_team_id | number | |
event | string | Result code, e.g. strikeout, home_run, field_out. |
event_label | string | Human label, e.g. Home Run. |
exit_velocity_mph | number | |
fielding_team_id | number | |
game_date | string | YYYY-MM-DD. |
game_pk | number | MLB game id; key for the schedule and game feeds. |
hard_hit | boolean | |
hit_distance_ft | number | |
launch_angle_deg | number | |
opponent_pitcher | string | Pitcher faced (batters) as Last, First; the batter faced for pitchers. |
pitch_name | string | |
pitch_type | string | Statcast pitch code of the final pitch, e.g. FF. |
pitch_velocity_mph | number | Velocity of the final pitch of the plate appearance. |
play_id | string | Statcast play UUID (links to https://baseballsavant.mlb.com/sporty-videos?playId=...). |
pull_direction | string | Pull, Straight or Oppo for batted balls; null otherwise. |
video_url | string | Savant play video page; null when the site offers none. |
xba | number | Expected batting average of the batted ball; null when not a ball in play. |
These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.