# FanDuel Odds Scraper - $0.35 / 1000 Events (`scrapeunblocker/fanduel-scraper`) Actor

FanDuel sportsbook odds as JSON: a league or sport page's games with moneyline, spread and total lines in American and decimal form, or one game's full board with player props. $0.35 per 1000 events, $1.50 per 1000 full boards.

- **URL**: https://apify.com/scrapeunblocker/fanduel-scraper.md
- **Developed by:** [Scrapeunblocker](https://apify.com/scrapeunblocker) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.35 / 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 Odds Scraper

Scrape **FanDuel** sportsbook public odds as clean JSON. Get a **league or sport page's games** with moneyline, spread and total lines, or one game's **full market board** with player props, in **American and decimal form**.

### Features

- **Leagues and sports** - NBA, NFL, MLB, NHL, college basketball, soccer leagues, UFC, tennis and more.
- **Full board per game** - every market of a tab, including player points, threes, quarters and more.
- **Both price formats** - American, decimal and fractional odds as numbers, with the implied probability.
- **Per US state** - read the lines of any state FanDuel operates in.
- **Public data only** - the odds anyone can see without an account.

### Use cases

- **Odds comparison and arbitrage** - compare FanDuel lines with other books.
- **Player prop research** - per-player milestones and totals.
- **Line tracking** - run on a schedule to build a price history.

### Input

| Field | Type | Default | Description |
|-------|------|---------|-------------|
| `mode` | string | `leagues` | `leagues` (games of a page) or `events` (full board per game). |
| `leagues` | array | nba, nfl, soccer | Names (`nba`, `nfl`, `mlb`, `nhl`, `ncaab`, `soccer`, `epl`, `ucl`, `ufc`, `tennis`) or a numeric FanDuel sport id. |
| `pages` | array | - | Optional FanDuel page ids. |
| `eventIds` | array | - | Full board mode: event ids. Empty to take the games of the leagues. |
| `tab` | string | - | Full board mode: a tab such as `player-points`. Empty for the popular tab. |
| `state` | string | `nj` | US state code whose lines to read. |
| `maxEvents` | integer | `20` | Events to take from each page, soonest first (1-2000). |
| `includeFutures` | boolean | `false` | Also return outright and futures markets. |
| `proxyCountry` | string | - | Optional two-letter country code the requests are sent from. |

### Output

One result per game:

```json
{
  "target": "nba",
  "state": "nj",
  "id": 36290204,
  "name": "Los Angeles Lakers @ Atlanta Hawks",
  "home": "Atlanta Hawks",
  "away": "Los Angeles Lakers",
  "sport": "Basketball",
  "competition": "NBA",
  "startTime": "2026-11-10T00:10:00Z",
  "url": "https://sportsbook.fanduel.com/basketball/nba/los-angeles-lakers-@-atlanta-hawks-36290204",
  "markets": [{
    "name": "Moneyline",
    "type": "MONEY_LINE",
    "status": "OPEN",
    "margin": 0.0414,
    "selections": [{"name": "Atlanta Hawks", "side": "HOME", "american": -118, "decimal": 1.847, "fractional": "50/59", "impliedProbability": 0.5414}]
  }]
}
```

Inputs that return nothing are listed in the `ERRORS` key-value record and are not charged. The same game reached from two inputs is stored and charged once.

### Pricing

**$0.35 per 1000 games** from a league or sport page, and **$1.50 per 1000 full boards**.

# Actor input Schema

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

Games: one result per game with the page's main lines. Full board: one result per game with every market of the tab, including player props. In this mode leagues and pages are expanded into their games.

## `leagues` (type: `array`):

Names such as nba, nfl, mlb, nhl, ncaab, soccer, epl, ucl, ufc, tennis, or a numeric FanDuel sport id.

## `pages` (type: `array`):

Optional FanDuel page ids, as in the site's /navigation/ links.

## `eventIds` (type: `array`):

Full board mode: FanDuel event ids to read. Empty to take the games of the leagues above.

## `tab` (type: `string`):

Full board mode: a tab such as player-points, player-threes or 1st-quarter. Empty for the popular tab. Each result lists its availableTabs.

## `state` (type: `string`):

US state code whose lines to read, such as nj, ny or pa.

## `maxEvents` (type: `integer`):

How many events to take from each league or page, soonest first.

## `includeFutures` (type: `boolean`):

Also return outright and futures markets from league pages.

## `proxyCountry` (type: `string`):

Optional two-letter country code the requests are sent from, such as US or GB. Leave empty to let the scraper choose.

## Actor input object example

```json
{
  "mode": "leagues",
  "leagues": [
    "nba",
    "nfl",
    "soccer"
  ],
  "state": "nj",
  "maxEvents": 20,
  "includeFutures": false
}
```

# Actor output Schema

## `items` (type: `string`):

One result per game with its markets and selections

## `errors` (type: `string`):

Inputs that returned nothing, with the reason (not billed)

# 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 = {
    "leagues": [
        "nba",
        "nfl",
        "soccer"
    ],
    "state": "nj",
    "maxEvents": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapeunblocker/fanduel-scraper").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 = {
    "leagues": [
        "nba",
        "nfl",
        "soccer",
    ],
    "state": "nj",
    "maxEvents": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("scrapeunblocker/fanduel-scraper").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 '{
  "leagues": [
    "nba",
    "nfl",
    "soccer"
  ],
  "state": "nj",
  "maxEvents": 20
}' |
apify call scrapeunblocker/fanduel-scraper --silent --output-dataset

```

## MCP server setup

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

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/eNcDhtFFC9LcMHuGn/builds/81uZe9a4fUgfdvn54/openapi.json
