ESPN Game Summary API
Get ESPN Game Summary data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as event_id, league, output, and retrieve structured data including requested ESPN event identifier, resolved league slug, full league name, scheduled competition start timestamp, and competition status object to build lightweight match headers, automate post-game recaps, and audit venue and officiating data.
- Selected price
- $0.002 / billing creditPublished pricing
- Sellers / APIs
- 1 / 1
- Requests · 30d
- —Statistics unavailable
- Success rate · 30d
- —Statistics unavailable
ESPN Game Summary 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 Game Summary API
Inspect a single match by passing league and event_id, with optional sport and sections (a comma-separated subset such as header, boxscore, leaders, plays, drives, scoring_plays or win_probability). Returned JSON includes header competition metadata, season context, venue, attendance and officiating crew.
Quick Facts
| Fact | Value |
|---|---|
| Access | OpenAny REST |
| Authentication | OpenAny API key in the Authorization header |
| Core inputs | Required query: league and event_id (e.g. 401656363). Optional sport, sections (comma-separated subset like header,game_info,leaders), raw=0, fields and fresh=1. |
| Selected implementation | apish · ESPN game summary API |
| Billing | See the pricing area for the selected implementation and request options |
What You Can Build
- Build lightweight match headers: Request sections=header,game_info,leaders to fetch scores, venue and top performers without pulling full play logs.
- Automate post-game recaps: Combine boxscore, scoring_plays and leaders sections to generate structured game reports.
- Audit venue and officiating data: Extract game_info.venue, attendance and officials[] for historical sports analytics.
Returned Data
| Field | Meaning |
|---|---|
event_id |
Requested ESPN event identifier |
league |
Resolved league slug |
header.season.year |
Season year of the game |
header.league.name |
Full league name |
header.competitions[].date |
Scheduled competition start timestamp |
header.competitions[].competitors |
Home and away team competitor entries |
header.competitions[].status |
Competition status object |
game_info.attendance |
Reported game attendance |
game_info.venue.fullName |
Stadium or arena full name |
game_info.officials[].fullName |
Officiating crew member name |
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/game \
-H "Authorization: Bearer ${OPENANY_API_KEY}" \
--data-urlencode event_id=401656363 \
--data-urlencode league=nba \
--data-urlencode output=json \
--data-urlencode raw=0 \
--data-urlencode sections=header,game_info,leaders
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 Game Summary 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 game summary API · GET · View API reference | $0.002 / billing credit | — | —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/game- 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, ita.1, ger.1, fra.1, usa.1 MLS, uefa.champions, uefa.europa, fifa.world ...), f1, irl, nascar-premier, pga, lpga, atp, wta, ufc. Other ESPN leagues work with `sport`. |
event_id | URL query parametersquery | string | Yes | ESPN event id from `/espn/v1/scoreboard` or `/espn/v1/schedule` (401656363 = 2024 NBA Finals game 5). |
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" |
sections | URL query parametersquery | string | No | Comma-separated subset: header, boxscore, leaders, plays, drives, scoring_plays, win_probability, odds, injuries, rosters, key_events, commentary, game_info, standings, season_series, last_five_games, news, at_bats (default: all). |
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
cachedbooleancredits_usedintegerevent_idstringfetched_atstringgame_infoobjectattendanceintegerofficialsobject[]displayNamestringfullNamestringorderintegerpositionobjectdisplayNamestringidstringnamestring
venueobjectaddressobjectcitystringstatestring
fullNamestringgrassbooleanidstringimagesobject[]altstringheightintegerhrefstringrelstring[]widthinteger
shortNamestring
headerobjectcompetitionsobject[]attendancenullbroadcastsunknown[]competitorsobject[]athletenullformnullhome_awaystringidstringleadersunknown[]linescoresobject[]displaystringperiodnullvaluenull
orderintegerranknullrecordsunknown[]scorestringseednullstatisticsunknown[]teamobjectabbreviationstringalternate_colorstringcolorstringidstringlocationstringlogostringnamestringnicknamestringshort_namenullurlstring
typenullwinnerboolean
conference_gamebooleandatestringheadlinesunknown[]idstringleadersunknown[]neutral_sitebooleannotesunknown[]oddsnullstatusobjectclocknullcompletedbooleandescriptionstringdetailstringnamestringperiodnullshort_detailstringstatestring
typenullvenuenull
idstringleagueobjectabbreviationstringidstringnamestring
seasonobjectcurrentbooleantypeintegeryearinteger
urlstringweeknull
leadersobject[]categoriesobject[]labelstringleadersobject[]countrynullflagnullheadshotstringidstringjerseystringmain_statobjectlabelstringvaluestring
namestringpositionstringshort_namestringsummarystringurlstringvaluestring
namestring
teamobjectabbreviationstringalternate_colornullcolornullidstringlocationnulllogostringnamestringnicknamenullshort_namenullurlstring
leaguestringrecapobjectdescriptionstringheadlinestringpublishedstringurlnull
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 9
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, ita.1, ger.1, fra.1, usa.1 MLS, uefa.champions, uefa.europa, fifa.world ...), f1, irl, nascar-premier, pga, lpga, atp, wta, ufc. Other ESPN leagues work with `sport`.
sport- Only needed for a league not listed under `league` (it is inferred for those).
event_id- ESPN event id from `/espn/v1/scoreboard` or `/espn/v1/schedule` (401656363 = 2024 NBA Finals game 5).
sections- Comma-separated subset: header, boxscore, leaders, plays, drives, scoring_plays, win_probability, odds, injuries, rosters, key_events, commentary, game_info, standings, season_series, last_five_games, news, at_bats (default: all).
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/game?event_id=401656363&league=nba&output=json&raw=0§ions=header%2Cgame_info%2Cleaders' \ -X GET \ -H "Authorization: Bearer $OPENANY_API_KEY" \ -H 'Content-Type: application/json'Check the response
Sample response · Documented HTTP 200
Sample response{ "cached": false, "credits_used": 1, "event_id": "401656363", "fetched_at": "2026-11-19T12:33:56.560Z", "game_info": { "attendance": 19156, "officials": [ { "displayName": "Bill Kennedy", "fullName": "Bill Kennedy", "order": 1, "position": { "displayName": "Referee", "id": "40", "name": "Referee" } }, { "displayName": "Zach Zarba", "fullName": "Zach Zarba", "order": 2, "position": { "displayName": "Referee", "id": "40", "name": "Referee" } }, { "displayName": "John Goble", "fullName": "John Goble", "order": 3, "position": { "displayName": "Referee", "id": "40", "name": "Referee" } } ], "venue": { "address": { "city": "Boston", "state": "MA" }, "fullName": "TD Garden", "grass": false, "id": "1824", "images": [ { "alt": "", "height": 1125, "href": "https://a.espncdn.com/i/venues/nba/day/1824.jpg", "rel": [ "full", "day" ], "width": 2000 } ], "shortName": "TD Banknorth Garden" } }, "header": { "competitions": [ { "attendance": null, "broadcasts": [], "competitors": [ { "athlete": null, "form": null, "home_away": "home", "id": "2", "leaders": [], "linescores": [ { "display": "28", "period": null, "value": null }, { "display": "39", "period": null, "value": null }, { "display": "19", "period": null, "value": null }, { "display": "20", "period": null, "value": null } ], "order": 0, "rank": null, "records": [], "score": "106", "seed": null, "statistics": [], "team": { "abbreviation": "BOS", "alternate_color": "ffffff", "color": "008348", "id": "2", "location": "Boston", "logo": "https://a.espncdn.com/i/teamlogos/nba/500/bos.png", "name": "Boston Celtics", "nickname": "Celtics", "short_name": null, "url": "https://www.espn.com/nba/team/_/name/bos/boston-celtics" }, "type": null, "winner": true }, { "athlete": null, "form": null, "home_away": "away", "id": "6", "leaders": [], "linescores": [ { "display": "18", "period": null, "value": null }, { "display": "28", "period": null, "value": null }, { "display": "21", "period": null, "value": null }, { "display": "21", "period": null, "value": null } ], "order": 1, "rank": null, "records": [], "score": "88", "seed": null, "statistics": [], "team": { "abbreviation": "DAL", "alternate_color": "bbc4ca", "color": "0064b1", "id": "6", "location": "Dallas", "logo": "https://a.espncdn.com/i/teamlogos/nba/500/dal.png", "name": "Dallas Mavericks", "nickname": "Mavericks", "short_name": null, "url": "https://www.espn.com/nba/team/_/name/dal/dallas-mavericks" }, "type": null, "winner": false } ], "conference_game": false, "date": "2024-06-18T00:30Z", "headlines": [], "id": "401656363", "leaders": [], "neutral_site": false, "notes": [], "odds": null, "status": { "clock": null, "completed": true, "description": "Final", "detail": "Final", "name": "STATUS_FINAL", "period": null, "short_detail": "Final", "state": "post" }, "type": null, "venue": null } ], "id": "401656363", "league": { "abbreviation": "NBA", "id": "46", "name": "National Basketball Association" }, "season": { "current": false, "type": 3, "year": 2024 }, "url": "https://www.espn.com/nba/game/_/gameId/401656363/mavericks-celtics", "week": null }, "leaders": [ { "categories": [ { "label": "Points", "leaders": [ { "country": null, "flag": null, "headshot": "https://a.espncdn.com/i/headshots/nba/players/full/4065648.png", "id": "4065648", "jersey": "0", "main_stat": { "label": "PTS", "value": "31" }, "name": "Jayson Tatum", "position": "F", "short_name": "J. Tatum", "summary": "11/24 FG, 8/8 FT", "url": "https://www.espn.com/nba/player/_/id/4065648/jayson-tatum", "value": "31" } ], "name": "points" }, { "label": "Assists", "leaders": [ { "country": null, "flag": null, "headshot": "https://a.espncdn.com/i/headshots/nba/players/full/4065648.png", "id": "4065648", "jersey": "0", "main_stat": { "label": "AST", "value": "11" }, "name": "Jayson Tatum", "position": "F", "short_name": "J. Tatum", "summary": "2 TO, 45 MIN", "url": "https://www.espn.com/nba/player/_/id/4065648/jayson-tatum", "value": "11" } ], "name": "assists" }, { "label": "Rebounds", "leaders": [ { "country": null, "flag": null, "headshot": "https://a.espncdn.com/i/headshots/nba/players/full/3995.png", "id": "3995", "jersey": "5", "main_stat": { "label": "REB", "value": "11" }, "name": "Jrue Holiday", "position": "G", "short_name": "J. Holiday", "summary": "7 DREB, 4 OREB", "url": "https://www.espn.com/nba/player/_/id/3995/jrue-holiday", "value": "11" } ], "name": "rebounds" } ], "team": { "abbreviation": "BOS", "alternate_color": null, "color": null, "id": "2", "location": null, "logo": "https://a.espncdn.com/i/teamlogos/nba/500/bos.png", "name": "Boston Celtics", "nickname": null, "short_name": null, "url": "https://www.espn.com/nba/team/_/name/bos/boston-celtics" } }, { "categories": [ { "label": "Points", "leaders": [ { "country": null, "flag": null, "headshot": "https://a.espncdn.com/i/headshots/nba/players/full/3945274.png", "id": "3945274", "jersey": "77", "main_stat": { "label": "PTS", "value": "28" }, "name": "Luka Doncic", "position": "G", "short_name": "L. Doncic", "summary": "12/25 FG, 2/5 FT", "url": "https://www.espn.com/nba/player/_/id/3945274/luka-doncic", "value": "28" } ], "name": "points" }, { "label": "Assists", "leaders": [ { "country": null, "flag": null, "headshot": "https://a.espncdn.com/i/headshots/nba/players/full/6442.png", "id": "6442", "jersey": "11", "main_stat": { "label": "AST", "value": "9" }, "name": "Kyrie Irving", "position": "G", "short_name": "K. Irving", "summary": "1 TO, 41 MIN", "url": "https://www.espn.com/nba/player/_/id/6442/kyrie-irving", "value": "9" } ], "name": "assists" }, { "label": "Rebounds", "leaders": [ { "country": null, "flag": null, "headshot": "https://a.espncdn.com/i/headshots/nba/players/full/3945274.png", "id": "3945274", "jersey": "77", "main_stat": { "label": "REB", "value": "12" }, "name": "Luka Doncic", "position": "G", "short_name": "L. Doncic", "summary": "12 DREB, 0 OREB", "url": "https://www.espn.com/nba/player/_/id/3945274/luka-doncic", "value": "12" } ], "name": "rebounds" } ], "team": { "abbreviation": "DAL", "alternate_color": null, "color": null, "id": "6", "location": null, "logo": "https://a.espncdn.com/i/teamlogos/nba/500/dal.png", "name": "Dallas Mavericks", "nickname": null, "short_name": null, "url": "https://www.espn.com/nba/team/_/name/dal/dallas-mavericks" } } ], "league": "nba", "recap": { "description": "— Jayson Tatum put his hands behind his head, with TD Garden fans standing on their feet cheering around him, and took it all in.", "headline": "Celtics win 18th NBA championship with 106-88 Game 5 victory over Dallas Mavericks", "published": "2024-06-18T14:08:35Z", "url": null }, "sport": "basketball" }