{
  "openapi": "3.0.1",
  "info": {
    "title": "Sports Injury Reports & Status Changes",
    "description": "Player injury and availability reports for the NFL, NBA, NHL, MLB and WNBA: one record per listed player with a normalised status, injury detail, comments, expected return and the team's next game. Change mode tracks new, updated and cleared listings.",
    "version": "0.1",
    "x-build-id": "N2CTAQOnZQEGnfnAF"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/automatic~sports-injuries/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-automatic-sports-injuries",
        "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/automatic~sports-injuries/runs": {
      "post": {
        "operationId": "runs-sync-automatic-sports-injuries",
        "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/automatic~sports-injuries/run-sync": {
      "post": {
        "operationId": "run-sync-automatic-sports-injuries",
        "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",
            "uniqueItems": true,
            "type": "array",
            "description": "Leagues to collect. Omit for NFL and NBA. An empty list is an error. A bare input ({}) returns an announced sample of at most 20 records; any explicit input runs the requested scope.",
            "items": {
              "type": "string",
              "enum": [
                "nfl",
                "nba",
                "nhl",
                "mlb",
                "wnba"
              ],
              "enumTitles": [
                "NFL (National Football League)",
                "NBA (National Basketball Association)",
                "NHL (National Hockey League)",
                "MLB (Major League Baseball)",
                "WNBA (Women's National Basketball Association)"
              ]
            }
          },
          "teams": {
            "title": "Teams",
            "uniqueItems": true,
            "type": "array",
            "description": "Only these teams: abbreviations as the source writes them (for example LAL, BOS, KC, GS, NO, NY, SA, UTAH, WSH), full team names or numeric team ids. Leave empty for every team. A numeric id is matched in every selected league, so use it with one league.",
            "items": {
              "type": "string"
            }
          },
          "statuses": {
            "title": "Statuses",
            "uniqueItems": true,
            "type": "array",
            "description": "Only players with these statuses. Leave empty for every status except Active: for the NFL the source also lists recent player news under Active, which is not an injury. In change mode a change is returned when the previous or the new status is in this list.",
            "items": {
              "type": "string",
              "enum": [
                "out",
                "doubtful",
                "questionable",
                "probable",
                "day_to_day",
                "injured_reserve",
                "suspended",
                "active",
                "unknown"
              ],
              "enumTitles": [
                "Out",
                "Doubtful",
                "Questionable",
                "Probable",
                "Day to day",
                "Injured reserve / injured list",
                "Suspended",
                "Active (includes NFL player news)",
                "Unknown (a status this Actor does not recognise)"
              ]
            }
          },
          "includeComments": {
            "title": "Include comments",
            "type": "boolean",
            "description": "Off by default: records carry status, injury and dates only. Turn on to add the short and long text note published with each entry. Those notes are editorial text written by a third party (credited in commentSource), so check that your use of them is allowed. Comment changes are detected in change mode either way."
          },
          "attachNextGame": {
            "title": "Attach each team's next game",
            "type": "boolean",
            "description": "Add the team's next scheduled game (event id, start time, opponent, home or away) to each record. Costs one schedule lookup per league per day until every listed team has a game, at most the number of days below."
          },
          "nextGameDays": {
            "title": "Days to look ahead for the next game",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many days from today (US Eastern days) to search for each team's next game. A team with no game in that window gets no next game."
          },
          "emitChangesOnly": {
            "title": "Only changes since the last run",
            "type": "boolean",
            "description": "Return only players whose status, comment or expected return changed since the previous run with the same state key, plus players who are no longer listed (cleared). The first run returns every listed player as new."
          },
          "stateKey": {
            "title": "State key (change mode)",
            "type": "string",
            "description": "Name of the saved state that change mode compares against. Runs with the same key share one history, so give every schedule of the same watch list the same key. Leave empty to derive it from the leagues and teams. Letters, digits and ! - _ . ' ( ) only, at most 64 characters."
          },
          "maxResults": {
            "title": "Maximum records",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Stop after this many dataset records (1–5,000). Omitted: 20 for a bare sample, otherwise 1,000. The Console prefill is 20. In change mode, changes beyond the limit are kept for the next run instead of being dropped."
          },
          "requestDelaySecs": {
            "title": "Delay between requests",
            "minimum": 0.25,
            "maximum": 10,
            "type": "number",
            "description": "Seconds between request starts. The default of 1 keeps the run to about one request per second."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}