Skip to main content

Template Variables

Variables are placeholders in your template text that Teamarr replaces with real data when generating EPG. They use curly-brace syntax:
{team_name} vs {opponent} at {venue}
→ "Detroit Lions vs Chicago Bears at Ford Field"
Teamarr provides 194 variables across 17 categories covering everything from team identity and scheduling to odds, standings, combat sports, and more.

Syntax

Wrap any variable name in curly braces and place it anywhere in a title, subtitle, description, or artwork URL field:
{variable_name}
Variables are case-sensitive and must match the names in the reference exactly. Unknown variable names are left as-is in the output, so a typo like {Team_Name} will appear literally rather than being substituted.

Suffix system

Team templates support suffixes to reference games other than the current one:
SuffixWhat it refers toExample
(none)The current game{opponent}
.nextThe next upcoming game{opponent.next}
.lastThe most recently completed game{opponent.last}
Suffixes are only available in team templates. Event templates exist for a single game, so .next and .last have no meaning there and are not supported.
Not every variable supports all three suffixes. The full variable reference shows which suffixes are available for each variable in the Suffixes column, using:
  • base — no suffix (current game)
  • .next — next game
  • .last — last game

Team templates vs event templates

Team templates power channels that exist 24/7 for a specific team (e.g., “Detroit Lions”).
  • Content is shown from the team’s perspective
  • Supports .next and .last suffixes
  • Includes filler content (pregame, postgame, idle) using the same variable syntax
  • Variables like {team_name}, {team_record}, {streak} are relative to the tracked team
Title:       {team_name} {vs_at} {opponent}
Description: The {team_name} ({team_record}) {vs_at} {opponent} ({opponent_record}) at {venue}.
             {today_tonight_title}'s game airs on {broadcast_network}.

The 17 variable categories

CategoryWhat it coversExample variables
IdentityTeam names, abbreviations, league, sport{team_name}, {opponent}, {matchup}, {league}
Date & TimeGame scheduling and relative day labels{game_date}, {game_time}, {relative_day}, {days_until}
VenueStadium name and location{venue}, {venue_city}, {venue_full}
Home/AwayPositional team references and home/away context{home_team}, {away_team}, {is_home}, {vs_at}
RecordsWin-loss records for team and opponent{team_record}, {opponent_record}, {home_record}
StreaksCurrent winning and losing streaks{streak}, {win_streak}, {opponent_streak}
ScoresGame scores and result details{score}, {final_score}, {score_diff}, {winner}
OutcomeWin/loss indicators and overtime{result}, {result_text}, {overtime_text}
StandingsPlayoff seed and games back{playoff_seed}, {games_back}, {opponent_playoff_seed}
StatisticsPoints per game averages{team_ppg}, {team_papg}, {opponent_ppg}
PlayoffsSeason type indicators{season_type}, {is_playoff}, {is_regular_season}
OddsBetting lines when available{odds_spread}, {odds_moneyline}, {odds_over_under}
BroadcastTV and streaming networks{broadcast_network}, {broadcast_simple}, {is_national_broadcast}
RankingsCollege rankings (NCAAF, NCAAM, NCAAW){team_rank}, {team_rank_display}, {is_ranked_matchup}
ConferenceConference and division for pro and college leagues{pro_conference}, {pro_division}, {college_conference}
SoccerCompetition context for teams that play in multiple leagues{soccer_match_league}, {soccer_primary_league}
Combat SportsUFC/MMA event-specific variables{event_title}, {fighter1}, {card_segment_display}

Usage examples

The examples below show a template string and the rendered output.
Template:
Title:       {team_name} {vs_at} {opponent}
Description: The {team_name} ({team_record}) host the {opponent}
             ({opponent_record}) at {venue}. {today_tonight_title}'s
             game airs on {broadcast_network}.
Rendered output (Detroit Lions channel):
Title:       Detroit Lions vs Chicago Bears
Description: The Detroit Lions (10-4) host the Chicago Bears
             (8-6) at Ford Field. Today's game airs on FOX.

Next steps

See the Full Variable Reference for a complete table of all 194 variables organized by category, including available suffixes and sample output for each.

Build docs developers (and LLMs) love