# ESPN news API

Get ESPN News 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 feed header title, resolved league slug, number of articles returned, ESPN article identifier, and article headline text to populate team news feeds, power breaking-news digests, and tag articles by topic.

Documentation: https://openany.si/market/apis/espn/espn-news-api/?offering=0fe11aad-4ae8-4a92-ad7a-21491ad36be3
API ID: 0fe11aad-4ae8-4a92-ad7a-21491ad36be3
Provider: apish
Contract revision: 3
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/espn/v1/news
Page update time: 2026-12-03T02:43:04.598Z
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:24.666Z. 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 news 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": "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": {
          "type": "string",
          "description": "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"
          ]
        },
        "team_id": {
          "type": "string",
          "description": "Only stories about this team id."
        },
        "limit": {
          "type": "integer",
          "description": "1-100 (default 25)."
        },
        "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": {
    "articles": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "byline": {
            "type": "string"
          },
          "categories": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "description": {
                  "type": "string"
                },
                "id": {
                  "type": "integer"
                },
                "type": {
                  "type": "string"
                }
              }
            }
          },
          "description": {
            "type": "string"
          },
          "headline": {
            "type": "string"
          },
          "id": {
            "type": "integer"
          },
          "image": {
            "type": "string"
          },
          "last_modified": {
            "type": "string"
          },
          "premium": {
            "type": "boolean"
          },
          "published": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "url": {
            "type": "string"
          }
        }
      }
    },
    "cached": {
      "type": "boolean"
    },
    "count": {
      "type": "integer"
    },
    "credits_used": {
      "type": "integer"
    },
    "fetched_at": {
      "type": "string"
    },
    "header": {
      "type": "string"
    },
    "league": {
      "type": "string"
    },
    "sport": {
      "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/news?league=nfl&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
{
  "articles": [
    {
      "byline": "Matt Bowen",
      "categories": [
        {
          "description": "Fantasy NFL",
          "id": 3080,
          "type": "league"
        },
        {
          "description": "news - fantasy",
          "id": 141870,
          "type": "topic"
        },
        {
          "description": "Stefon Diggs",
          "id": 2976212,
          "type": "athlete"
        },
        {
          "description": "DJ Moore",
          "id": 3915416,
          "type": "athlete"
        },
        {
          "description": "Harold Fannin Jr",
          "id": 5083076,
          "type": "athlete"
        },
        {
          "description": "Parker Washington",
          "id": 4432620,
          "type": "athlete"
        },
        {
          "description": "Jordyn Tyson",
          "id": 4880281,
          "type": "athlete"
        },
        {
          "description": "Josh Downs",
          "id": 4688813,
          "type": "athlete"
        },
        {
          "description": "Jalen Coker",
          "id": 4695883,
          "type": "athlete"
        },
        {
          "description": "Tyler Warren",
          "id": 4431459,
          "type": "athlete"
        },
        {
          "description": "DK Metcalf",
          "id": 4047650,
          "type": "athlete"
        },
        {
          "description": "Emeka Egbuka",
          "id": 4567750,
          "type": "athlete"
        },
        {
          "description": "AJ Brown",
          "id": 4047646,
          "type": "athlete"
        },
        {
          "description": "Trey McBride",
          "id": 4361307,
          "type": "athlete"
        },
        {
          "description": "Deebo Samuel Sr",
          "id": 3126486,
          "type": "athlete"
        },
        {
          "description": "Malachi Fields",
          "id": 4682648,
          "type": "athlete"
        },
        {
          "description": "Antonio Williams",
          "id": 5081432,
          "type": "athlete"
        },
        {
          "description": "NFL",
          "id": 28,
          "type": "league"
        }
      ],
      "description": "A look at wide receivers and tight ends who have become start-worthy, and others you should expect less from.",
      "headline": "Which of these 15 pass catchers should you trust going forward?",
      "id": 50520521,
      "image": "https://a.espncdn.com/photo/2026/1118/r1747799_1296x729_16-9.jpg",
      "last_modified": "2026-11-19T11:42:44Z",
      "premium": false,
      "published": "2026-11-19T11:42:44Z",
      "type": "Story",
      "url": "https://www.espn.com/fantasy/football/story/_/id/50520521/fantasy-football-trade-value-start-sit-wr-te"
    }
  ],
  "cached": false,
  "count": 1,
  "credits_used": 1,
  "fetched_at": "2026-11-19T12:21:13.589Z",
  "header": "NFL News",
  "league": "nfl",
  "sport": "football"
}
```

## 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-news-api/?offering=0fe11aad-4ae8-4a92-ad7a-21491ad36be3

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