{
  "openapi": "3.0.1",
  "info": {
    "title": "ESPN Scraper — Scores, Schedules, Standings, Odds & Teams",
    "description": "Get ESPN scores, schedules, standings, betting odds, teams and news for NFL, NBA, MLB, NHL, soccer, F1, UFC and more. Input: leagues, data types, a date range and an optional team filter. Output: one JSON row per game, standing, team or news item. No API key.",
    "version": "0.1",
    "x-build-id": "FCOgNUBX7asm8vgul"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/istmobot~espn-sports-data/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-istmobot-espn-sports-data",
        "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/istmobot~espn-sports-data/runs": {
      "post": {
        "operationId": "runs-sync-istmobot-espn-sports-data",
        "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/istmobot~espn-sports-data/run-sync": {
      "post": {
        "operationId": "run-sync-istmobot-espn-sports-data",
        "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": "One league per line, e.g. \"nba\" or \"premier-league\". Names: nfl, nba, wnba, mlb, nhl, mls, ncaaf (college-football), ncaam (mens-college-basketball), premier-league, la-liga, bundesliga, serie-a, ligue-1, champions-league, liga-mx, f1, ufc. Any other ESPN league works by its \"sport/league\" path, e.g. \"soccer/bra.1\" (the path is in the league's ESPN web address).",
            "items": {
              "type": "string"
            }
          },
          "dataTypes": {
            "title": "Data to get",
            "type": "array",
            "description": "What to read for each league, e.g. [\"scores\", \"standings\"]. \"scores\": games with status, score and odds for the date range (past, live and scheduled). \"standings\": the current table. \"teams\": all teams with record. \"news\": the latest articles.",
            "items": {
              "type": "string",
              "enum": [
                "scores",
                "standings",
                "teams",
                "news"
              ],
              "enumTitles": [
                "Scores & schedule",
                "Standings",
                "Teams",
                "News"
              ]
            },
            "default": [
              "scores"
            ]
          },
          "dateFrom": {
            "title": "From date",
            "type": "string",
            "description": "First day of games: a date as YYYY-MM-DD (e.g. 2026-11-08), or a relative value counted back from today: \"1 day\" (or \"yesterday\") = yesterday, \"7 days\" = a week ago. Empty = today. Days are ESPN schedule days, in US Eastern time. Used by \"scores\" only."
          },
          "dateTo": {
            "title": "To date",
            "type": "string",
            "description": "Last day of games: a date as YYYY-MM-DD (e.g. 2026-11-14), or a relative value counted ahead from today: \"0 days\" = today, \"7 days\" = a week from now (the schedule). Empty = the same day as \"From date\". At most 60 days per run."
          },
          "includeOdds": {
            "title": "Include betting odds",
            "type": "boolean",
            "description": "Add the betting line to each game (spread, over/under, moneylines), e.g. true. Scheduled games carry it in the scoreboard; for finished games the Actor makes one extra request per game to read the closing line. Turn off if you do not need odds.",
            "default": true
          },
          "teams": {
            "title": "Only these teams",
            "type": "array",
            "description": "Keep only rows of these teams, by name or abbreviation, e.g. \"Lakers\", \"BOS\" or \"Arsenal\". A name matches whole words of the team's full name. Applies to games, standings and teams; news is matched against the article's tags. Empty = all teams.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max rows",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many rows in total (games, standing rows, teams and news items), e.g. 100. You pay per row.",
            "default": 500
          },
          "maxNewsPerLeague": {
            "title": "Max news per league",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "How many of the latest articles to read per league when \"news\" is selected, e.g. 10. ESPN returns at most 50.",
            "default": 25
          },
          "proxy": {
            "title": "Proxy",
            "type": "object",
            "description": "Optional: send every request through a proxy, e.g. {\"useApifyProxy\": true}. In our tests ESPN answered from Apify without one, and several times slower through the Apify datacenter proxy, so leave it off. If ESPN refuses the run's address, the Actor switches to the Apify proxy by itself."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}