# ESPN search API

Search ESPN via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as limit, output, q, and retrieve structured data including echoed search query string, matching ESPN player identifier, matching player display name, player league slug, and player sport name to resolve athlete ids by name, build sports autocomplete, and discover multimedia coverage.

Documentation: https://openany.si/market/apis/espn/espn-search-api/?offering=6a9ceb32-33c9-45d9-be96-664493b6fe0d
API ID: 6a9ceb32-33c9-45d9-be96-664493b6fe0d
Provider: apish
Contract revision: 3
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/espn/v1/search
Page update time: 2026-12-03T02:43:04.666Z
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:41:43.814Z. 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 search 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": {
        "q": {
          "type": "string",
          "description": "Search text."
        },
        "limit": {
          "type": "integer",
          "description": "Results per type, 1-50 (default 10)."
        },
        "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": [
        "q"
      ]
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "cached": {
      "type": "boolean"
    },
    "credits_used": {
      "type": "integer"
    },
    "fetched_at": {
      "type": "string"
    },
    "query": {
      "type": "string"
    },
    "results": {
      "type": "object",
      "properties": {
        "article": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "date": {
                "type": "string"
              },
              "description": {
                "type": "null"
              },
              "id": {
                "type": "string"
              },
              "image": {
                "type": "null"
              },
              "kind": {
                "type": "string"
              },
              "league": {
                "type": "null"
              },
              "name": {
                "type": "string"
              },
              "sport": {
                "type": "null"
              },
              "subtitle": {
                "type": "null"
              },
              "url": {
                "type": "string"
              }
            }
          }
        },
        "clips": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "date": {
                "type": "string"
              },
              "description": {
                "type": "null"
              },
              "id": {
                "type": "string"
              },
              "image": {
                "type": "string"
              },
              "kind": {
                "type": "string"
              },
              "league": {
                "type": "null"
              },
              "name": {
                "type": "string"
              },
              "sport": {
                "type": "null"
              },
              "subtitle": {
                "type": "string"
              },
              "url": {
                "type": "string"
              }
            }
          }
        },
        "player": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "description": {
                "type": "string"
              },
              "id": {
                "type": "string"
              },
              "image": {
                "type": "string"
              },
              "kind": {
                "type": "string"
              },
              "league": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "sport": {
                "type": "string"
              },
              "subtitle": {
                "type": "string"
              },
              "url": {
                "type": "string"
              }
            }
          }
        },
        "replay": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "date": {
                "type": "string"
              },
              "description": {
                "type": "null"
              },
              "id": {
                "type": "string"
              },
              "image": {
                "type": "string"
              },
              "kind": {
                "type": "string"
              },
              "league": {
                "type": "null"
              },
              "name": {
                "type": "string"
              },
              "sport": {
                "type": "null"
              },
              "subtitle": {
                "type": "string"
              },
              "url": {
                "type": "string"
              }
            }
          }
        }
      }
    },
    "total": {
      "type": "integer"
    }
  }
}
```

## Request example
Scenario: Official example · Live API.SH response · Minimal request
```bash
curl \
  'https://api.openany.si/v1/agent-apis/apish/espn/v1/search?limit=1&output=json&q=mahomes&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
{
  "cached": false,
  "credits_used": 1,
  "fetched_at": "2026-11-19T12:21:19.815Z",
  "query": "mahomes",
  "results": {
    "article": [
      {
        "date": "2026-11-16T02:24:25.000+00:00",
        "description": null,
        "id": "50496736",
        "image": null,
        "kind": "headlinenews",
        "league": null,
        "name": "Patrick Mahomes stars for Chiefs, strikes early connection with Josh Downs",
        "sport": null,
        "subtitle": null,
        "url": "https://www.espn.com/nfl/story/_/id/50496736/patrick-mahomes-stars-chiefs-sync-josh-downs"
      }
    ],
    "clips": [
      {
        "date": "2026-11-15T21:53:18.000+00:00",
        "description": null,
        "id": "50494330",
        "image": "https://espnmedia-cdn.akamaized.net/espn/media/common/2026/1115/ss_20261115_165320335_37441971015/ss_20261115_165320335_37441971015.jpg",
        "kind": "vod",
        "league": null,
        "name": "Why fantasy managers should keep riding the hot hand with Patrick Mahomes",
        "sport": null,
        "subtitle": "Why fantasy managers should keep riding the hot hand with Patrick Mahomes",
        "url": "https://www.espn.com/video/clip/_/id/50494330"
      }
    ],
    "player": [
      {
        "description": "NFL",
        "id": "3139477",
        "image": "https://a.espncdn.com/i/headshots/nfl/players/full/3139477.png",
        "kind": "player",
        "league": "nfl",
        "name": "Patrick Mahomes",
        "sport": "football",
        "subtitle": "Kansas City Chiefs",
        "url": "https://www.espn.com/nfl/player/_/id/3139477/patrick-mahomes"
      }
    ],
    "replay": [
      {
        "date": "2019-06-28T04:00:00.000+00:00",
        "description": null,
        "id": "683f2f86-8a9c-4da9-ada3-face9f4661f4",
        "image": "http://artwork.espncdn.com/media/683f2f86-8a9c-4da9-ada3-face9f4661f4/16x9/large_201906291205.jpg",
        "kind": "listing",
        "league": null,
        "name": "Peyton Manning: Breaking Down Patrick Mahomes",
        "sport": null,
        "subtitle": "ESPN+ • Peyton Manning: Breaking Down Patrick Mahomes",
        "url": "https://www.espn.com/watch/player/_/id/683f2f86-8a9c-4da9-ada3-face9f4661f4"
      }
    ]
  },
  "total": 4
}
```

## 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-search-api/?offering=6a9ceb32-33c9-45d9-be96-664493b6fe0d

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