Skip to main content
Racey School
League owners and organizers2 min video + written steps

Show your standings on your website

Put your league standings or race schedule on your own website with a copy-and-paste widget that updates by itself.

Before you start

  • Be an owner or organizer of a league that is public and active (not a draft, paused or demo league).
  • Have a website where you can add an HTML or custom-code block.

What you’ll be able to do

Your website shows your league's standings or schedule and keeps it up to date by itself.

Watch: Show your standings on your website

Captions are available in the player. The full transcript is below.

Jump to a chapter

  1. Read this step: Race results and schedules on your website
  2. Read this step: Find the written guide
  3. Read this step: Configure the widget
  4. Read this step: Copy, publish and check
  5. Read this step: Build a custom page with the API
  6. Read this step: Compare the finished pages

Watch on YouTubeThe player loads from YouTube when you press play. If it does not load, use this link or follow the written guide on this page.

Read the video transcript

Welcome back to Racey School. Today we’ll use the Racey API to put race results and the upcoming schedule on your league’s website. Here’s the finished page: Saturday’s winner on the left, the next race on the right. Want a ready-made standings table or calendar instead? We’ll show that shortcut too. Use the chapters to pick your route. First, here’s where to find the instructions again. Open Racey School, choose Run your first league, then Show your standings on your website. The written guide walks you through the widget and has a checklist at the end. For the custom version, open the API docs. Keep those two pages handy. Let’s start with the widget. As an owner or organizer of a public, active league, open Integrations and find Website embed. Choose Schedule. The preview now shows the rounds. Auto follows each visitor’s theme. I’ll pick Dark for our site. Keep Follow current season, or pin a season if you want this calendar to stay with it. Press Copy. The frame displays the calendar, and the script makes it fit. Paste the whole snippet into a custom HTML block in your website editor and publish. Now open the page as a visitor. There’s the next round, with Powered by Racey below. To add championship points, repeat those steps with Standings. Now let’s build the custom version. This example uses fictional race data. In the developer docs, season details give you the rounds. On your website’s server, request the season using its ID. Find the upcoming round for your calendar, and take the ID of a completed round for the results request. The results come back grouped by session. Choose the race session, then read each driver’s finishing position and name. Your server sends the finished page to visitors. The API key stays on the server. For championship points across rounds, there’s a separate standings endpoint. Here’s the finished page. Driver Cobalt won at Pine Valley, and Summit Park is up next. Use the widget when you want Racey’s table, or the API when you want to tell the story in your own layout. Both references are linked with the chapters below.

Racey School. Fictional league and race data. Narration by OpenAI Marin.

On this page

Race results and schedules on your website

Watch from 00:00.

Choose the widget for a ready-made standings table or schedule. For a race-by-race results page in your own layout, use the read-only API.

Find the written guide

Watch from 00:22.

This guide is for league owners and organizers. You need a Racey league that is public and active: the widget does not work for a draft, paused or demo league. If your league is not public yet, the Website embed card tells you so and links to your league settings.

You also need a website where you can add your own HTML, such as a WordPress "Custom HTML" block, a Wix "Embed code" element or a Squarespace "Code" block.

Open Website embed

Watch from 00:39.

  1. Open your league and go to Integrations.
  2. Find the Website embed card.
  3. Under Show, choose Standings or Schedule.
  4. Under Look, choose Auto to follow each visitor's light or dark setting, or pick Light or Dark to match your website.
  5. Under Pin this season, keep Follow current season so the widget moves on to each new season by itself, or choose one season to always show it.

The Preview shows exactly what your visitors will see.

Copy the code

Watch from 00:58.

Select Copy under Paste this into your website. The code has two parts: a frame that shows the widget, and one script line that sizes the frame to fit, so your visitors don't get a scroll bar inside your page. Copy both lines together.

Paste it into your website

Add an HTML or custom-code block where you want the table, paste the code, and publish your page. You never need to update the code: new results and schedule changes appear by themselves.

You can add both widgets to the same page, or put each on its own page. Copy the code once for each.

Good to know

  • The widget always shows Powered by Racey, with links back to your league page on Racey.
  • On a phone or in a narrow sidebar it drops the less important columns instead of making visitors scroll sideways.
  • Following the current season, the standings keep showing your last finished season's final table until the next season has results.
  • The widget only shows what is already public on your league page. It sets no cookies and shows nothing about your visitors' Racey accounts.

If you change your league's web address

The code you pasted contains your league's web address. If you change the web address in your league settings, the old code stops showing your league. Copy the new code from Website embed and paste it into your website again.

Build a custom page with the API

Watch from 01:17.

From your website’s server, request season details to find the upcoming round and the ID of a completed round. Request results for the completed round, select the race session, then display each driver’s finishing position and name. Championship points come from the standings endpoint. Keep your API key on your server. Open the Racey Public API reference.

Check it worked

Watch from 01:48.

  • Your website shows the same table as the Preview on the Website embed card.
  • The widget shows Powered by Racey at the bottom.
  • After your next race results are published, the standings on your website update without you touching the code.

Before you move on

  • Your website shows the same table as the Preview on the Website embed card.
  • The widget shows Powered by Racey at the bottom.
  • After the next published results, the standings on your website update without changing the code.