Quick summary
- What they are: Free widgets that show Mexican racing data on your own site: a race countdown, a countdown bar, an upcoming-races calendar, a track guide card, a driver countdown and the Chase standings
- How to add one: Paste two lines of HTML. There is nothing to sign up for
- Always current: They read the live Race.mx calendar and track data, so dates, cancellations and new races update on their own
- License: Free under CC BY 4.0. Keep the small “Data via Race.mx” credit
- Weight: One script of about 16 KB that loads asynchronously
How do you add a Race.mx widget to your site?
Paste the widget’s div where you want it to appear, and the script tag once anywhere on the page. You can put several widgets on one page with a single script tag. It works on any site that lets you add custom HTML with a script, and the widgets pick up your site’s font and text color.
Race countdown
Counts down the days to the next race in a series, then switches to “Race week” while it’s on. Use data-series and it rolls over to next year’s race automatically once it’s on the calendar. During race week it switches to counting down to the next specific session — qualifying, then the race — and lists the full session schedule in your own time zone, where we have session times.
<div class="racemx-widget" data-widget="countdown" data-series="F1"></div>
<script src="https://race.mx/embed/race-mx.js" async></script>
Upcoming races calendar
A list of the next races in Mexico, with dates, series and venues. Cancelled races drop off automatically.
<div class="racemx-widget" data-widget="calendar" data-limit="5"></div>
<script src="https://race.mx/embed/race-mx.js" async></script>
Or just one series, such as the NASCAR Mexico Series:
<div class="racemx-widget" data-widget="calendar" data-series="NASCAR Mexico" data-limit="4"></div>
<script src="https://race.mx/embed/race-mx.js" async></script>
Track guide card
Length, surface and lap record for a Mexican circuit or race venue, with a link to the full track guide.
<div class="racemx-widget" data-widget="track" data-venue="autodromo-hermanos-rodriguez"></div>
<script src="https://race.mx/embed/race-mx.js" async></script>
Driver countdown
Counts down to the next race for one of Mexico’s drivers racing abroad — F1, NASCAR Cup and Truck, or FIA Formula 2 — sourced from our drivers-abroad schedule.
<div class="racemx-widget" data-widget="driver" data-driver="sergio-perez"></div>
<script src="https://race.mx/embed/race-mx.js" async></script>
Chase standings
The current NASCAR Mexico Series Chase standings: seed, driver and points, from our standings page.
<div class="racemx-widget" data-widget="standings" data-limit="5"></div>
<script src="https://race.mx/embed/race-mx.js" async></script>
Next race countdown bar
A single full-width strip for the top of a page or a sidebar: the countdown, the race name, its dates and venue, and — once the series has published it — the race start converted to your reader’s own time zone. Filter it with data-series or pin it to one race with data-event, like the countdown box.
<div class="racemx-widget" data-widget="bar" data-series="F1,NASCAR Mexico"></div>
<script src="https://race.mx/embed/race-mx.js" async></script>
What options can you set?
| Attribute | Used by | What it does |
|---|---|---|
data-widget |
All | countdown, calendar, track, driver, standings or bar |
data-series |
Countdown, calendar, bar | Limit to one series, or several separated by commas: F1, NASCAR Mexico, SCORE Desert Racing, Baja 1000, Formula E |
data-event |
Countdown, bar | Count down to one specific race instead. Use the last part of its Race.mx address, for example mexico-city-grand-prix-2026 |
data-limit |
Calendar, Standings | How many races (or drivers) to list. The default is 5 |
data-venue |
Track | Which track to show. See the list below |
data-driver |
Driver | Which driver to count down for. See /data/drivers.json for current slugs |
data-accent |
All | Match your site’s color. Any CSS color, for example #2ecc71 |
data-radius |
All | Corner rounding in pixels, 0–40. The default is 8 |
data-bg |
All | Background color for the card. The default is transparent |
data-border |
All | Border color for the card |
Customize the look
Four more attributes match the widget to your site’s own colors and shape. Font, size and text color already follow your page’s CSS automatically.
<div class="racemx-widget" data-widget="countdown" data-series="F1"
data-accent="#2ecc71" data-radius="20" data-bg="#101314" data-border="#2ecc71"></div>
<script src="https://race.mx/embed/race-mx.js" async></script>
Which tracks can the track card show?
Every track guide’s address ends in its data-venue value, so new venues work as soon as we publish them.
| Track | data-venue |
|---|---|
| Autódromo de Querétaro (EcoCentro Expositor) | autodromo-de-queretaro |
| Autódromo Hermanos Rodríguez | autodromo-hermanos-rodriguez |
| Autódromo Miguel E. Abed | autodromo-miguel-e-abed |
| Autódromo Monterrey | autodromo-monterrey |
| Autódromo Yucatán (Emerson Fittipaldi) | autodromo-yucatan |
| Ensenada – SCORE Baja Race Start/Finish | ensenada-score-baja-start-finish |
| Los Cabos – 2026 Baja 1000 Start/Finish | san-jose-del-cabo-baja-1000-start-finish |
| Óvalo Aguascalientes México | ovalo-aguascalientes |
| San Felipe – SCORE Baja Race Start/Finish | san-felipe-score-baja-start-finish |
| Súper Óvalo Chiapas: NASCAR Mexico’s Berriozábal Tri-Oval Guide | super-ovalo-chiapas |
| Súper Óvalo Potosino: NASCAR Mexico’s Half-Mile Track Guide | super-ovalo-potosino |
| Tulum Airport Circuit (NASCAR Mexico) | tulum-airport-circuit |
FAQ
Are the Race.mx widgets free?
Yes. They are free to use on any site, including commercial ones, under CC BY 4.0. The only condition is keeping the “Data via Race.mx” credit that the widget shows.
Do the widgets update by themselves?
Yes. Each widget reads the live Race.mx data every time the page loads, so when a race is added, moved or cancelled, your widget reflects it without you changing anything.
Will a widget slow down my site?
The script is about 16 KB and loads asynchronously, so it doesn’t hold up the rest of your page. Several widgets on one page share a single copy of the script and the data.
Can I get the raw data instead?
Yes. The calendar, track, winners and full winners history data are published as JSON and CSV on our open data page, along with a subscribable calendar feed.
