{
  "openapi": "3.0.1",
  "info": {
    "title": "ESPN Sports Scores and Injury Reports Scraper",
    "description": "Sports scores, schedules and results from ESPN for the NFL, NBA, MLB, NHL, WNBA, college sports and top soccer leagues, plus the NFL, NBA, MLB, NHL and WNBA injury reports with status, injury and expected return. Only new or changed injuries on a schedule. No API key. $1 per 1,000 games.",
    "version": "0.1",
    "x-build-id": "S5CwUsbQbMqiRfuxj"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/cleanscrape~espn-sports-scores-injury-reports/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-cleanscrape-espn-sports-scores-injury-reports",
        "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/cleanscrape~espn-sports-scores-injury-reports/runs": {
      "post": {
        "operationId": "runs-sync-cleanscrape-espn-sports-scores-injury-reports",
        "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/cleanscrape~espn-sports-scores-injury-reports/run-sync": {
      "post": {
        "operationId": "run-sync-cleanscrape-espn-sports-scores-injury-reports",
        "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 or more leagues. In the API use the keys: nfl, college-football, nba, wnba, mens-college-basketball, womens-college-basketball, mlb, nhl, premier-league, la-liga, bundesliga, serie-a, ligue-1, champions-league, europa-league, mls, nwsl, liga-mx.",
            "items": {
              "type": "string",
              "enum": [
                "nfl",
                "college-football",
                "nba",
                "wnba",
                "mens-college-basketball",
                "womens-college-basketball",
                "mlb",
                "nhl",
                "premier-league",
                "la-liga",
                "bundesliga",
                "serie-a",
                "ligue-1",
                "champions-league",
                "europa-league",
                "mls",
                "nwsl",
                "liga-mx"
              ],
              "enumTitles": [
                "NFL",
                "College Football (FBS)",
                "NBA",
                "WNBA",
                "Men's College Basketball",
                "Women's College Basketball",
                "MLB",
                "NHL",
                "Premier League",
                "LaLiga",
                "Bundesliga",
                "Serie A",
                "Ligue 1",
                "UEFA Champions League",
                "UEFA Europa League",
                "MLS",
                "NWSL",
                "Liga MX"
              ]
            }
          },
          "collect": {
            "title": "What to collect",
            "enum": [
              "both",
              "scores",
              "injuries"
            ],
            "type": "string",
            "description": "Games come from the scoreboard of each day you choose. The injury report is ESPN's current list for the NFL, NBA, MLB, NHL and WNBA; it has no dates.",
            "default": "both"
          },
          "startDate": {
            "title": "From date",
            "type": "string",
            "description": "The first day of games: a date such as 2026-11-15, or today, yesterday, tomorrow, \"-7 days\" or \"+3 days\". Days are ESPN's, in US Eastern time.",
            "default": "today"
          },
          "endDate": {
            "title": "To date (optional)",
            "type": "string",
            "description": "The last day of games, in the same forms. Leave empty for one day. Up to 366 days per run."
          },
          "teams": {
            "title": "Teams (optional)",
            "type": "array",
            "description": "Keep only these teams, by name, city or abbreviation: Lakers, Kansas City, BOS, Arsenal. Applies to games and injuries.",
            "items": {
              "type": "string"
            }
          },
          "gameStatus": {
            "title": "Games to keep",
            "enum": [
              "all",
              "scheduled",
              "live",
              "final"
            ],
            "type": "string",
            "description": "Final keeps finished games; scheduled keeps games not started yet.",
            "default": "all"
          },
          "injuryStatuses": {
            "title": "Injury statuses (optional)",
            "type": "array",
            "description": "Keep only these statuses, such as Out, Doubtful, Questionable, Day-To-Day, Injured Reserve (or IR) and IL (every MLB injured list). Leave empty for all.",
            "items": {
              "type": "string"
            }
          },
          "includeActive": {
            "title": "Include players listed as Active",
            "type": "boolean",
            "description": "The NFL report also lists players who are cleared to play (status Active), often hundreds. They are left out unless you turn this on.",
            "default": false
          },
          "onlyChangedInjuries": {
            "title": "Only new or changed injuries",
            "type": "boolean",
            "description": "Return only injuries that are new, changed (status, return date, injury or note) or no longer listed since the last run with the same leagues and filters. For scheduled runs. The first run returns the whole report.",
            "default": false
          },
          "watchName": {
            "title": "Watch name (optional)",
            "type": "string",
            "description": "Give the history its own name, so you can change the filters and keep it, or run two separate watches. The history is kept in your own Apify account."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}