# Sports Standings & Teams Scraper (ESPN) (`get_anything/sports-standings-scraper`) Actor

League standings (rank, W-L-D, points, goals/points for & against, goal difference) and team directories (name, location, colors, logo, venue) across NFL, NBA, MLB, NHL, Premier League, La Liga, Champions League and more. No API key. Export JSON, CSV or Excel. Info only, not betting advice.

- **URL**: https://apify.com/get\_anything/sports-standings-scraper.md
- **Developed by:** [Get Anything](https://apify.com/get_anything) (community)
- **Categories:** News
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

## 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

## Sports Standings & Teams Scraper (ESPN)

**League standings** (rank, W-L-D, points, goals/points for & against, goal difference, streak) and **team directories** (name, abbreviation, location, colors, logo, venue) across the major leagues — **NFL, NBA, MLB, NHL, Premier League, La Liga, Champions League** and more — from ESPN's public endpoints.

**No API key.**

> ⚠️ Data is for **informational purposes only** — **not betting advice**.

### What it does

- **Standings** — full table per league: rank, games played, wins/losses/ties, points, points/goals for & against, differential, win %, streak, and qualification notes.
- **Teams** — the league's team directory: name, abbreviation, location, primary/alternate colors, logo, and venue.
- **Multiple leagues** in one run (grouped standings — divisions/conferences — are flattened with a `group` label).
- Export to **JSON, CSV, or Excel**, or pull via the Apify API.

### Leagues

`nfl`, `nba`, `mlb`, `nhl`, `wnba`, `ncaab`, `college-football`, `epl`, `laliga`, `seriea`, `bundesliga`, `ligue1`, `ucl`, `uel`, `mls` — or a raw `sport/league` slug.

### Input

| Field | Description |
|-------|-------------|
| `leagues` | League keys (see above). |
| `getStandings` | Return the standings table. |
| `getTeams` | Return the team directory. |

#### Example

```json
{ "leagues": ["epl", "nba"], "getStandings": true, "getTeams": true }
```

### Output

```json
{ "resultType": "standing", "league": "epl", "rank": 1, "team": "Arsenal",
  "played": 4, "wins": 4, "points": 12, "pointDifferential": 7 }
```

```json
{ "resultType": "team", "league": "nba", "name": "Atlanta Hawks", "abbr": "ATL",
  "color": "c8102e", "venue": "State Farm Arena" }
```

### Use cases

- **League tables & widgets** — embed live standings in an app or site.
- **Analytics & fantasy** — team form, differentials, streaks.
- **Media** — automated standings round-ups.
- **AI/RAG** — feed structured standings to an LLM.

### FAQ

**Do I need an API key?** No — it uses ESPN's public endpoints.

**How are divisions/conferences handled?** Grouped standings are flattened, each row tagged with its `group` (e.g. conference/division).

*Not affiliated with ESPN. Data is for information only, not betting advice.*

### 🤖 Use with Claude or ChatGPT (MCP)

Run this actor from Claude, ChatGPT, Cursor or any MCP client via the [Apify MCP server](https://mcp.apify.com). In **Claude Desktop**: Settings → Connectors → Add custom connector → `https://mcp.apify.com`. Or expose just this tool:

```json
{ "mcpServers": { "apify": { "url": "https://mcp.apify.com?tools=get_anything/sports-standings-scraper" } } }
```

Full guide: [Connect Apify actors to Claude & ChatGPT](https://dev.to/get_anything/connect-any-apify-scraper-to-claude-or-chatgpt-in-2-minutes-mcp-37he).

### ⭐ Found this useful?

If this Actor saved you time, please leave a rating on its [Apify page](https://apify.com/get_anything/sports-standings-scraper) — reviews genuinely help others discover it and help me keep improving it.

# Actor input Schema

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

League keys: nfl, nba, mlb, nhl, wnba, ncaab, college-football, epl, laliga, seriea, bundesliga, ligue1, ucl, uel, mls. Or a raw 'sport/league' slug.

## `getStandings` (type: `boolean`):

Return the league standings table.

## `getTeams` (type: `boolean`):

Return the league's team directory (name, colors, logo, venue).

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

Optional proxy. ESPN endpoints usually work without one.

## Actor input object example

```json
{
  "leagues": [
    "epl",
    "nba"
  ],
  "getStandings": true,
  "getTeams": false,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `results` (type: `string`):

Structured results in the default dataset - one item per standings row or team.

# 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": [
        "epl",
        "nba"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("get_anything/sports-standings-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": [
        "epl",
        "nba",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("get_anything/sports-standings-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": [
    "epl",
    "nba"
  ]
}' |
apify call get_anything/sports-standings-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,get_anything/sports-standings-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/fzBUWBKotui1YKgfO/builds/m65lzCvIJPaNmpayY/openapi.json
