{
  "openapi": "3.0.1",
  "info": {
    "title": "ESPN Scoreboard Monitor",
    "description": "Extract ESPN scoreboard data for NFL, NCAA College Football, NBA, WNBA, and MLB games. Supports live, upcoming, and completed games with flexible date range options.",
    "version": "0.5",
    "x-build-id": "PVusqxjb5ncsgFUUO"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/notabotpromise~espn-scoreboard-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-notabotpromise-espn-scoreboard-monitor",
        "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/notabotpromise~espn-scoreboard-monitor/runs": {
      "post": {
        "operationId": "runs-sync-notabotpromise-espn-scoreboard-monitor",
        "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/notabotpromise~espn-scoreboard-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-notabotpromise-espn-scoreboard-monitor",
        "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": {
          "nfl_enabled": {
            "title": "🏈 NFL enabled",
            "type": "boolean",
            "description": "Collect NFL scoreboard data during this run.",
            "default": true
          },
          "nfl_state": {
            "title": "NFL scoreboard focus",
            "enum": [
              "auto",
              "in",
              "post",
              "pre"
            ],
            "type": "string",
            "description": "Auto mode hunts for live events, then falls back to the latest finals, and then upcoming games if the first two buckets are empty.",
            "default": "auto"
          },
          "nfl_date": {
            "title": "NFL target date",
            "pattern": "^(\\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$",
            "type": "string",
            "description": "Enter a specific date in YYYY-MM-DD format (e.g., <code>2025-01-15</code>). Leave blank to use the current local date. When range filters are also filled, the range takes precedence and this field is ignored."
          },
          "nfl_date_start": {
            "title": "NFL range start",
            "pattern": "^(\\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$|^(\\d+)\\s*(day|week|month|year)s?$",
            "type": "string",
            "description": "Enter the range start. Accepts absolute dates such as <code>2025-01-01</code> or relative lookbacks like <code>3 days</code>. When set (with or without a range end) the range overrides the single target date."
          },
          "nfl_date_end": {
            "title": "NFL range end",
            "pattern": "^(\\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$|^(\\d+)\\s*(day|week|month|year)s?$",
            "type": "string",
            "description": "Enter the range end. Accepts absolute dates such as <code>2025-01-07</code> or relative lookbacks like <code>0 days</code> for today. When set (with or without a range start) the range overrides the single target date."
          },
          "nfl_limit": {
            "title": "NFL event limit",
            "minimum": 1,
            "type": "integer",
            "description": "Cap each target date's scoreboard at this many events (defaults to 50). Leave blank to include every event ESPN exposes.",
            "default": 50
          },
          "nba_enabled": {
            "title": "🏀 NBA enabled",
            "type": "boolean",
            "description": "Collect NBA scoreboard data during this run.",
            "default": false
          },
          "nba_state": {
            "title": "NBA scoreboard focus",
            "enum": [
              "auto",
              "in",
              "post",
              "pre"
            ],
            "type": "string",
            "description": "Auto mode hunts for live events, then falls back to the latest finals, and then upcoming games if the first two buckets are empty.",
            "default": "auto"
          },
          "nba_date": {
            "title": "NBA target date",
            "pattern": "^(\\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$",
            "type": "string",
            "description": "Enter a specific date in YYYY-MM-DD format (e.g., <code>2025-01-15</code>). Leave blank to use the current local date. When range filters are also filled, the range takes precedence and this field is ignored."
          },
          "nba_date_start": {
            "title": "NBA range start",
            "pattern": "^(\\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$|^(\\d+)\\s*(day|week|month|year)s?$",
            "type": "string",
            "description": "Enter the range start. Accepts absolute dates such as <code>2025-01-01</code> or relative lookbacks like <code>3 days</code>. When set (with or without a range end) the range overrides the single target date."
          },
          "nba_date_end": {
            "title": "NBA range end",
            "pattern": "^(\\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$|^(\\d+)\\s*(day|week|month|year)s?$",
            "type": "string",
            "description": "Enter the range end. Accepts absolute dates such as <code>2025-01-07</code> or relative lookbacks like <code>0 days</code> for today. When set (with or without a range start) the range overrides the single target date."
          },
          "nba_limit": {
            "title": "NBA event limit",
            "minimum": 1,
            "type": "integer",
            "description": "Cap each target date's scoreboard at this many events (defaults to 50). Leave blank to include every event ESPN exposes.",
            "default": 50
          },
          "wnba_enabled": {
            "title": "🏀 WNBA enabled",
            "type": "boolean",
            "description": "Collect WNBA scoreboard data during this run.",
            "default": false
          },
          "wnba_state": {
            "title": "WNBA scoreboard focus",
            "enum": [
              "auto",
              "in",
              "post",
              "pre"
            ],
            "type": "string",
            "description": "Auto mode hunts for live events, then falls back to the latest finals, and then upcoming games if the first two buckets are empty.",
            "default": "auto"
          },
          "wnba_date": {
            "title": "WNBA target date",
            "pattern": "^(\\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$",
            "type": "string",
            "description": "Enter a specific date in YYYY-MM-DD format (e.g., <code>2025-01-15</code>). Leave blank to use the current local date. When range filters are also filled, the range takes precedence and this field is ignored."
          },
          "wnba_date_start": {
            "title": "WNBA range start",
            "pattern": "^(\\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$|^(\\d+)\\s*(day|week|month|year)s?$",
            "type": "string",
            "description": "Enter the range start. Accepts absolute dates such as <code>2025-01-01</code> or relative lookbacks like <code>3 days</code>. When set (with or without a range end) the range overrides the single target date."
          },
          "wnba_date_end": {
            "title": "WNBA range end",
            "pattern": "^(\\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$|^(\\d+)\\s*(day|week|month|year)s?$",
            "type": "string",
            "description": "Enter the range end. Accepts absolute dates such as <code>2025-01-07</code> or relative lookbacks like <code>0 days</code> for today. When set (with or without a range start) the range overrides the single target date."
          },
          "wnba_limit": {
            "title": "WNBA event limit",
            "minimum": 1,
            "type": "integer",
            "description": "Cap each target date's scoreboard at this many events (defaults to 50). Leave blank to include every event ESPN exposes.",
            "default": 50
          },
          "mlb_enabled": {
            "title": "⚾ MLB enabled",
            "type": "boolean",
            "description": "Collect MLB scoreboard data during this run.",
            "default": false
          },
          "mlb_state": {
            "title": "MLB scoreboard focus",
            "enum": [
              "auto",
              "in",
              "post",
              "pre"
            ],
            "type": "string",
            "description": "Auto mode hunts for live events, then falls back to the latest finals, and then upcoming games if the first two buckets are empty.",
            "default": "auto"
          },
          "mlb_date": {
            "title": "MLB target date",
            "pattern": "^(\\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$",
            "type": "string",
            "description": "Enter a specific date in YYYY-MM-DD format (e.g., <code>2025-01-15</code>). Leave blank to use the current local date. When range filters are also filled, the range takes precedence and this field is ignored."
          },
          "mlb_date_start": {
            "title": "MLB range start",
            "pattern": "^(\\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$|^(\\d+)\\s*(day|week|month|year)s?$",
            "type": "string",
            "description": "Enter the range start. Accepts absolute dates such as <code>2025-01-01</code> or relative lookbacks like <code>3 days</code>. When set (with or without a range end) the range overrides the single target date."
          },
          "mlb_date_end": {
            "title": "MLB range end",
            "pattern": "^(\\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$|^(\\d+)\\s*(day|week|month|year)s?$",
            "type": "string",
            "description": "Enter the range end. Accepts absolute dates such as <code>2025-01-07</code> or relative lookbacks like <code>0 days</code> for today. When set (with or without a range start) the range overrides the single target date."
          },
          "mlb_limit": {
            "title": "MLB event limit",
            "minimum": 1,
            "type": "integer",
            "description": "Cap each target date's scoreboard at this many events (defaults to 50). Leave blank to include every event ESPN exposes.",
            "default": 50
          },
          "cfb_enabled": {
            "title": "🎓🏈 College Football enabled",
            "type": "boolean",
            "description": "Collect College Football scoreboard data during this run.",
            "default": false
          },
          "cfb_state": {
            "title": "College Football scoreboard focus",
            "enum": [
              "auto",
              "in",
              "post",
              "pre"
            ],
            "type": "string",
            "description": "Auto mode hunts for live events, then falls back to the latest finals, and then upcoming games if the first two buckets are empty.",
            "default": "auto"
          },
          "cfb_date": {
            "title": "College Football target date",
            "pattern": "^(\\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$",
            "type": "string",
            "description": "Enter a specific date in YYYY-MM-DD format (e.g., <code>2025-01-15</code>). Leave blank to use the current local date. When range filters are also filled, the range takes precedence and this field is ignored."
          },
          "cfb_date_start": {
            "title": "College Football range start",
            "pattern": "^(\\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$|^(\\d+)\\s*(day|week|month|year)s?$",
            "type": "string",
            "description": "Enter the range start. Accepts absolute dates such as <code>2025-01-01</code> or relative lookbacks like <code>3 days</code>. When set (with or without a range end) the range overrides the single target date."
          },
          "cfb_date_end": {
            "title": "College Football range end",
            "pattern": "^(\\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$|^(\\d+)\\s*(day|week|month|year)s?$",
            "type": "string",
            "description": "Enter the range end. Accepts absolute dates such as <code>2025-01-07</code> or relative lookbacks like <code>0 days</code> for today. When set (with or without a range start) the range overrides the single target date."
          },
          "cfb_limit": {
            "title": "College Football event limit",
            "minimum": 1,
            "type": "integer",
            "description": "Cap each target date's scoreboard at this many events (defaults to 50). Leave blank to include every event ESPN exposes.",
            "default": 50
          },
          "cfb_season": {
            "title": "College Football season year",
            "minimum": 1900,
            "maximum": 2100,
            "type": "integer",
            "description": "ESPN season year (e.g., 2023). Combine with season type and week for historic slates."
          },
          "cfb_seasontype": {
            "title": "College Football season type",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "ESPN season type (1 = preseason, 2 = regular season, 3 = postseason)."
          },
          "cfb_week": {
            "title": "College Football week",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Target a specific slate by week number when paired with season filters."
          },
          "cfb_groups": {
            "title": "College Football groups",
            "type": "string",
            "description": "Comma-delimited ESPN group IDs (e.g., 80 for FBS, 81 for FCS)."
          },
          "webhook_url": {
            "title": "Webhook URL",
            "pattern": "^https://",
            "type": "string",
            "description": "HTTPS endpoint that should receive the normalized actor output."
          },
          "webhook_headers": {
            "title": "Webhook headers",
            "type": "array",
            "description": "Optional HTTP headers to attach to the webhook request.",
            "items": {
              "type": "object",
              "required": [
                "key",
                "value"
              ],
              "properties": {
                "key": {
                  "type": "string",
                  "title": "Key"
                },
                "value": {
                  "type": "string",
                  "title": "Value"
                }
              }
            }
          },
          "webhook_timeout": {
            "title": "Webhook timeout (seconds)",
            "minimum": 1,
            "type": "integer",
            "description": "Abort webhook delivery after this many seconds. Defaults to 10 when omitted.",
            "default": 10
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}