OpenAny
Get API keyAPI Key
APIData

espn logo
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
USE THIS API

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
Connect your agent
On this page

Overview

Overview
ESPN Game Summary API

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

  1. Set OPENANY_API_KEY to your OpenAny API key.
  2. Review the selected implementation and pricing, then adapt the request below to your target.
  3. Check the HTTP response and business result before reading optional fields.
bash
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

View FAQ

Related APIs

Playground

Run sends a real API request. Charges follow the published API contract.

Request parameters
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`.
ESPN event id from `/espn/v1/scoreboard` or `/espn/v1/schedule` (401656363 = 2024 NBA Finals game 5).
Optional parameters (7)
Only needed for a league not listed under `league` (it is inferred for those).
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).
0 leaves out the bulky `raw` source blocks (often 10-30x smaller).
Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included.
1 skips the 24-hour cache and fetches live.
JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON are not supported.
With output=csv|ndjson: the top-level list to turn into rows (e.g. `reviews`), or `.` for the whole object as one row.

Sample response

Run a request to see the actual response. Published samples are in Examples.

Response result

Sellers

SellerPricingRequests · 30dPerformanceAccess
apishCurrent
ESPN game summary API · GET · View API reference
$0.002 / billing credit—
—successP50—
Selected pricing · apishUSD / billing credit
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
View request and response examples

Input parameters

Fields in this listing; additional options and input encoding can vary by provider.

ParameterLocationTypeRequiredDescription
leagueURL query parametersquerystringYes

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_idURL query parametersquerystringYes

ESPN event id from `/espn/v1/scoreboard` or `/espn/v1/schedule` (401656363 = 2024 NBA Finals game 5).

sportURL query parametersquerystringNo

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"

sectionsURL query parametersquerystringNo

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).

rawURL query parametersquerystringNo

0 leaves out the bulky `raw` source blocks (often 10-30x smaller).

enum: "0", "1"

fieldsURL query parametersquerystringNo

Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included.

freshURL query parametersquerystringNo

1 skips the 24-hour cache and fetches live.

enum: "1"

outputURL query parametersquerystringNo

JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON are not supported.

enum: "json"

recordsURL query parametersquerystringNo

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

Inferred from examples
  • cachedboolean
  • credits_usedinteger
  • event_idstring
  • fetched_atstring
  • game_infoobject
    • attendanceinteger
    • officialsobject[]
      • displayNamestring
      • fullNamestring
      • orderinteger
      • positionobject
        • displayNamestring
        • idstring
        • namestring
    • venueobject
      • addressobject
        • citystring
        • statestring
      • fullNamestring
      • grassboolean
      • idstring
      • imagesobject[]
        • altstring
        • heightinteger
        • hrefstring
        • relstring[]
        • widthinteger
      • shortNamestring
  • headerobject
    • competitionsobject[]
      • attendancenull
      • broadcastsunknown[]
      • competitorsobject[]
        • athletenull
        • formnull
        • home_awaystring
        • idstring
        • leadersunknown[]
        • linescoresobject[]
          • displaystring
          • periodnull
          • valuenull
        • orderinteger
        • ranknull
        • recordsunknown[]
        • scorestring
        • seednull
        • statisticsunknown[]
        • teamobject
          • abbreviationstring
          • alternate_colorstring
          • colorstring
          • idstring
          • locationstring
          • logostring
          • namestring
          • nicknamestring
          • short_namenull
          • urlstring
        • typenull
        • winnerboolean
      • conference_gameboolean
      • datestring
      • headlinesunknown[]
      • idstring
      • leadersunknown[]
      • neutral_siteboolean
      • notesunknown[]
      • oddsnull
      • statusobject
        • clocknull
        • completedboolean
        • descriptionstring
        • detailstring
        • namestring
        • periodnull
        • short_detailstring
        • statestring
      • typenull
      • venuenull
    • idstring
    • leagueobject
      • abbreviationstring
      • idstring
      • namestring
    • seasonobject
      • currentboolean
      • typeinteger
      • yearinteger
    • urlstring
    • weeknull
  • leadersobject[]
    • categoriesobject[]
      • labelstring
      • leadersobject[]
        • countrynull
        • flagnull
        • headshotstring
        • idstring
        • jerseystring
        • main_statobject
          • labelstring
          • valuestring
        • namestring
        • positionstring
        • short_namestring
        • summarystring
        • urlstring
        • valuestring
      • namestring
    • teamobject
      • abbreviationstring
      • alternate_colornull
      • colornull
      • idstring
      • locationnull
      • logostring
      • namestring
      • nicknamenull
      • short_namenull
      • urlstring
  • leaguestring
  • recapobject
    • descriptionstring
    • headlinestring
    • publishedstring
    • urlnull
  • 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 itemPriceMetering sourceWhenQuantity limit
Actual API.SH credits consumed$0.002000 / billing creditResponse · /credits_used · Numeric valueAlways1 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.

Download MDView API Markdown

Error handling

StatusNext step
400Check the offering and request fields.
401 / 403Verify your credentials and access permissions.
402Inspect the selected access mode and returned payment requirements.
429Respect the returned rate limit and retry guidance.
5xxInspect 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.

  1. 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 / Linux
    printf 'OpenAny API key: '
    read -r -s OPENANY_API_KEY
    export OPENANY_API_KEY
    printf '\n'
  2. 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 · cURL
    curl \
      'https://api.openany.si/v1/agent-apis/apish/espn/v1/game?event_id=401656363&league=nba&output=json&raw=0&sections=header%2Cgame_info%2Cleaders' \
      -X GET \
      -H "Authorization: Bearer $OPENANY_API_KEY" \
      -H 'Content-Type: application/json'
  3. 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"
    }

Common questions

How do I limit the game summary response to specific sections?

Pass a comma-separated list in sections, such as header,game_info,leaders or boxscore,win_probability.

Where do I find an ESPN event_id?

Get event_id values from the ESPN Scoreboard API or ESPN Team Schedule API (for example, 401656363 for 2024 NBA Finals game data).

Should I use this endpoint or the Play-by-Play API for full play logs?

Use this endpoint when you want multi-section match data; use the ESPN Play-by-Play API when you want period or scoring_only play filtering.

Does game_info include stadium and referee details?

Yes. game_info exposes venue (id, fullName, shortName, address, grass), attendance and officials[].

How do I get live scores during a game in progress?

Pass fresh=1 to skip the 24-hour cache and retrieve live match data.

How can I minimize bandwidth on large box scores?

Combine sections filtering with raw=0 and optional fields selection.

Use ESPN Game Summary API with your agent

Inspect endpoint contracts and confirm availability and pricing before a paid call.