Onyx Odds API

Onyx Odds API for real-time Onyx Odds odds: moneylines, spreads, totals and more, next to 35 other sources with stable event ids.

Onyx Odds runs a free-to-play sports prediction game. Users make picks with Onyx Coins, a free in-game currency, and can take part in promotional sweepstakes with Onyx Cash, which the company says can be redeemed for cash prizes. Its site promotes parlays prominently ("stack your picks") and covers a broad board of sports. Onyx's site also advertises contract trading products offered through an affiliated, CFTC-registered introducing broker; this page is about the sports odds Onyx posts on its prediction game and the Onyx Odds API that carries them.

Those odds are real prices on real games, which is why developers want Onyx Odds data: for odds screens that span the sweepstakes category, for content sites comparing apps, and for anyone measuring how parlay-friendly products price the legs that go into them. This page covers what the Onyx Odds feed in PreciseAPI contains, how parlay pricing works, and how to query it.

Does Onyx Odds have a public API?

No. Onyx Odds doesn't offer a public odds API for developers. There is no developer portal, self-serve key or documented endpoint for third parties to pull its lines. Searches for an "Onyx Odds API" usually come from developers who want its current prices in a structured format.

PreciseAPI provides that independently. We collect the odds Onyx Odds posts and normalize them into the same event, market and outcome ids we use for every other source. It is not an official Onyx product and there is no partnership behind it. Onyx says its offerings vary by state; the data feed is the same wherever you query it.

What Onyx Odds data is included

Our catalog lists Onyx Odds among its sportsbook sources. For each event it prices, the Onyx Odds odds feed carries:

Market groupWhat you get
Main linesMoneyline, spread and total for every period the league supports
Team totalsHome and away over/unders on the full game
Player propsPre-game props for NFL, NBA, WNBA, MLB and NHL games
FuturesNot on the feed for Onyx Odds at the moment

Periods follow the league: halves and quarters in the NFL and NBA, the first period in the NHL, the first five innings in MLB. Soccer moneylines are three-way. Tennis, UFC and esports are priced head to head, with map handicaps for esports. Prices default to American odds and can be returned as decimal odds or implied probability.

Onyx Odds player props

Player props arrive through /v1/props in the same shape as every sportsbook and DFS app: one market per player and stat, a line, over and under prices, and a stable player id that joins across sources. Props cover passing, rushing and receiving in the NFL, points, rebounds, assists and threes in the NBA and WNBA, strikeouts, hits and total bases in MLB, and points and shots on goal in the NHL. After the start, they stay on the feed for as long as Onyx Odds keeps posting them.

Onyx Odds by league

The coverage endpoint currently lists Onyx Odds for 14 leagues:

Where Onyx Odds fits: parlay pricing

A parlay combines several picks into one, and pays only if every leg wins. Its price is the product of the legs' decimal odds. That makes parlays easy to price and easy to misread, because the margin on each leg compounds. Since Onyx puts parlays front and center, understanding that arithmetic is the most useful way to read its data.

Worked example: how margin compounds

Take two independent legs, each from a market priced at -110 on both sides.

  1. Each leg is 1.909 in decimal. The two-leg parlay is 1.909 × 1.909 = 3.645, or about +264 in American odds.
  2. With the margin removed, a -110 / -110 market is an even 2.00 on each side, so the same parlay without margin would be 4.00, or +300.
  3. The parlay pays 3.645 / 4.00 = 91.1% of that no-margin price, a shortfall of about 8.9%.

Add a third -110 leg and the parlay pays 6.958, about +596, against a no-margin 8.00, or +700. The shortfall grows to about 13.0%. Each single leg carried a margin of roughly 4.5%; three of them together cost nearly three times as much.

None of this is specific to Onyx. It is how parlay math works everywhere. With the Onyx Odds odds API you can measure it directly: pull each leg's Onyx price along with the other side of the same market to see the margin Onyx charges on it, then compare the parlay Onyx would pay with a parlay built from the best price on each leg across sources.

Two caveats. Legs from the same game are often correlated, so multiplying them is only exact for independent events. And promotional boosts change the payout, so compare against whatever the app actually offers. The odds formats guide turns any leg into decimal odds for multiplication, and the vig glossary entry covers how a single market's margin is measured.

Comparing Onyx legs across sources

The leg price is where comparison matters most. If a leg is priced at -105 on another source and -115 on Onyx, the difference compounds across the parlay just as margin does. Pulling Onyx next to the regulated books, the sharp books and other social apps for each leg shows where every leg is cheapest. The guide to American, decimal and fractional odds explains why decimal odds are the easiest format for this kind of multiplication.

Who uses Onyx Odds odds data

Comparison and review sites use it to show how Onyx's prices stack up against other apps on the same games, with numbers instead of impressions. Parlay tools use it to compare each leg's price across sources before a user combines them. Odds screens that cover the sweepstakes category add Onyx as one more column, which matters most on the NBA and NFL slates where users compare the most. And because Onyx covers esports, it adds a source to League of Legends, Dota 2 and Call of Duty boards, where fewer apps post prices at all. The coverage page shows every source and league in one table.

How to use the Onyx Odds API

Every request is an HTTPS GET with your key in the Authorization header. This pulls Onyx Odds NFL moneylines and spreads in decimal format, ready to multiply into parlays:

curl "https://api.preciseapi.com/v1/odds?league=nfl&books=onyxodds,pinnacle&markets=moneyline,spread&format=decimal" \
  -H "Authorization: Bearer $PRECISEAPI_KEY"

The response groups prices by source under bookmakers:

{
  "id": "onyxodds",
  "name": "Onyx Odds",
  "type": "sportsbook",
  "markets": [
    {
      "id": "mkt_0p5r8t2vx1c",
      "key": "spread",
      "period": "full_game",
      "line": -3.5,
      "outcomes": [
        { "id": "sel_2a6c9e1g4ik", "name": "Kansas City Chiefs", "side": "home", "point": -3.5, "price": 1.909 },
        { "id": "sel_1b5d8f0h3jl", "name": "Buffalo Bills", "side": "away", "point": 3.5, "price": 1.909 }
      ],
      "suspended": false,
      "updated_at": "2026-10-14T14:22:41.775Z"
    }
  ]
}

This Python snippet prices a parlay from chosen selection ids, at Onyx and at the best price available anywhere:

import os, math, requests

legs = ["sel_2a6c9e1g4ik", "sel_0tn021zwi2l"]  # selection ids from earlier responses
resp = requests.get(
    "https://api.preciseapi.com/v1/odds",
    params={"league": "nfl", "markets": "moneyline,spread", "format": "decimal"},
    headers={"Authorization": f"Bearer {os.environ['PRECISEAPI_KEY']}"},
    timeout=10,
)
resp.raise_for_status()
onyx, best = {}, {}
for event in resp.json()["data"]:
    for book in event["bookmakers"]:
        for m in book["markets"]:
            for o in m["outcomes"]:
                best[o["id"]] = max(best.get(o["id"], 0), o["price"])
                if book["id"] == "onyxodds":
                    onyx[o["id"]] = o["price"]
if all(l in onyx for l in legs):
    print("Onyx parlay", round(math.prod(onyx[l] for l in legs), 3))
    print("Best-price parlay", round(math.prod(best[l] for l in legs), 3))

The odds endpoint reference lists every filter, including date_from, date_to and event_ids. For live markets, the WebSocket stream on the Syndicate plan pushes only the markets that changed. If Onyx stops reporting a market, it is flagged suspended and excluded unless you pass include_suspended=true, so a parlay is never priced on a stale leg.

Why not scrape Onyx Odds?

Developers sometimes look for ways to scrape Onyx Odds. The obstacles are the familiar ones:

A maintained Onyx Odds odds API handles all of it.

Onyx Odds is a trademark of its owner, used here for identification only. PreciseAPI is not affiliated with or endorsed by Onyx Odds.

Frequently asked questions

Does Onyx Odds have an API?

Onyx Odds doesn't offer a public odds API for developers. PreciseAPI's Onyx Odds API independently collects the odds Onyx posts and normalizes them alongside the other sources we cover.

How fast do Onyx Odds prices update?

In-play prices refresh in under 500 ms and pre-match prices every 1–2 seconds. On the Syndicate plan, which adds in-play odds, the WebSocket stream pushes changes as they happen.

Does the Onyx Odds feed include esports?

Yes. The coverage endpoint currently lists League of Legends, Dota 2 and Call of Duty for Onyx Odds, alongside 11 traditional sports leagues.

Can I use the data to price parlays?

Yes. Request prices with format=decimal and multiply the legs. Selection ids are shared across sources, so the same legs can be priced at Onyx and at every other book in one pass.

Does the Onyx Odds feed include player props?

Yes, pre-game props for the NFL, NBA, WNBA, MLB and NHL through /v1/props. They are removed when the event goes live.

Is there a free trial?

Yes. Every account starts with 50 free credits for the Sandbox chat, where you can ask about Onyx's pre-game lines in plain English, and no card is required. The same credits work on the API with your free key, at 20 requests a minute. Get access or see pricing.