ESPN Rosters & Player Stats Scraper
Under maintenancePricing
from $2.99 / 1,000 rosters & player stats
ESPN Rosters & Player Stats Scraper
Under maintenanceScrape team rosters and player career statistics from ESPN across 16 leagues and 5 sports. No account or proxy required.
Pricing
from $2.99 / 1,000 rosters & player stats
Rating
0.0
(0)
Developer
w3crawler
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
23 days ago
Last modified
Categories
Features
Share
Read public ESPN roster feeds across 16 leagues and write normalized player records to an Apify dataset. Optional, separately bounded player-statistics requests add career or season stat categories when ESPN publishes them. The Actor uses direct HTTPS requests only and does not log in, use a proxy, bypass access controls, or invent missing player values.
Get started
- Open the Actor Store page and select Try for free or open the Input tab.
- Add one or more league codes to
leagues. Optionally filter byteams; otherwisemaxTeamsbounds team discovery for each league. - Set
seasonif you need a specific season, and decide whether to enablefetchPlayerStats. Statistics require one extra public request per player and can be slow for large leagues. - Start the Actor, open the dataset, and export the players as JSON, CSV, or Excel. Open Run summary (
OUTPUT) to check player, duplicate, and request counts.
Input
leagues is required and must contain between 1 and 16 supported codes. Other fields are optional; unsupported field names and out-of-range values are rejected before requests start.
| Field | Type | Required? | Default | Meaning |
|---|---|---|---|---|
leagues | string array | Required | ["nba"] | League codes to scrape: nba, nfl, mlb, nhl, mls, wnba, ncaam, ncaaw, ncaaf, epl, laliga, ucl, bundesliga, seriea, ligue1, ligamx. |
teams | string array | Optional | Not supplied | Team abbreviations (case-insensitive, such as LAL) or ESPN numeric team IDs. Omit to fetch all teams for the selected leagues. |
maxTeams | integer | Optional | 32 | Maximum teams discovered per league when no explicit teams are supplied, 1–32. |
season | integer | Optional | Not supplied | Season end year, such as 2026 for the NBA 2025-26 season. Leave empty for the current season; range 1990–2100. |
fetchPlayerStats | boolean | Optional | false | Make one extra public request per player for statistics. Categories depend on the sport. |
maxItems | integer | Optional | 500 | Maximum source-backed player records across all leagues, 1–50,000. Diagnostics do not consume this limit. |
requestDelayMs | integer | Optional | 300 | Minimum delay between public ESPN requests, 0–5,000 ms. |
Full default input:
{"leagues": ["nba"],"maxTeams": 32,"fetchPlayerStats": false,"maxItems": 500,"requestDelayMs": 300}
The Actor reads public ESPN data only. Proxy settings, credentials, and arbitrary source URLs are not accepted.
Output
The dataset contains one row per player. Optional fields are omitted when the roster or statistics response does not publish them; values are not inferred, and no diagnostic or placeholder rows are written.
| Field | Type | Availability | Meaning |
|---|---|---|---|
recordType | string enum | Always | Record discriminator; espn-player. |
sourceName | string | Always | Human-readable source name. |
sourceKind | string enum | Always | Provenance: public-espn-api or fixture-public-espn. |
sourceUrl | string | Always | Exact public ESPN roster URL used for the row. |
sport | string | Always | Sport path associated with the league. |
league | string | Always | Normalized league code. |
season | integer | Always | Season year reported by ESPN. |
teamId | string | Always | Public ESPN team identifier. |
teamName | string | Always | Team display name. |
teamAbbreviation | string | Always | Team abbreviation. |
teamSlug | string | Always | Team slug used in ESPN routes. |
playerId | string | Always | Public ESPN player identifier. |
fullName | string | Always | Player full name. |
firstName | string | Always | Player first name. |
lastName | string | Always | Player last name. |
jersey | string | Always | Jersey number. |
position | string | Always | Position name. |
positionAbbreviation | string | Always | Position abbreviation. |
rosterGroup | string | When the roster publishes it | Roster group, such as offense or starters. |
age | number | Always | Player age. |
dateOfBirth | string | Always | Date of birth in ISO UTC. |
height | number | Always | Height in inches. |
weight | number | Always | Weight in pounds. |
displayHeight | string | Always | Display height, such as 6' 5". |
displayWeight | string | Always | Display weight, such as 184 lbs. |
college | string | When the roster publishes it | College name. |
experienceYears | number | Always | Years of professional experience. |
status | string | Always | Player roster status, such as Active. |
headshotUrl | string | Always | Public player headshot URL. |
birthCity | string | Always | Birth city. |
birthState | string | When the roster publishes it | Birth state or region. |
birthCountry | string | Always | Birth country. |
handedness | string | When published | Player handedness, when ESPN exposes it. |
playerUrl | string | Always | Public ESPN player page. |
statistics | object array | When fetchPlayerStats is enabled and stats exist | Stat categories, each with category and entries of { name, value, displayValue }. |
scrapedAt | string | Always | Time the row was saved, in ISO UTC. |
The example below is a real saved row from the 2026-10-25 run. That run had fetchPlayerStats: false, so statistics and handedness are absent.
{"recordType": "espn-player","sourceName": "ESPN public roster feeds","sourceKind": "public-espn-api","sourceUrl": "https://site.api.espn.com/apis/site/v2/sports/basketball/nba/teams/lal/roster","sport": "basketball","league": "nba","season": 2027,"teamId": "13","teamName": "Los Angeles Lakers","teamAbbreviation": "LAL","teamSlug": "los-angeles-lakers","playerId": "5113969","fullName": "Cameron Carr","firstName": "Cameron","lastName": "Carr","jersey": "43","position": "Guard","positionAbbreviation": "G","age": 21,"dateOfBirth": "2004-11-21T08:00:00.000Z","height": 77,"weight": 184,"displayHeight": "6' 5\"","displayWeight": "184 lbs","college": "Baylor","experienceYears": 0,"status": "Active","headshotUrl": "https://a.espncdn.com/i/headshots/nba/players/full/5113969.png","birthCity": "Eden Prairie","birthState": "MN","birthCountry": "USA","playerUrl": "https://www.espn.com/nba/player/_/id/5113969/cameron-carr","scrapedAt": "2026-10-25T20:50:27.918Z"}
Run summary
Run summary is stored separately from the dataset in the run's key-value store under OUTPUT (also mirrored at OUTPUT_SUMMARY).
| Field | Meaning |
|---|---|
source | Public source label recorded for the run. |
status | Actor outcome: SUCCEEDED or FAILED. |
runStatus | Canonical run status; matches status. |
dataStatus | Completeness of saved rows: COMPLETE, PARTIAL, NO_RESULTS, or FAILED. |
leagues | League codes used for the run. |
season | Season year used for saved players. |
requestedItemCount | Item limit requested for the run. |
recordsStored | Player rows saved. |
normalCount | Non-diagnostic rows saved. |
diagnosticCount | Operational issues recorded without dataset rows. |
diagnosticItems | Diagnostic dataset rows; always 0. |
diagnosticRowsStored | Diagnostic rows stored in the dataset; always 0. |
uniquePlayerIds | Distinct player IDs saved. |
duplicateCount | Duplicate players removed. |
attemptedRequests | Public ESPN requests attempted. |
typeCounts | Saved record counts by recordType. |
fixtureMode | Whether the run used an offline QA fixture instead of live ESPN responses. |
completedAt | Time the summary was written, in ISO UTC. |
| Status | Data status | Meaning |
|---|---|---|
SUCCEEDED | COMPLETE | Eligible players were saved without an extraction problem. |
SUCCEEDED | PARTIAL | Some players were saved, but a later team or statistics request failed. |
SUCCEEDED | NO_RESULTS | The roster feeds completed cleanly without usable players. |
FAILED | FAILED | A fatal error occurred before any usable player was saved. |
Example OUTPUT from the saved run:
{"source": "ESPN public roster feeds","status": "SUCCEEDED","runStatus": "SUCCEEDED","dataStatus": "COMPLETE","leagues": ["nba"],"season": 2027,"requestedItemCount": 5,"recordsStored": 5,"normalCount": 5,"diagnosticCount": 0,"diagnosticItems": 0,"diagnosticRowsStored": 0,"uniquePlayerIds": 5,"duplicateCount": 0,"attemptedRequests": 2,"typeCounts": {"espn-player": 5},"fixtureMode": false,"completedAt": "2026-10-25T20:50:27.919Z"}
Coverage and limitations
The Actor reads public ESPN roster feeds for the 16 supported leagues. It does not log in, use credentials or a proxy, request arbitrary URLs, or bypass CAPTCHAs, rate limits, device checks, or WAFs. Team discovery and player coverage depend on what ESPN publishes for the selected league and season.
season is the season end year: 2026 selects the NBA 2025-26 season, and an empty value uses the current season. Rosters can change during the season; a saved player row is a point-in-time snapshot and may not reflect later trades, waivers, or injuries. Some rosters omit rosterGroup, college, birthState, or handedness. With fetchPlayerStats enabled, each player requires one additional request and statistics are present only where ESPN exposes categories; the shape of statistics differs by sport. Failed teams or statistics requests are counted in the run summary and never become placeholder player rows.
Usage and support
Cost depends on Apify compute, the number of leagues and teams, the number of players, and whether fetchPlayerStats is enabled. Start with one league, a small maxTeams or explicit team filter, and statistics disabled; then enable statistics only for the leagues whose stat coverage you need. requestDelayMs controls pacing, and maxItems caps saved players. See the Actor's Pricing tab for current account rates.
Use the Actor Issues page to report a problem. Include the run ID, the input used, and the run summary; do not include tokens, cookies, or private data. This Actor is not affiliated with, endorsed by, or sponsored by ESPN. Use it only for public data and in accordance with ESPN's terms, robots guidance, and applicable law. Public roster records can contain personal information; use the output only for lawful purposes.