{
  "openapi": "3.0.1",
  "info": {
    "title": "ESPN Live Scores, Schedules & Game Odds Scraper",
    "description": "Get live scores, final results and upcoming fixtures for 16 leagues across basketball, football, baseball, hockey and soccer, with optional per-game leaders, odds, attendance and headlines.",
    "version": "2.0",
    "x-build-id": "nXre0KcQ0wFMsE4p4"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/nimbryxo-studio~espn-live-scores-schedules-and-game-odds-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-nimbryxo-studio-espn-live-scores-schedules-and-game-odds-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/nimbryxo-studio~espn-live-scores-schedules-and-game-odds-scraper/runs": {
      "post": {
        "operationId": "runs-sync-nimbryxo-studio-espn-live-scores-schedules-and-game-odds-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/nimbryxo-studio~espn-live-scores-schedules-and-game-odds-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-nimbryxo-studio-espn-live-scores-schedules-and-game-odds-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": "Mode",
            "enum": [
              "scoreboard",
              "schedule",
              "teams",
              "odds",
              "gameDetail"
            ],
            "type": "string",
            "description": "What to return: games for a scoreboard, a schedule, the league team directory, one record per sportsbook odds line, or a full game detail record.",
            "default": "scoreboard"
          },
          "sport": {
            "title": "Sport",
            "enum": [
              "any",
              "basketball",
              "football",
              "baseball",
              "hockey",
              "soccer"
            ],
            "type": "string",
            "description": "Optional sport filter. Use it with League = All supported leagues to cover every supported competition in one sport.",
            "default": "any"
          },
          "league": {
            "title": "League",
            "enum": [
              "all",
              "nba",
              "wnba",
              "ncaam",
              "ncaaw",
              "nfl",
              "ncaaf",
              "mlb",
              "college-baseball",
              "nhl",
              "college-hockey",
              "mls",
              "nwsl",
              "epl",
              "eng.2",
              "eng.fa",
              "eng.league_cup",
              "laliga",
              "esp.2",
              "esp.copa_del_rey",
              "bundesliga",
              "ger.2",
              "seriea",
              "ita.2",
              "ita.coppa_italia",
              "ligue1",
              "fra.2",
              "eredivisie",
              "primeira-liga",
              "super-lig",
              "pro-league",
              "scottish-premiership",
              "greek-super-league",
              "russian-premier-league",
              "austrian-bundesliga",
              "swiss-super-league",
              "danish-superliga",
              "eliteserien",
              "allsvenskan",
              "romanian-liga-1",
              "saudi-pro-league",
              "a-league",
              "j1-league",
              "chinese-super-league",
              "ligamx",
              "argentina-primera",
              "brasileirao",
              "brasileirao-serie-b",
              "chile-primera",
              "colombia-primera-a",
              "ecuador-liga-pro",
              "peru-liga-1",
              "uruguay-primera",
              "paraguay-primera",
              "bolivia-primera",
              "venezuela-primera",
              "ucl",
              "uel",
              "uecl",
              "libertadores",
              "concacaf-champions",
              "world-cup",
              "club-world-cup"
            ],
            "type": "string",
            "description": "Competition to read. Choose All supported leagues only with a specific sport when you need broad coverage. Defaults to NBA when omitted."
          },
          "date": {
            "title": "Date",
            "type": "string",
            "description": "A day (YYYY-MM-DD or YYYYMMDD), a month (YYYY-MM), or a year (YYYY). Leave empty to use today, or use Season / Week instead. (mode=scoreboard, schedule, odds, gameDetail)"
          },
          "startDate": {
            "title": "Start date",
            "type": "string",
            "description": "First day of a custom window (YYYY-MM-DD or YYYYMMDD). Requires End date. (mode=scoreboard, schedule, odds, gameDetail)"
          },
          "endDate": {
            "title": "End date",
            "type": "string",
            "description": "Last day of a custom window (YYYY-MM-DD or YYYYMMDD). Maximum 366 days. (mode=scoreboard, schedule, odds, gameDetail)"
          },
          "season": {
            "title": "Season",
            "minimum": 2000,
            "maximum": 2100,
            "type": "integer",
            "description": "ESPN season year, for example 2024. Use it with Week for a single football week, or alone for the whole season. (mode=scoreboard, schedule, odds, gameDetail)"
          },
          "seasonType": {
            "title": "Season type",
            "enum": [
              "1",
              "2",
              "3",
              "4",
              "5"
            ],
            "type": "string",
            "description": "Which part of the season to read when Season is set. (mode=scoreboard, schedule, odds, gameDetail)",
            "default": "2"
          },
          "week": {
            "title": "Week",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Week number for football and other week-based competitions. Requires Season. (mode=scoreboard, schedule, odds, gameDetail)"
          },
          "team": {
            "title": "Team",
            "type": "string",
            "description": "Keep only games or teams matching this ESPN team ID, abbreviation, or name, for example 13, LAL, or Lakers. Prefix with a league code to disambiguate: nba:LAL. (mode=scoreboard, schedule, teams, odds, gameDetail)"
          },
          "eventIds": {
            "title": "Event IDs",
            "type": "array",
            "description": "ESPN event IDs for game detail or odds, for example 401585183. Leave empty to discover games from the date or season. (mode=odds, gameDetail)",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "status": {
            "title": "Game status",
            "enum": [
              "any",
              "scheduled",
              "in_progress",
              "final",
              "postponed",
              "cancelled"
            ],
            "type": "string",
            "description": "Keep only games in this state. Postponed and cancelled games are reported as their own values.",
            "default": "any"
          },
          "includeDetails": {
            "title": "Include game details",
            "type": "boolean",
            "description": "Add leaders, odds, attendance, officials, article text, team stats, player stats and injuries to each game. (mode=scoreboard, schedule)",
            "default": false
          },
          "maxItems": {
            "title": "Maximum records",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Hard cap on records returned across all selected leagues.",
            "default": 100
          },
          "timezone": {
            "title": "Timezone",
            "type": "string",
            "description": "IANA timezone used for today/yesterday/tomorrow and for dateLocal, for example America/New_York.",
            "default": "UTC"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}