guides

Sports betting API: odds data, trading and stats APIs compared

By · Published · Updated · 6 min read

A sports betting API is usually one of three kinds. An odds data API, such as PricedOdds with 16 books, reads the prices that books post. A trading API places orders on one exchange or prediction market. A stats API returns scores and results. PricedOdds reads prices from books that include Kalshi and Polymarket, and it cannot place a bet anywhere.

What kinds of sports betting API are there?

KindWhat it doesPlaces bets?Who uses it
Odds data APIReturns the prices many books post, as JSON, so you can compare themNoLine shopping tools, alert bots, models, spreadsheets, AI agents
Exchange or prediction market trading APIReads one venue's markets and places orders on that venue, from your own accountYes, on that venueTraders who already have an account there
Stats and scores APIReturns schedules, scores, results and player statsNoFantasy apps, media, models that need inputs other than prices

Some products mix two kinds, so check what a given API does before you build on it. Platforms that supply prices to companies running a sportsbook are a separate business, sold to operators. PricedOdds is not one of them: its Terms prohibit using the data to accept or price wagers.

What does an odds data API return?

Prices, not bets. PricedOdds returns, for each event, the moneyline, spread, total, player props and other markets each book posts, with the book named on every price, plus the best price across the books on your plan and a no-vig fair price. The catalog lists 776 leagues and 255 market types; 598 leagues and 224 market types had data on November 28, 2026, 17:22 UTC, and 16 of the 16 books were listed with live prices. Whether a league has data depends on season and schedule: the feed window is the next 7 days plus live games (21 days for MMA and boxing cards).

The endpoints, delivery methods and plans are on the sports betting odds API page. This article covers the choice between kinds of API.

Can you place bets through an API?

On some venues, yes, through that venue's own API and your own account there. Two examples, from their documentation read on November 25, 2026:

  • Kalshi. Its API documentation covers "real-time market data and trade execution" over REST, WebSocket and FIX. Order requests are signed: each one carries an access key, a timestamp and a signature made with an Ed25519 or RSA key (API keys). Market data is a public endpoint that needs no scope. There is a demo environment with mock funds and separate credentials.
  • Polymarket. Its trading quickstart places orders from a client created with your wallet and signer. Its list of markets can be read with a plain request, without credentials. Its documentation points to a separate site for Polymarket US.

We did not place an order on either venue. Rules on who can trade, and where, are set by each venue.

An odds data API stays on the reading side. PricedOdds shows the two prediction markets and the two exchanges of the catalog next to the sportsbooks, in the same JSON, but to act on a price you go to that venue.

Which venues are behind the prices?

The 16 books in the catalog of November 28, 2026, 17:22 UTC are of 6 kinds:

  • 9 US sportsbooks (DraftKings, FanDuel, BetMGM, Fanatics Sportsbook, Caesars Sportsbook, bet365, Hard Rock Bet, BetRivers and Circa Sports)
  • 1 social sportsbook (Fliff)
  • 2 betting exchanges (Novig and ProphetX)
  • 2 prediction markets (Kalshi and Polymarket)
  • 1 offshore sportsbook (BetOnline)
  • 1 sharp reference book (Pinnacle)

The type of each book comes from GET /v1/books, which needs no key. This script lists the books by type, then reads the best full-game NBA moneyline price for each side and counts which kind of book had it. It uses the built-in fetch of Node 18 or later.

// books-by-type.mjs: the kinds of venue behind an odds API, and which kind held the best price. Node 18 or later.
// Usage: PRICEDODDS_API_KEY=... node books-by-type.mjs
const BASE = "https://api.pricedodds.com/v1";
const LEAGUE = process.env.LEAGUE ?? "nba";

// 1. No key needed: every book with its type
const books = (await (await fetch(`${BASE}/books`)).json()).data;
const typeOf = Object.fromEntries(books.map(b => [b.id, b.type]));
const byType = {};
for (const b of books) (byType[b.type] ??= []).push(b.id);
for (const [type, ids] of Object.entries(byType)) console.log(`${type}: ${ids.length} (${ids.join(", ")})`);

// 2. With a key: best moneyline price per side, and the type of the book that had it
const res = await fetch(`${BASE}/best?league=${LEAGUE}&market=moneyline@game`, {
  headers: { Authorization: `Bearer ${process.env.PRICEDODDS_API_KEY}` },
});
if (!res.ok) throw new Error(`HTTP ${res.status}: ${(await res.text()).slice(0, 200)}`);
const rows = (await res.json()).data;
const wins = {};
let sides = 0;
for (const row of rows) {
  for (const s of row.selections) {
    if (!s.best) continue;
    sides++;
    const t = typeOf[s.best.book] ?? "unknown";
    wins[t] = (wins[t] ?? 0) + 1;
  }
}
console.log(`${LEAGUE} moneyline: ${rows.length} games, ${sides} sides with a best price`);
for (const [type, n] of Object.entries(wins).sort((a, b) => b[1] - a[1])) console.log(`best price by book type, ${type}: ${n}`);

We ran it on November 25, 2026, 19:37 UTC with an All-Access key, which compares every book in the list. Its output:

sportsbook: 9 (draftkings, fanduel, betmgm, fanatics, caesars, bet365, hardrock, betrivers, circa)
social_sportsbook: 1 (fliff)
exchange: 2 (novig, prophetx)
prediction_market: 2 (kalshi, polymarket)
offshore_sportsbook: 1 (betonline)
sharp_reference: 1 (pinnacle)
nba moneyline: 25 games, 50 sides with a best price
best price by book type, prediction_market: 43
best price by book type, exchange: 7

In that run the best price on 43 of the 50 sides of 25 NBA games was at a prediction market. That compares posted prices only. Each venue sets its own fees, limits and rules, so check them before you compare a price there with a sportsbook price. These are prices of one moment, shown as an example and not as current prices. With fewer books on your plan, /v1/best compares only those.

Which kind of API do I need?

  • You want to compare prices across books, for line shopping, alerts, a model or a spreadsheet: an odds data API. Examples with code: a Discord alert bot, odds in Google Sheets and a Python tutorial.
  • You want to place orders automatically on one exchange or prediction market: that venue's own trading API, with your account there. An odds API can still tell you how its price compares with the books.
  • You need scores, results or player stats: a stats API. PricedOdds returns prices and market data, not box scores.
  • You want to run a sportsbook: a supplier for operators. PricedOdds data is informational and cannot be used to accept or price wagers.

For how the odds data APIs compare with each other, see the odds APIs for US sportsbooks, compared.

What are the limits of an odds data API?

It reads prices; it does not hold an account, a balance or a bet. The prices are the ones each book posts at that moment, and a book can move or suspend a price before you get to it. PricedOdds returns current prices, not history: to keep a history, record the WebSocket stream or poll GET /v1/changes and store what you receive. Nothing here is betting advice.

A small client with hand-written types for these endpoints is in a TypeScript client for the odds API. If the goal is a price table on your own site, build the odds table on the server with one cached call to GET /v1/best.

FAQ

Is PricedOdds a betting API?

No. It is an odds data API: it returns the prices of 16 books as JSON and cannot place bets at any of them.

Can I trade on Kalshi or Polymarket through PricedOdds?

No. PricedOdds is read-only. Orders go through each venue's own API and your account there.

Does the API include prediction markets and exchanges?

Yes. The catalog of November 28, 2026, 17:22 UTC lists Kalshi and Polymarket as prediction markets and Novig and ProphetX as exchanges, with the same fields as the sportsbooks.

Can I use odds data to run my own sportsbook?

Not PricedOdds data. Its Terms prohibit using the data to accept or price wagers.

Where do I start?

Check the books and leagues without a key on the coverage page, then run the script above with your key. The fields are in the docs. Every plan starts with a 3-day free trial with a $1 card verification that is refunded immediately. The plan you pick at signup is charged from day 4 unless you cancel before the trial ends. See pricing or create an account.