# Athletic Leagues Teams Scraper (`zerobreak/athletic-leagues-teams-scraper`) Actor

Extracts athletic league and team profiles from sports directories into clean, structured datasets. Collects key organization details including team names, league divisions, home venues, locations, rosters, and season standings. Ideal for sports analytics, directory building, and league research

- **URL**: https://apify.com/zerobreak/athletic-leagues-teams-scraper.md
- **Developed by:** [ZeroBreak](https://apify.com/zerobreak) (community)
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.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/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

### Athletic Leagues Teams Scraper — Sports League and Team Directory Extraction

![Athletic Leagues Teams Scraper cover](https://images.bigibyte.com/cdn-cgi/image/width=1260,height=540,fit=cover,format=webp/apify-actors-covers/athletic-leagues-teams-scraper-cover.png)

### Overview

Athletic Leagues Teams Scraper collects publicly available sports league, team, and season directory information from The Athletic.

Extract structured records containing league identifiers, team IDs, team names, season IDs, and record types. Use the collected data to build sports databases, organize team directories, and support sports research and analytics.

### Features

- Collect sports league directory records
- Extract team identifiers and names
- Retrieve league and season IDs
- Organize records by type
- Build structured sports catalog datasets
- Include timestamps for tracking collection history
- Export records for further analysis and integration

### What Data Does This Actor Extract?

| Field | Description |
|-------|-------------|
| `recordKind` | Identifies the record type, such as league, team, or season |
| `league_id` | Unique league identifier |
| `team_id` | Unique team identifier |
| `team_name` | Sports team name |
| `season_id` | Unique season identifier |
| `scrapedAt` | Timestamp when the record was collected |

### Example Output

```json
{
  "recordKind": "team",
  "team_id": 34,
  "team_name": "Boston Celtics",
  "scrapedAt": "2026-11-15T00:00:00+00:00"
}
```

### Use Cases

- Build structured sports league databases
- Create master directories of professional sports teams
- Collect league and season reference information
- Support sports data research and analytics
- Organize team information for sports applications
- Integrate sports catalog data into dashboards
- Track changes in league and team directories

### Working with Your Dataset

After the actor completes its run, open the dataset from the Apify run overview and export the collected records.

Supported export formats include:

- JSON
- CSV
- Excel

Connect your dataset to Google Sheets, Make, Zapier, or n8n to automate data synchronization and reporting.

### Input Configuration

Check the actor's Input tab in the Apify Console for available parameters and their default values.

Configure the input options according to your collection requirements before starting a run.

### FAQ

**What information does this actor collect?**

It collects structured league, team, and season information, including record types and their associated identifiers.

**Do I need a The Athletic account?**

No. The actor is designed to collect publicly available catalog information without requiring a personal account.

**What types of records are supported?**

The dataset can contain league, team, and season records, depending on the available source data and actor configuration.

**How many rows can one run collect?**

The maximum is controlled by `maxItems`, with a documented hard limit of 1000 records per run.

**What happens if a request fails?**

Records already saved remain in the dataset. The run stops with the records collected before the failure.

**Can I schedule recurring runs?**

Yes. Use Apify schedules to automate recurring collection and synchronize the results with Google Sheets, Make, Zapier, or n8n.

### Disclaimer

This actor is an independent tool and is not affiliated with, endorsed by, sponsored by, or officially associated with The Athletic or its owners. It collects publicly available information. Users are responsible for complying with applicable laws, source terms of use, rate limits, copyright, and attribution requirements.

### Is Web Scraping Legal?

Public data collection can be lawful when you respect terms, avoid personal-data misuse, and do not bypass access controls. This is general information, not legal advice. If you are unsure, consult a lawyer.

To learn more, read Apify's guide [Is web scraping legal?](https://blog.apify.com/is-web-scraping-legal/)

![Athletic Leagues Teams Scraper CTA](https://images.bigibyte.com/cdn-cgi/image/width=840,height=360,fit=cover,format=webp/apify-actors-covers/athletic-leagues-teams-scraper-cta.png)

# Actor input Schema

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

Maximum number of unique league, team, and season records to save per run.

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

Maximum time to wait for each request.

## `dataMode` (type: `string`):

Choose which league, team, and season records to collect.

## `leagueCodes` (type: `array`):

League codes used when collecting seasons, such as nba, nfl, mlb, nhl, epl, and mls.

## Actor input object example

```json
{
  "maxItems": 100,
  "requestTimeoutSecs": 45,
  "dataMode": "rotate",
  "leagueCodes": [
    "nba",
    "nfl",
    "mlb"
  ]
}
```

# Actor output Schema

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

No description

## `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("zerobreak/athletic-leagues-teams-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("zerobreak/athletic-leagues-teams-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 '{}' |
apify call zerobreak/athletic-leagues-teams-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,zerobreak/athletic-leagues-teams-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/d5Zt3BU7ewtAXgoOc/builds/adFvBmO1wJacOPAy5/openapi.json
