ESPN Rosters & Player Stats Scraper avatar

ESPN Rosters & Player Stats Scraper

Under maintenance

Pricing

from $2.99 / 1,000 rosters & player stats

Go to Apify Store
ESPN Rosters & Player Stats Scraper

ESPN Rosters & Player Stats Scraper

Under maintenance

Scrape 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

w3crawler

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

23 days ago

Last modified

Categories

Features

Limited permissions

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

  1. Open the Actor Store page and select Try for free or open the Input tab.
  2. Add one or more league codes to leagues. Optionally filter by teams; otherwise maxTeams bounds team discovery for each league.
  3. Set season if you need a specific season, and decide whether to enable fetchPlayerStats. Statistics require one extra public request per player and can be slow for large leagues.
  4. 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.

FieldTypeRequired?DefaultMeaning
leaguesstring arrayRequired["nba"]League codes to scrape: nba, nfl, mlb, nhl, mls, wnba, ncaam, ncaaw, ncaaf, epl, laliga, ucl, bundesliga, seriea, ligue1, ligamx.
teamsstring arrayOptionalNot suppliedTeam abbreviations (case-insensitive, such as LAL) or ESPN numeric team IDs. Omit to fetch all teams for the selected leagues.
maxTeamsintegerOptional32Maximum teams discovered per league when no explicit teams are supplied, 1–32.
seasonintegerOptionalNot suppliedSeason end year, such as 2026 for the NBA 2025-26 season. Leave empty for the current season; range 1990–2100.
fetchPlayerStatsbooleanOptionalfalseMake one extra public request per player for statistics. Categories depend on the sport.
maxItemsintegerOptional500Maximum source-backed player records across all leagues, 1–50,000. Diagnostics do not consume this limit.
requestDelayMsintegerOptional300Minimum 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.

FieldTypeAvailabilityMeaning
recordTypestring enumAlwaysRecord discriminator; espn-player.
sourceNamestringAlwaysHuman-readable source name.
sourceKindstring enumAlwaysProvenance: public-espn-api or fixture-public-espn.
sourceUrlstringAlwaysExact public ESPN roster URL used for the row.
sportstringAlwaysSport path associated with the league.
leaguestringAlwaysNormalized league code.
seasonintegerAlwaysSeason year reported by ESPN.
teamIdstringAlwaysPublic ESPN team identifier.
teamNamestringAlwaysTeam display name.
teamAbbreviationstringAlwaysTeam abbreviation.
teamSlugstringAlwaysTeam slug used in ESPN routes.
playerIdstringAlwaysPublic ESPN player identifier.
fullNamestringAlwaysPlayer full name.
firstNamestringAlwaysPlayer first name.
lastNamestringAlwaysPlayer last name.
jerseystringAlwaysJersey number.
positionstringAlwaysPosition name.
positionAbbreviationstringAlwaysPosition abbreviation.
rosterGroupstringWhen the roster publishes itRoster group, such as offense or starters.
agenumberAlwaysPlayer age.
dateOfBirthstringAlwaysDate of birth in ISO UTC.
heightnumberAlwaysHeight in inches.
weightnumberAlwaysWeight in pounds.
displayHeightstringAlwaysDisplay height, such as 6' 5".
displayWeightstringAlwaysDisplay weight, such as 184 lbs.
collegestringWhen the roster publishes itCollege name.
experienceYearsnumberAlwaysYears of professional experience.
statusstringAlwaysPlayer roster status, such as Active.
headshotUrlstringAlwaysPublic player headshot URL.
birthCitystringAlwaysBirth city.
birthStatestringWhen the roster publishes itBirth state or region.
birthCountrystringAlwaysBirth country.
handednessstringWhen publishedPlayer handedness, when ESPN exposes it.
playerUrlstringAlwaysPublic ESPN player page.
statisticsobject arrayWhen fetchPlayerStats is enabled and stats existStat categories, each with category and entries of { name, value, displayValue }.
scrapedAtstringAlwaysTime 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).

FieldMeaning
sourcePublic source label recorded for the run.
statusActor outcome: SUCCEEDED or FAILED.
runStatusCanonical run status; matches status.
dataStatusCompleteness of saved rows: COMPLETE, PARTIAL, NO_RESULTS, or FAILED.
leaguesLeague codes used for the run.
seasonSeason year used for saved players.
requestedItemCountItem limit requested for the run.
recordsStoredPlayer rows saved.
normalCountNon-diagnostic rows saved.
diagnosticCountOperational issues recorded without dataset rows.
diagnosticItemsDiagnostic dataset rows; always 0.
diagnosticRowsStoredDiagnostic rows stored in the dataset; always 0.
uniquePlayerIdsDistinct player IDs saved.
duplicateCountDuplicate players removed.
attemptedRequestsPublic ESPN requests attempted.
typeCountsSaved record counts by recordType.
fixtureModeWhether the run used an offline QA fixture instead of live ESPN responses.
completedAtTime the summary was written, in ISO UTC.
StatusData statusMeaning
SUCCEEDEDCOMPLETEEligible players were saved without an extraction problem.
SUCCEEDEDPARTIALSome players were saved, but a later team or statistics request failed.
SUCCEEDEDNO_RESULTSThe roster feeds completed cleanly without usable players.
FAILEDFAILEDA 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.