# ESPN Soccer Standings, Results & Player Stats Scraper (`nimbryxo-studio/espn-soccer-standings-results-and-player-stats`) Actor

Get league standings, match results, team profiles and player bios for 30 soccer leagues and tournaments worldwide, from the Premier League to the FIFA World Cup.

- **URL**: https://apify.com/nimbryxo-studio/espn-soccer-standings-results-and-player-stats.md
- **Developed by:** [Nimbryxo-studio](https://apify.com/nimbryxo-studio) (community)
- **Categories:** Automation, Developer tools, News
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.49 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/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 Soccer Standings, Results & Player Stats Scraper

ESPN publishes live league tables, fixtures and player bios for soccer competitions around the world. This actor turns that into structured records for 30 leagues and tournaments — from the Premier League and La Liga down to the J1 League and the FIFA World Cup — without needing a login or an API key.

### What this actor does

- Pulls the current league table for any supported competition, including rank, points and goal difference.
- Lists match results for a date range, with scores, venue and attendance.
- Returns team profiles with season record, colors and logo for a league.
- Searches player profiles by name across ESPN's athlete database.
- Leaves out any field ESPN doesn't publish for that team, match or player — records never carry empty values.

### Output per mode

#### Standings record (`mode=standings`)

| Field | Description |
|---|---|
| `teamName` | Team's full display name. |
| `teamAbbreviation` | Short code ESPN uses for the team. |
| `teamId` | ESPN's internal team ID. |
| `leagueId` | The league code you requested. |
| `leagueName` | Full league name. |
| `season` | Season label, when ESPN includes one. |
| `rank` | Current table position. |
| `played`, `won`, `drawn`, `lost` | Matches played and their outcomes. |
| `points` | League points. |
| `goalsFor`, `goalsAgainst`, `goalDifference` | Goal tallies. |
| `pointDeductions` | Points deducted, when applicable. |
| `standingNote` | Qualification note (e.g. "Champions League"), when shown. |
| `teamLogoUrl` | Team crest image. |
| `teamUrl` | Link to the team's ESPN page. |
| `scrapedAt` | ISO 8601 timestamp of when the record was collected. |

#### Match result record (`mode=matchResults`)

| Field | Description |
|---|---|
| `matchId` | ESPN's event ID. |
| `leagueId`, `leagueName` | League the match belongs to. |
| `matchDate` | Kickoff date/time (UTC). |
| `matchDateLocal` | Kickoff date only, `YYYY-MM-DD`. |
| `status`, `statusDetail` | Match status (e.g. full-time) and detail text. |
| `isCompleted` | Whether the match has finished. |
| `homeTeamName`, `homeTeamId`, `homeScore`, `homeWinner`, `homeForm`, `homeLogoUrl` | Home side details. |
| `awayTeamName`, `awayTeamId`, `awayScore`, `awayWinner`, `awayForm`, `awayLogoUrl` | Away side details. |
| `venue`, `venueCity`, `venueCountry` | Where the match was played. |
| `attendance` | Reported attendance, when ESPN publishes it. |
| `matchName` | ESPN's match title (e.g. "Arsenal vs Chelsea"). |
| `matchUrl` | Link to the match on ESPN. |
| `scrapedAt` | ISO 8601 timestamp of when the record was collected. |

#### Team stats record (`mode=teamStats`)

| Field | Description |
|---|---|
| `teamId`, `teamName`, `teamAbbreviation`, `teamNickname`, `teamSlug` | Team identity fields. |
| `leagueId`, `leagueName` | League the team plays in. |
| `primaryColor`, `alternateColor` | Team's branding colors (hex). |
| `isActive` | Whether ESPN lists the team as currently active. |
| `logoUrl` | Team crest image. |
| `seasonRecord` | Current season win-loss-draw summary. |
| `standingSummary` | Short standing description (e.g. "1st in Premier League"). |
| `teamUrl` | Link to the team's ESPN page. |
| `scrapedAt` | ISO 8601 timestamp of when the record was collected. |

#### Player record (`mode=playerSearch`)

| Field | Description |
|---|---|
| `playerId`, `playerName`, `firstName`, `lastName` | Player identity. |
| `position`, `positionAbbreviation` | Playing position. |
| `jersey` | Shirt number. |
| `dateOfBirth`, `age` | Birth date and current age. |
| `nationality`, `birthCity`, `birthCountry` | Birthplace details. |
| `teamName`, `teamId`, `teamAbbreviation` | Current club. |
| `leagueId`, `leagueName` | League, when the search was scoped to one. |
| `status` | Roster status (e.g. active, injured). |
| `heightCm`, `weightKg` | Physical stats, converted to metric. |
| `playerUrl` | Link to the player's ESPN profile. |
| `headshotUrl` | Player photo. |
| `scrapedAt` | ISO 8601 timestamp of when the record was collected. |

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `mode` | String (select) | `standings` | `standings`, `matchResults`, `teamStats`, or `playerSearch`. |
| `league` | String (select) | `eng.1` | One of 30 league/tournament codes (see below). |
| `fromDate` | String | – | Match results start date, `YYYYMMDD` (defaults to 30 days ago if left blank). |
| `toDate` | String | – | Match results end date, `YYYYMMDD` (defaults to today if left blank). |
| `playerQuery` | String | `Erling Haaland` | Player name to search for in `playerSearch` mode. |
| `maxItems` | Integer | `50` | Maximum number of records to return (1–500). |

Supported `league` values: `eng.1` (Premier League), `esp.1` (La Liga), `ger.1` (Bundesliga), `ita.1` (Serie A), `fra.1` (Ligue 1), `usa.1` (MLS), `uefa.champions`, `uefa.europa`, `uefa.europa.conf`, `eng.2` (Championship), `ger.2` (2. Bundesliga), `ita.2` (Serie B), `esp.2` (Segunda División), `fra.2` (Ligue 2), `ned.1` (Eredivisie), `por.1` (Primeira Liga), `bra.1` (Série A), `arg.1` (Primera División), `mex.1` (Liga MX), `sco.1` (Premiership), `tur.1` (Süper Lig), `rus.1` (Premier League), `bel.1` (Pro League), `gre.1` (Super League), `ukr.1` (Premier League), `jpn.1` (J1 League), `kor.1` (K League 1), `aus.1` (A-League), `chn.1` (Super League), `fifa.world` (World Cup).

#### Example: current standings

```json
{
  "mode": "standings",
  "league": "eng.1",
  "maxItems": 20
}
```

#### Example: results for a date range

```json
{
  "mode": "matchResults",
  "league": "esp.1",
  "fromDate": "20250101",
  "toDate": "20250131",
  "maxItems": 100
}
```

#### Example: player lookup

```json
{
  "mode": "playerSearch",
  "playerQuery": "Vinicius Jr",
  "maxItems": 10
}
```

### Use cases

- **Fantasy league tools** — refresh player profiles and team form between gameweeks.
- **League tracking** — pull a table weekly to watch promotion, relegation and continental qualification races.
- **Results archives** — build a historical database of match scores over a season or several.
- **Scouting and content** — look up a player's position, club and physical stats for write-ups.
- **Dashboards** — feed a live standings table into a website or internal tool.

### FAQ

**Which competitions are covered?**
30 league codes spanning Europe, the Americas, Asia and global tournaments — see the full list in the Input section.

**How fresh is the data?**
Standings and results reflect what ESPN currently shows, which updates shortly after matches finish.

**Can I pull a full season of results in one run?**
Yes, set `fromDate` and `toDate` to span the season; results beyond `maxItems` are simply not returned, so raise it if you need more.

**What happens if `fromDate`/`toDate` are left blank?**
`matchResults` defaults to the last 30 days through today.

**Why do some match records have no `attendance` or `venueCity`?**
ESPN doesn't publish those details for every match; the actor omits the field rather than sending an empty value.

**Does `playerSearch` require an exact name?**
No, partial names work (e.g. "Vinicius" matches "Vinicius Jr"), but very short or ambiguous queries may return multiple players.

**Do I need an ESPN account or API key?**
No, every mode reads publicly available data with no authentication.

**Is this affiliated with ESPN?**
No. This actor is an independent tool and is not affiliated with, endorsed by, or sponsored by ESPN.

# Actor input Schema

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

What data to fetch from the football API.

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

Football league to scrape. Covers all major European and global leagues.

## `fromDate` (type: `string`):

Start date for match results in YYYYMMDD format (e.g. 20250101). Defaults to 30 days ago.

## `toDate` (type: `string`):

End date for match results in YYYYMMDD format (e.g. 20250131). Defaults to today.

## `playerQuery` (type: `string`):

Player name to search for (e.g. 'Erling Haaland', 'Vinicius').

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

Maximum number of records to return.

## Actor input object example

```json
{
  "mode": "standings",
  "league": "eng.1",
  "playerQuery": "Erling Haaland",
  "maxItems": 50
}
```

# Actor output Schema

## `footballData` (type: `string`):

Dataset containing all scraped football statistics records.

# 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 = {
    "mode": "standings",
    "league": "eng.1",
    "playerQuery": "Erling Haaland",
    "maxItems": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("nimbryxo-studio/espn-soccer-standings-results-and-player-stats").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 = {
    "mode": "standings",
    "league": "eng.1",
    "playerQuery": "Erling Haaland",
    "maxItems": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("nimbryxo-studio/espn-soccer-standings-results-and-player-stats").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 '{
  "mode": "standings",
  "league": "eng.1",
  "playerQuery": "Erling Haaland",
  "maxItems": 50
}' |
apify call nimbryxo-studio/espn-soccer-standings-results-and-player-stats --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,nimbryxo-studio/espn-soccer-standings-results-and-player-stats"
        }
    }
}
```

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/5a9mg1UMNA59lmZY1/builds/7KcEF1397Rj61VRLZ/openapi.json
