# 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/market/apis/espn/espn-videos-and-highlights-api/?offering=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. Price update time: not supplied.
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": []
  }
}
```

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

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

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