{
  "openapi": "3.0.1",
  "info": {
    "title": "Sports Injury Report Scraper — NFL, NBA, MLB, NHL Changes",
    "description": "NFL, NBA, WNBA, MLB and NHL injury reports from ESPN: player, team, position, status (out, questionable, IR), injury, side, estimated return date and the latest note. Filter by team, status or position; monitor mode lists only changes since the last run. No login.",
    "version": "0.1",
    "x-build-id": "eSqknGwfMoSz97pyY"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/yugenox~sports-injury-report-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-yugenox-sports-injury-report-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/yugenox~sports-injury-report-scraper/runs": {
      "post": {
        "operationId": "runs-sync-yugenox-sports-injury-report-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/yugenox~sports-injury-report-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-yugenox-sports-injury-report-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": {
          "leagues": {
            "title": "🏆 Leagues",
            "type": "array",
            "description": "Which injury reports to get. One request per league reads every team's report at once. Empty = NFL, NBA, MLB and NHL.",
            "items": {
              "type": "string",
              "enum": [
                "nfl",
                "nba",
                "wnba",
                "mlb",
                "nhl"
              ],
              "enumTitles": [
                "NFL",
                "NBA",
                "WNBA",
                "MLB",
                "NHL"
              ]
            },
            "default": [
              "nfl",
              "nba",
              "mlb",
              "nhl"
            ]
          },
          "teams": {
            "title": "Teams",
            "type": "array",
            "description": "Only players of these teams. An abbreviation, nickname, city or full name: \"KC\", \"Chiefs\", \"Kansas City Chiefs\", \"LAL\", \"Lakers\". Empty = every team.",
            "items": {
              "type": "string"
            }
          },
          "statuses": {
            "title": "Injury statuses",
            "type": "array",
            "description": "Only players with these statuses. Empty = every status except Active (players ESPN lists as cleared or back from injury — turn on \"Include Active players\" to get them too).",
            "items": {
              "type": "string",
              "enum": [
                "out",
                "doubtful",
                "questionable",
                "probable",
                "day-to-day",
                "injured-list",
                "suspended",
                "active",
                "other"
              ],
              "enumTitles": [
                "Out",
                "Doubtful",
                "Questionable",
                "Probable",
                "Day-to-day (incl. game-time decision)",
                "Injured reserve / injured list (IR, 10/15/60-day IL)",
                "Suspended",
                "Active (cleared / back from injury)",
                "Other (any other ESPN status)"
              ]
            }
          },
          "includeActive": {
            "title": "Include Active players",
            "type": "boolean",
            "description": "Also list players ESPN keeps on the report as Active (cleared to play, back from injury). The NFL report carries hundreds of these during the season.",
            "default": false
          },
          "positions": {
            "title": "Positions",
            "type": "array",
            "description": "Only these positions, as ESPN writes them: an abbreviation (QB, RB, WR, TE, G, F, C, SP, RP, D) or the full name (Quarterback, Goalie). Empty = every position.",
            "items": {
              "type": "string"
            }
          },
          "updatedWithinHours": {
            "title": "Updated within (hours)",
            "minimum": 0,
            "maximum": 8760,
            "type": "integer",
            "description": "Only players whose report entry was updated in the last N hours (e.g. 24 for today's news). Empty or 0 = any time. Ignored with \"Only changes since the last run\"."
          },
          "onlyChanges": {
            "title": "Only changes since the last run",
            "type": "boolean",
            "description": "Monitor mode for scheduled runs: lists only players who are new on the report, changed status, got an update (injury, return date, note) or left the report since the previous run with the same leagues and filters. Each row says what changed (changeType) and the previous status. The first run lists everyone as new.",
            "default": false
          },
          "monitorId": {
            "title": "Monitor name",
            "type": "string",
            "description": "Optional. Keeps separate memories for monitors that use the same filters (e.g. \"bettors-feed\" and \"newsletter\"). Leave empty if you run one monitor per filter set."
          },
          "sortBy": {
            "title": "Order",
            "enum": [
              "team",
              "newest"
            ],
            "type": "string",
            "description": "By team (ESPN's order: league, team, then newest entry first) or newest update first across all leagues.",
            "default": "team"
          },
          "maxItems": {
            "title": "Max rows",
            "minimum": 0,
            "maximum": 20000,
            "type": "integer",
            "description": "Maximum rows for the whole run (players, or changes in monitor mode). 0 = no limit.",
            "default": 1000
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Apify Proxy (datacenter) is the default and comes with every Apify plan. You can also paste your own proxy URLs.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}