Odds API for affiliates and media

An odds API for affiliates, media and tipsters: live odds tables, best-price widgets and deep links to each book’s bet slip, from one normalized feed.

Readers trust odds that are current. PreciseAPI keeps every line live and shows which book has the best price — the number that converts affiliate clicks.

An odds API for affiliates solves a publishing problem as much as a data problem. A preview, a comparison table or a tipster's post goes out once and stays up for days, while the prices in it change by the minute. Readers notice when a quoted line is gone, and a "best odds" button that opens the wrong book, or a book that isn't legal where the reader lives, costs you their trust.

This page covers how publishers, affiliate sites and tipsters use PreciseAPI: which endpoint feeds which piece of content, how to link each price to the right book, what it costs, and the rules that stay your responsibility.

Who this is for

How an odds API for affiliates fits a publishing stack

scheduled job ──▶ PreciseAPI ──▶ cache (CMS, key-value store) ──▶ pages and widgets

A job on your server calls the API on a schedule, stores the result, and every page reads from the cache. Credits depend on how often the job runs, never on how many people read the page, and your key never reaches a browser.

ContentEndpointCredits per callTypical refresh
Game cards with every book/v1/odds21 to 5 minutes
Best-price callouts/v1/best-lines31 to 5 minutes
Futures tables/v1/futures2Hourly or daily
"The line has moved" stories/v1/history3Once per article
Book list, tags and site links/v1/sportsbooksFreeDaily

One /v1/odds or /v1/best-lines call covers a league's game lines, and league=nfl,nba combines leagues in one request.

A best-price cell is only useful if its button opens the book that has the price. Markets and outcomes carry the book's own links where the book publishes them, and state= makes Caesars and BetParx links open the reader's state site. This job builds NFL moneyline cards for the books you work with:

const BOOKS = ['fanduel', 'draftkings', 'betmgm', 'caesars', 'betrivers'];
const url = `https://api.preciseapi.com/v1/odds?league=nfl&markets=moneyline&books=${BOOKS.join(',')}&state=nj`;
const res = await fetch(url, { headers: { Authorization: `Bearer ${process.env.PRECISEAPI_KEY}` } });
const { data, meta } = await res.json();

const toDecimal = (a) => (a > 0 ? 1 + a / 100 : 1 + 100 / -a);

const cards = data.map((event) => {
  const best = {};
  for (const book of event.bookmakers) {
    for (const market of book.markets) {
      for (const o of market.outcomes) {
        if (best[o.side] && toDecimal(o.price) <= toDecimal(best[o.side].price)) continue;
        best[o.side] = {
          team: o.name,
          price: o.price,
          book: book.name,
          link: o.betslip_url || market.event_url || book.event_url || book.league_url || null,
        };
      }
    }
  }
  return { id: event.id, kickoff: event.start_time, matchup: `${event.away.abbr} @ ${event.home.abbr}`, best };
});

await saveToCache('nfl-moneylines', { cards, as_of: meta.generated_at }); // your CMS or key-value store

The link chain goes from the most specific to the least: a bet slip with this side on it, the game page, the league board, and finally the site address from /v1/sportsbooks. How far up the chain a book reaches depends on what it publishes. Fanatics, for example, opens no game or bet from a link, so its cells fall back to the site. The deep links docs list what each source carries, and the FanDuel odds API, DraftKings odds API and Caesars Sportsbook API pages describe what those books post.

Odds widgets for media pages

Odds widgets for media follow a few rules that keep them accurate:

The odds comparison widget tutorial builds a complete embeddable widget with server-side caching, and the odds comparison API and futures odds API pages summarize the endpoints behind it. For "the line has moved" coverage, the line movement API page explains what history records, and the NFL odds API page lists the markets each NFL game carries.

For tipsters: the posted price and the close

When you post a tip, store the selection id, the book, the price and the response's generated_at. After the game, call /v1/history for that market at a sharp book and take the last point before the event's start_time as the close; current can include in-play moves on a game that was priced live. Finished events stay available for at least four hours, so schedule the job soon after games end. Comparing your price with the close is the honest way to report a record, and how to measure closing line value explains the method. Tipsters who keep records in a spreadsheet can start from the odds API Excel guide.

Which plan fits

On a typical publishing schedule, an odds API for affiliates fits on Edge ($49.99 a month, 100,000 credits, 2 seats). /v1/best-lines for one league every 5 minutes is 25,920 credits per 30 days, and /v1/odds every 2 minutes is 43,200. Networks covering many leagues with fast refreshes move to Sharp ($199.99, unlimited credits, 5 seats). Live blogs that show odds during games need Syndicate ($249.99), because in-play prices are only on that plan. The odds API pricing page has the details.

The rules that stay with the publisher

PreciseAPI is a data provider. It isn't an affiliate network, isn't affiliated with the operators in the feed, and can't tell you what your content may show. You are responsible for:

Frequently asked questions

Does more traffic cost more credits?

No. Credits are spent when your server calls the API, so a cached table costs the same whether ten or ten million people read it. Only the refresh schedule changes the bill.

Where the book publishes one, the outcome carries a betslip_url that opens the slip with that side on it. Otherwise use the game link (event_url), the league board (league_url) or the site address from /v1/sportsbooks.

Is PreciseAPI an odds API for affiliates only, or for any publisher?

Any publisher on a paid plan can use the data in its own products: affiliate sites, newsroom pages, newsletters and apps. Redistributing the data in raw or substantially raw form, for example as a feed for other sites, needs a written agreement.

Is PreciseAPI affiliated with any sportsbook?

No. It collects posted prices from sportsbooks, exchanges and DFS apps and isn't affiliated with any of them. It doesn't take bets or give picks.

Odds that stay current on a page

Most publishers pull odds into their CMS on a schedule and cache the result. A game card with every book's moneyline, spread and total is one /v1/odds call for the whole league, and /v1/best-lines adds the best price on each side with the books offering it. Futures boards change slowly, so a daily /v1/futures pull keeps championship and award tables fresh.

Links to the book

Markets carry the source's own ids and, where the book publishes them, an event link and a bet slip link, so a button can open the right game. Pass state with the visitor's US state and Caesars and BetParx links open that state's site. Whether you may show odds or link to operators depends on where your readers are, so check the rules in each market you publish to.

Example request

GET /v1/futures?league=nfl

Endpoints

Products

Related reading

More use cases

Looking for a specific league or book? See the odds API directory, or compare plans.