# Espn Odds Core Scraper (`b2b_lead_generation/espn-odds-core-scraper`) Actor

Scrapes live ESPN scoreboard data and season schedules instantly. Choose your league, set a limit, and export clean event odds and details directly to JSON, CSV, or Excel.

- **URL**: https://apify.com/b2b_lead_generation/espn-odds-core-scraper.md
- **Developed by:** [B2B Lead Generation](https://apify.com/b2b_lead_generation) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.99 / 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

## ESPN Odds/Core Scraper

![ESPN Odds/Core Scraper cover](https://images.bigibyte.com/cdn-cgi/image/width=1260,height=540,fit=cover,format=webp/apify-actors-covers/espn-odds-core-scraper-cover.png)

Collect public ESPN sports data, including season week information and scoreboard events. Choose a collection mode, specify a sport and league, and export structured event and season data in JSON, CSV, or Excel formats.

### What This Actor Does

This actor collects sports schedule and scoreboard information from ESPN. It supports retrieving season weeks and their associated details, as well as current scoreboard events for a selected sport and league.

Collected records can include event identifiers, dates, names, season details, week information, competition data, and event status.

### Why Use This Actor?

- Collect ESPN scoreboard events in structured formats.
- Retrieve season weeks and related schedule information.
- Select different sports and leagues.
- Capture event dates, names, season details, and competition information.
- Export results for sports research, reporting, and data analysis.

### Available Modes

- **Season Weeks (`weeks`):** Collect season week information for a selected sport, league, and season.
- **Scoreboard (`scoreboard`):** Collect scoreboard events for the selected sport and league.

### Input Examples

**Season weeks:**

```json
{
  "mode": "weeks",
  "sport": "football",
  "league": "nfl",
  "season": 2026,
  "maxItems": 10,
  "requestDelaySecs": 1
}
```

**Scoreboard:**

```json
{
  "mode": "scoreboard",
  "sport": "football",
  "league": "nfl",
  "maxItems": 20,
  "requestDelaySecs": 1
}
```

### Input Parameters

| Parameter | Type | Description |
|---|---|---|
| `mode` | string | Collection mode: `weeks` or `scoreboard`. |
| `sport` | string | Sport identifier, such as `football`. |
| `league` | string | League identifier, such as `nfl`. |
| `season` | integer | Season year used in weeks mode. |
| `maxItems` | integer | Maximum number of records to collect. |
| `requestDelaySecs` | number | Delay between requests in seconds. |

The parameters shown above are based on the supplied input examples. No additional defaults are specified here.

### Output Example

```json
{
  "eventId": "401872994",
  "eventUid": "s:20~l:28~e:401872994",
  "eventDate": "2026-10-13T00:15Z",
  "eventName": "Buffalo Bills at Los Angeles Rams",
  "shortName": "BUF @ LAR",
  "season": {
    "year": 2026,
    "type": 2,
    "slug": "regular-season"
  },
  "week": {
    "number": 5
  },
  "competitions": [],
  "links": [],
  "weather": {},
  "eventStatus": {},
  "scrapedAt": "2026-10-26T00:00:00+00:00"
}
```

### Output Fields

| Field | Type | Description |
|---|---|---|
| `eventId` | string | ESPN event identifier. |
| `eventUid` | string | Unique event identifier. |
| `eventDate` | string | Scheduled event date and time. |
| `eventName` | string | Full event name. |
| `shortName` | string | Short event name or matchup label. |
| `season` | object | Season information, including year, type, and slug when available. |
| `week` | object | Week information associated with the event. |
| `competitions` | array | Competition information associated with the event. |
| `links` | array | Related event links when available. |
| `weather` | object | Weather information when available. |
| `eventStatus` | object | Event status information. |
| `scrapedAt` | string | Collection timestamp in ISO format. |

### Use Cases

- **Sports Data Research:** Collect event and competition information for sports analysis.
- **Season Calendar Tracking:** Retrieve season week information for schedule planning.
- **Event Monitoring:** Collect scoreboard events for NFL or other supported league paths.
- **Sports Data Pipelines:** Integrate structured event records into dashboards and data warehouses.
- **Historical Comparisons:** Save recurring collections and compare event and season information over time.

### Frequently Asked Questions

**What does this actor collect?**

It collects ESPN season week information and scoreboard event data, depending on the selected mode.

**What is the difference between `weeks` and `scoreboard`?**

The `weeks` mode retrieves season week information for a specified season. The `scoreboard` mode collects events for the selected sport and league.

**Can I collect data for different sports and leagues?**

Yes. Set `sport` and `league` to the identifiers for the sports and leagues you want to collect.

**Do I need to provide a season year?**

The supplied `season` parameter is used in `weeks` mode to specify the season year.

**Can I schedule recurring collections?**

Yes. Use Apify Schedules to run the actor automatically at your preferred intervals.

**Does the output include betting odds?**

The supplied output example contains scoreboard and event information. It does not show dedicated betting odds fields, so odds availability should not be assumed.

### Trademark Notice

ESPN and related names and trademarks belong to their respective owners. This actor is an independent tool and is not affiliated with or endorsed by ESPN.

### Is Web Scraping Legal?

This actor collects publicly accessible sports schedule and scoreboard information without bypassing login screens, paywalls, or technical security measures. How collected information can be used depends on applicable laws and the source website's policies.

- **Personal Data:** Sports records may include names or other identifying information. Handle such data responsibly and consider privacy laws such as GDPR and CCPA where applicable.
- **Copyright and Licensing:** Event facts and schedules may be treated differently from protected articles, images, and other creative content. Respect applicable licences and restrictions on redistribution.
- **Platform Terms and Rate Limits:** Follow ESPN's policies and published usage requirements. Avoid excessive requests or unnecessary load.
- **Disclaimer:** This information is general guidance, not legal advice. Consult a qualified legal professional about your intended use.

[Is web scraping legal?](https://blog.apify.com/is-web-scraping-legal/)

# Actor input Schema

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

What to scrape. Weeks lists season weeks from sports.core. Scoreboard returns site API events.

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

Sport path segment (for example football).

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

League path segment (for example nfl).

## `season` (type: `integer`):

Season year used for weeks mode.

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

Stop after this many successful rows. Hard max is 1000.

## `requestDelaySecs` (type: `number`):

Seconds to wait between requests.

## `userAgent` (type: `string`):

User-Agent header sent with each request.

## `timeoutSecs` (type: `integer`):

Overall run budget in seconds.

## `requestTimeoutSecs` (type: `integer`):

Per-request timeout in seconds.

## `proxyConfiguration` (type: `object`):

Optional proxy. Leave off unless you need it.

## Actor input object example

```json
{
  "mode": "scoreboard",
  "sport": "football",
  "league": "nfl",
  "season": 2026,
  "maxItems": 100,
  "requestDelaySecs": 1,
  "userAgent": "ActorResearch/1.0",
  "timeoutSecs": 300,
  "requestTimeoutSecs": 30,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

Dataset rows in the overview table.

## `dataset` (type: `string`):

Full dataset for this run.

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

Dataset items as JSON.

# 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": "football",
    "league": "nfl",
    "season": 2026
};

// Run the Actor and wait for it to finish
const run = await client.actor("b2b_lead_generation/espn-odds-core-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 = {
    "sport": "football",
    "league": "nfl",
    "season": 2026,
}

# Run the Actor and wait for it to finish
run = client.actor("b2b_lead_generation/espn-odds-core-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 '{
  "sport": "football",
  "league": "nfl",
  "season": 2026
}' |
apify call b2b_lead_generation/espn-odds-core-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,b2b_lead_generation/espn-odds-core-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/Lro8UkCpD5cAVSC1r/builds/zSNIMipdYajOahg7M/openapi.json
