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.
- Best-price callouts. Show which regulated book has the best number on every side.
- Futures boards. Championship, MVP and division odds for evergreen content.
- Line movement. Opening and current prices show how the market has moved since a line opened.
- Cacheable REST. Pull odds into your CMS on a schedule — credits are only spent when you call.
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
- Affiliate sites: comparison tables, best-price callouts, sportsbook reviews and promo pages.
- Media publishers: odds next to previews and recaps, futures tables and live blogs.
- Tipsters: newsletters, Discord and Telegram channels and social posts. An odds API for tipsters does two jobs: it shows that a quoted price was really on offer, and it lets you compare each tip with the closing line later.
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.
| Content | Endpoint | Credits per call | Typical refresh |
|---|---|---|---|
| Game cards with every book | /v1/odds | 2 | 1 to 5 minutes |
| Best-price callouts | /v1/best-lines | 3 | 1 to 5 minutes |
| Futures tables | /v1/futures | 2 | Hourly or daily |
| "The line has moved" stories | /v1/history | 3 | Once per article |
| Book list, tags and site links | /v1/sportsbooks | Free | Daily |
One /v1/odds or /v1/best-lines call covers a league's game lines, and league=nfl,nba combines leagues in one request.
Sports betting affiliate odds with links to the right book
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:
- Show the time. Print "odds as of" from
meta.generated_at. A price without a time reads as live even when the cache is an hour old. - Show the line with the price. For spreads and totals, -110 means nothing without -3.5 next to it, and books often hang different numbers.
- Match the reader's market. Pass only books licensed where the reader is, and hide the widget where betting isn't legal.
- Keep futures separate. Futures move slowly, so a daily
/v1/futurespull is enough for championship and award tables.
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:
- Local law. Whether you may show odds or link to operators depends on where your readers are.
- Responsible gambling messaging. Show age and help information next to odds, in the wording each market requires. Our responsible gaming page sets out what we expect from customers.
- Disclosure. If links earn commission, say so.
- Framing. "Best price" is arithmetic on posted prices at refresh time, not a prediction or advice. The acceptable use policy says never to present the data as a lock or a guaranteed profit.
- Licensing. Using the data in your own sites and apps is covered. Reselling it or redistributing it in raw or substantially raw form, such as a feed for other sites, needs a written agreement, so check the terms before syndicating widgets.
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.
Can a link open the book's bet slip?
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
- GET /v1/odds: Get odds
- GET /v1/futures: Futures & outrights
- GET /v1/best-lines: Best lines
Products
- Futures odds API: Futures odds API for championship, conference, division and award boards from FanDuel, DraftKings and Pinnacle, normalized with participant ids across books.
- Best lines API: Odds comparison API that returns the best price for every outcome across every sportsbook, exchange and DFS app in one call, with the books that offer it.
- Arbitrage API: Arbitrage API data: the best price on every side at identical lines across sportsbooks and exchanges, plus an MCP tool that finds arbs with stakes.
- Game odds API: Betting odds API for moneylines, spreads and totals from 36 sources, for every period, plus alternate lines and team totals in one normalized schema.
Related reading
- Building an Odds Comparison Widget for Media Sites: An embeddable React widget that shows the best available price per outcome across books, backed by a server-side cache with predictable credit spend, plus compliance notes for publishers.
- How to Choose a Sports Odds API (A Buyer's Checklist): A vendor-neutral checklist for evaluating odds data providers on coverage, latency, normalization, history, pricing, reliability, docs and licensing.
More use cases
- Models & data science: Sports betting model data: market prices, implied probabilities and line history with stable ids, to train, backtest and run betting models and research.
- Exchange trading tools: An exchange data API for trading tools: Kalshi, Polymarket and Novig prices next to sportsbook odds on one event id, with liquidity, in one format.
- Sports apps & scoreboards: An odds API for betting apps and sports apps: real-time odds, live scores and deep links to each sportsbook, in the format your users read.
- Odds screens: Build a real-time odds screen: every book’s price side by side, the best line highlighted and updates in under a second, from one normalized odds API.
Looking for a specific league or book? See the odds API directory, or compare plans.