# FanDuel API & Odds Scraper: Player Props, Odds, Line Moves (`pp-api/fanduel-odds-api`) Actor

FanDuel API for sportsbook odds and player props: every prop with line, over/under prices in American and decimal, where it opened and how often it moved, plus moneylines, spreads, totals and alternates. A FanDuel scraper alternative: no proxies. Free preview.

- **URL**: https://apify.com/pp-api/fanduel-odds-api.md
- **Developed by:** [PP API Inc.](https://apify.com/pp-api) (community)
- **Categories:** Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.10 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

### FanDuel API: sportsbook odds, player props and line moves

This Actor gives you FanDuel Sportsbook as a clean dataset: every player prop with its line, over and under prices in American and decimal odds, where it opened and how many times the line and price moved, plus every game market (moneyline, spread, total, alternates, specials) and futures. It reads from [fanduelapi.com](https://fanduelapi.com), a FanDuel odds API, so you get structured rows instead of a fragile FanDuel scraper.

**Try it with no key.** Leave the API key empty and run: you get 10 real FanDuel player props (delayed about 5 minutes) with opening and current lines and prices.

#### What you get

| Mode | What it returns |
|---|---|
| Player props | `player_name`, `stat`, `line`, `over_american`, `under_american`, decimal prices, `open_line`, opening prices, no-vig fair probability now and at open, `line_moves`, `price_moves`, `price_direction`, game and start time. Optionally the full history of each prop. |
| Game odds and all markets | Moneyline, spread and total for the game and each period, alternate lines, ladders, first scorer, team props and specials, with American and decimal odds and a fair no-vig probability where outcomes exclude each other. |
| Games | Upcoming and live games with how many props each carries. |
| Futures | Futures markets by league. |

Sports: NBA, NFL, NHL, MLB, college basketball and college football.

#### Why an API instead of a FanDuel scraper

A scraper calls FanDuel at the moment it runs, needs proxies, breaks when the site changes, and only ever sees the current price. This Actor reads a continuously collected record, so every row also tells you where the line opened, how often it moved and which way the price is going. Runs take seconds, with no proxies.

The same data is a REST API ([docs](https://fanduelapi.com/docs)) and a remote MCP server for Claude, ChatGPT and Cursor at `https://fanduelapi.com/api/mcp`.

#### How to use it

1. Run it with no key to see real props.
2. Get a free API key at [fanduelapi.com/sign-up](https://fanduelapi.com/sign-up). There is a free plan and it needs no card.
3. Paste the key, choose player props or game odds and a sport, and run. Export as JSON, CSV or Excel, or schedule it.

Each page of up to 200 rows is one request on your fanduelapi.com plan.

#### FAQ

**Does FanDuel have a public API?** No public odds API. This Actor and fanduelapi.com give you FanDuel Sportsbook lines as structured data.

**How fresh are the odds?** Every row carries `observed_at` and `changed_at`. The free plan is delayed about 5 minutes; paid plans are current.

**Can I get FanDuel line movement?** Yes: each prop includes its move summary, and the companion **FanDuel Line Movement** Actor by the same publisher returns recently moved props, the full change feed and prop history.

Independent data service, not affiliated with or endorsed by FanDuel. Information only, not betting advice.

# Actor input Schema

## `apiKey` (type: `string`):

Your fanduelapi.com API key. Free plan, no card: https://fanduelapi.com/sign-up. Leave empty for a free preview of 10 real player props.

## `mode` (type: `string`):

Player props, or every game market (moneyline, spread, total, alternates, specials).

## `sport` (type: `string`):

nba, nfl, nhl, mlb, ncaab or ncaaf. Leave empty for all.

## `league` (type: `string`):

Optional league code as FanDuel lists it, such as NBA.

## `player` (type: `string`):

Optional part of a player name.

## `stat` (type: `string`):

Player props only: points, rebounds, assists, threes, pra and the other stats FanDuel lists.

## `marketType` (type: `string`):

Game odds and futures: moneyline, spread, total, player_prop or a FanDuel market type.

## `period` (type: `string`):

Game odds: game, or a period such as q1 or h1.

## `live` (type: `string`):

Game odds only. Leave empty for both.

## `status` (type: `string`):

Optional market status.

## `maxItems` (type: `integer`):

Stop after this many rows. Each page of up to 200 rows is one API request on your plan.

## `includeHistory` (type: `boolean`):

Player props only: add every recorded line and price change. One extra request per prop.

## `maxHistoryProps` (type: `integer`):

History is fetched for at most this many props.

## `includeRaw` (type: `boolean`):

Player props only: keep the full API object under raw.

## Actor input object example

```json
{
  "mode": "props",
  "sport": "nba",
  "maxItems": 1000,
  "includeHistory": false,
  "maxHistoryProps": 25,
  "includeRaw": false
}
```

# Actor output Schema

## `results` (type: `string`):

All rows from this run as a dataset.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "sport": "nba"
};

// Run the Actor and wait for it to finish
const run = await client.actor("pp-api/fanduel-odds-api").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "sport": "nba" }

# Run the Actor and wait for it to finish
run = client.actor("pp-api/fanduel-odds-api").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "sport": "nba"
}' |
apify call pp-api/fanduel-odds-api --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,pp-api/fanduel-odds-api"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/fc6jYoFoV27qdT1s8/builds/P9Q3Y9ymfcGdfkm6l/openapi.json
