All tutorials
Tips & features
Using Variables
Use Now Playing variables ({title}, {artist}, {bpm}, {key}, and more) across themes, chat bots, and webhooks to build custom displays.
Variables can be used throughout Now Playing to customize things like the playlist history and Twitch and Discord bots.
To use variables type in the variable name and it will get replaced in real-time by Now Playing.
For example:
You can include other track info in your Twitch chat messages:
- {title} Title of the track
- {artist} Artist's name
- {label} Record label
- {bpm} Original BPM of the track
- {comment} Rating of the track
- {key} Rating of the track
- {currentBpm} Current BPM of the track
- {beatportUrl} Link to buy the track on Beatport
- {M} Month (1, 2, 3, etc.)
- {MM} Month with leading zero (01, 02, 03, etc.)
- {MMM} Abbreviated month (Jan, Feb, Mar, etc.)
- {MMMM} Full month (January, February, March, etc.)
- {D} Day (1, 2, 3, etc)
- {DD} Day with leading zero (01, 02, 03, etc)
- {DDD} Day of the year (1, 2, ... 364, 365)
- {DDDD} Day of the year with leading zero (001, 002, 003, ..., 364, 365)
- {d} Day of the week (0, 1, ..., 5, 6)
- {dd} Abbreviated day of the week to two letters (Su, Mo, ..., Fr, Sa)
- {ddd} Abbreviated day of the week to three letters (Sun, Mon, ..., Fri, Sat)
- {dddd} Full day of the week (Sunday, Monday, Tuesday, etc.)
- {YY} Two digit year (20, 21, 22, etc)
- {YYYY} Four digit year (2020, 2021, 2022, etc)
- {A} AM / PM
- {a} am / pm
- {H} 24 Hour (0, 1, 2, ..., 22, 23)
- {HH} 24 Hour with leading zero (00, 01, 02, ... 22, 23)
- {h} 12 hour (0, 1, 2 ... 11, 12)
- {hh} 12 hour with leading zero (00, 01, 02,... 11, 12)
- {m} Minute (0, 1, .... 58, 59)
- {mm} Minute with leading zero (00, 01, ... 58, 59)
- {s} Second (0, 1, .... 58, 59)
- {ss} Second with leading zero (00, 01, ... 58, 59)
- {z} Timezone (EST, CST, MST, PST, etc)
- {X} Timestamp in seconds (1360013296)
- {x} Timestamp in milliseconds (1360013296123)