{
  "openapi": "3.0.1",
  "info": {
    "title": "ESPN Sports Scraper",
    "description": "Scrape ESPN sports data: scores and schedules, standings, player box scores, play-by-play, betting odds and futures, injury reports, player stats and game logs, rosters, transactions and news for NFL, NBA, MLB, NHL, WNBA, college and soccer. No login.",
    "version": "1.0",
    "x-build-id": "iMzceT4nNhP56i3p2"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/sheshinmcfly~espn-sports-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-sheshinmcfly-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/sheshinmcfly~espn-sports-scraper/runs": {
      "post": {
        "operationId": "runs-sync-sheshinmcfly-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/sheshinmcfly~espn-sports-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-sheshinmcfly-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",
        "required": [
          "leagues"
        ],
        "properties": {
          "leagues": {
            "title": "Leagues",
            "type": "array",
            "description": "Shortcuts: nfl, nba, wnba, mlb, nhl, ncaaf, ncaab, ncaaw, mls, epl, laliga, bundesliga, seriea, ligue1, ucl, ligamx. Or any ESPN sport/league path, e.g. 'soccer/ned.1'.",
            "items": {
              "type": "string"
            }
          },
          "modes": {
            "title": "Data to fetch",
            "type": "array",
            "description": "Pick one or more data types. Box scores are fetched automatically for the games of the selected date(s).",
            "items": {
              "type": "string",
              "enum": [
                "scoreboard",
                "standings",
                "teams",
                "gameSummary",
                "playerBoxScores",
                "playByPlay",
                "odds",
                "injuries",
                "playerStats",
                "playerGameLogs",
                "rosters",
                "transactions",
                "futures",
                "news",
                "rankings"
              ],
              "enumTitles": [
                "Scores & schedule",
                "Standings",
                "Teams",
                "Game summary (team box score, win probability)",
                "Player box scores (one row per player per game)",
                "Play-by-play (one row per play)",
                "Betting odds per game (spread, total, moneyline, open/close)",
                "Injury report",
                "Season player stats",
                "Player game logs (needs player IDs)",
                "Team rosters",
                "Transactions (signings, trades, releases)",
                "Futures (championship, conference, MVP odds)",
                "News",
                "College rankings (AP / Coaches)"
              ]
            }
          },
          "date": {
            "title": "Date",
            "type": "string",
            "description": "Single day for scores and box scores (YYYY-MM-DD). Leave empty for current games."
          },
          "dateFrom": {
            "title": "From date",
            "type": "string",
            "description": "Start of a date range (YYYY-MM-DD). Up to 31 days."
          },
          "dateTo": {
            "title": "To date",
            "type": "string",
            "description": "End of the date range (YYYY-MM-DD)."
          },
          "maxGamesForDetails": {
            "title": "Max games for game details",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum games per league for game summaries, player box scores, play-by-play and odds.",
            "default": 30
          },
          "eventIds": {
            "title": "Specific game IDs (optional)",
            "type": "array",
            "description": "Fetch box scores for these ESPN game IDs instead of the games on the selected date(s).",
            "items": {
              "type": "string"
            }
          },
          "athleteIds": {
            "title": "Player IDs for game logs",
            "type": "array",
            "description": "ESPN player IDs (shown as athleteId in rosters, box scores and season stats, or in the player's ESPN URL).",
            "items": {
              "type": "string"
            }
          },
          "teams": {
            "title": "Teams for rosters (optional)",
            "type": "array",
            "description": "Team abbreviations, names or IDs (e.g. LAL, BOS, KC). Empty = every team in the league.",
            "items": {
              "type": "string"
            }
          },
          "maxPlayers": {
            "title": "Max players (season stats)",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum players per league for season player stats, in ESPN's leaders order.",
            "default": 100
          },
          "includeActiveInjuries": {
            "title": "Include active players in injury report",
            "type": "boolean",
            "description": "ESPN also lists healthy players with practice notes as 'Active'. Off = only injured, out, questionable, etc.",
            "default": false
          },
          "newsLimit": {
            "title": "News articles per league",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum news articles per league.",
            "default": 25
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "The default works. Only change it to use your own proxies.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}