# Closing line API for closing line value (CLV)

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/closing-line-api (this is its markdown version, https://fanduelapi.com/answers/closing-line-api.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)/ How do I get closing line data for CLV?

Answer

# How do I get closing line data for CLV?

Short answerFanDuel API grades every FanDuel prop with its closing line, defined as the last read strictly before the game started (or its first in-play read), from $49 a month; ParlayAPI sells historical closing odds at 10 credits a call, and SharpAPI keeps 48 hours of closing odds on Pro.

[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

Closing lines by provider Checked 15 November 2026, 13 November 2026; not sample data

| Provider                   | History                                                                                                        | Cheapest paid plan                                                                 |
| -------------------------- | -------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- |
| FanDuel API (this service) | Every recorded move since 5 November 2026; Free sees the last 24 hours                                         | Developer $49/mo, 10,000 credits                                                   |
| ParlayAPI                  | Lookback by plan where records exist: 48 hours Free, 168 Starter, 720 Pro, 2,160 Business, 8,760 Enterprise    | Starter $5/mo (20,000 credits); Pro $20, Business $40, Enterprise $100, Scale $200 |
| SharpAPI                   | Closing odds for 48 hours on Pro ($229/mo); historical closing odds on Enterprise                              | Hobby $79/mo, 5 books                                                              |
| The Odds API               | Paid plans: featured markets from June 2020, player props and period markets from May 2023, 5-minute snapshots | 20K plan $30/mo (20,000 credits); 100K $59, 5M $119, 15M $249                      |

- **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)
- **ParlayAPI** (checked 15 November 2026): better when you want many books at the lowest monthly price for internal use and can confirm the exact markets you need first; its pricing page says customer-facing display needs a separate agreement. Sources: [Pricing](https://parlay-api.com/pricing)
- **SharpAPI** (checked 13 November 2026): better when you want ready-made expected value, arbitrage and middle scans across several books, not one book's raw props and history. Sources: [Pricing](https://docs.sharpapi.io/en/pricing/) , [FanDuel page](https://sharpapi.io/sportsbooks/fanduel-odds-api) , [MCP](https://docs.sharpapi.io/en/sdks/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

CLV compares the price you took with the closing price, both without the vig. Beating the close consistently is the most-used sign of an edge before results are significant.

## Where this API is the weaker choice

- One sportsbook: FanDuel API collects FanDuel only. For line shopping across many books a multi-book API is the better fit; our compare endpoint adds only the Novig fair price, the DraftKings price and the PrizePicks line.
- Short history: our collector started on 5 November 2026, and nothing is backfilled or imported. For multi-season backtests, The Odds API has player props snapshots since May 2023.

## Try it

Closing line and result per prop

```
import os, time, requests

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

r = requests.get(f"{API}/results", headers=H, params={"league": "nba", "stat": "points", "limit": 50})
for g in r.json()["data"]:
    close = g["closing"] or {}
    print(g["player"], "close", close.get("line"), "actual", g["actual"], g["result"])
```

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

### What is closing line value?

The difference between the no-vig probability of the price you bet and the no-vig probability at the close. Positive CLV means you got a better price than the market settled on.

## Read next

- [Measure CLV against FanDuel](https://fanduelapi.com/docs/closing-line-value)
- [What is closing line value?](https://fanduelapi.com/questions/what-is-closing-line-value)
- [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.
