FanDuel API: How to Access FanDuel Odds Without Official API

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

Does FanDuel have a public API? No. FanDuel does not offer a public odds API, developer portal, or API key program. Their data is locked behind enterprise contracts, affiliate-only feeds, and internal systems that individual developers will never see.

If you have searched for “FanDuel API,” “FanDuel odds API,” or “FanDuel sportsbook API documentation,” you already know this. The official answer is a dead end. But the data itself is not locked — you just need a different path to it.

OddsPapi aggregates FanDuel odds alongside 350+ other bookmakers (including sharps like Pinnacle and Singbet) into a single REST API. Free tier. No enterprise contract. No scraping. Here is how to get FanDuel data in under 5 minutes.

Why FanDuel Has No Public API

FanDuel operates as a US-regulated sportsbook. Their odds data is proprietary, and they have zero incentive to let third-party developers access it freely:

  • State-by-state regulation: FanDuel operates under strict US state licensing. Each jurisdiction controls what data can be shared and how.
  • Flutter Entertainment controls the data: FanDuel is owned by Flutter (also owns Betfair, PokerStars). They keep odds data within their ecosystem.
  • Competitive moat: FanDuel’s pricing, promotions, and market depth are competitive advantages they protect aggressively.

This is the same playbook as DraftKings, Pinnacle, and Bet365. The biggest sportsbooks simply do not offer public APIs. But aggregators like OddsPapi collect this data through licensed feeds and make it available through a single, standardized endpoint.

Scraping vs. Enterprise vs. OddsPapi

Method FanDuel Data Cost Reliability Legal Risk
Scraping FanDuel Partial (HTML parsing) Free (your time) Breaks constantly Violates ToS
Enterprise / Affiliate Feed Full $5,000+/month Stable None (contracted)
OddsPapi API Full (150+ markets per fixture) Free tier available 99.9% uptime, licensed feeds None

Scraping is fragile, rate-limited, and will get your IP banned. Enterprise feeds cost thousands per month and require a business relationship. OddsPapi gives you the same data through a clean REST API with a free tier — no contracts, no scraping, no ToS violations.

What FanDuel Data Is Available Through OddsPapi

OddsPapi pulls FanDuel odds across every major US sport. Here is the current coverage:

Sport FanDuel Markets Coverage
NBA 149 (moneylines, spreads, totals, player props) Full season + playoffs
NFL 120+ (game lines, player props, team totals) Full season + Super Bowl
MLB 50+ (run lines, totals, moneylines, props) Full season + postseason
NHL 40+ (puck lines, totals, moneylines) Full season + playoffs
College (NCAAB/NCAAF) 30+ (spreads, totals, moneylines) Regular season + March Madness

That is not just moneylines. OddsPapi captures the full depth of FanDuel markets — spreads, totals, first-half lines, player props, and alternate lines. All updated in real time through licensed data feeds.

Python Tutorial: Get FanDuel Odds via OddsPapi

Here is the complete workflow. You will go from zero to pulling FanDuel NBA odds in about 3 minutes.

Step 1: Get Your Free API Key

Sign up at oddspapi.io — the free tier includes 250 requests per month. No credit card required.

Step 2: Authenticate

import requests

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

# All requests use the apiKey query parameter
params = {"apiKey": API_KEY}

# Test your connection
response = requests.get(f"{BASE_URL}/sports", params=params)
print(response.json())
# Returns: [{"sportId": 10, "slug": "soccer", "sportName": "Soccer"}, ...]

Important: The API key goes in the query parameter (?apiKey=KEY), not in headers. This is different from most APIs you have used.

Step 3: Find NBA Fixtures

from datetime import datetime, timedelta, timezone

# NBA = sportId 11
# Fixtures require a date range (max 10 days apart)
now = datetime.now(timezone.utc)
params = {
    "apiKey": API_KEY,
    "sportId": 11,
    "status": "prematch",
    "from": now.strftime("%Y-%m-%dT%H:%M:%SZ"),
    "to": (now + timedelta(days=3)).strftime("%Y-%m-%dT%H:%M:%SZ")
}

response = requests.get(f"{BASE_URL}/fixtures", params=params)
fixtures = response.json()

# Filter to NBA specifically
nba_fixtures = [
    f for f in fixtures
    if f.get("tournamentSlug") == "nba"
]
print(f"Found {len(nba_fixtures)} NBA fixtures")

for fix in nba_fixtures[:5]:
    print(f"  {fix['participant1Name']} vs "
          f"{fix['participant2Name']} -- {fix['startTime']}")

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 Odds for a Fixture

# Pick a fixture
fixture_id = nba_fixtures[0]["fixtureId"]

# Get odds from all bookmakers
response = requests.get(f"{BASE_URL}/odds", params={
    "apiKey": API_KEY,
    "fixtureId": fixture_id
})
odds_data = response.json()

# Extract FanDuel odds
bookmaker_odds = odds_data["bookmakerOdds"]

if "fanduel" in bookmaker_odds:
    book = bookmaker_odds["fanduel"]
    book_markets = book["markets"]
    print(f"FanDuel markets available: {len(book_markets)}")

    # Market 111 = Moneyline (Home/Away)
    if "111" in book_markets:
        moneyline = book_markets["111"]["outcomes"]
        home = moneyline["111"]["players"]["0"]["price"]
        away = moneyline["112"]["players"]["0"]["price"]
        print(f"Moneyline: Home {home} | Away {away}")

The odds JSON is nested. The path to any price is: bookmakerOdds → [slug] → markets → [marketId] → outcomes → [outcomeId] → players → "0" → price. Once you understand this structure, every bookmaker and every market follows the same pattern.

Step 5: Compare FanDuel vs. Sharp Lines

This is where it gets interesting. With OddsPapi, you are not limited to FanDuel — you get 350+ bookmakers in the same response. Compare FanDuel (soft) against Pinnacle (sharp) to find value:

# Compare FanDuel vs Pinnacle on the same fixture
def compare_moneylines(odds_data, market_id="111"):
    bk = odds_data["bookmakerOdds"]

    books = {"fanduel": "FanDuel", "pinnacle": "Pinnacle"}
    results = {}

    for slug, label in books.items():
        if slug in bk and market_id in bk[slug]["markets"]:
            outcomes = bk[slug]["markets"][market_id]["outcomes"]
            results[label] = {
                "home": outcomes["111"]["players"]["0"]["price"],
                "away": outcomes["112"]["players"]["0"]["price"]
            }

    return results

comparison = compare_moneylines(odds_data)
for book_name, prices in comparison.items():
    print(f"{book_name}: Home {prices['home']} | Away {prices['away']}")

# Example output:
# FanDuel:   Home 1.500 | Away 2.680
# Pinnacle: Home 1.478 | Away 2.850

Pinnacle offers 2.850 on the underdog while FanDuel offers 2.680. That 6% gap is the soft book margin. Having both in one API call is the entire point.

FanDuel vs. Pinnacle: Why You Need Both

FanDuel is a “soft” bookmaker — they price lines for recreational bettors and build in higher margins. Pinnacle is a “sharp” bookmaker — they price lines for professionals with razor-thin margins. Here is why that matters:

Factor FanDuel (Soft) Pinnacle (Sharp)
Target Market Recreational bettors Professional bettors
Margin (Overround) 5-8% 2-3%
Line Accuracy Follows market Sets the market
Account Limits Limits winning bettors No limits
Best For Finding +EV mispricing True odds benchmark

Pinnacle lines are the closest thing to “true probability” in sports betting. When FanDuel prices diverge from Pinnacle, that is a signal — either FanDuel has mispriced the market, or they are shading the line to manage recreational action. Either way, you need both data sets to exploit it.

OddsPapi gives you both in one API call. No need to maintain separate scrapers, pay for multiple data feeds, or reconcile different data formats.

Build a FanDuel Odds Monitor

Here is a practical script that monitors FanDuel lines and flags when they diverge from Pinnacle:

import requests
from datetime import datetime, timedelta, timezone

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

def get_nba_fixtures():
    now = datetime.now(timezone.utc)
    resp = requests.get(f"{BASE_URL}/fixtures", params={
        "apiKey": API_KEY,
        "sportId": 11,
        "status": "prematch",
        "from": now.strftime("%Y-%m-%dT%H:%M:%SZ"),
        "to": (now + timedelta(days=2)).strftime(
            "%Y-%m-%dT%H:%M:%SZ"
        )
    })
    return [
        f for f in resp.json()
        if f.get("tournamentSlug") == "nba"
        and f.get("hasOdds")
    ]

def find_value_gaps(fixture_id, threshold=0.05):
    resp = requests.get(f"{BASE_URL}/odds", params={
        "apiKey": API_KEY,
        "fixtureId": fixture_id
    })
    bk = resp.json().get("bookmakerOdds", {})

    if "fanduel" not in bk or "pinnacle" not in bk:
        return []

    book_markets = bk["fanduel"]["markets"]
    pin_markets = bk["pinnacle"]["markets"]

    gaps = []
    for market_id in book_markets:
        if market_id not in pin_markets:
            continue
        book_outcomes = book_markets[market_id]["outcomes"]
        pin_outcomes = pin_markets[market_id]["outcomes"]

        for outcome_id in book_outcomes:
            if outcome_id not in pin_outcomes:
                continue
            book_price = (book_outcomes[outcome_id]
                         ["players"]["0"]["price"])
            pin_price = (pin_outcomes[outcome_id]
                        ["players"]["0"]["price"])

            if book_price > 1 and pin_price > 1:
                edge = (book_price - pin_price) / pin_price
                if abs(edge) > threshold:
                    gaps.append({
                        "market": market_id,
                        "outcome": outcome_id,
                        "book_price": book_price,
                        "pin_price": pin_price,
                        "edge": round(edge * 100, 2)
                    })

    return sorted(
        gaps, key=lambda x: abs(x["edge"]), reverse=True
    )

# Run the monitor
fixtures = get_nba_fixtures()
print(f"Scanning {len(fixtures)} NBA fixtures...\n")

for fix in fixtures[:10]:
    name = (f"{fix['participant1Name']} vs "
            f"{fix['participant2Name']}")
    gaps = find_value_gaps(fix["fixtureId"])
    if gaps:
        print(f"{name}")
        for g in gaps[:3]:
            direction = "+" if g["edge"] > 0 else ""
            print(f"  Market {g['market']}: "
                  f"FanDuel {g['book_price']} vs "
                  f"PIN {g['pin_price']} "
                  f"({direction}{g['edge']}%)")
        print()

This script scans every upcoming NBA game and finds where FanDuel is offering better odds than Pinnacle — potential value bets that most bettors miss because they only look at one sportsbook.

Frequently Asked Questions

Does FanDuel have a public API?

No. FanDuel does not offer a public API, developer portal, or self-serve API key. Their data is available only through enterprise partnerships and affiliate agreements. OddsPapi aggregates FanDuel odds through licensed data feeds, making it accessible via a standard REST API with a free tier.

Can I scrape FanDuel for odds data?

Technically possible, but it violates FanDuel’s Terms of Service, breaks frequently when they update their frontend, and will get your IP rate-limited or banned. Using an aggregator API like OddsPapi is more reliable, legal, and maintainable.

What FanDuel markets does OddsPapi cover?

OddsPapi pulls 150+ FanDuel markets per fixture for major US sports (NBA, NFL, MLB, NHL), including moneylines, spreads, totals, player props, and alternate lines. All markets are updated in real time.

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

OddsPapi offers a free tier with 250 requests per month — enough to build and test your application. Paid plans start at $29/month for higher rate limits and WebSocket access.

Can I get historical FanDuel odds?

Yes. OddsPapi includes free historical odds data on the free tier. You can backtest models against FanDuel closing lines without paying extra — something most competitors charge thousands for.

Is OddsPapi data real-time?

Yes. REST API responses reflect the latest available odds (sub-second latency on most markets). For true streaming data, OddsPapi also offers WebSocket connections that push updates as they happen.

Stop Searching for a FanDuel API That Does Not Exist

FanDuel will never give you a public API key. That is not going to change. But if what you actually need is FanDuel odds data — moneylines, spreads, props, real-time updates — OddsPapi already has it.

350+ bookmakers. Sharps like Pinnacle and Singbet. Softs like DraftKings and FanDuel. Crypto books like 1xBet. All through one REST API with a free tier.

Get your free API key at oddspapi.io — FanDuel odds in your first API call.