ESPN Stat Leaders API
Get ESPN Stat Leaders data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as league, limit, output, and retrieve structured data including resolved league slug, categories, resolved season year, stat category machine name, and stat category display label to display league leaderboard widgets, query a single statistical race, and compare historical season leaders.
- Selected price
- $0.002 / billing creditPublished pricing
- Sellers / APIs
- 1 / 1
- Requests · 30d
- 0Selected implementation · last 30 days
- Success rate · 30d
- —No requests in this period
ESPN Stat Leaders API
Prepare your request, then continue with your agent.
Pricing
$0.002 / billing credit
Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.
- Provider
- API
- Pricing
On this page
Overview
ESPN Stat Leaders API
Query league leaderboards using required league and optional sport, season, seasontype (1-4), limit (1-25 per category, default 10) and category (a category name from the returned categories[] list such as passingYards or points). Each item in items[] pairs rank, value and display_value with nested player and team objects.
Quick Facts
| Fact | Value |
|---|---|
| Access | OpenAny REST |
| Authentication | OpenAny API key in the Authorization header |
| Core inputs | Required query: league (e.g. nfl, nba, mlb, nhl). Optional sport, season, seasontype (1-4), limit (1-25, default 10), category, raw=0, fields and fresh=1. |
| Selected implementation | apish · ESPN statistical leaders API |
| Billing | See the pricing area for the selected implementation and request options |
What You Can Build
- Display league leaderboard widgets: Call with league and limit=5 to render top-5 cards across every major stat category.
- Query a single statistical race: Pass category (from categories[]) with limit=25 to build a dedicated scoring or passing leaderboard.
- Compare historical season leaders: Supply season and seasontype=2 or 3 to archive regular-season and postseason stat champions.
Returned Data
| Field | Meaning |
|---|---|
league |
Resolved league slug |
categories |
Available statistical leader category names |
count |
Number of leader items returned |
season.year |
Resolved season year |
items[].category |
Stat category machine name |
items[].category_label |
Stat category display label |
items[].rank |
Leader rank within the category |
items[].display_value |
Formatted statistical value |
items[].player.name |
Leading player display name |
items[].team.abbreviation |
Leading player team abbreviation |
Quick Start
- Set OPENANY_API_KEY to your OpenAny API key.
- Review the selected implementation and pricing, then adapt the request below to your target.
- Check the HTTP response and business result before reading optional fields.
curl --request GET --get \
https://api.openany.si/v1/agent-apis/apish/espn/v1/leaders \
-H "Authorization: Bearer ${OPENANY_API_KEY}" \
--data-urlencode league=nfl \
--data-urlencode limit=1 \
--data-urlencode output=json \
--data-urlencode raw=0
Request and Response Examples
The response example is a documentation reference and may be abbreviated. The documented request is a calling template; use the published contract and returned response for the selected implementation.
Published ESPN Stat Leaders API implementation contract.
Pricing and Billing
The pricing area reflects the selected API implementation. Review its billing unit and any request-dependent rules before calling; a source service's public availability does not determine OpenAny billing.
Frequently Asked Questions
Related APIs
Playground
Run sends a real API request. Charges follow the published API contract.
Sellers
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
apishCurrent ESPN statistical leaders API · GET · View API reference | $0.002 / billing credit | 0 | —successP50— |
- Pricing
- $0.002
Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.
Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 3. Price update time: not supplied.
API
- Method
- GET
- Endpoint
https://api.openany.si/v1/agent-apis/apish/espn/v1/leaders- Content type
- application/json
- Authentication
Authorization: Bearer $OPENANY_API_KEY
Input parameters
Fields in this listing; additional options and input encoding can vary by provider.
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
league | URL query parametersquery | string | Yes | League slug: nfl, college-football, nba, wnba, mens-college-basketball, womens-college-basketball, mlb, nhl, soccer competitions (eng.1 Premier League, esp.1 LaLiga, uefa.champions ...), f1, pga, atp, ufc. Other ESPN leagues work with `sport`. |
sport | URL query parametersquery | string | No | Only needed for a league not listed under `league` (it is inferred for those). enum: "football", "basketball", "baseball", "hockey", "soccer", "racing", "golf", "tennis", "mma", "lacrosse", "volleyball", "rugby", "field-hockey", "water-polo", "australian-football", "rugby-league", "cricket", "boxing" |
season | URL query parametersquery | string | No | Season year (2023 = the 2023 NFL season; NBA, NHL and other leagues that start in autumn use the year the season ends). Default: the current season. |
seasontype | URL query parametersquery | string | No | 1 preseason, 2 regular season, 3 postseason, 4 off season. Default: the current part of the season. enum: "1", "2", "3", "4" |
limit | URL query parametersquery | integer | No | Leaders per category, 1-25 (default 10). |
category | URL query parametersquery | string | No | One category name from the `categories` list of the response, for example passingYards, points, rebounds. |
raw | URL query parametersquery | string | No | 0 leaves out the bulky `raw` source blocks (often 10-30x smaller). enum: "0", "1" |
fields | URL query parametersquery | string | No | Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included. |
fresh | URL query parametersquery | string | No | 1 skips the 24-hour cache and fetches live. enum: "1" |
output | URL query parametersquery | string | No | JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON are not supported. enum: "json" |
records | URL query parametersquery | string | No | With output=csv|ndjson: the top-level list to turn into rows (e.g. `reviews`), or `.` for the whole object as one row. |
Required markers inside a nested object or variant apply when that object or variant is used.
Response structure
applied_filtersobjectcategorynulllimitintegerseasonnullseasontypenull
cachedbooleancategoriesstring[]countintegercredits_usedintegerfetched_atstringitemsobject[]abbreviationstringcategorystringcategory_labelstringdisplay_valuestringplayerobjectcountrynullflagnullheadshotstringidstringjerseystringnamestringpositionstringshort_namestringurlstring
rankintegerteamobjectabbreviationstringalternate_colorstringcolorstringidstringlocationnulllogostringnamestringnicknamestringshort_namestringurlstring
valuenumber
leaguestringseasonobjectnamestringtypestringyearinteger
sportstring
Composite rule pricing
Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.
Base fee: $0.000000. One matching variant replaces the base fee. Matching add-ons and quantity charges are added.
| Fee item | Price | Metering source | When | Quantity limit |
|---|---|---|---|---|
| Actual API.SH credits consumed | $0.002000 / billing credit | Response · /credits_used · Numeric value | Always | 1 billing credit · Decimal places: 0 |
Each quantity charge is rounded before summing: ceil. Requests exceeding this cost limit are rejected; it is not a price cap: $0.002000.
Response quantities settle after the response. Before execution, the maximum quantity determines the reservation; unused reservation is released. Missing or invalid quantities are not treated as zero.
Pricing parameters and defaults
[]
Agent integration
Copy the resource contract without sharing an API key.
Error handling
| Status | Next step |
|---|---|
400 | Check the offering and request fields. |
401 / 403 | Verify your credentials and access permissions. |
402 | Inspect the selected access mode and returned payment requirements. |
429 | Respect the returned rate limit and retry guidance. |
5xx | Inspect the error and usage record before retrying a paid operation. |
Examples
Official example · Live API.SH response · Minimal request
Example from the provider's documentation. Field values in your results will differ.
Prepare your environment
Use a terminal with cURL installed.
Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.
Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.
Terminal · macOS / Linuxprintf 'OpenAny API key: ' read -r -s OPENANY_API_KEY export OPENANY_API_KEY printf '\n'Run the request
Paste the complete command below into your terminal.
Values to replace before running 11
Review these request fields before running. Keep the published provider and request method unchanged.
league- League slug: nfl, college-football, nba, wnba, mens-college-basketball, womens-college-basketball, mlb, nhl, soccer competitions (eng.1 Premier League, esp.1 LaLiga, uefa.champions ...), f1, pga, atp, ufc. Other ESPN leagues work with `sport`.
sport- Only needed for a league not listed under `league` (it is inferred for those).
season- Season year (2023 = the 2023 NFL season; NBA, NHL and other leagues that start in autumn use the year the season ends). Default: the current season.
seasontype- 1 preseason, 2 regular season, 3 postseason, 4 off season. Default: the current part of the season.
limit- Leaders per category, 1-25 (default 10).
category- One category name from the `categories` list of the response, for example passingYards, points, rebounds.
raw- 0 leaves out the bulky `raw` source blocks (often 10-30x smaller).
fields- Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included.
fresh- 1 skips the 24-hour cache and fetches live.
output- JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON are not supported.
records- With output=csv|ndjson: the top-level list to turn into rows (e.g. `reviews`), or `.` for the whole object as one row.
Terminal · cURLcurl \ 'https://api.openany.si/v1/agent-apis/apish/espn/v1/leaders?league=nfl&limit=1&output=json&raw=0' \ -X GET \ -H "Authorization: Bearer $OPENANY_API_KEY" \ -H 'Content-Type: application/json'Check the response
Sample response · Documented HTTP 200
Sample response{ "applied_filters": { "category": null, "limit": 1, "season": null, "seasontype": null }, "cached": false, "categories": [ "passingYards", "rushingYards", "receivingYards", "totalTackles", "sacks", "kickoffYards", "interceptions", "passingTouchdowns", "quarterbackRating", "rushingTouchdowns", "receptions", "receivingTouchdowns", "totalPoints", "totalTouchdowns", "puntYards", "passesDefended" ], "count": 16, "credits_used": 1, "fetched_at": "2026-11-19T12:21:13.266Z", "items": [ { "abbreviation": "YDS", "category": "passingYards", "category_label": "Passing Yards", "display_value": "2838", "player": { "country": null, "flag": null, "headshot": "https://a.espncdn.com/i/headshots/nfl/players/full/4036378.png", "id": "4036378", "jersey": "10", "name": "Jordan Love", "position": "QB", "short_name": "J. Love", "url": "https://www.espn.com/nfl/player/_/id/4036378/jordan-love" }, "rank": 1, "team": { "abbreviation": "GB", "alternate_color": "ffb612", "color": "204e32", "id": "9", "location": null, "logo": "https://a.espncdn.com/i/teamlogos/nfl/500/gb.png", "name": "Green Bay Packers", "nickname": "Packers", "short_name": "Packers", "url": "https://www.espn.com/nfl/team/_/name/gb/green-bay-packers" }, "value": 2838 }, { "abbreviation": "YDS", "category": "rushingYards", "category_label": "Rushing Yards", "display_value": "1000", "player": { "country": null, "flag": null, "headshot": "https://a.espncdn.com/i/headshots/nfl/players/full/4429795.png", "id": "4429795", "jersey": "0", "name": "Jahmyr Gibbs", "position": "RB", "short_name": "J. Gibbs", "url": "https://www.espn.com/nfl/player/_/id/4429795/jahmyr-gibbs" }, "rank": 1, "team": { "abbreviation": "DET", "alternate_color": "bbbbbb", "color": "0076b6", "id": "8", "location": null, "logo": "https://a.espncdn.com/i/teamlogos/nfl/500/det.png", "name": "Detroit Lions", "nickname": "Lions", "short_name": "Lions", "url": "https://www.espn.com/nfl/team/_/name/det/detroit-lions" }, "value": 1000 }, { "abbreviation": "YDS", "category": "receivingYards", "category_label": "Receiving Yards", "display_value": "1207", "player": { "country": null, "flag": null, "headshot": "https://a.espncdn.com/i/headshots/nfl/players/full/4430878.png", "id": "4430878", "jersey": "11", "name": "Jaxon Smith-Njigba", "position": "WR", "short_name": "J. Smith-Njigba", "url": "https://www.espn.com/nfl/player/_/id/4430878/jaxon-smith-njigba" }, "rank": 1, "team": { "abbreviation": "SEA", "alternate_color": "69be28", "color": "002a5c", "id": "26", "location": null, "logo": "https://a.espncdn.com/i/teamlogos/nfl/500/sea.png", "name": "Seattle Seahawks", "nickname": "Seahawks", "short_name": "Seahawks", "url": "https://www.espn.com/nfl/team/_/name/sea/seattle-seahawks" }, "value": 1207 }, { "abbreviation": "TOT", "category": "totalTackles", "category_label": "Total Tackles", "display_value": "107", "player": { "country": null, "flag": null, "headshot": "https://a.espncdn.com/i/headshots/nfl/players/full/2612151.png", "id": "2612151", "jersey": "49", "name": "Alex Singleton", "position": "LB", "short_name": "A. Singleton", "url": "https://www.espn.com/nfl/player/_/id/2612151/alex-singleton" }, "rank": 1, "team": { "abbreviation": "DEN", "alternate_color": "fc4c02", "color": "0a2343", "id": "7", "location": null, "logo": "https://a.espncdn.com/i/teamlogos/nfl/500/den.png", "name": "Denver Broncos", "nickname": "Broncos", "short_name": "Broncos", "url": "https://www.espn.com/nfl/team/_/name/den/denver-broncos" }, "value": 107 }, { "abbreviation": "SACK", "category": "sacks", "category_label": "Sacks", "display_value": "10", "player": { "country": null, "flag": null, "headshot": "https://a.espncdn.com/i/headshots/nfl/players/full/4685724.png", "id": "4685724", "jersey": "51", "name": "Will Anderson Jr.", "position": "DE", "short_name": "W. Anderson Jr.", "url": "https://www.espn.com/nfl/player/_/id/4685724/will-anderson-jr" }, "rank": 1, "team": { "abbreviation": "HOU", "alternate_color": "eb0028", "color": "021018", "id": "34", "location": null, "logo": "https://a.espncdn.com/i/teamlogos/nfl/500/hou.png", "name": "Houston Texans", "nickname": "Texans", "short_name": "Texans", "url": "https://www.espn.com/nfl/team/_/name/hou/houston-texans" }, "value": 10.5 }, { "abbreviation": "KYDS", "category": "kickoffYards", "category_label": "Kickoff Yards", "display_value": "3500", "player": { "country": null, "flag": null, "headshot": "https://a.espncdn.com/i/headshots/nfl/players/full/3953687.png", "id": "3953687", "jersey": "17", "name": "Brandon Aubrey", "position": "PK", "short_name": "B. Aubrey", "url": "https://www.espn.com/nfl/player/_/id/3953687/brandon-aubrey" }, "rank": 1, "team": { "abbreviation": "DAL", "alternate_color": "b0b7bc", "color": "002a5c", "id": "6", "location": null, "logo": "https://a.espncdn.com/i/teamlogos/nfl/500/dal.png", "name": "Dallas Cowboys", "nickname": "Cowboys", "short_name": "Cowboys", "url": "https://www.espn.com/nfl/team/_/name/dal/dallas-cowboys" }, "value": 3500 }, { "abbreviation": "INT", "category": "interceptions", "category_label": "Interceptions", "display_value": "6", "player": { "country": null, "flag": null, "headshot": "https://a.espncdn.com/i/headshots/nfl/players/full/4241470.png", "id": "4241470", "jersey": "29", "name": "Xavier McKinney", "position": "S", "short_name": "X. McKinney", "url": "https://www.espn.com/nfl/player/_/id/4241470/xavier-mckinney" }, "rank": 1, "team": { "abbreviation": "GB", "alternate_color": "ffb612", "color": "204e32", "id": "9", "location": null, "logo": "https://a.espncdn.com/i/teamlogos/nfl/500/gb.png", "name": "Green Bay Packers", "nickname": "Packers", "short_name": "Packers", "url": "https://www.espn.com/nfl/team/_/name/gb/green-bay-packers" }, "value": 6 }, { "abbreviation": "TD", "category": "passingTouchdowns", "category_label": "Passing Touchdowns", "display_value": "27", "player": { "country": null, "flag": null, "headshot": "https://a.espncdn.com/i/headshots/nfl/players/full/3915511.png", "id": "3915511", "jersey": "9", "name": "Joe Burrow", "position": "QB", "short_name": "J. Burrow", "url": "https://www.espn.com/nfl/player/_/id/3915511/joe-burrow" }, "rank": 1, "team": { "abbreviation": "CIN", "alternate_color": "000000", "color": "fb4f14", "id": "4", "location": null, "logo": "https://a.espncdn.com/i/teamlogos/nfl/500/cin.png", "name": "Cincinnati Bengals", "nickname": "Bengals", "short_name": "Bengals", "url": "https://www.espn.com/nfl/team/_/name/cin/cincinnati-bengals" }, "value": 27 }, { "abbreviation": "RAT", "category": "quarterbackRating", "category_label": "Quarterback Rating", "display_value": "126", "player": { "country": null, "flag": null, "headshot": "https://a.espncdn.com/i/headshots/nfl/players/full/4689114.png", "id": "4689114", "jersey": "6", "name": "Jaxson Dart", "position": "QB", "short_name": "J. Dart", "url": "https://www.espn.com/nfl/player/_/id/4689114/jaxson-dart" }, "rank": 1, "team": { "abbreviation": "NYG", "alternate_color": "c9243f", "color": "003c7f", "id": "19", "location": null, "logo": "https://a.espncdn.com/i/teamlogos/nfl/500/nyg.png", "name": "New York Giants", "nickname": "Giants", "short_name": "Giants", "url": "https://www.espn.com/nfl/team/_/name/nyg/new-york-giants" }, "value": 125.85800170898438 }, { "abbreviation": "TD", "category": "rushingTouchdowns", "category_label": "Rushing Touchdowns", "display_value": "11", "player": { "country": null, "flag": null, "headshot": "https://a.espncdn.com/i/headshots/nfl/players/full/3918298.png", "id": "3918298", "jersey": "17", "name": "Josh Allen", "position": "QB", "short_name": "J. Allen", "url": "https://www.espn.com/nfl/player/_/id/3918298/josh-allen" }, "rank": 1, "team": { "abbreviation": "BUF", "alternate_color": "d50a0a", "color": "00338d", "id": "2", "location": null, "logo": "https://a.espncdn.com/i/teamlogos/nfl/500/buf.png", "name": "Buffalo Bills", "nickname": "Bills", "short_name": "Bills", "url": "https://www.espn.com/nfl/team/_/name/buf/buffalo-bills" }, "value": 11 }, { "abbreviation": "REC", "category": "receptions", "category_label": "Receptions", "display_value": "79", "player": { "country": null, "flag": null, "headshot": "https://a.espncdn.com/i/headshots/nfl/players/full/4430878.png", "id": "4430878", "jersey": "11", "name": "Jaxon Smith-Njigba", "position": "WR", "short_name": "J. Smith-Njigba", "url": "https://www.espn.com/nfl/player/_/id/4430878/jaxon-smith-njigba" }, "rank": 1, "team": { "abbreviation": "SEA", "alternate_color": "69be28", "color": "002a5c", "id": "26", "location": null, "logo": "https://a.espncdn.com/i/teamlogos/nfl/500/sea.png", "name": "Seattle Seahawks", "nickname": "Seahawks", "short_name": "Seahawks", "url": "https://www.espn.com/nfl/team/_/name/sea/seattle-seahawks" }, "value": 79 }, { "abbreviation": "TD", "category": "receivingTouchdowns", "category_label": "Receiving Touchdowns", "display_value": "10", "player": { "country": null, "flag": null, "headshot": "https://a.espncdn.com/i/headshots/nfl/players/full/4430878.png", "id": "4430878", "jersey": "11", "name": "Jaxon Smith-Njigba", "position": "WR", "short_name": "J. Smith-Njigba", "url": "https://www.espn.com/nfl/player/_/id/4430878/jaxon-smith-njigba" }, "rank": 1, "team": { "abbreviation": "SEA", "alternate_color": "69be28", "color": "002a5c", "id": "26", "location": null, "logo": "https://a.espncdn.com/i/teamlogos/nfl/500/sea.png", "name": "Seattle Seahawks", "nickname": "Seahawks", "short_name": "Seahawks", "url": "https://www.espn.com/nfl/team/_/name/sea/seattle-seahawks" }, "value": 10 }, { "abbreviation": "TP", "category": "totalPoints", "category_label": "Total Points", "display_value": "88", "player": { "country": null, "flag": null, "headshot": "https://a.espncdn.com/i/headshots/nfl/players/full/3124679.png", "id": "3124679", "jersey": "19", "name": "Jason Sanders", "position": "PK", "short_name": "J. Sanders", "url": "https://www.espn.com/nfl/player/_/id/3124679/jason-sanders" }, "rank": 1, "team": { "abbreviation": "NYJ", "alternate_color": "ffffff", "color": "115740", "id": "20", "location": null, "logo": "https://a.espncdn.com/i/teamlogos/nfl/500/nyj.png", "name": "New York Jets", "nickname": "Jets", "short_name": "Jets", "url": "https://www.espn.com/nfl/team/_/name/nyj/new-york-jets" }, "value": 88 }, { "abbreviation": "TTD", "category": "totalTouchdowns", "category_label": "Total Touchdowns", "display_value": "13", "player": { "country": null, "flag": null, "headshot": "https://a.espncdn.com/i/headshots/nfl/players/full/3117251.png", "id": "3117251", "jersey": "23", "name": "Christian McCaffrey", "position": "RB", "short_name": "C. McCaffrey", "url": "https://www.espn.com/nfl/player/_/id/3117251/christian-mccaffrey" }, "rank": 1, "team": { "abbreviation": "SF", "alternate_color": "b3995d", "color": "aa0000", "id": "25", "location": null, "logo": "https://a.espncdn.com/i/teamlogos/nfl/500/sf.png", "name": "San Francisco 49ers", "nickname": "49ers", "short_name": "49ers", "url": "https://www.espn.com/nfl/team/_/name/sf/san-francisco-49ers" }, "value": 13 }, { "abbreviation": "PYDS", "category": "puntYards", "category_label": "Punt Yards", "display_value": "2393", "player": { "country": null, "flag": null, "headshot": "https://a.espncdn.com/i/headshots/nfl/players/full/4039396.png", "id": "4039396", "jersey": "13", "name": "Corey Bojorquez", "position": "P", "short_name": "C. Bojorquez", "url": "https://www.espn.com/nfl/player/_/id/4039396/corey-bojorquez" }, "rank": 1, "team": { "abbreviation": "CLE", "alternate_color": "ff3c00", "color": "472a08", "id": "5", "location": null, "logo": "https://a.espncdn.com/i/teamlogos/nfl/500/cle.png", "name": "Cleveland Browns", "nickname": "Browns", "short_name": "Browns", "url": "https://www.espn.com/nfl/team/_/name/cle/cleveland-browns" }, "value": 2393 }, { "abbreviation": "PD", "category": "passesDefended", "category_label": "Passes Defended", "display_value": "14", "player": { "country": null, "flag": null, "headshot": "https://a.espncdn.com/i/headshots/nfl/players/full/4912847.png", "id": "4912847", "jersey": "25", "name": "Jacob Parrish", "position": "CB", "short_name": "J. Parrish", "url": "https://www.espn.com/nfl/player/_/id/4912847/jacob-parrish" }, "rank": 1, "team": { "abbreviation": "TB", "alternate_color": "3e3a35", "color": "bd1c36", "id": "27", "location": null, "logo": "https://a.espncdn.com/i/teamlogos/nfl/500/tb.png", "name": "Tampa Bay Buccaneers", "nickname": "Buccaneers", "short_name": "Buccaneers", "url": "https://www.espn.com/nfl/team/_/name/tb/tampa-bay-buccaneers" }, "value": 14 } ], "league": "nfl", "season": { "name": "2026", "type": "Regular Season", "year": 2026 }, "sport": "football" }