Team Season Stats API
One row per team with its season totals and per-game averages across every stat category, own or opponent side, for the NFL, NBA, WNBA, NHL, MLB and college football or basketball. Built for offence and defence comparisons.
$0.50 per 1,000 records
You pay only for the records you get. Zero records cost zero. 10,000 free records of this API to start (5,000 at the base price of $1 per 1,000), no card.
Data from site.web.api.espn.com/apis/common/v3/sports/football/nfl/statistics/byteam
Get this data
Try it here with a few records, download the sample, fill a Google Sheet, or call it from your own code.
Try it
Run it on this page, or call it from your code with the endpoint in the developer section. A free key covers 10,000 records of this API, no card. Create a free key
For developers: the API and MCPThe endpoint, code in curl, JavaScript and Python, every input, and files for your tools
- Small runs answer in the same request; longer ones answer
202with a run to poll. fieldsreturns only the fields you name. The examples send the ones picked on this page.Idempotency-Keyis optional. A retry with it is never charged twice.- You pay for records returned. Zero records cost zero.
curl -X POST "https://pullrow.dev/v1/apis/espn-team-season-stats/run" \
-H "Authorization: Bearer $PULLROW_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":{"league":"nfl"},"max_items":50}'Inputs
Send them as input in the request body. Leave one out to use its default.
What's in each record
19 fields: 17 here, 2 technical ones under Technical details.
Basics
- Team display name
Example Arizona Cardinals
- Team abbreviation
Example ARI
- League
Example nfl
- Season year
Example 2,026
- Season type
regular, postseason or preseason.
Example regular
- Side
own or opponent.
Example own
- Games played
Example 12
- Points per game
Points scored per game.
Example 17.33
- Total yards per game
Total yards per game (football).
Example 307.583
- Passing yards per game
Passing yards per game (football).
Example 208.917
- Rushing yards per game
Rushing yards per game (football).
Example 98.7
- Turnovers
Giveaways (football).
Example 16
- Third down (%)
Third-down conversion percentage (football).
Example 37.278%
- Sacks
Times sacked (football offence).
Example 32
- Total penalties
Example 78
- Stats
Every stat column the source gives for the team, keyed by category and ESPN stat name.
Example General games played: 12 · General fumbles recovered: 5 · General fumbles lost: 3
Links
- Link
The team's stats page.
Example espn.com/nfl/team/stats/_/id/22
Technical detailsField names and types for developers, and the 2 fields hidden above
Hidden by default
These 2 fields come with each record too. They are internal codes, notes about how the record was read or a copy of what was searched for, so the lists above leave them out.
- ID
idTeam id, with the side added for opponent rows. - ESPN team ID
team_id
Field names and types
The names your code reads in each record. "Filled" counts how many of the 3 sample records carry the field.
| Field name | Type | Shown on this page as | Filled |
|---|---|---|---|
id | text | ID (hidden) | 3 of 3 |
team_id | text | ESPN team ID (hidden) | 3 of 3 |
team | text | Team display name | 3 of 3 |
abbreviation | text | Team abbreviation | 3 of 3 |
league | text | League | 3 of 3 |
season | number | Season year | 3 of 3 |
season_type | text | Season type | 3 of 3 |
side | text | Side | 3 of 3 |
url | link | Link | 3 of 3 |
games_played | number | Games played | 3 of 3 |
points_per_game | number | Points per game | 3 of 3 |
total_yards_per_game | number | Total yards per game | 3 of 3 |
passing_yards_per_game | number | Passing yards per game | 3 of 3 |
rushing_yards_per_game | number | Rushing yards per game | 3 of 3 |
turnovers | number | Turnovers | 3 of 3 |
third_down_pct | number | Third down (%) | 3 of 3 |
sacks | number | Sacks | 3 of 3 |
penalties | number | Total penalties | 3 of 3 |
stats | group of values | Stats | 3 of 3 |
How it reads the site
Runs on a reader we built and maintain by hand for this site.
Save as pipeline
A pipeline remembers this API, your inputs and the fields you picked. It can run on a schedule and email you the results.
Sample records
| Record | Team display name | Team abbreviation | League | Season year | Season type | Side | Games played | Points per game | Total yards per game | Passing yards per game | Rushing yards per game | Turnovers | Third down (%) | Sacks | Total penalties | Stats | Link |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | Arizona Cardinals | ARI | nfl | 2,026 | regular | own | 12 | 17.33 | 307.583 | 208.917 | 98.7 | 16 | 37.278% | 32 | 78 | General games played: 12 · General fumbles recovered: 5 · General fumbles lost: 3 | espn.com/nfl/team/stats/_/id/22 |
| 2 | Atlanta Falcons | ATL | nfl | 2,026 | regular | own | 11 | 19.55 | 341.727 | 202.455 | 139.3 | 23 | 34.815% | 22 | 81 | General games played: 11 · General fumbles recovered: 6 · General fumbles lost: 7 | espn.com/nfl/team/stats/_/id/1 |
| 3 | Baltimore Ravens | BAL | nfl | 2,026 | regular | own | 12 | 22.08 | 354.167 | 225.75 | 128.4 | 17 | 36.552% | 27 | 89 | General games played: 12 · General fumbles recovered: 5 · General fumbles lost: 10 | espn.com/nfl/team/stats/_/id/33 |
Sample records from the example output this API publishes. Email addresses and phone numbers in them are masked. Hover over a column name to see the field name your code reads.
Reliability
Counted from real runs. Our own health checks are left out. A run succeeded when it finished and the site neither blocked it nor broke it.
Incidents and repairs
How it is kept working What a repair can't do
A ready-made API, maintained by us. It is not part of the daily check or the automatic rebuild yet.
- You pay only for records returned. A run that returns none costs nothing.
- Season-to-date totals only, for the season and season type you ask for; it is not a game-by-game log.
- The headline columns (points, yards, turnovers, third-down percentage, sacks, penalties) are filled for football; in other sports they are filled only where the source has a matching stat. Every stat the source gives is in stats.
- Stat names differ by sport; a few appear in more than one category, so the second and later ones carry a category prefix in stats.
- Teams are returned in the source's own order; college leagues return all listed teams page by page.
- Updated by the source after each game; no key needed. The data is ESPN's: check its terms before republishing it.
Version history
A run uses the live version unless the request names another one with version.
Manage this API
Only your workspace sees this part.
Automatic repair
Off: a rebuilt version is stored and waits for you in the version history.
Delete this API
Removes the API, its versions and the saved records of its runs. Calls to its address then answer 404. Records already charged stay charged. This cannot be undone.