Integrations

Plug the odds in where you work.

Ask an AI assistant about tonight's prices, drop a display into WordPress, pull best odds into a spreadsheet, or call the API from your own code. Each guide below takes a few minutes.

Which one?

Integrations by what you want to do and the plan each needs
You want toUsePlan
Show live odds on your websiteWordPress plugin or the embed codeDisplay or Publisher
Ask Claude, Cursor or VS Code about races and pricesMCP serverPublisher (one tool is free)
Build a custom GPTGPT actionPublisher
Work with prices in a spreadsheetGoogle Sheets or ExcelPublisher
Automate a workflowZapier, Make or n8nPublisher
Build your own featureThe APIPublisher

Your API key is on the Developer tab of the console. Wherever a guide says YOUR_KEY, use that key, and keep it out of anything public.

AI assistants (MCP)

OddsTrellis runs a remote Model Context Protocol server. Connect it once and your assistant can look up the next races, compare bookmakers, read a race's full market and check results by itself.

Server URL: https://oddstrellis.com/mcp
Authentication: your API key in an X-API-Key header (or Authorization: Bearer).

Tools

  • racing_snapshot No key needed: What's racing right now: the next races with their best win prices and which bookmaker has them, races settled and coming up by code and country, the bookmakers priced in the last 24 hours, and the latest results with closing price ranges. Needs no API key.
  • next_races: The next races to run, each runner with every bookmaker's current win price and the best of them. Use for 'what's the price of X', comparing bookmakers, or what's coming up next.
  • best_odds: The best available win and place price for every runner in upcoming races, which bookmaker offers it, how many bookmakers quote it, and each race's market percentage. Compact; good for scanning many races.
  • race_market: Every bookmaker's prices for one race: win, place and top 2/3/4 where offered, plus exotic dividends once settled. Before the race these are live prices; after it, each bookmaker's closing price. Give race_id, or venue + meeting_date + race_number.
  • race_schedule: Upcoming races without prices: venue, race number, start time, distance, track condition, status and scratchings. Use to find races and race_ids.
  • results: Settled results: placings with settled prices, starting prices for Australian thoroughbreds, and dividends. Filter by date (YYYY-MM-DD) for past days, or hours_back for the latest.

Each tool call counts as one API request against your plan's allowance. Answers are trimmed for AI assistants: guarded best prices, no links, a size cap. The REST API returns every field.

Claude Code

claude mcp add --transport http oddstrellis https://oddstrellis.com/mcp \
  --header "X-API-Key: YOUR_KEY"

Claude Desktop

Open Settings, then Developer, then Edit Config, and add this to claude_desktop_config.json. It needs Node.js installed. Restart Claude afterwards.

{
  "mcpServers": {
    "oddstrellis": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://oddstrellis.com/mcp",
               "--header", "X-API-Key:${ODDSTRELLIS_KEY}"],
      "env": { "ODDSTRELLIS_KEY": "YOUR_KEY" }
    }
  }
}

To try it without a key, add https://oddstrellis.com/mcp as a custom connector in Claude's Connectors settings. Only racing_snapshot works that way, because custom connectors can't send an API key header.

Cursor

Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (one project):

{
  "mcpServers": {
    "oddstrellis": {
      "url": "https://oddstrellis.com/mcp",
      "headers": { "X-API-Key": "YOUR_KEY" }
    }
  }
}

VS Code

Add to .vscode/mcp.json. VS Code asks for the key the first time and stores it securely.

{
  "inputs": [
    { "type": "promptString", "id": "oddstrellis-key",
      "description": "OddsTrellis API key", "password": true }
  ],
  "servers": {
    "oddstrellis": {
      "type": "http",
      "url": "https://oddstrellis.com/mcp",
      "headers": { "X-API-Key": "${input:oddstrellis-key}" }
    }
  }
}

Other MCP clients

Any client that supports remote (Streamable HTTP) servers with custom headers works with the URL and header above. Clients that only run local servers can use mcp-remote, as in the Claude Desktop example.

ChatGPT

Give a custom GPT live racing data with a GPT action:

  1. In ChatGPT, create a GPT, open Configure, and choose Create new action.
  2. Choose Import from URL and enter https://oddstrellis.com/openapi.json.
  3. Under Authentication, choose API Key, then Custom, with the header name X-API-Key and your key.
  4. For the privacy policy, use https://oddstrellis.com/privacy.

Every conversation with the GPT uses your key and allowance, so keep the GPT to yourself or your team.

WordPress

The plugin adds an [oddstrellis] shortcode, so displays go into posts, pages and widget areas without touching HTML. It works on the Display and Publisher plans.

Download the WordPress plugin

  1. In WordPress, open Plugins, then Add New, then Upload Plugin. Upload the zip and activate it.
  2. In the console, edit your display and add your site's address under Websites allowed to show it.
  3. Copy the display's embed code. Add a Shortcode block where the display should go and paste the code (or just the display ID inside it, which starts with wgt_) between the quotes:
[oddstrellis id="wgt_1a2b3c4d" height="420" title="Next to go"]

height and title are optional. The display then sizes itself to fit. Prefer not to install a plugin? Paste the embed code into a Custom HTML block instead.

Other website builders

Every display comes with a two-line embed code on the Displays tab of the console. First add your site's address to the display's allowed websites, then paste the code:

  • Webflow: add an Embed element and paste the code.
  • Squarespace: add a Code block and paste the code. Code blocks aren't on every Squarespace plan.
  • Shopify: in the theme editor, add a Custom Liquid section and paste the code.
  • Ghost: add an HTML card and paste the code.
  • Anything else: paste it into the page's HTML where the display should appear.

Builders that place embeds inside their own frame (Wix's HTML embed, for example) need extra setup. Ask us and we'll get it working, or use our installation service.

Google Sheets

A custom function that fills the sheet with the best price for every runner. In your sheet, open Extensions, then Apps Script, paste this, and save. Then add your key under Project Settings, Script properties, as ODDSTRELLIS_KEY.

// Extensions > Apps Script. Save your key once under
// Project Settings > Script properties, as ODDSTRELLIS_KEY.
function ODDSTRELLIS_BEST(venue, numRaces) {
  var key = PropertiesService.getScriptProperties().getProperty('ODDSTRELLIS_KEY');
  var q = 'num_races=' + (numRaces || 5) + (venue ? '&venue=' + encodeURIComponent(venue) : '');
  var res = UrlFetchApp.fetch('https://oddstrellis.com/v1/racing/best-odds?' + q,
    { headers: { 'X-API-Key': key }, muteHttpExceptions: true });
  if (res.getResponseCode() !== 200) throw new Error(JSON.parse(res.getContentText()).detail);
  var rows = [['Start (UTC)', 'Venue', 'Race', 'No.', 'Runner', 'Best win', 'Bookmaker', 'Books']];
  JSON.parse(res.getContentText()).forEach(function (race) {
    race.runners.forEach(function (r) {
      var best = r.best_win || {};
      rows.push([race.start_time, race.venue, race.race_number, r.number, r.name,
                 best.price || '', best.bookmaker || '', r.books_quoting]);
    });
  });
  return rows;
}

Then type =ODDSTRELLIS_BEST("Randwick") in a cell, or =ODDSTRELLIS_BEST("", 10) for the next 10 races anywhere. Sheets reruns custom functions when the sheet recalculates, and each run is one API request.

Excel

Open Data, then Get Data, then From Other Sources, then Blank Query. Open the Advanced Editor, paste this, and choose Anonymous if Excel asks how to connect. Refresh the query for new prices.

let
  Source = Json.Document(Web.Contents("https://oddstrellis.com/v1/racing/best-odds",
    [Query = [num_races = "5"], Headers = [#"X-API-Key" = "YOUR_KEY"]])),
  Races = Table.FromRecords(Source, {"venue", "race_number", "start_time", "runners"}, MissingField.UseNull),
  Runners = Table.ExpandListColumn(Races, "runners"),
  Fields = Table.ExpandRecordColumn(Runners, "runners", {"number", "name", "best_win", "books_quoting"}),
  Best = Table.ExpandRecordColumn(Fields, "best_win", {"price", "bookmaker"}, {"best_win", "bookmaker"})
in
  Best

Zapier, Make and n8n

Use each tool's HTTP step: Webhooks by Zapier (GET), Make's HTTP: Make a request, or n8n's HTTP Request node. Set:

  • URL: https://oddstrellis.com/v1/racing/next-to-go (or any endpoint), with parameters such as num_races=3.
  • Header: X-API-Key set to your key.

Don't poll faster than the endpoint refreshes; the docs list how often each one does.

Your own code

Plain HTTPS and JSON, so any language works. Keep the key on your server: the API sends no CORS headers, so browsers can't call it directly.

Python

import os, requests

r = requests.get(
    "https://oddstrellis.com/v1/racing/best-odds",
    params={"num_races": 3, "country": "AU"},
    headers={"X-API-Key": os.environ["ODDSTRELLIS_KEY"]},
    timeout=10,
)
r.raise_for_status()
for race in r.json():
    fav = race["runners"][0]
    print(race["venue"], race["race_number"], fav["name"], fav["best_win"]["price"], fav["best_win"]["bookmaker"])

JavaScript (Node 18+)

const res = await fetch("https://oddstrellis.com/v1/racing/next-to-go?num_races=3", {
  headers: { "X-API-Key": process.env.ODDSTRELLIS_KEY },
});
if (!res.ok) throw new Error((await res.json()).detail);
for (const race of await res.json()) {
  console.log(race.venue, race.race_number, race.start_time, race.runners.length, "runners");
}

curl

curl -H "X-API-Key: $ODDSTRELLIS_KEY" \
  "https://oddstrellis.com/v1/racing/results?hours_back=3"

The API docs cover every endpoint, parameter, limit and error.

OpenAPI and llms.txt

Something you use isn't covered? Email carter@oddstrellis.com.