Skip to content
Product Documentation

games

One row per game. This is both the discovery surface — the id is the readable public game id every per-game dataset endpoint takes — and the game record: when and where it is played, who is playing, the score as it stands, and the weather at the venue.

Terminal window
curl -s "https://api.betflux.ai/v1/games?league=MLB&date_from=2026-07-01&date_to=2026-07-07" \
-H "Authorization: Bearer $BETFLUX_API_KEY"
curl -s "https://api.betflux.ai/v1/games/MLB_BOS_NYY_20260715" \
-H "Authorization: Bearer $BETFLUX_API_KEY"
Terminal window
betflux games --league MLB --date-from 2026-07-01 --date-to 2026-07-07
betflux games --id MLB_BOS_NYY_20260715 --format record
games = bf.games(league="MLB", date_from="2026-07-01", date_to="2026-07-07")
game = bf.game("MLB_BOS_NYY_20260715")
Parameter Meaning
league One league code
date_from, date_to Inclusive ET game dates (YYYY-MM-DD); give both or neither, at most 366 days apart
team Canonical team name; matches home or away
status SCHEDULED, DELAYED, STARTED, SUSPENDED, COMPLETED, POSTPONED
limit, cursor Pagination

Sorted by start time, then id. The single-game route takes the public id only (case-insensitive); a UUID is a 404.

  • Ids. LEAGUE_AWAY_HOME_YYYYMMDD, ET date, _2 for the second game of a doubleheader — see Core concepts. game_date is that same ET date; start_time is the scheduled start in UTC and moves if the game is rescheduled.
  • Status and score are current state. status and is_live flip as the game is played; home_score / away_score, current_period, the clock, and the per-period line scores update while it is live and are final once status is COMPLETED. Before tip-off they are null (the line-score arrays are empty). Each value is the latest state, refreshed a few times an hour — for the history of these fields over the course of the game use game-state-timeline.
  • Periods are sport-neutral. current_period is the quarter (NBA, NFL, NCAAF), inning (MLB), period (NHL), or half (NCAAM); current_period_half is MLB’s TOP / BOTTOM; current_period_seconds_remaining is set for timed sports only. period_scores_home and period_scores_away are index-aligned — entry i is period i + 1 — and extend through overtime or extra innings.
  • Venue. venue_* describes where the game is played: name, city with its region (e.g. Atlanta, GA), country, coordinates, the building’s largest sports capacity, playing surface, and roof. is_neutral_venue marks neutral-site games. The fields are null when no venue is known.
  • Weather is the game-time forecast at the venue, in US units, refreshed on game day. It is null indoors (most arenas), for NCAAF, and before a forecast exists. Domes can still carry an outdoor forecast for the stadium’s location — check venue_has_roof.
  • Schedule extras. week is set for NFL and NCAAF; attendance and end_time appear after the game when known (end_time is often never set); delayed_or_postponed_reason is populated while status is DELAYED or POSTPONED; broadcasters lists outlets when known, otherwise it is empty.
  • Team fields are denormalized from teams: the UUIDs are the join keys, the names and abbreviations are display conveniences.
ColumnTypeNullableDescription
idstringnoGame id (e.g. NBA_GSW_MIA_20250408).
leaguestringnoLeague code, e.g. NBA, NFL, MLB, NHL, NCAAM, NCAAF.
game_datestringnoEastern-Time calendar date of the scheduled start (matches closing-lines game_date).
start_timestringnoScheduled start, ISO 8601 UTC.
statusstringnoSchedule status, e.g. SCHEDULED, STARTED, COMPLETED.
is_livebooleannoTrue while the game is in progress.
home_teamstringnoCanonical home team name.
home_team_abbrstringnoHome team abbreviation, e.g. MIA.
home_team_idstringnoCanonical home team UUID (matches /v1/teams ids).
away_teamstringnoCanonical away team name.
away_team_abbrstringnoAway team abbreviation, e.g. GSW.
away_team_idstringnoCanonical away team UUID (matches /v1/teams ids).
seasonstringyesSeason slug the game belongs to, e.g. 2026-regular.
season_typestringyesPRESEASON, SEASON (regular) or POSTSEASON.
end_timestringyesObserved end, ISO 8601 UTC; null until known (often never set).
weekintegeryesSchedule week (NFL, NCAAF); null for other leagues.
is_neutral_venuebooleannoTrue when neither team is the venue's home side.
delayed_or_postponed_reasonstringyesReason while status is DELAYED or POSTPONED; null otherwise.
broadcastersstring[]noBroadcast outlets; empty when unknown.
attendanceintegeryesReported attendance; null until posted.
home_scoreintegeryesHome score so far; final once status is COMPLETED. Null before tip-off.
away_scoreintegeryesAway score so far; final once status is COMPLETED. Null before tip-off.
current_periodintegeryesQuarter / inning / period / half in progress; null before the game and after it ends.
current_period_seconds_remainingintegeryesClock seconds left in the current period (timed sports); null otherwise.
current_period_halfstringyesTOP or BOTTOM of the current inning (MLB); null elsewhere.
current_intermissionstringyesLabel for a break in play (e.g. HALFTIME); null while play is on.
period_scores_homeinteger[]noHome line score, one entry per completed or in-progress period.
period_scores_awayinteger[]noAway line score, index-aligned with period_scores_home.
venue_idstringyesVenue UUID; null when no venue is known.
venue_namestringyesVenue name, e.g. Truist Park.
venue_citystringyesVenue city with its region, e.g. Atlanta, GA.
venue_countrystringyesVenue country, e.g. USA.
venue_latitudenumberyesVenue latitude (WGS84).
venue_longitudenumberyesVenue longitude (WGS84).
venue_capacityintegeryesLargest sports capacity of the building.
venue_surfacestringyesPlaying surface, e.g. Kentucky Bluegrass, FieldTurf; null when unknown.
venue_has_roofbooleanyesTrue for covered venues (domes and arenas).
venue_has_retractable_roofbooleanyesTrue when the roof can open.
weather_typestringyesWeather category at game time, e.g. SUNNY, CLOUDY, LIGHT_RAIN; null indoors or when unavailable.
weather_descriptionstringyesFree-text weather description, e.g. sky is clear.
weather_temperature_fnumberyesTemperature in °F.
weather_wind_speed_mphnumberyesWind speed in mph.
weather_wind_direction_degreesintegeryesWind origin bearing in degrees.
weather_wind_direction_labelstringyesCompass label for the wind origin, e.g. WSW.
weather_precipitation_typestringyesRAIN, SNOW, … when precipitation is forecast; null otherwise.
weather_precipitation_percentintegeryesPrecipitation probability in percent.
weather_humidity_percentintegeryesRelative humidity in percent.