# Draft Kings scraper (`syntellect_ai/draftkings-api-actor`) Actor

SPORTS BETTING DATA DRAFT KINGS contest data, player DFS salaries, and sportsbook betting lines in seconds. No Draft Kings account required. Proxy rotation included. Built for DFS optimizers, sports betting models, over 350,000  results per month  DRAFT KINGS SCRAPER IS #1 DFS data source

- **URL**: https://apify.com/syntellect_ai/draftkings-api-actor.md
- **Developed by:** [christopher athans crow](https://apify.com/syntellect_ai) (community)
- **Categories:** Developer tools, AI, Automation
- **Stats:** 285 total users, 4 monthly users, 100.0% runs succeeded, 5 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $0.40 / 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.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## DraftKings API Actor

The DraftKings API Actor is a powerful web scraping tool designed to extract comprehensive sports betting data and daily fantasy sports (DFS) information from the DraftKings platform. It provides real-time access to betting odds, contest details, and player statistics across multiple sports.

### Features

paid/paying user get unlimited results from  all data fields no limiting and can reuse with no limits

#### Real-time Betting Odds

- Scrapes current sportsbook lines across multiple sports
- Captures point spreads, moneylines, over/under totals, and prop bets
- Tracks odds and line movements throughout the day

#### Daily Fantasy Sports Data

- Automated contest monitoring with entry fees, prize pools, and participant counts
- Comprehensive player statistics including projected points, salaries, and ownership percentages
- Draft group tracking and organization

#### Multi-Sport Coverage

- **NFL** - National Football League
- **NBA** - National Basketball Association
- **MLB** - Major League Baseball
- **NHL** - National Hockey League
- **LOL** - League of Legends (Esports)
- **CS** - Counter-Strike (Esports)
- **SOCCER** - International Soccer
- **MMA** - Mixed Martial Arts
- **NASCAR** - Stock Car Racing
- **GOLF** - Professional Golf
- **TENNIS** - Professional Tennis

### Input Configuration

The Actor accepts the following input parameters:

#### `sport` (required)

- **Type:** String (select dropdown)
- **Description:** Sport code to scrape contests and players for
- **Options:** NFL, NBA, MLB, NHL, LOL, CS, SOCCER, MMA, NASCAR, GOLF, TENNIS
- **Default:** LOL

#### `maxContests`

- **Type:** Integer
- **Description:** Maximum number of contests to scrape. Set to a lower number for faster runs.
- **Default:** 100
- **Range:** 1-1000

#### `includePlayerData`

- **Type:** Boolean
- **Description:** If enabled, will fetch detailed player information for each draft group. Disable for faster execution.
- **Default:** true

### Example Input

```json
{
  "sport": "NFL",
  "maxContests": 50,
  "includePlayerData": true
}
```

### Output Data

The Actor provides structured JSON output with two types of records:

#### Contest Data

Each contest record includes:

- `type`: "contest"
- `sport`: Sport code
- `contestId`: Unique contest identifier
- `contestName`: Contest name/title
- `draftGroupId`: Associated draft group ID
- `entryFee`: Contest entry fee
- `totalPrizes`: Total prize pool
- `maxEntries`: Maximum number of entries allowed
- `currentEntries`: Current number of entries
- `gameType`: Contest game type
- `startTime`: Contest start time
- `scrapedAt`: Timestamp when data was collected

#### Player Data

Each player record includes:

- `type`: "player"
- `sport`: Sport code
- `draftGroupId`: Associated draft group ID
- `playerId`: Unique player identifier
- `playerName`: Player's display name
- `firstName`: Player's first name
- `lastName`: Player's last name
- `position`: Playing position
- `teamAbbreviation`: Team abbreviation
- `salary`: DFS salary
- `pointsPerGame`: Average points per game
- `competition`: Competition/league name
- `status`: Player status
- `draftable`: Whether player is available for draft
- `scrapedAt`: Timestamp when data was collected

### Example Output

```json
[
  {
    "type": "contest",
    "sport": "NFL",
    "contestId": 123456,
    "contestName": "$100K Sunday Million",
    "draftGroupId": 98765,
    "entryFee": 20,
    "totalPrizes": 100000,
    "maxEntries": 10000,
    "currentEntries": 8543,
    "gameType": "Classic",
    "startTime": "2025-11-04T18:00:00Z",
    "scrapedAt": "2025-11-04T17:30:00Z"
  },
  {
    "type": "player",
    "sport": "NFL",
    "draftGroupId": 98765,
    "playerId": 456789,
    "playerName": "Patrick Mahomes",
    "firstName": "Patrick",
    "lastName": "Mahomes",
    "position": "QB",
    "teamAbbreviation": "KC",
    "salary": 8500,
    "pointsPerGame": 24.3,
    "competition": "NFL",
    "status": "Active",
    "draftable": true,
    "scrapedAt": "2025-11-04T17:30:00Z"
  }
]
```

### Output Views

The Actor provides three pre-configured dataset views:

#### Overview

Combined view showing both contests and players with key fields:

- Type, Sport, Contest Name, Player Name, Entry Fee, Salary, Scraped At

#### Contests

Focused view for contest data:

- Type, Sport, Contest Name, Entry Fee, Prize Pool, Entries, Max Entries, Game Type, Start Time, Draft Group ID

#### Players

Focused view for player data:

- Type, Sport, Player Name, Position, Team, Salary, PPG, Status, Competition, Draft Group ID

### Use Cases

#### Sports Betting Analysis

- Track line movements and identify betting opportunities
- Compare odds across different contest types
- Monitor prize pool growth and entry trends

#### Daily Fantasy Sports Optimization

- Build optimal lineups using salary and projection data
- Track player ownership percentages
- Identify value plays and contrarian picks

#### Market Research

- Analyze DraftKings contest offerings
- Track player pricing trends
- Monitor competition landscape

#### Data Collection for AI/ML

- Gather training data for prediction models
- Historical trend analysis
- Price modeling and optimization algorithms

### Performance Tips

1. **Faster Runs**: Set `includePlayerData` to `false` if you only need contest information
2. **Limit Contests**: Reduce `maxContests` for quicker execution during testing
3. **Schedule Runs**: Use Apify's scheduling feature for regular data updates
4. **Proxy Rotation**: The Actor automatically uses Apify's proxy rotation to avoid rate limiting

### Local Development

#### Prerequisites

- Node.js 20.0.0 or higher
- Apify CLI

#### Installation

```bash
## Install dependencies
npm install

## Run locally
apify run

## Login to Apify
apify login

## Deploy to Apify platform
apify push
```

#### Project Structure

### API Integration

After deployment, you can integrate the Actor into your applications using the Apify API:

```javascript
const { ApifyClient } = require('apify-client');

const client = new ApifyClient({
    token: 'YOUR_API_TOKEN',
});

// Start Actor run
const run = await client.actor('SYNTELLECT_AI/draftkings-api-actor').call({
    sport: 'NFL',
    maxContests: 50,
    includePlayerData: true,
});

// Fetch results
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

### Rate Limiting & Best Practices

- Recommended: Run during off-peak hours for better reliability

### Troubleshooting

#### No contests found

- Verify the sport code is correct
- Check if there are active contests for the selected sport
- Some sports may have limited availability depending on season

#### Player data missing

- Ensure `includePlayerData` is set to `true`
- Some draft groups may not have player data available yet

#### Timeout errors

- Reduce `maxContests` value
- Check your Apify account compute unit availability

### Support

For issues or questions:

1. Check the [Apify Documentation](https://docs.apify.com)
2. Review the Actor logs in Apify Console
3. Open an issue on the project repository

***

**Note:** This Actor is for educational and research purposes. Always review and comply with DraftKings' Terms of Service and robots.txt when using this tool.

# Actor input Schema

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

Sport code to scrape contests and players for (e.g., NFL, NBA, MLB, NHL, LOL, CS, SOCCER)

## `maxContests` (type: `integer`):

Maximum number of contests to scrape. Set to a lower number for faster runs.

## `includePlayerData` (type: `boolean`):

If enabled, will fetch detailed player information for each draft group. Disable for faster execution.

## Actor input object example

```json
{
  "sport": "LOL",
  "maxContests": 100,
  "includePlayerData": true
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("syntellect_ai/draftkings-api-actor").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("syntellect_ai/draftkings-api-actor").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 '{}' |
apify call syntellect_ai/draftkings-api-actor --silent --output-dataset

```

## MCP server setup

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

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/0ZaPR6PaZu03JW9ov/builds/M9eUBq42GxtYsuVaZ/openapi.json
