FanDuel API
FanDuel Sportsbook 球員投注項目、賠率線和價格,以整潔的 JSON 格式呈現,並包含每次賠率線和價格變動的歷史紀錄。工具:list_props、line_move、prop_history、recent_changes、list_events。可在 fanduelapi.com 免費取得 API 金鑰。獨立服務,與 FanDuel 無關。
託管 MCP 伺服器
npx add-mcp 'https://fanduelapi.com/api/mcp'可安裝到 Claude Code、Codex、Cursor 等客戶端
文件
Docs
FanDuel Sportsbook odds API for developers. Real-time player props, moneylines, spreads, totals, alternates, futures, soccer and DFS salaries in one JSON feed, with the history of every line move. REST, webhooks and MCP. Free tier, no card.
Authentication
Create a key in your dashboard and send it on every request.
Authorization: Bearer fd_...
SDKs
Open-source clients for Python and JavaScript, and a stdio MCP server, all MIT licensed. Examples are on the SDKs page.
pip install fanduelapi npm install fanduelapi npx -y fanduelapi-mcp
- Python client: PyPI, source on GitHub
- JavaScript and TypeScript client: npm, source on GitHub
- MCP server (stdio): npm, source on GitHub
Source for all three: github.com/fanduelapi. MCP Registry: com.fanduelapi/server.
MCP
Point any MCP client at the server below. Setup steps for agents are in the agent guide.
https://fanduelapi.com/api/mcp
Watches
A player prop you track, with the line or price move that should alert you.
GET https://fanduelapi.com/api/v1/watches POST https://fanduelapi.com/api/v1/watches GET https://fanduelapi.com/api/v1/watches/{id} PATCH https://fanduelapi.com/api/v1/watches/{id} DELETE https://fanduelapi.com/api/v1/watches/{id}
| Field | Type | Required | Description |
|---|---|---|---|
| player | text | Yes | Player name as FanDuel lists it |
| stat | points, rebounds, assists, threes, pra, other | Yes | Which prop market |
| line | number | No | Line you want to be told about |
| note | text | No | Why you are watching it |
Errors and limits
Errors return a JSON body with an error code and message. 401 means the key is invalid, 402 means a plan record limit, 422 means invalid fields, and 429 means a rate or monthly limit.
The machine-readable reference is at /openapi.json, and /llms-full.txt has the whole reference as text.