get_rest_and_travel
Last updated 6 hours ago · updates daily at about 10:00 UTC · Fresh · status
A team's schedule context game by game: days of rest, back-to-backs, 3 in 4, 4 in 6, home and away streaks, and travel distance and time zones (NBA, WNBA and Division I college basketball)
Use it when you want a team's schedule context game by game: days of rest, back-to-backs, 3 in 4 and 4 in 6, the home or away stretch it is on, and the distance and time zones it travelled from its last game. Pass league for the WNBA, men's college basketball (ncaam) or women's college basketball (ncaaw).
Parameters
teamstringrequired- Team abbreviation or id, e.g. BOS, LAL, NY (NBA); LV, NY (WNBA); DUKE, KU (college).
seasonstring | numberoptional- Season by the year it ends (2025 = 2024-25); the WNBA by its calendar year. 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.
leagueenum: nba | wnba | ncaam | ncaawoptional- League. Defaults to nba. One of: nba, wnba, ncaam, ncaaw.
Notes
- Over MCP, ask for it in plain English and the client calls
get_rest_and_travelitself. Point any MCP client athttps://mcp.dunkapi.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.dunkapi.com/v1/get_rest_and_travel \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR_API_KEY" \
-d '{
"team": "LAL",
"from_date": "2026-11-20",
"to_date": "2026-11-28"
}'Response
{
"team": {
"id": "13",
"abbrev": "LAL",
"name": "Los Angeles Lakers"
},
"from_date": "2026-11-20",
"to_date": "2026-11-28",
"games": [
{
"game_id": "401909313",
"date": "2026-11-20",
"starts_at": "2026-11-21T03:00:00.000Z",
"season": 2027,
"status": "final",
"opponent": "SAC",
"location": "home",
"venue": "crypto.com Arena",
"previous_game_id": "401910017",
"days_since_previous_game": 2,
"days_rest": 1,
"venue_streak": {
"location": "home",
"games": 3
},
"travel": {
"from_venue": "crypto.com Arena",
"to_venue": "crypto.com Arena",
"km": 0,
"miles": 0,
"time_zones_crossed": 0,
"time_zone_shift_hours": 0
},
"back_to_back": false,
"games_in_last_4_days": 3,
"games_in_last_6_days": 4,
"three_in_four": true,
"four_in_six": true
},
{
"game_id": "401910044",
"date": "2026-11-23",
"starts_at": "2026-11-24T03:00:00.000Z",
"season": 2027,
"status": "final",
"opponent": "UTAH",
"location": "home",
"venue": "crypto.com Arena",
"previous_game_id": "401909313",
"days_since_previous_game": 3,
"days_rest": 2,
"venue_streak": {
"location": "home",
"games": 4
},
"travel": {
"from_venue": "crypto.com Arena",
"to_venue": "crypto.com Arena",
"km": 0,
"miles": 0,
"time_zones_crossed": 0,
"time_zone_shift_hours": 0
},
"back_to_back": false,
"games_in_last_4_days": 2,
"games_in_last_6_days": 3,
"three_in_four": false,
"four_in_six": false
},
{
"game_id": "401909333",
"date": "2026-11-27",
"starts_at": "2026-11-28T02:30:00.000Z",
"season": 2027,
"status": "final",
"opponent": "SA",
"location": "away",
"venue": "Frost Bank Center",
"previous_game_id": "401910044",
"days_since_previous_game": 4,
"days_rest": 3,
"venue_streak": {
"location": "away",
"games": 1
},
"travel": {
"from_venue": "crypto.com Arena",
"to_venue": "Frost Bank Center",
"km": 1940.7,
"miles": 1205.9,
"time_zones_crossed": 2,
"time_zone_shift_hours": 2
},
"back_to_back": false,
"games_in_last_4_days": 1,
"games_in_last_6_days": 2,
"three_in_four": false,
"four_in_six": false
}
],
"count": 3,
"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). back_to_back: the previous game was the day before. three_in_four: this is the third game in 4 calendar days (this day and the 3 before it); four_in_six: the fourth in 6. 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_hoursnumbergames[].back_to_backbooleangames[].games_in_last_4_daysnumbergames[].games_in_last_6_daysnumbergames[].three_in_fourbooleangames[].four_in_sixbooleancountnumbermethodstring
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: overall, conference, home, away, last 10
Takes the game_id this one returns.
One game: both box scores, every player's line, each book's line, win probability
Takes the game_id this one returns.
What the market thinks of a game: average implied and fair probability for the moneyline, spreads and totals
Try it
500 free credits every month: 100 calls to get_rest_and_travel, and no card.