FanDuel API: Shop a 662-Market NBA Board Against DraftKings

FanDuel API - OddsPapi API Blog
How To Guides March 26, 2026

Does FanDuel have a public API? No. FanDuel publishes no self-serve odds API, no developer portal and no API key program for app developers. Its odds reach third parties through private partner agreements.

The prices are easy to read another way. OddsPapi carries FanDuel under the slug fanduel, next to 300+ other bookmakers, DraftKings and Pinnacle among them, in one REST response. On 21 November 2026, FanDuel had 625 to 662 markets with a live price on each of six NBA fixtures. DraftKings had 140 to 244 on the same fixtures, and Pinnacle had 33.

Bookmaker page: FanDuel odds API on OddsPapi, with the slug and the live-odds flag.

Which provider is best for FanDuel odds?

For a developer who wants FanDuel prices, FanDuel history and the Pinnacle line in one response on a free key, start with OddsPapi. SportsGameOdds also puts FanDuel on its free plan, but its pricing page lists historical data and Pinnacle from the $299 Pro plan. odds-api.io has a FanDuel page and starts at £49 a month for 2 bookmakers. We found no FanDuel page at OpticOdds.

We read each provider’s public pricing and bookmaker pages on 21 November 2026. Plans change, so check the linked page before you sign up.

OddsPapi SportsGameOdds odds-api.io OpticOdds
FanDuel listed Yes, fanduel Yes, fanduel Yes, FanDuel No FanDuel page found
Cheapest plan with FanDuel Free Free (Amateur: 2,500 objects a month, 10 requests a minute, 10-minute updates) Plans from £49 a month (Solo, 2 bookmakers); the FanDuel page names no plan No public price; a contact form
Free plan Yes, all sports and bookmakers Yes, 9 named bookmakers, FanDuel among them New free keys paused Not stated
Historical FanDuel odds On the free plan Historical data listed on the Pro plan ($299 a month) Not mentioned on the pricing or FanDuel pages Not stated
Pinnacle in the same response Yes, on the free plan Named from the Pro plan Not named on the public pages Not stated

The last two rows decide most builds. A FanDuel price means little alone. You want to know how it ranks against DraftKings, how far it sits from the sharp line, and where it closed. For the price comparison across providers, see the 2026 odds API pricing comparison.

Scraping vs. Enterprise vs. OddsPapi

Method FanDuel Data Cost Legal Risk
Scraping FanDuel.com What the page renders, until the markup changes Free (your time) Violates ToS
Enterprise / Affiliate Feed Full Private contract None (contracted)
OddsPapi API 637 live markets on one NBA fixture (21 Nov 2026), plus history Free plan available None

A scraper breaks each time the FanDuel front end changes, and it records only what you saw while it ran. An enterprise feed needs a business relationship. OddsPapi gives you the same prices through one REST API, with the price history stored for you.

What FanDuel Data Is Available Through OddsPapi

We read /v4/odds?bookmakers=fanduel,draftkings,pinnacle on 21 November 2026 at 09:15 UTC, on the next six fixtures in each tournament. The counts are market IDs with at least one active price.

Tournament FanDuel live markets FanDuel prop markets DraftKings live markets Pinnacle live markets
NBA 625 to 662 58 to 76 140 to 244 33
NFL (Week 12, Sunday) 497 to 535 100 to 118 509 to 574 94 to 104
NHL 131 to 135 17 to 19 75 to 78 61 to 63

The NBA board is where FanDuel pulls away. On Philadelphia 76ers v Milwaukee Bucks, FanDuel posted 79 full-game totals, 59 full-game spreads, and separate spread and total ladders for each half and quarter. DraftKings had 63 full-game totals and few period lines. Pinnacle priced the moneyline plus 11 spreads and 11 totals. On the NFL board the order flips: DraftKings carried 234 to 276 prop markets against 100 to 118 at FanDuel. For the alternate-line ladders themselves, see sorting NBA alternate lines by the handicap field.

Where FanDuel Closes Against DraftKings and Pinnacle

We pulled the moneyline history (market 141) for all 14 played NFL Week 11 fixtures, 13 to 17 November 2026, from /v4/historical-odds, with all three books in each call. The closing price is the last active snapshot before kick-off.

NFL Week 11, moneyline FanDuel DraftKings Pinnacle
Median margin at the close 4.09% 4.31% 2.70%
Range at the close, 14 fixtures 3.71% to 4.44% 4.18% to 4.65% 2.32% to 3.21%
Median margin at the first stored price 4.03%   3.25%
Median days from the first stored price to kick-off 11.9   6.7
Median home-price changes before kick-off 31   64.5

FanDuel closed tighter than DraftKings on the median, and it paid the better closing price on 16 of 28 sides. DraftKings paid more on 11, and one side was a tie. So a bettor who holds both apps gains from a check at the close, and the check takes one history call per outcome.

Against Pinnacle the gap is wider. Strip the margin out of both books and the median gap between their fair home probabilities was 1.19 points, with a maximum of 2.49 points on Tennessee Titans v Jacksonville Jaguars. FanDuel paid at or above Pinnacle’s closing price on 11 of 28 sides. It also moved its home price about half as often as Pinnacle did, so a slow FanDuel price is a lead worth a look. For closing-line maths, read how to rebuild a closing line from the historical odds API.

Python Tutorial: Get FanDuel Odds via OddsPapi

The steps below use the NBA, where the FanDuel board is deepest. For the NFL, set the tournament to 31 and the moneyline market to 141; for the NHL, the tournament is 234.

Step 1: Get Your Free API Key

Sign up at oddspapi.io. The free plan includes 250 requests per month, and one /odds call returns a whole board.

Step 2: Authenticate

import requests

API_KEY = "YOUR_API_KEY"
BASE_URL = "https://api.oddspapi.io/v4"

# The key goes in the apiKey query parameter, never in a header
response = requests.get(f"{BASE_URL}/sports", params={"apiKey": API_KEY})
print(response.status_code, response.json()[:2])
# 200 [{'sportId': 10, 'slug': 'soccer', 'sportName': 'Soccer'}, {'sportId': 11, 'slug': 'basketball', 'sportName': 'Basketball'}]

Important: The API key goes in the query parameter (?apiKey=KEY), not in headers.

Step 3: Find NBA Fixtures

from datetime import datetime, timedelta, timezone

NBA = 132    # tournamentId. NFL is 31, NHL is 234.
now = datetime.now(timezone.utc)

response = requests.get(f"{BASE_URL}/fixtures", params={
    "apiKey": API_KEY,
    "tournamentId": NBA,
    "from": now.strftime("%Y-%m-%d"),
    "to": (now + timedelta(days=2)).strftime("%Y-%m-%d"),  # 'to' is exclusive: pass the day after
})
fixtures = [f for f in response.json()
            if f["startTime"] > now.isoformat() and f.get("hasOdds")]
fixtures.sort(key=lambda f: f["startTime"])
print(f"{len(fixtures)} upcoming NBA fixtures")
for f in fixtures[:5]:
    print(f["fixtureId"], f["participant1Name"], "v", f["participant2Name"], f["startTime"])

# 11 upcoming NBA fixtures
# id1100013273719720 Philadelphia 76ers v Milwaukee Bucks 2026-11-21T18:00:00.000Z
# id1100013273719722 New York Knicks v Portland Trail Blazers 2026-11-22T00:30:00.000Z
# ...

OddsPapi terminology: What you call a “game” is a fixture. What you call a “league” is a tournament. What you call a “team” is a participant.

Step 4: Pull FanDuel, DraftKings and Pinnacle in One Call

import time

BOOKS = ("fanduel", "draftkings", "pinnacle")
fixture_id = fixtures[0]["fixtureId"]
time.sleep(1)  # one call per second per endpoint on the free plan
response = requests.get(f"{BASE_URL}/odds", params={
    "apiKey": API_KEY,
    "fixtureId": fixture_id,
    "bookmakers": ",".join(BOOKS),
})
board = response.json().get("bookmakerOdds", {})

def live_prices(book):
    """Yield (marketId, outcomeId, playerKey, price) for every active price."""
    for market_id, market in book["markets"].items():
        for outcome_id, outcome in market["outcomes"].items():
            for player_key, p in outcome["players"].items():   # "0" on game lines, a player ID on props
                if p.get("active") is not False and p.get("price"):
                    yield market_id, outcome_id, player_key, p["price"]

for slug in BOOKS:
    if slug not in board:
        print(slug, "is not pricing this fixture yet")
        continue
    prices = list(live_prices(board[slug]))
    markets = {m for m, _, _, _ in prices}
    print(f"{slug:11s} {len(markets)} markets with a live price, {len(prices)} prices")

# 76ers v Bucks, read 21 Nov 2026 09:18 UTC:
# fanduel     637 markets with a live price, 1790 prices
# draftkings  244 markets with a live price, 1324 prices
# pinnacle    33 markets with a live price, 66 prices

The path to any price is bookmakerOdds → [slug] → markets → [marketId] → outcomes → [outcomeId] → players → [playerKey] → price. The player key is "0" on a game line and a player ID on a prop, so loop over players. A hardcoded "0" makes every prop market look empty. For the prop families, see the player props API guide.

Step 5: Compare the FanDuel Moneyline

MONEYLINE = "111"   # NBA Winner (incl. overtime): outcome 111 = participant 1, 112 = participant 2

def moneyline(book):
    outs = book["markets"].get(MONEYLINE, {}).get("outcomes", {})
    try:
        return outs["111"]["players"]["0"]["price"], outs["112"]["players"]["0"]["price"]
    except KeyError:
        return None

for slug in BOOKS:
    prices = moneyline(board.get(slug, {"markets": {}}))
    if not prices:
        continue
    home, away = prices
    margin = 1 / home + 1 / away - 1
    fair_home = (1 / home) / (1 / home + 1 / away)
    print(f"{slug:11s} {home:6.3f} {away:6.3f}  margin {margin:.2%}  fair home {fair_home:.1%}")

# fanduel      1.160  5.600  margin 4.06%  fair home 82.8%
# draftkings   1.154  5.740  margin 4.08%  fair home 83.3%
# pinnacle     1.162  5.610  margin 3.88%  fair home 82.8%

On this fixture FanDuel and Pinnacle agree on the fair price, and DraftKings pays more on the underdog. One call gives you all three, so the best price per side is a single max().

Step 6: Read the FanDuel Close on a Played Fixture

NFL_MONEYLINE = "141"   # NFL Winner (incl. overtime): outcome 141 = participant 1, 142 = participant 2

def closing_price(fixture_id, start_time, outcome_id, books="fanduel,draftkings,pinnacle"):
    """Last active pre-kickoff price per book for one moneyline outcome."""
    time.sleep(4.6)  # /historical-odds wants a pause between calls
    r = requests.get(f"{BASE_URL}/historical-odds", params={
        "apiKey": API_KEY,
        "fixtureId": fixture_id,
        "bookmakers": books,                 # up to 3 slugs per call
        "outcomeId": outcome_id,             # cuts the payload to one outcome
    })
    r.raise_for_status()
    closes = {}
    for slug, book in r.json()["bookmakers"].items():
        snaps = book["markets"][NFL_MONEYLINE]["outcomes"][str(outcome_id)]["players"]["0"]
        pre = [s for s in snaps
               if s["createdAt"] < start_time and s.get("active") is not False and s.get("price")]
        if pre:
            closes[slug] = max(pre, key=lambda s: s["createdAt"])["price"]
    return closes

# A played fixture: Arizona Cardinals v Los Angeles Rams, NFL Week 11
fid, start = "id1400003171516024", "2026-11-15T21:05:00.000Z"
home = closing_price(fid, start, 141)
away = closing_price(fid, start, 142)
for slug in home:
    m = 1 / home[slug] + 1 / away[slug] - 1
    print(f"{slug:11s} close {home[slug]} / {away[slug]}  margin {m:.2%}")

# draftkings  close 4.5 / 1.22  margin 4.19%
# fanduel     close 4.9 / 1.19  margin 4.44%
# pinnacle    close 4.83 / 1.212  margin 3.21%

FanDuel paid 4.9 on the Cardinals at the close, above both DraftKings (4.5) and Pinnacle (4.83). Loop this over a week of fixture IDs and you have the table above. For a full backtest on stored closes, see how to backtest a betting model with free historical odds.

FanDuel vs. DraftKings vs. Pinnacle

FanDuel and DraftKings both price for recreational US bettors, but they build different boards. Pinnacle prices for professionals. The numbers from this week show the split:

Factor FanDuel DraftKings Pinnacle
NFL moneyline margin at the close (Week 11 median) 4.09% 4.31% 2.70%
Best closing price, FanDuel vs DraftKings (28 sides) 16 11  
Live markets per NBA fixture (21 Nov) 625 to 662 140 to 244 33
Prop markets per NFL fixture (21 Nov) 100 to 118 234 to 276 26 to 35
Best for NBA period and alternate lines NFL prop depth A fair-price benchmark

When a FanDuel price sits above both rivals, either FanDuel is slow to move or it shades the line for its customers. You need all three data sets to tell which. For shopping across more books than these three, see line shopping in Python, and for the DraftKings side of this comparison, the DraftKings API guide.

Build a FanDuel Line-Shopping Monitor

This script compares every live FanDuel price with DraftKings and Pinnacle on the same market, outcome and player. It lists the prices where FanDuel beats both:

import requests, time
from datetime import datetime, timedelta, timezone

API_KEY = "YOUR_API_KEY"
BASE_URL = "https://api.oddspapi.io/v4"
RIVALS = ("draftkings", "pinnacle")

def get(path, **params):
    while True:
        r = requests.get(f"{BASE_URL}/{path}", params={"apiKey": API_KEY, **params})
        if r.status_code == 429:                       # rate limited: wait as told, then retry
            time.sleep(r.json()["error"]["retryMs"] / 1000 + 0.2)
            continue
        r.raise_for_status()
        return r.json()

def upcoming(tournament_id, days=2):
    now = datetime.now(timezone.utc)
    fx = get("fixtures", tournamentId=tournament_id,
             **{"from": now.strftime("%Y-%m-%d"),
                "to": (now + timedelta(days=days)).strftime("%Y-%m-%d")})
    return sorted((f for f in fx if f["startTime"] > now.isoformat() and f.get("hasOdds")),
                  key=lambda f: f["startTime"])

def active(book):
    out = {}
    for mid, m in book["markets"].items():
        for oid, o in m["outcomes"].items():
            for pkey, p in o["players"].items():
                if p.get("active") is not False and p.get("price"):
                    out[(mid, oid, pkey)] = p["price"]
    return out

def fanduel_best(fixture_id):
    """Prices where FanDuel beats both DraftKings and Pinnacle on the same market, outcome and player."""
    board = get("odds", fixtureId=fixture_id,
                bookmakers="fanduel," + ",".join(RIVALS)).get("bookmakerOdds", {})
    if "fanduel" not in board or not all(r in board for r in RIVALS):
        return 0, []
    fd = active(board["fanduel"])
    rivals = [active(board[r]) for r in RIVALS]
    shared = [k for k in fd if all(k in r for r in rivals)]
    wins = []
    for key in shared:
        best_rival = max(r[key] for r in rivals)
        if fd[key] > best_rival:
            wins.append((round((fd[key] / best_rival - 1) * 100, 2), key, fd[key], best_rival))
    return len(shared), sorted(wins, reverse=True)

for fix in upcoming(132)[:6]:                          # 132 = NBA, 31 = NFL, 234 = NHL
    time.sleep(1)
    shared, wins = fanduel_best(fix["fixtureId"])
    print(f"{fix['participant1Name']} v {fix['participant2Name']}: "
          f"FanDuel best on {len(wins)} of {shared} shared prices")
    for edge, (mid, oid, pkey), fd_price, rival in wins[:2]:
        print(f"  market {mid} outcome {oid}: FanDuel {fd_price} vs best rival {rival} (+{edge}%)")

On the NBA slate of 21 November 2026, FanDuel beat both rivals on 85 of 264 shared prices across six fixtures. The biggest gap was 8.93% on Dallas Mavericks v LA Clippers. Most of the wins sat on team-total and spread rungs, not the moneyline. A price above both rivals is a lead, not a bet: check how old it is with changedAt before you act. For a scanner that de-vigs a full consensus instead of one sharp book, see consensus odds from 300+ bookmakers.

Frequently Asked Questions

Which provider is best for FanDuel odds?

OddsPapi, if you want FanDuel prices, FanDuel history and the Pinnacle line on a free key. SportsGameOdds lists FanDuel on its free plan but puts historical data and Pinnacle on its $299 Pro plan; odds-api.io plans start at £49 a month for 2 bookmakers; we found no FanDuel page at OpticOdds. Public pages read 21 November 2026.

Does FanDuel have a public API?

No. FanDuel publishes no self-serve odds API, developer portal or API key for app developers. OddsPapi carries FanDuel odds under the slug fanduel, with 300+ other bookmakers in the same REST API.

Can I scrape FanDuel for odds data?

Scraping violates the FanDuel Terms of Service, breaks when the front end changes, and records only what you saw while it ran. An aggregator API gives you the same prices with the history already stored.

What FanDuel markets does OddsPapi cover?

Moneylines, spreads, totals, half and quarter lines, alternate lines and player props on the NBA, NFL and NHL. On 21 November 2026, FanDuel carried 625 to 662 markets with a live price on each of six NBA fixtures.

Can I get historical FanDuel odds?

Yes. /v4/historical-odds returns every stored FanDuel snapshot on a played fixture, on the free plan. On 14 NFL Week 11 fixtures, FanDuel closed the moneyline at a 4.09% median margin, against 4.31% at DraftKings and 2.70% at Pinnacle.

How much does it cost to access FanDuel odds through OddsPapi?

The free plan covers every sport and bookmaker, FanDuel included, with 250 requests per month. WebSocket streaming comes with the B2B plan.

Shop FanDuel Against the Rest of the Board

Every call in this guide runs on the free key: 300+ bookmakers in the catalogue, free historical odds for the closing-line check, native player-prop markets keyed by player, and a WebSocket feed when polling gets too slow.

Get a free API key and run Step 4 on tonight’s NBA slate.