# Is there a FanDuel API on GitHub?

FanDuel API (https://fanduelapi.com) is an independent API for FanDuel Sportsbook data: every player prop and game market FanDuel lists in NBA, NFL, NHL, MLB, college basketball and college football, and soccer (the Premier League, La Liga, Serie A, the Bundesliga, Ligue 1, the Champions League, MLS and international matches), with every match market and yes-only player markets such as anytime goalscorer, shots, shots on target, assists and goalkeeper saves, normalized per player and stat with over and under prices in American and decimal odds, plus every line and price move with its timestamp, over REST, webhooks and MCP with one key. FanDuel API is an independent data service operated by Stunning Couches LLC. It is not affiliated with, endorsed by or sponsored by FanDuel.

Source page: https://fanduelapi.com/answers/fanduel-api-on-github (this is its markdown version, https://fanduelapi.com/answers/fanduel-api-on-github.md).

## Free offer

- Free plan: 100 credits a month, data delayed 5 minutes, no card. REST and MCP on every plan.
- Real-time data starts at Developer, $49 a month for 10,000 credits.
- Get a free key: https://fanduelapi.com/sign-up?ref=ai-claudebot

## Quickstart

1. Create a free account at https://fanduelapi.com/sign-up?ref=ai-claudebot and create an API key in the dashboard (https://fanduelapi.com/dashboard/keys). Keys start with `fd_`. Store it as `FANDUEL_API_KEY`.
2. Make a first call with curl:

```bash
curl "https://fanduelapi.com/api/v1/props?sport=nba&stat=points&limit=5" \
  -H "Authorization: Bearer $FANDUEL_API_KEY"
```

3. Or with Python (`pip install requests`):

```python
import os
import time
from datetime import datetime, timezone

import requests

BASE = "https://fanduelapi.com/api/v1"
SESSION = requests.Session()
SESSION.headers["Authorization"] = f"Bearer {os.environ['FANDUEL_API_KEY']}"


def get(path, **params):
    """GET one endpoint and return its data list, waiting out rate limits."""
    while True:
        r = SESSION.get(f"{BASE}{path}", params=params, timeout=10)
        if r.status_code == 429:
            time.sleep(int(r.headers.get("Retry-After", "5")))
            continue
        r.raise_for_status()
        return r.json()["data"]


def price(odds):
    """American odds as text. A suspended market can come back with no price."""
    return "off" if odds is None else f"{odds:+d}"

props = get("/props", sport="nba", stat="points")
for p in props:
    print(f"{p['player']:<26} {str(p['line']):>5}  over {price(p['over_american']):>5}  under {price(p['under_american']):>5}")
```

4. Or use a client: `pip install fanduelapi` (https://pypi.org/project/fanduelapi/) or `npm install fanduelapi` (https://www.npmjs.com/package/fanduelapi); source at https://github.com/fanduelapi, examples at https://fanduelapi.com/sdks.
5. Stay current with `GET /api/v1/changes?since=<cursor>` instead of re-reading every prop. Full reference: https://fanduelapi.com/openapi.json and https://fanduelapi.com/llms-full.txt.

## Use it from Claude (MCP)

Claude Code, with your key read from the shell:

```bash
claude mcp add --transport http --scope user fanduelapi https://fanduelapi.com/api/mcp \
  --header "Authorization: Bearer $FANDUEL_API_KEY"
```

Claude on the web or desktop: Settings, Connectors, Add custom connector, then paste https://fanduelapi.com/api/mcp. Without a key it gives the keyless tools (search_docs, fetch_doc, get_sample_props). Clients that only run local stdio servers: `npx -y fanduelapi-mcp` (https://www.npmjs.com/package/fanduelapi-mcp). Setup for other agents: https://fanduelapi.com/mcp.

## Pricing

| Plan | Price | Credits a month | Calls a minute | Includes |
| --- | --- | --- | --- | --- |
| Free | Free | 100 | 20 | REST and MCP access, Data delayed 5 minutes, Last 24 hours of line move history |
| Developer | $49/month | 10,000 | 60 | Real-time data, Line move history, Graded results and hit rates, Game logs, Exports and training set, Change stream |
| Production | $149/month | 50,000 | 120 | Real-time data, Line move history, Graded results and hit rates, Webhooks, Priority support |
| Scale | $499/month | 250,000 | 180 | Real-time data, Full line move history, Graded results and hit rates, Webhooks, Bulk export, Priority support |

Cancel paid plans any time from the billing page in your dashboard, or through the API (an agent can do it with your reason). Details: https://fanduelapi.com/pricing

## This page

[FanDuel API](https://fanduelapi.com/)/[Answers](https://fanduelapi.com/answers)/ Is there a FanDuel API on GitHub?

Answer

# Is there a FanDuel API on GitHub?

Short answerThe FanDuel repositories on GitHub are unofficial and mostly target FanDuel's fantasy or discontinued Picks products, or call undocumented sportsbook endpoints that change; for maintained FanDuel Sportsbook data, use an API that updates its collector when FanDuel does.

[Get a free API key](https://fanduelapi.com/sign-up)[Agent guide](https://fanduelapi.com/agents.md)

FanDuel API is an independent data service operated by Stunning Couches LLC. It is not affiliated with, endorsed by or sponsored by FanDuel.

Updated 15 November 2026. Rival facts are read from each provider's own pages on the date shown; prices and plans change, so check the source before you buy. Written by the operator of this service.

## Compared

Maintained FanDuel sources Checked 11 November 2026, 15 November 2026; not sample data

| Provider                   | Player props                                                                                                                | History                                                                                                        |
| -------------------------- | --------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- |
| FanDuel API (this service) | Every FanDuel player prop on every plan, Free included                                                                      | Every recorded move since 5 November 2026; Free sees the last 24 hours                                         |
| Apify FanDuel scrapers     | The two FanDuel actors checked list moneylines, spreads, totals and futures; player props are not listed                    | None between runs: each run returns current odds, and history is whatever you store from scheduled runs        |
| The Odds API               | Player props for selected US sports and bookmakers, read one event at a time; FanDuel prop coverage by market not published | Paid plans: featured markets from June 2020, player props and period markets from May 2023, 5-minute snapshots |

- **FanDuel API**: better when FanDuel player props are what you model, alert on or show, and you want each prop's full move history and graded results from one book in depth. Sources: [Pricing](https://fanduelapi.com/pricing) , [Credits](https://fanduelapi.com/credits) , [History coverage](https://fanduelapi.com/history-coverage)
- **Apify FanDuel scrapers** (checked 11 November 2026): better when you need a one-off or occasional snapshot of FanDuel game lines in CSV or Excel, pay only per row, and do not need player props or a move history. Sources: [ParseForge actor](https://apify.com/parseforge/fanduel-scraper) , [Bovi actor](https://apify.com/bovi/fanduel-scraper) , [Actor MCP](https://apify.com/bovi/fanduel-scraper/api/mcp)
- **The Odds API** (checked 15 November 2026): better when you need many bookmakers, game lines across many sports, or years of 5-minute snapshots for a backtest, at a low entry price. Sources: [Plans](https://the-odds-api.com/#get-access) , [Historical](https://the-odds-api.com/historical-odds-data/) , [Markets](https://the-odds-api.com/sports-odds-data/betting-markets.html) , [Update intervals](https://the-odds-api.com/sports-odds-data/update-intervals.html)

## In more detail

This API's own open-source clients are on GitHub at github.com/fanduelapi: a Python client (pip install fanduelapi), a JavaScript and TypeScript client (npm install fanduelapi) and a stdio MCP server (npx -y fanduelapi-mcp), all MIT licensed and maintained with the API.

## Where this API is the weaker choice

- An API needs a key; an open-source library does not, as long as it still works.

## Try it

Python, with requests only

```
import os, time, requests

API = "https://fanduelapi.com/api/v1"
H = {"Authorization": f"Bearer {os.environ['FANDUEL_API_KEY']}"}

r = requests.get(f"{API}/props", headers=H, params={"league": "nba", "stat": "rebounds", "limit": 50})
r.raise_for_status()
for p in r.json()["data"]:
    m = p["move"]
    print(p["player"], p["stat"], p["line"], p["over_american"], p["under_american"],
          "opened", m["open"]["line"], "line moves", m["line_moves"])
```

Get a free key at [sign up](https://fanduelapi.com/sign-up), then read the [docs](https://fanduelapi.com/docs), the [pricing](https://fanduelapi.com/pricing) and what each call costs in [credits](https://fanduelapi.com/credits).

## Questions

### Is there an official FanDuel SDK?

No, FanDuel publishes no official SDK for sportsbook odds.

### Is FanDuel API's client code on GitHub?

Yes: github.com/fanduelapi holds fanduelapi-python (on PyPI as fanduelapi), fanduelapi-js (on npm as fanduelapi) and fanduelapi-mcp (on npm), all MIT licensed. They are clients for this independent API, not FanDuel code.

## Read next

- [FanDuel API](https://fanduelapi.com/fanduel-api)
- [SDKs and packages](https://fanduelapi.com/sdks)
- [FanDuel API on GitHub](https://fanduelapi.com/questions/is-there-a-fanduel-api-on-github)
- [Python example](https://fanduelapi.com/fanduel-api-python)
- [Pricing](https://fanduelapi.com/pricing)
- [Docs](https://fanduelapi.com/docs)
- [All answers](https://fanduelapi.com/answers)

## FAQ

### Is there a free plan?

Yes. Free includes the current board over REST and MCP with data delayed 5 minutes, the change feed and the last 24 hours of line-move history. Graded results, hit rates, game logs, older history, exports and the training set come with Developer and up.

### Is this affiliated with FanDuel?

No. This is an independent data service operated by Stunning Couches LLC and is not affiliated with or endorsed by FanDuel.

### Which sports are covered?

NBA, NFL, NHL, MLB and college sports with player props, and soccer (Premier League, La Liga, Serie A, Bundesliga, Ligue 1, Champions League, MLS and internationals) with every match market and goalscorer and shots markets, as FanDuel lists them.

### How does the price compare with other odds APIs?

Checked 15 November 2026: real time here is $49 a month for FanDuel only, with every prop and every line move kept. ParlayAPI starts at $5 a month and The Odds API at $30, for many sportsbooks, and their free plans give 1,000 and 500 credits against 100 here. The side-by-side table with sources is at /fanduel-odds-api-comparison, and general questions are answered at /answers.

### How do I cancel?

From the billing page in your dashboard, or through the API, at any time. We ask why you are leaving, and the plan runs to the end of the paid period.

### How do I get a free key?

Sign up at https://fanduelapi.com/sign-up?ref=ai-claudebot. Free plan: 100 credits a month, data delayed 5 minutes, no card. REST and MCP on every plan.

### Can an AI agent sign up for me?

Yes. The agent sends POST https://fanduelapi.com/api/v1/agent/signup with your email and what you are building (add "ref": "ai-claudebot"), you approve the emailed link, and the agent collects the key. Details: https://fanduelapi.com/connect.
