{
  "openapi": "3.0.1",
  "info": {
    "title": "ESPN Scraper: Scores, Standings, Injuries, Odds & Stats",
    "description": "Get ESPN scores, betting odds, box scores, standings, rosters, injury reports with return dates, news and player game logs for 50+ leagues: NFL, NBA, MLB, NHL, soccer, college, F1, tennis, golf and UFC. Only-new mode for alerts. No login.",
    "version": "1.0",
    "x-build-id": "mXvKSkWQshwFunU33"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/panix~espn-sports-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-panix-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/panix~espn-sports-scraper/runs": {
      "post": {
        "operationId": "runs-sync-panix-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/panix~espn-sports-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-panix-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": {
          "dataType": {
            "title": "What do you want?",
            "enum": [
              "games",
              "standings",
              "teams",
              "players",
              "injuries",
              "news",
              "rankings",
              "playerGameLog"
            ],
            "type": "string",
            "description": "Games and scores, standings, teams, players, injuries, news, rankings or player game logs.",
            "default": "games"
          },
          "leagues": {
            "title": "Leagues",
            "type": "array",
            "description": "League names or codes, one per line: nba, nfl, mlb, nhl, wnba, ncaam, ncaaf, premier league, la liga, bundesliga, serie a, ligue 1, mls, champions league, f1, atp, wta, pga, ufc and 30 more. A sport name such as soccer adds all its leagues.",
            "default": [
              "nba"
            ],
            "items": {
              "type": "string"
            }
          },
          "dateFrom": {
            "title": "From date (games)",
            "type": "string",
            "description": "First day. Use YYYY-MM-DD, or words: today, yesterday, tomorrow, +3 (3 days ahead), -7 (7 days ago). Empty means today."
          },
          "dateTo": {
            "title": "To date (games)",
            "type": "string",
            "description": "Last day, same formats. Empty means the same day as 'From date'."
          },
          "gameStatus": {
            "title": "Game status",
            "enum": [
              "all",
              "scheduled",
              "live",
              "finished"
            ],
            "type": "string",
            "description": "Keep all games, only upcoming ones, only live ones, or only finished ones.",
            "default": "all"
          },
          "teams": {
            "title": "Only these teams or players",
            "type": "array",
            "description": "Names or short codes, for example Lakers, LAL, Arsenal, Djokovic. Works for games, standings, teams, players, injuries and rankings. Empty means everyone.",
            "items": {
              "type": "string"
            }
          },
          "includeDetails": {
            "title": "Add box score, player stats and odds to each game",
            "type": "boolean",
            "description": "Adds a details block per game: team stats, every player's stats, betting lines with opening and closing numbers, officials, injuries and the recap. Charged once per game that has details.",
            "default": false
          },
          "includePlays": {
            "title": "Add play-by-play to each game",
            "type": "boolean",
            "description": "Adds every play of the game to the details block. Turns on the box score and odds details too. Rows get large.",
            "default": false
          },
          "season": {
            "title": "Season (standings, rosters, rankings, game logs)",
            "minimum": 1990,
            "maximum": 2100,
            "type": "integer",
            "description": "Season year as ESPN counts it: for the NBA, 2026 means the 2025-26 season; for the NFL and soccer, 2026 means the season that starts in 2026. Empty means the current season."
          },
          "athleteIds": {
            "title": "Athlete ids (player game logs)",
            "type": "array",
            "description": "ESPN athlete ids, one per line. Every row of the 'Players' and 'Injuries' data has an athleteId. Needed for 'Player game logs' only.",
            "items": {
              "type": "string"
            }
          },
          "newsLimit": {
            "title": "News articles per league",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "How many of the latest headlines to return per league.",
            "default": 25
          },
          "maxItems": {
            "title": "Maximum rows",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Stops the run after this many rows. Your spending limit also stops it.",
            "default": 1000
          },
          "onlyNew": {
            "title": "Only new or changed rows since the last run",
            "type": "boolean",
            "description": "Games come again when they go live or finish, injuries when the status or return date changes, news once per article. Schedule the Actor and pay only for what changed.",
            "default": false
          },
          "monitorKey": {
            "title": "Monitor name",
            "type": "string",
            "description": "Runs with the same name share one memory. Use a different name for each schedule, for example 'nba-injuries'.",
            "default": "default"
          },
          "proxyConfiguration": {
            "title": "Proxy (optional)",
            "type": "object",
            "description": "Not needed normally: ESPN answers without a proxy. If it ever refuses, the Actor switches to this 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}