Skip to main content

Variable Reference

Complete listing of all 194 template variables. Variables are written as {variable_name} in template fields and are replaced with live data when EPG is generated. For an introduction to how variables work, see Template Variables.
The Suffixes column uses the following notation:
  • base — no suffix, references the current game
  • .next — references the next upcoming game (team templates only)
  • .last — references the most recently completed game (team templates only)

Identity

Core identifiers for teams, leagues, and matchups.
VariableDescriptionSuffixesSample
{team_name}Team display namebaseDetroit Lions
{team_abbrev}Team abbreviation uppercasebaseDET
{team_abbrev_lower}Team abbreviation lowercasebasedet
{team_name_pascal}Team name in PascalCase for channel IDsbaseDetroitLions
{team_short}Team short namebaseLions
{opponent}Opponent team namebase, .next, .lastChicago Bears
{opponent_abbrev}Opponent team abbreviation uppercasebase, .next, .lastCHI
{opponent_abbrev_lower}Opponent abbreviation lowercasebase, .next, .lastchi
{opponent_short}Opponent short namebase, .next, .lastBears
{matchup}Full matchup stringbase, .next, .lastChicago Bears @ Detroit Lions
{matchup_abbrev}Abbreviated matchup uppercasebase, .next, .lastCHI @ DET
{matchup_short}Short name matchupbase, .next, .lastBears @ Lions
{league}League short aliasbaseNFL
{league_name}League full display namebaseNational Football League
{league_id}League identifier for URLsbasenfl
{league_code}Raw league codebasenfl
{sport}Sport display namebaseFootball
{sport_lower}Sport in lowercasebasefootball
{gracenote_category}Gracenote category for EPGbaseNFL Football
{exception_keyword}Exception keyword label (e.g., ‘Spanish’, ‘4K’)base4K

Date & Time

Game scheduling information.
VariableDescriptionSuffixesSample
{game_date}Full game datebase, .next, .lastSunday, December 22, 2024
{game_date_short}Short game datebase, .next, .lastDec 22
{game_day}Day of weekbase, .next, .lastSunday
{game_day_short}Short day of weekbase, .next, .lastSun
{game_time}Game time formatted per user settingsbase, .next, .last1:00 PM EST
{days_until}Days until gamebase, .next, .last0
{today_tonight}’today’ or ‘tonight’ based on 5pm cutoffbase, .next, .lasttoday
{today_tonight_title}’Today’ or ‘Tonight’ (title case)base, .next, .lastToday
{relative_day}Relative day: ‘today’, ‘tonight’, ‘tomorrow’, day of week, or datebase, .nexttomorrow
{relative_day_title}Relative day (title case)base, .nextTomorrow

Venue

Stadium and location information.
VariableDescriptionSuffixesSample
{venue}Stadium/arena namebase, .next, .lastFord Field
{venue_city}Venue citybase, .next, .lastDetroit
{venue_state}Venue statebase, .next, .lastMI
{venue_full}Full venue locationbase, .next, .lastFord Field, Detroit, MI

Home/Away

Positional team references and home/away context.
VariableDescriptionSuffixesSample
{home_team}Home team name (positional)base, .next, .lastDetroit Lions
{home_team_abbrev}Home team abbreviation uppercasebase, .next, .lastDET
{home_team_abbrev_lower}Home team abbreviation lowercasebase, .next, .lastdet
{home_team_pascal}Home team name in PascalCasebase, .next, .lastDetroitLions
{home_team_short}Home team short namebase, .next, .lastLions
{home_team_logo}Home team logo URLbase, .next, .lastESPN logo URL
{away_team}Away team name (positional)base, .next, .lastChicago Bears
{away_team_abbrev}Away team abbreviation uppercasebase, .next, .lastCHI
{away_team_abbrev_lower}Away team abbreviation lowercasebase, .next, .lastchi
{away_team_pascal}Away team name in PascalCasebase, .next, .lastChicagoBears
{away_team_short}Away team short namebase, .next, .lastBears
{away_team_logo}Away team logo URLbase, .next, .lastESPN logo URL
{is_home}’true’ if team is home, ‘false’ if awaybase, .next, .lasttrue
{is_away}’true’ if team is away, ‘false’ if homebase, .next, .lastfalse
{home_away_text}’at home’ or ‘on the road’base, .next, .lastat home
{vs_at}’vs’ if home, ‘at’ if awaybase, .next, .lastvs
{vs_@}’vs’ if home, ’@’ if awaybase, .next, .lastvs

Records

Team and opponent win-loss records.
VariableDescriptionSuffixesSample
{team_record}Team’s overall recordbase10-4
{team_wins}Team’s total winsbase10
{team_losses}Team’s total lossesbase4
{team_ties}Team’s total ties/drawsbase
{team_win_pct}Team’s winning percentagebase.714
{home_record}Team’s home recordbase6-1
{home_win_pct}Team’s home winning percentagebase.857
{away_record}Team’s away/road recordbase4-3
{away_win_pct}Team’s away winning percentagebase.571
{opponent_record}Opponent’s overall recordbase, .next, .last8-6
{opponent_wins}Opponent’s total winsbase, .next, .last8
{opponent_losses}Opponent’s total lossesbase, .next, .last6
{opponent_ties}Opponent’s total ties/drawsbase, .next, .last
{opponent_win_pct}Opponent’s winning percentagebase, .next, .last.571
{home_team_record}Home team’s overall record for this gamebase, .next, .last10-4
{away_team_record}Away team’s overall record for this gamebase, .next, .last8-6
{home_team_seed}Home team’s playoff seedbase, .next, .last2
{away_team_seed}Away team’s playoff seedbase, .next, .last5

Streaks

Current winning and losing streaks.
VariableDescriptionSuffixesSample
{streak}Team’s current streak formatted (e.g., ‘W3’ or ‘L2’)baseW2
{streak_length}Team’s streak as absolute valuebase2
{streak_type}Team’s streak direction: ‘win’ or ‘loss’basewin
{win_streak}Team’s winning streak length (empty if losing)base2
{loss_streak}Team’s losing streak length (empty if winning)base
{opponent_streak}Opponent’s current streak formattedbase, .next, .lastL1
{opponent_streak_length}Opponent’s streak as absolute valuebase, .next, .last1
{opponent_streak_type}Opponent’s streak directionbase, .next, .lastloss
{opponent_win_streak}Opponent’s winning streak (empty if losing)base, .next, .last
{opponent_loss_streak}Opponent’s losing streak (empty if winning)base, .next, .last1
{home_team_streak}Home team’s current streak formattedbase, .next, .lastW2
{home_team_streak_length}Home team’s streak as absolute valuebase, .next, .last2
{home_team_win_streak}Home team’s winning streak (empty if losing)base, .next, .last2
{home_team_loss_streak}Home team’s losing streak (empty if winning)base, .next, .last
{away_team_streak}Away team’s current streak formattedbase, .next, .lastL1
{away_team_streak_length}Away team’s streak as absolute valuebase, .next, .last1
{away_team_win_streak}Away team’s winning streak (empty if losing)base, .next, .last
{away_team_loss_streak}Away team’s losing streak (empty if winning)base, .next, .last1

Scores

Game scores and results. These variables are empty for games that have not yet started.
VariableDescriptionSuffixesSample
{team_score}Team’s score (empty if game not started)base, .next, .last31
{opponent_score}Opponent’s score (empty if game not started)base, .next, .last24
{score}Score (e.g., ‘24-17’). Empty if not started.base, .next, .last31-24
{final_score}Score with team perspective (team score first)base, .next, .last31-24
{home_team_score}Home team’s scorebase, .next, .last31
{away_team_score}Away team’s scorebase, .next, .last24
{score_diff}Score differential (+7 = won by 7, -7 = lost by 7)base, .next, .last+7
{score_differential}Score differential as absolute valuebase, .next, .last7
{score_differential_text}Score differential as textbase, .next, .lastby 7
{event_result}Full event result. Empty if not final.base, .next, .lastDetroit Lions 31 - Chicago Bears 24
{event_result_abbrev}Abbreviated event result. Empty if not final.base, .next, .lastDET 31 - CHI 24
{winner}Winning team name. Empty if not final or tie.base, .next, .lastDetroit Lions
{winner_abbrev}Winning team abbreviation. Empty if not final or tie.base, .next, .lastDET
{loser}Losing team name. Empty if not final or tie.base, .next, .lastChicago Bears
{loser_abbrev}Losing team abbreviation. Empty if not final or tie.base, .next, .lastCHI

Outcome

Game result indicators. Empty for future games.
VariableDescriptionSuffixesSample
{result}Game result (‘W’, ‘L’, or ‘T’)base, .next, .lastW
{result_lower}Game result lowercase (‘w’, ‘l’, or ‘t’)base, .next, .lastw
{result_text}Game result as text (‘defeated’, ‘lost to’, ‘tied’)base, .next, .lastdefeated
{overtime_text}’in overtime’ if game went to overtime, empty otherwisebase, .next, .last
{overtime_short}’OT’ if game went to overtime, empty otherwisebase, .next, .last

Standings

Playoff position and standings information.
VariableDescriptionSuffixesSample
{playoff_seed}Team’s playoff seed (e.g., ‘1’ for 1-seed)base2
{games_back}Games behind division/conference leaderbase-
{opponent_playoff_seed}Opponent’s playoff seedbase, .next, .last5
{opponent_games_back}Opponent’s games behind leaderbase, .next, .last-

Statistics

Team scoring averages.
VariableDescriptionSuffixesSample
{team_ppg}Team’s points per game averagebase28.4
{team_papg}Team’s points allowed per game averagebase21.6
{opponent_ppg}Opponent’s points per game averagebase, .next, .last24.2
{opponent_papg}Opponent’s points allowed per game averagebase, .next, .last22.8
{home_team_ppg}Home team’s PPG for this gamebase, .next, .last28.4
{away_team_ppg}Away team’s PPG for this gamebase, .next, .last24.2

Playoffs

Season type indicators.
VariableDescriptionSuffixesSample
{season_type}Season type (e.g., ‘Regular Season’, ‘Playoffs’, ‘Preseason’)base, .next, .lastRegular Season
{is_playoff}’true’ if playoff/postseason gamebase, .next, .last
{is_preseason}’true’ if preseason/exhibition gamebase, .next, .last
{is_regular_season}’true’ if regular season gamebase, .next, .lasttrue
These variables work well with template conditions. Use is_playoff in a condition rule to show a different description for postseason games.

Odds

Betting lines and odds. Only available when odds data has been retrieved for the game.
VariableDescriptionSuffixesSample
{has_odds}’true’ if odds are available for this gamebase, .nexttrue
{odds_spread}Point spreadbase, .next-3.0
{odds_moneyline}Team’s moneyline (e.g., ‘-150’ or ‘+130’)base, .next-150
{odds_opponent_moneyline}Opponent’s moneylinebase, .next+130
{odds_over_under}Over/under total (e.g., ‘47.5’)base, .next48.5
{odds_provider}Odds provider namebase, .nextESPN BET
{odds_details}Full odds description stringbase, .nextDET -3.0, O/U 48.5
Odds variables support base and .next suffixes only — odds are not stored for completed games, so .last is not available.

Broadcast

TV and streaming information.
VariableDescriptionSuffixesSample
{broadcast_network}Primary broadcast network (first in list)base, .next, .lastFOX
{broadcast_simple}Comma-separated broadcast networksbase, .next, .lastFOX, NFL Network
{broadcast_national_network}National broadcast networks onlybase, .next, .lastFOX
{is_national_broadcast}’true’ if game is on national TVbase, .next, .lasttrue

Rankings

College rankings, applicable to NCAAF, NCAAM, and NCAAW leagues. These variables are empty for unranked teams and for professional leagues.
VariableDescriptionSuffixesSample
{team_rank}Team’s ranking (e.g., ‘5’ for #5, empty if unranked)base
{team_rank_display}Team’s ranking with # prefix (e.g., ‘#5’)base
{is_ranked}’true’ if team is ranked, empty otherwisebase
{opponent_rank}Opponent’s rankingbase, .next, .last
{opponent_rank_display}Opponent’s ranking with # prefixbase, .next, .last
{opponent_is_ranked}’true’ if opponent is ranked, empty otherwisebase, .next, .last
{is_ranked_matchup}’true’ if both teams are rankedbase, .next, .last
{home_team_rank}Home team’s ranking for this gamebase, .next, .last
{away_team_rank}Away team’s ranking for this gamebase, .next, .last

Conference

Conference and division information, split between pro and college leagues.

Pro leagues

VariableDescriptionSuffixesSample
{pro_conference}Team’s pro conference (e.g., ‘NFC’, ‘Eastern’)baseNFC
{pro_conference_abbrev}Team’s pro conference abbreviationbaseNFC
{pro_division}Team’s pro division (e.g., ‘NFC North’)baseNFC North
{opponent_pro_conference}Opponent’s pro conferencebase, .next, .lastNFC
{opponent_pro_conference_abbrev}Opponent’s pro conference abbreviationbase, .next, .lastNFC
{opponent_pro_division}Opponent’s pro divisionbase, .next, .lastNFC North
{home_team_pro_conference}Home team’s pro conferencebase, .next, .lastNFC
{home_team_pro_conference_abbrev}Home team’s pro conference abbreviationbase, .next, .lastNFC
{home_team_pro_division}Home team’s pro divisionbase, .next, .lastNFC North
{away_team_pro_conference}Away team’s pro conferencebase, .next, .lastNFC
{away_team_pro_conference_abbrev}Away team’s pro conference abbreviationbase, .next, .lastNFC
{away_team_pro_division}Away team’s pro divisionbase, .next, .lastNFC North

College leagues

VariableDescriptionSuffixesSample
{college_conference}Team’s college conference namebase
{college_conference_abbrev}Team’s college conference abbreviationbase
{opponent_college_conference}Opponent’s college conferencebase, .next, .last
{opponent_college_conference_abbrev}Opponent’s college conference abbreviationbase, .next, .last
{home_team_college_conference}Home team’s college conferencebase, .next, .last
{home_team_college_conference_abbrev}Home team’s college conference abbreviationbase, .next, .last
{away_team_college_conference}Away team’s college conferencebase, .next, .last
{away_team_college_conference_abbrev}Away team’s college conference abbreviationbase, .next, .last

Soccer

Soccer-specific variables for teams that play in multiple competitions.
VariableDescriptionSuffixesSample
{soccer_primary_league}Team’s home league name (e.g., ‘Premier League’)base
{soccer_primary_league_id}Team’s home league ID (e.g., ‘eng.1’)base
{soccer_match_league}League for this specific game (may differ from primary)base, .next, .last
{soccer_match_league_id}League ID for this specific game (e.g., ‘uefa.champions’)base, .next, .last
{soccer_match_league_logo}Logo URL for this game’s leaguebase, .next, .last
Soccer teams often play in multiple competitions — domestic league, domestic cups, and UEFA competitions. {soccer_match_league} tells you which competition a specific game is in, while {soccer_primary_league} is the team’s home league regardless of which competition is being played.

Combat Sports

UFC and MMA-specific variables for event templates. These variables are event-only and do not support .next or .last suffixes, since each UFC event is tracked independently.

Fighters & matchup

VariableDescriptionSample
{fighter1}First fighter name (headline bout)Alex Volkanovski
{fighter2}Second fighter name (headline bout)Diego Lopes
{matchup}Full matchup stringAlex Volkanovski vs Diego Lopes
{event_number}UFC event number (e.g., ‘314’ from ‘UFC 314’)314
{event_title}Full event titleUFC 314: Volkanovski vs Lopes

Card segments

VariableDescriptionSample
{card_segment}Segment code for this channelmain_card
{card_segment_display}Human-readable segment nameMain Card
{main_card_time}Main card start time10:00 PM EST
{prelims_time}Prelims start time8:00 PM EST
{early_prelims_time}Early prelims start time6:00 PM EST

Fight card

VariableDescriptionSample
{bout_count}Total number of bouts on the card14
{fight_card}All bouts (newline-separated)Alex Volkanovski vs Diego Lopes
{main_card_bouts}Main card bouts onlyAlex Volkanovski vs Diego Lopes
{prelims_bouts}Prelims bouts onlySean Brady vs Kelvin Gastelum
{early_prelims_bouts}Early prelims bouts onlyMauricio Ruffy vs Jamie Mullarkey
UFC events are split into segments: Early Prelims, Prelims, and Main Card. When using segment-based channel routing, each channel receives a {card_segment} value identifying which segment it covers. {fighter1} and {fighter2} always refer to the headline (main event) bout regardless of which segment the channel covers.

Build docs developers (and LLMs) love