Skip to content

get_rest_and_travel

5 creditsStats + aggregationPOST /v1/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 (NHL)

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.

Parameters

teamstringrequired
Team abbreviation or id, e.g. BUF, TOR, EDM.
seasonstring | numberoptional
Season as 20252026, 2025-26 or 2025-2026. 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_travel itself. Point any MCP client at https://mcp.puckapi.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.puckapi.com/v1/get_rest_and_travel \
  -H "Content-Type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  -d '{
  "team": "EDM",
  "from_date": "2026-11-28",
  "to_date": "2026-12-03"
}'

Response

json
{
  "team": {
    "id": "EDM",
    "abbrev": "EDM",
    "name": "Edmonton Oilers"
  },
  "from_date": "2026-11-28",
  "to_date": "2026-12-03",
  "games": [
    {
      "game_id": "2026020427",
      "date": "2026-11-28",
      "starts_at": "2026-11-29T03:00:00.000Z",
      "season": "20262027",
      "status": "final",
      "opponent": "SEA",
      "location": "away",
      "venue": "Climate Pledge Arena",
      "previous_game_id": "2026020414",
      "days_since_previous_game": 1,
      "days_rest": 0,
      "venue_streak": {
        "location": "away",
        "games": 1
      },
      "travel": {
        "from_venue": "Rogers Place",
        "to_venue": "Climate Pledge Arena",
        "km": 907,
        "miles": 563.6,
        "time_zones_crossed": 1,
        "time_zone_shift_hours": -1
      },
      "back_to_back": true,
      "games_in_last_4_days": 2,
      "games_in_last_6_days": 3,
      "three_in_four": false,
      "four_in_six": false
    },
    {
      "game_id": "2026020441",
      "date": "2026-12-01",
      "starts_at": "2026-12-02T01:00:00.000Z",
      "season": "20262027",
      "status": "final",
      "opponent": "BUF",
      "location": "home",
      "venue": "Rogers Place",
      "previous_game_id": "2026020427",
      "days_since_previous_game": 3,
      "days_rest": 2,
      "venue_streak": {
        "location": "home",
        "games": 1
      },
      "travel": {
        "from_venue": "Climate Pledge Arena",
        "to_venue": "Rogers Place",
        "km": 907,
        "miles": 563.6,
        "time_zones_crossed": 1,
        "time_zone_shift_hours": 1
      },
      "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": "2026020456",
      "date": "2026-12-03",
      "starts_at": "2026-12-04T01:00:00.000Z",
      "season": "20262027",
      "status": "final",
      "opponent": "WSH",
      "location": "home",
      "venue": "Rogers Place",
      "previous_game_id": "2026020441",
      "days_since_previous_game": 2,
      "days_rest": 1,
      "venue_streak": {
        "location": "home",
        "games": 2
      },
      "travel": {
        "from_venue": "Rogers Place",
        "to_venue": "Rogers Place",
        "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
    }
  ],
  "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

teamobject
id, abbrev and name
games[]array
The team's games in date order
games[].days_since_previous_gamenumber | null
Calendar days since the previous game of the season (1 = the day before); null for the first game of a season
games[].days_restnumber | null
Days with no game between the two: 0 is back to back
games[].back_to_backboolean
The previous game was the day before
games[].three_in_fourboolean
The third game in 4 calendar days
games[].four_in_sixboolean
The fourth game in 6 calendar days
games[].locationstring
home, away or neutral
games[].venue_streakobject
location and games: consecutive games at the same kind of site, this one included
games[].travelobject | null
from_venue, to_venue, km, miles, time_zones_crossed and time_zone_shift_hours (positive: a trip east); null for a first game or where a venue has no coordinates
countnumber
Games returned
methodstring
How each figure is worked out

Related endpoints

Try it

500 free credits every month: 100 calls to get_rest_and_travel, and no card.