{
  "openapi": "3.0.1",
  "info": {
    "title": "ESPN Scraper — Scores, Box Scores, Odds & Standings",
    "description": "Scrape ESPN scores, schedules, live games, DraftKings betting lines, box scores, standings, teams, rosters and news for 40+ leagues: NFL, NBA, MLB, NHL, WNBA, college sports, Premier League, LaLiga, Champions League, MLS and more. Date ranges, team filters. No login.",
    "version": "0.1",
    "x-build-id": "AqJU8shCVAe36Odqc"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/yugenox~espn-sports-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-yugenox-espn-sports-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/yugenox~espn-sports-scraper/runs": {
      "post": {
        "operationId": "runs-sync-yugenox-espn-sports-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/yugenox~espn-sports-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-yugenox-espn-sports-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "leagues": {
            "title": "🏆 Leagues",
            "type": "array",
            "description": "Leagues to scrape. Empty = NFL, NBA, MLB, NHL and the Premier League. Any other ESPN league goes in \"Other leagues\" below.",
            "items": {
              "type": "string",
              "enum": [
                "nfl",
                "college-football",
                "cfl",
                "ufl",
                "nba",
                "wnba",
                "mens-college-basketball",
                "womens-college-basketball",
                "nba-development",
                "mlb",
                "college-baseball",
                "nhl",
                "mens-college-hockey",
                "eng.1",
                "eng.2",
                "eng.fa",
                "eng.league_cup",
                "esp.1",
                "ger.1",
                "ita.1",
                "fra.1",
                "ned.1",
                "por.1",
                "sco.1",
                "tur.1",
                "bel.1",
                "usa.1",
                "usa.nwsl",
                "mex.1",
                "bra.1",
                "arg.1",
                "sau.1",
                "jpn.1",
                "aus.1",
                "uefa.champions",
                "uefa.europa",
                "uefa.europa.conf",
                "conmebol.libertadores",
                "concacaf.champions",
                "fifa.world",
                "fifa.friendly",
                "uefa.nations"
              ],
              "enumTitles": [
                "NFL",
                "College Football (FBS)",
                "CFL",
                "UFL",
                "NBA",
                "WNBA",
                "Men's College Basketball (D-I)",
                "Women's College Basketball (D-I)",
                "NBA G League",
                "MLB",
                "College Baseball",
                "NHL",
                "Men's College Hockey",
                "English Premier League",
                "English Championship",
                "English FA Cup",
                "English Carabao Cup",
                "Spanish LaLiga",
                "German Bundesliga",
                "Italian Serie A",
                "French Ligue 1",
                "Dutch Eredivisie",
                "Portuguese Primeira Liga",
                "Scottish Premiership",
                "Turkish Super Lig",
                "Belgian Pro League",
                "MLS",
                "NWSL",
                "Liga MX",
                "Brazilian Serie A",
                "Argentine Liga Profesional",
                "Saudi Pro League",
                "Japanese J1 League",
                "Australian A-League Men",
                "UEFA Champions League",
                "UEFA Europa League",
                "UEFA Conference League",
                "CONMEBOL Libertadores",
                "Concacaf Champions Cup",
                "FIFA World Cup",
                "International Friendlies",
                "UEFA Nations League"
              ]
            }
          },
          "customLeagues": {
            "title": "Other leagues",
            "type": "array",
            "description": "Any other ESPN league: a sport/league path as ESPN writes it (soccer/chn.1, soccer/ksa.1, basketball/fiba, rugby/164205), a soccer league code (chn.1, eng.3, uefa.wchampions), an espn.com league page URL, or a name such as \"Premier League\", \"Champions League\", \"NCAAF\".",
            "items": {
              "type": "string"
            }
          },
          "dataTypes": {
            "title": "Data",
            "type": "array",
            "description": "What to get for each league. Games = scores, schedules and betting lines for the dates below. Standings = the current table (or the season you pick). Teams = every team with colors and logos. Rosters = every player of every team (or of the teams you pick). News = the latest ESPN headlines.",
            "items": {
              "type": "string",
              "enum": [
                "games",
                "standings",
                "teams",
                "rosters",
                "news"
              ],
              "enumTitles": [
                "Games (scores, schedules, odds)",
                "Standings",
                "Teams",
                "Rosters (players)",
                "News"
              ]
            },
            "default": [
              "games"
            ]
          },
          "includeGameDetails": {
            "title": "Include box scores",
            "type": "boolean",
            "description": "For every game, also read its game page: team and player box score (soccer: line-ups with player stats), officials, injuries and the closing betting line (ESPN removes lines from the scoreboard once a game is over). One extra request per game, charged as \"Game details\" (see Pricing).",
            "default": false
          },
          "dateFrom": {
            "title": "📅 From date",
            "type": "string",
            "description": "First day of games: YYYY-MM-DD, or \"today\", \"yesterday\", \"tomorrow\", \"-7\" (7 days ago), \"+3\" (in 3 days). ESPN days are US Eastern days. Empty = today."
          },
          "dateTo": {
            "title": "📅 To date",
            "type": "string",
            "description": "Last day of games (same formats). Empty = the From date. Up to 366 days per run; days without games and the off-season are skipped using ESPN's own league calendar."
          },
          "gameStatus": {
            "title": "Game status",
            "enum": [
              "all",
              "scheduled",
              "live",
              "final"
            ],
            "type": "string",
            "description": "Only scheduled (not started), live (in progress) or final games. \"Live\" always reads today's games.",
            "default": "all"
          },
          "teams": {
            "title": "Teams",
            "type": "array",
            "description": "Only these teams (games they play, their standings row, roster and news). A name, nickname, city or abbreviation: \"Lakers\", \"LAL\", \"Los Angeles Lakers\", \"Arsenal\", \"Kansas City Chiefs\". Empty = every team.",
            "items": {
              "type": "string"
            }
          },
          "season": {
            "title": "Standings season",
            "minimum": 1900,
            "maximum": 2100,
            "type": "integer",
            "description": "Standings of a past season. ESPN numbers a season by the year it ends for leagues that span two years (NBA / NHL 2025-26 = 2026) and by its calendar year otherwise (NFL 2025 = 2025). Empty = the current standings."
          },
          "maxNewsPerLeague": {
            "title": "News articles per league",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "How many of the latest headlines to get per league (with \"News\" selected).",
            "default": 25
          },
          "maxItems": {
            "title": "Max results",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Maximum rows for the whole run (games, standings rows, teams, players and articles together). 0 = no limit.",
            "default": 1000
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Apify Proxy (datacenter) is the default and comes with every Apify plan. If ESPN refuses datacenter IPs for a while, the run switches to residential proxies when your account has them.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}