books

How to get DraftKings and FanDuel odds with an API

By · Published · Updated · 4 min read

You can get DraftKings and FanDuel odds as JSON with four calls to the PricedOdds API: pick the two books, list the games, request the odds, request the props. Both books fit on the Solo plan at $39 a month.

PricedOdds is an independent data service. It is not affiliated with DraftKings or FanDuel, and this guide covers the PricedOdds API only.

What DraftKings and FanDuel data can you get?

Game lines, player props and live prices from each book. DraftKings had data in 243 leagues and FanDuel in 141 in the coverage file generated on November 28, 2026, 17:22 UTC.

DraftKingsFanDuel
Book slugdraftkingsfanduel
Leagues with data243141
Game markets208
Player prop types3226
Periods1h, 1q, 2h, game1h, 1q, 2h, game, regulation
Pre-matchYesYes
LiveYesYes
Events with prices1145833

Both books include NFL, NCAA Football, NBA, NCAA Basketball, NHL, English Premier League, UEFA Champions League, LaLiga and Serie A. League counts move with the schedule. Source: coverage.json, generated 2026-11-28 17:22 UTC.

Step 1: pick the two books

Start a trial, then set your book selection. You can change it once every 24 hours.

curl -s -X POST "https://api.pricedodds.com/v1/account/books" \
  -H "Authorization: Bearer $PRICEDODDS_API_KEY" -H "Content-Type: application/json" \
  -d '{"books":["draftkings","fanduel"]}'

Step 2: find the game

List events by league. Add q to search by team.

curl -s "https://api.pricedodds.com/v1/events?league=nfl" \
  -H "Authorization: Bearer $PRICEDODDS_API_KEY"

Each event has an id that starts with evt_. Store it. Event IDs are stable and you should not parse them.

Step 3: get the game lines from both books

One call returns both books for the event.

curl -s "https://api.pricedodds.com/v1/events/{id}/odds?markets=moneyline,spread,total" \
  -H "Authorization: Bearer $PRICEDODDS_API_KEY"

The response holds a markets list. Each market has selections, and each selection has a prices list with one entry per book:

{
  "id": "sel_a1b2c3d4e5f6g7h2",
  "side": "home",
  "line": -4.5,
  "prices": [
    { "book": "draftkings", "decimal": 1.909, "american": -110, "implied": 0.5238, "updatedAt": "2026-11-22T18:03:58.911Z", "changedAt": "2026-11-22T17:41:12.305Z" }
  ]
}

That sample is the example from the API reference, not a live price. Each selection also has best, the top price and the book that has it, and fair, a no-vig price. Nothing here is betting advice.

For a half or a quarter, add the period to the market: markets=spread@1h.

Step 4: get the player props

Call the props endpoint with the market keys you want.

curl -s "https://api.pricedodds.com/v1/events/{id}/props?markets=player_passing_yards,player_receptions" \
  -H "Authorization: Bearer $PRICEDODDS_API_KEY"

Which props does each book have?

The two books share 23 prop types. DraftKings has 9 that FanDuel does not, and FanDuel has 3 that DraftKings does not.

Prop types
On both (23)Anytime touchdown, assists, blocks, double-double, goals, interceptions thrown, longest reception, points + assists, passing touchdowns, passing yards, points, points + rebounds, points + rebounds + assists, rebounds + assists, rebounds, receiving yards, receptions, rushing + receiving yards, rushing yards, shots on goal, steals, 3-pointers made, triple-double
DraftKings only (9)Completions, to score or assist, kicking points, longest rush, passing + rushing yards, passing attempts, rushing attempts, shots, steals + blocks
FanDuel only (3)First basket, last touchdown, sacks

Game markets on one book only: DraftKings has 1st_half_team_total_points_away, 1st_half_team_total_points_home, team_total_goals_1st_period_away, team_total_goals_1st_period_home, team_total_goals_2nd_period_away, team_total_goals_2nd_period_home, team_total_goals_3rd_period_away, team_total_goals_3rd_period_home, team_total_points_1st_quarter_away, team_total_points_1st_quarter_home, team_total_points_2nd_quarter_away, team_total_points_2nd_quarter_home, team_total_touchdowns_away, team_total_touchdowns_home, and FanDuel has double_chance, draw_no_bet.

How do I get live DraftKings and FanDuel odds?

Use the same endpoints during the game, or open the WebSocket. The WebSocket sends a snapshot and then each price change.

{"type":"subscribe","leagues":["nfl"],"books":["draftkings","fanduel"],"markets":["moneyline","spread","total"]}

WebSocket is a +$59 a month add-on on Solo. Without it, poll GET /v1/changes at up to 1 request per second.

What does it cost?

Solo covers any 2 books for $39 a month, or $98 with the WebSocket add-on. Props and live odds are included. Every plan starts with a 3-day free trial, and the $1 card verification is refunded immediately. The plan you pick is charged from day 4 unless you cancel before the trial ends. If you need more than two books, Starter covers any 5 for $99 a month. See pricing.

Can I place bets through the API?

No. PricedOdds is a data API and not a sportsbook. The Terms prohibit using the data to accept or price wagers.

The same calls return the other books too: sportsbook odds as JSON with one key. Coverage for FanDuel alone is on the FanDuel API page. For one league at a time, see DraftKings NFL odds through the API. The basketball version is DraftKings NBA odds as JSON. FanDuel has the same pages, starting with FanDuel NFL odds through the API. For basketball, see FanDuel NBA odds as JSON.