# GetOdds API: Sports Odds & Player Props Scraper, 8 Books (`pp-api/getodds-scraper`) Actor

Sports odds and player props from FanDuel, DraftKings, BetRivers, Pinnacle and Novig plus PrizePicks, Underdog and Pick6 lines, one row per line with price and capture time. Works with no key on a free sample. Independent; not affiliated with any sportsbook.

- **URL**: https://apify.com/pp-api/getodds-scraper.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

## GetOdds Sports Odds & Player Props API

An Apify actor that saves sports odds and player props to an Apify dataset (JSON, CSV, Excel) on a schedule or on demand: one row per line, with the book, player or team, market, line, price and the time it was captured.

Books: FanDuel, DraftKings, BetRivers, Pinnacle and Novig (two-sided prices) plus PrizePicks, Underdog and DK Pick6 (pick'em lines). Sports: NBA, NFL, NHL, college football and college basketball for player props; those plus MLB, Premier League and MLS for game lines.

It does not scrape sportsbook pages. It reads the documented [GetOdds API](https://getoddsapi.com/?utm_source=apify\&utm_medium=actor\&utm_campaign=getodds-scraper) with your own key, so runs are fast, rows have a stable schema and nothing breaks when a sportsbook site changes. Without a key it reads the keyless sample: DraftKings game lines from the GetOdds sandbox (cached up to 5 minutes, at most 50 rows) or the free public player props board (a capped sample). Add a free key for every line at every book.

GetOdds (getoddsapi.com) is an independent data service operated by Stunning Couches LLC. It is not affiliated with or endorsed by FanDuel, DraftKings, BetRivers, Pinnacle, Novig, PrizePicks, Underdog or any sportsbook. The data is prices, not betting advice.

### Quick start

1. Get a free key (1,000 requests a day, no card): https://getoddsapi.com/sign-up?utm_source=apify\&utm_medium=actor\&utm_campaign=getodds-scraper
2. Run the actor with `apiKey` set, pick `marketType` and `sport`, and optionally narrow `books`.
3. Download the dataset or connect it to Sheets, Zapier, Make or a webhook.

### What it can read

| `marketType` | Rows | Without a key |
| --- | --- | --- |
| `player-props` | Every book's line and over/under price per player and stat, for games in the next 48 hours | The free public board (capped sample) |
| `game-lines` | Moneyline, spread and total per game, from DraftKings, FanDuel, Pinnacle and Novig | DraftKings only, from the sandbox (at most 50 rows) |

### Input

| Field | Default | Notes |
| --- | --- | --- |
| `apiKey` | empty | Stored as a secret. Empty means the keyless sample. You can also set `GETODDS_API_KEY` in the actor environment. |
| `marketType` | `player-props` | `player-props` or `game-lines`. |
| `sport` | `nba` | `nba`, `nfl`, `nhl`, `ncaaf`, `ncaab`, `mlb`, `epl`, `mls`. Player props cover the first five. |
| `books` | all | Any of `fanduel`, `draftkings`, `betrivers`, `pinnacle`, `novig`, `prizepicks`, `underdog`, `pick6`. Books your key has no grant for are skipped with a log line. |
| `gameMarket` | `all` | Game lines only: `moneyline`, `spread` or `total`. |
| `player` | empty | Player props only. Name or part of it. |
| `stat` | empty | Player props only, for example `points`, `rebounds`, `threes`, `pra`, `passing_yards`, `receptions`, `shots_on_goal`. |
| `maxItems` | 1000 | Stop after this many rows. |

### Output

One row per line and side:

```json
{
  "book": "fanduel",
  "sport": "nba",
  "market_type": "player_prop",
  "market": "points",
  "period": null,
  "event": "Portland Trail Blazers @ Minnesota Timberwolves",
  "starts_at": "2026-11-17T01:00:00.000Z",
  "player": "Ayo Dosunmu",
  "team": "MIN",
  "side": "over",
  "line": 17.5,
  "price_american": 102,
  "price_decimal": 2.02,
  "captured_at": "2026-11-16T04:22:38.656Z",
  "stat_label": "Points",
  "consensus_line": 17.5,
  "pickem": false,
  "keyless": false,
  "attribution": "Data: getoddsapi.com"
}
```

Pick'em books (PrizePicks, Underdog, Pick6) post a line, not a price, so their rows have `side` and `price_american` set to null and `pickem` true. Game line rows carry `event_id`, `home`, `away`, `team` (the side's team on moneyline and spread) and, for Novig, the no-vig `fair_probability`. Check `captured_at` before using a price.

### Costs

Apify compute for a run is a few seconds. API usage is billed by GetOdds on your own plan: one request per page of up to 200 props or markets. The free tier (1,000 requests a day) covers scheduled runs, and [paid plans](https://getoddsapi.com/pricing?utm_source=apify\&utm_medium=actor\&utm_campaign=getodds-scraper) start at $5 a month.

### Prefer code?

The same data is in the official packages: [Python](https://github.com/getoddsapi/getodds-python), [JavaScript](https://github.com/getoddsapi/getodds-js), [R](https://github.com/getoddsapi/getodds-r) and an [MCP server](https://github.com/getoddsapi/getodds-mcp) for AI agents. Full reference: https://getoddsapi.com/docs?utm_source=apify\&utm_medium=actor\&utm_campaign=getodds-scraper

### Develop

```bash
npm install
npm test                      # no network
npm run test:live             # also hits the keyless endpoints
APIFY_LOCAL_STORAGE_DIR=./storage GETODDS_API_KEY=... npm start
```

MIT License.

# Actor input Schema

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

Your own key. Free (1,000 requests a day, no card): https://getoddsapi.com/sign-up?utm_source=apify\&utm_medium=actor\&utm_campaign=getodds-scraper. Leave empty to read the keyless sample: DraftKings game lines from the sandbox, or the public player props board.

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

Player props: each book's line and over/under price per player and stat. Game lines: moneyline, spread and total per game and book.

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

Player props cover NBA, NFL, NHL, NCAAF and NCAAB.

## `books` (type: `array`):

Leave empty for every book. Game lines are read from DraftKings, FanDuel, Pinnacle and Novig; books your key has no grant for are skipped with a log line.

## `gameMarket` (type: `string`):

Game lines only.

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

Player props only. Name or part of it, for example tatum.

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

Player props only. For example points, rebounds, assists, threes, pra, passing_yards, rushing_yards, receiving_yards, receptions, shots_on_goal.

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

Stop after this many rows. Each API page (up to 200 props or markets) costs one request on your own GetOdds plan.

## Actor input object example

```json
{
  "marketType": "player-props",
  "sport": "nba",
  "gameMarket": "all",
  "maxItems": 100
}
```

# 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 = {
    "marketType": "player-props",
    "sport": "nba",
    "gameMarket": "all",
    "maxItems": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("pp-api/getodds-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 = {
    "marketType": "player-props",
    "sport": "nba",
    "gameMarket": "all",
    "maxItems": 100,
}

# Run the Actor and wait for it to finish
run = client.actor("pp-api/getodds-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 '{
  "marketType": "player-props",
  "sport": "nba",
  "gameMarket": "all",
  "maxItems": 100
}' |
apify call pp-api/getodds-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,pp-api/getodds-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/zhugSZiihalltzEj2/builds/ca4v8oXK2SfsiVLap/openapi.json
