{
  "openapi": "3.0.1",
  "info": {
    "title": "ESPN Sports Scraper · Scores, odds, rosters · $1/1K",
    "description": "Get ESPN sports data for betting research, fantasy analysis and sports apps: scores, schedules, odds, standings, game stats, team rosters, news and rankings across NFL, NBA, MLB, NHL, college and soccer leagues. No login. $1/1K records.",
    "version": "0.1",
    "x-build-id": "zcZyhfPgc0CXKhnqp"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/mlg14~espn-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-mlg14-espn-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/mlg14~espn-scraper/runs": {
      "post": {
        "operationId": "runs-sync-mlg14-espn-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/mlg14~espn-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-mlg14-espn-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": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Data mode",
            "enum": [
              "scoreboard",
              "game",
              "odds",
              "standings",
              "teams",
              "roster",
              "schedule",
              "news",
              "rankings"
            ],
            "type": "string",
            "description": "What to collect. Allowed values: scoreboard, game, odds, standings, teams, roster, schedule, news, rankings. Example: scoreboard for scores of a day. Use game with eventIds, roster or schedule with teamIds, others with leagues.",
            "default": "scoreboard"
          },
          "leagues": {
            "title": "Leagues",
            "type": "array",
            "description": "League keys for league-wide modes. Examples: [\"nba\"] or [\"nfl\", \"epl\"]. Supported keys include nfl, college-football, nba, wnba, ncaam, mlb, nhl, epl, la-liga, serie-a, bundesliga, ligue-1, mls, ucl, f1, ufc, pga. Use it for scoreboard, odds, standings, teams, news and rankings.",
            "items": {
              "type": "string"
            },
            "default": [
              "nba"
            ]
          },
          "dates": {
            "title": "Game date or range",
            "type": "string",
            "description": "Game date for scoreboard or odds. Format: YYYYMMDD, YYYY-MM-DD, today, yesterday, tomorrow, or a YYYYMMDD-YYYYMMDD range up to 32 days. Example: 20260927. Leave empty for today (if the league has no games today, the nearest day with games is used)."
          },
          "eventIds": {
            "title": "Game IDs",
            "type": "array",
            "description": "Game IDs prefixed by league, for game mode. Example: [\"nfl/401872953\"]. Use it when you know the game; leave empty for other modes.",
            "items": {
              "type": "string"
            }
          },
          "teamIds": {
            "title": "Team IDs",
            "type": "array",
            "description": "Team IDs prefixed by league, for teams, roster or schedule mode. Example: [\"nba/13\"] (abbreviations such as nba/LAL also work). Use it to get one team's roster or schedule; leave empty otherwise.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Page URLs",
            "type": "array",
            "description": "ESPN game, scoreboard, standings or team page URLs that are routed automatically. Example: [\"https://www.espn.com/nba/scoreboard\"]. Use it when you have page links instead of IDs; leave empty otherwise.",
            "items": {
              "type": "string"
            }
          },
          "enrichGameDetails": {
            "title": "Add game details",
            "type": "boolean",
            "description": "Set to true to fetch each scoreboard game's summary and attach box scores, injuries and win probability. Example: true for richer scoreboard rows. Leave false for fast, cheap runs.",
            "default": false
          },
          "includePlayByPlay": {
            "title": "Add play-by-play",
            "type": "boolean",
            "description": "Set to true to include the large play-by-play array in game detail records. Example: true with mode game. Leave false unless you need every play, as rows get big.",
            "default": false
          },
          "enrichTeamDetails": {
            "title": "Add team details",
            "type": "boolean",
            "description": "Set to true to open each team profile in teams mode and add its record and next event. Example: true for a team directory with records. Leave false for the plain directory.",
            "default": false
          },
          "season": {
            "title": "Season year",
            "type": "string",
            "description": "Season year for standings, schedules and rankings, as text. Example: \"2025\". Leave empty for the current season."
          },
          "seasonType": {
            "title": "Season type",
            "type": "string",
            "description": "Season type for schedule mode, as text. Allowed values: 1 (preseason), 2 (regular season), 3 (postseason). Example: 2. Leave empty for the source default."
          },
          "groups": {
            "title": "Group ID",
            "type": "string",
            "description": "Scoreboard group ID for college filtering, as text. Example: 80 for top-division college football. Leave empty for no group filter."
          },
          "maxResults": {
            "title": "Maximum records",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum records returned across the run, integer from 1. Example: 50 for a quick test. Use a small value in agent runs to keep them fast and cheap.",
            "default": 200
          },
          "maxConcurrency": {
            "title": "Maximum concurrent requests",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Maximum parallel requests to public data endpoints, integer from 1 to 10. Example: 5 (default). Keep the default unless you need a gentler or faster run.",
            "default": 5
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Proxy settings for fetching public ESPN data. Default: Apify Proxy.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}