← My Auto Racer Comparisons All cars

Put a live drag race on your site

Let your readers race two real cars against each other, right inside your article. It’s free, there’s no sign-up and no API key, and it takes one copy-and-paste.

What your readers get

Try one

How to add it

  1. Find the race you want: any comparison (almost 6,000 of them), or any car’s page.
  2. Open Put this race on your own page and press Copy.
  3. Paste it into your page as HTML: a Custom HTML block in WordPress, a Code block in Squarespace, an HTML card in Ghost, an Embed element in Webflow, or Embed code → Embed HTML in Wix.

What the code looks like

<iframe src="https://myautoracer.com/?a=audi-rs5-b10&amp;b=bmw-m3-n-a&amp;embed=1"
  width="100%" height="880" style="border:0;border-radius:6px"
  loading="lazy" allow="fullscreen; web-share" allowfullscreen title="Audi RS5 vs BMW M3 drag race"></iframe>
<p><a href="https://myautoracer.com/">Race simulator by My Auto Racer</a></p>

Optional: let it size itself

The race is about 880px tall on desktop and on phones. If you can add a script to your page, this lets it set its own height, so it never shows a scrollbar. Add data-myautoracer to each iframe, then put this once, anywhere on the page:

<script>
addEventListener("message", function (e) {
  if (e.origin !== "https://myautoracer.com" || !e.data || e.data.trapspeed !== "height") return;
  document.querySelectorAll("iframe[data-myautoracer]").forEach(function (f) {
    if (f.contentWindow === e.source) f.style.height = Math.max(420, Math.min(1400, e.data.h)) + "px";
  });
});
</script>

If something’s not right