get_rest_and_travel
Last updated 30 days ago · updates daily at about 10:00 UTC · No games since 2016-11-02 · status
A team's schedule context game by game: days of rest, home and away streaks, and travel distance and time zones (MLB)
Use it when you want a team's schedule context game by game: days of rest, the home or away stretch it is on, and the distance and time zones it travelled from its last game.
Parameters
teamstringrequired- Team abbreviation or id, e.g. NYY, LAD, ATH.
seasonstring | numberoptional- Calendar year of the season, e.g. 2025. Default: the latest season. Not with a date range.
from_datestringoptional- Start of a date range, YYYY-MM-DD. With to_date; not with season.
to_datestringoptional- End of the date range, YYYY-MM-DD (at most 400 days from from_date).
estimate_onlybooleanoptional- Return what this call would cost, without charging or running it.
Notes
- Over MCP, ask for it in plain English and the client calls
get_rest_and_travelitself. Point any MCP client athttps://mcp.fastballapi.com/mcp?key=YOUR_API_KEY. - Each call costs 5 credits, taken before it runs and refunded if the server errors.
- Not the call you need? Find the right call by what you are trying to answer.
Request
curl -X POST https://mcp.fastballapi.com/v1/get_rest_and_travel \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR_API_KEY" \
-d '{
"team": "NYY",
"from_date": "2026-04-01",
"to_date": "2026-04-10"
}'Response
{
"team": {
"id": "10",
"abbrev": "NYY",
"name": "New York Yankees"
},
"from_date": "2026-04-01",
"to_date": "2026-04-10",
"games": [
{
"game_id": "401814777",
"date": "2026-04-01",
"starts_at": "2026-04-01T20:10:00.000Z",
"season": 2026,
"status": "final",
"opponent": "SEA",
"location": "away",
"venue": "T-Mobile Park",
"previous_game_id": "401814762",
"days_since_previous_game": 1,
"days_rest": 0,
"venue_streak": {
"location": "away",
"games": 6
},
"travel": {
"from_venue": "T-Mobile Park",
"to_venue": "T-Mobile Park",
"km": 0,
"miles": 0,
"time_zones_crossed": 0,
"time_zone_shift_hours": 0
}
},
{
"game_id": "401814786",
"date": "2026-04-03",
"starts_at": "2026-04-03T17:35:00.000Z",
"season": 2026,
"status": "final",
"opponent": "MIA",
"location": "home",
"venue": "Yankee Stadium",
"previous_game_id": "401814777",
"days_since_previous_game": 2,
"days_rest": 1,
"venue_streak": {
"location": "home",
"games": 1
},
"travel": {
"from_venue": "T-Mobile Park",
"to_venue": "Yankee Stadium",
"km": 3865.6,
"miles": 2402,
"time_zones_crossed": 3,
"time_zone_shift_hours": 3
}
},
{
"game_id": "401814800",
"date": "2026-04-04",
"starts_at": "2026-04-04T23:05:00.000Z",
"season": 2026,
"status": "final",
"opponent": "MIA",
"location": "home",
"venue": "Yankee Stadium",
"previous_game_id": "401814786",
"days_since_previous_game": 1,
"days_rest": 0,
"venue_streak": {
"location": "home",
"games": 2
},
"travel": {
"from_venue": "Yankee Stadium",
"to_venue": "Yankee Stadium",
"km": 0,
"miles": 0,
"time_zones_crossed": 0,
"time_zone_shift_hours": 0
}
}
],
"count": 8,
"method": "Dates are the league's own calendar dates. days_since_previous_game is the difference between the two dates (1 = the day before); days_rest is the days with no game between them (0 = back to back). venue_streak counts the consecutive games, this one included, at the same kind of site (home, away or neutral). travel is the great-circle distance from the previous game's venue to this one's, with the time zones crossed (positive shift: a trip east); it is null for a team's first game of a season and where a venue's coordinates are not held. A neutral site (a game abroad, a bubble) is its own venue."
}Response fields
teamobjectteam.idstringteam.abbrevstringteam.namestringfrom_datestringto_datestringgames[]array- List of objects
games[].game_idstringgames[].datestringgames[].starts_atstringgames[].seasonnumbergames[].statusstringgames[].opponentstringgames[].locationstringgames[].venuestringgames[].previous_game_idstringgames[].days_since_previous_gamenumbergames[].days_restnumbergames[].venue_streakobjectgames[].venue_streak.locationstringgames[].venue_streak.gamesnumbergames[].travelobjectgames[].travel.from_venuestringgames[].travel.to_venuestringgames[].travel.kmnumbergames[].travel.milesnumbergames[].travel.time_zones_crossednumbergames[].travel.time_zone_shift_hoursnumbercountnumbermethodstring
Related endpoints
Returns the team this one takes.
Team ids, abbreviations and colours for a season
Returns the team this one takes.
Standings from every final game, with run differential and Pythagorean record
Takes the game_id this one returns.
One game: every batting and pitching line, each book's line, win probability
Takes the game_id this one returns.
A sportsbook's line and prices at a chosen time, the closing line, and the change in points and implied probability; or a player prop's line and price at a chosen time
Try it
500 free credits every month: 100 calls to get_rest_and_travel, and no card.