# ESPN videos and highlights API

Get ESPN Videos 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, number of videos returned, ESPN video identifier, video headline title, and short video summary for embed post-game highlights, populate team video galleries, and build sports media aggregators.

Documentation: https://openany.si/espn/espn-videos-and-highlights-api/d9e0d676-489e-418a-baff-d2142536cc69/
API ID: d9e0d676-489e-418a-baff-d2142536cc69
Provider: apish
Contract revision: 3
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/espn/v1/videos
Page update time: 2026-12-03T02:43:04.801Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.002 / billing credit
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:42:22.749Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "rules",
  "parameters": [],
  "policy_version": 2,
  "sale": {
    "addons": [],
    "base_price_micro_usd": "0",
    "max_cost_micro_usd": "2000",
    "quantities": [
      {
        "id": "upstream_credits",
        "label": "Actual API.SH credits consumed",
        "max_quantity": "1",
        "measure": "value",
        "pointer": "/credits_used",
        "price_micro_usd": "2000",
        "quantity_scale": 0,
        "source": "response",
        "unit": "credit",
        "unit_quantity": "1"
      }
    ],
    "rounding": "ceil",
    "variants": []
  }
}
```

## Usage and limits
## ESPN Videos API

Query league, team or game video clips by passing required league (such as nfl, nba, mlb, nhl or eng.1) and optional event\_id (ESPN event ID or game link), team\_id (numeric team ID) and limit (default 25, max 100). Returned videos\[\] expose headline, description, duration\_s, thumbnail, hls, mp4, published, expires, categories\[\] and url.

## What You Can Build

- **Embed post-game highlights**: Pass event\_id from the ESPN Scoreboard API to fetch highlight clips for a completed matchup.
- **Populate team video galleries**: Pass a numeric team\_id with limit to list a club's latest press conferences and recaps.
- **Build sports media aggregators**: Use duration\_s, thumbnail, published and categories\[\] to filter and sort video cards.

## Returned Data

| Field | Meaning |
| --- | --- |
| `league` | Resolved league slug |
| `count` | Number of videos returned |
| `videos[].id` | ESPN video identifier |
| `videos[].headline` | Video headline title |
| `videos[].description` | Short video summary |
| `videos[].duration_s` | Video duration in seconds |
| `videos[].thumbnail` | Video thumbnail image URL |
| `videos[].hls` | HLS streaming manifest URL |
| `videos[].mp4` | Direct MP4 video URL |
| `videos[].url` | Canonical ESPN video page URL |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "ESPN videos and highlights API request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "league": {
          "type": "string",
          "description": "nfl, nba, mlb, nhl, eng.1 ..."
        },
        "event_id": {
          "type": "string",
          "description": "ESPN event id or game link: that game's highlights."
        },
        "team_id": {
          "type": "string",
          "description": "Numeric team id: that team's latest videos."
        },
        "limit": {
          "type": "integer",
          "description": "Videos to return for a league or team (default 25, max 100)."
        },
        "raw": {
          "type": "string",
          "description": "0 leaves out the bulky `raw` source blocks (often 10-30x smaller).",
          "enum": [
            "0",
            "1"
          ]
        },
        "fields": {
          "type": "string",
          "description": "Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included."
        },
        "fresh": {
          "type": "string",
          "description": "1 skips the 24-hour cache and fetches live.",
          "enum": [
            "1"
          ]
        },
        "output": {
          "type": "string",
          "description": "JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON are not supported.",
          "enum": [
            "json"
          ]
        },
        "records": {
          "type": "string",
          "description": "With output=csv|ndjson: the top-level list to turn into rows (e.g. `reviews`), or `.` for the whole object as one row."
        }
      },
      "required": [
        "league"
      ]
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "applied_filters": {
      "type": "object",
      "properties": {
        "team_id": {
          "type": "null"
        }
      }
    },
    "cached": {
      "type": "boolean"
    },
    "count": {
      "type": "integer"
    },
    "credits_used": {
      "type": "integer"
    },
    "fetched_at": {
      "type": "string"
    },
    "league": {
      "type": "string"
    },
    "sport": {
      "type": "string"
    },
    "videos": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "categories": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "description": {
                  "type": "string"
                },
                "id": {
                  "anyOf": [
                    {
                      "type": "integer"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "type": {
                  "type": "string"
                }
              }
            }
          },
          "description": {
            "type": "string"
          },
          "duration_s": {
            "type": "null"
          },
          "expires": {
            "type": "null"
          },
          "headline": {
            "type": "string"
          },
          "hls": {
            "type": "null"
          },
          "id": {
            "type": "integer"
          },
          "last_modified": {
            "type": "string"
          },
          "mp4": {
            "type": "null"
          },
          "published": {
            "type": "string"
          },
          "thumbnail": {
            "type": "string"
          },
          "url": {
            "type": "string"
          }
        }
      }
    }
  }
}
```

## Request example
Scenario: Official example · Live API.SH response · Minimal request
```bash
curl \
  'https://api.openany.si/v1/agent-apis/apish/espn/v1/videos?league=nba&limit=1&output=json&raw=0' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Example from the provider's documentation. Field values in your results will differ.
Sample response · Documented HTTP 200
```json
{
  "applied_filters": {
    "team_id": null
  },
  "cached": false,
  "count": 1,
  "credits_used": 1,
  "fetched_at": "2026-11-19T12:21:22.299Z",
  "league": "nba",
  "sport": "basketball",
  "videos": [
    {
      "categories": [
        {
          "description": "Aaron Gordon",
          "id": 3064290,
          "type": "athlete"
        },
        {
          "description": "Jamal Murray",
          "id": 3936299,
          "type": "athlete"
        },
        {
          "description": "Jayson Tatum",
          "id": 4065648,
          "type": "athlete"
        },
        {
          "description": "Boston Celtics",
          "id": 2,
          "type": "team"
        },
        {
          "description": "Denver Nuggets",
          "id": 7,
          "type": "team"
        },
        {
          "description": "NBA",
          "id": 46,
          "type": "league"
        },
        {
          "description": "Nikola Jokic",
          "id": 3112335,
          "type": "athlete"
        },
        {
          "description": "Payton Pritchard",
          "id": 4066354,
          "type": "athlete"
        },
        {
          "description": "Neemias Queta",
          "id": 4397424,
          "type": "athlete"
        },
        {
          "description": "nba highlight",
          "id": 191422,
          "type": "topic"
        },
        {
          "description": "SC4U - Full Highlight",
          "id": 711821,
          "type": "editorialindicator"
        },
        {
          "description": "SC4U  - Eligible",
          "id": 711824,
          "type": "editorialindicator"
        },
        {
          "description": "Boston Celtics @ Denver Nuggets",
          "id": null,
          "type": "event"
        }
      ],
      "description": "Boston Celtics vs. Denver Nuggets: Game Highlights",
      "duration_s": null,
      "expires": null,
      "headline": "Boston Celtics vs. Denver Nuggets: Game Highlights",
      "hls": null,
      "id": 50528368,
      "last_modified": "2026-11-19T05:32:46Z",
      "mp4": null,
      "published": "2026-11-19T05:32:46Z",
      "thumbnail": "https://espnmedia-cdn.akamaized.net/espn/media/common/wsc/2026/1119/21baa789-c57f-4141-a3ab-df16e8ed76b1/21baa789-c57f-4141-a3ab-df16e8ed76b1.jpg",
      "url": "https://www.espn.com/video/clip/_/id/50528368/game-highlights"
    }
  ]
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### How do I fetch highlights for a specific game?
Pass the ESPN event_id (or full ESPN game link) alongside league to return that game's highlights.

### How do I fetch a single team's latest videos?
Pass the numeric team_id (from the ESPN Teams API) together with league and optional limit.

### What video stream formats are returned?
Each videos[] item includes hls and mp4 fields along with thumbnail, duration_s and the canonical ESPN url.

### How many videos can be returned per request?
For league or team queries, limit defaults to 25 and accepts up to 100 videos.

### Do video items include expiration timestamps?
Yes. Each video object includes published, last_modified and expires timestamps.

### How do I get freshly uploaded post-game highlights immediately?
Pass fresh=1 to skip the 24-hour cache and pass raw=0 to keep the JSON payload compact.

## Available implementations
- apish: https://openany.si/espn/espn-videos-and-highlights-api/d9e0d676-489e-418a-baff-d2142536cc69/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
