{
  "openapi": "3.0.1",
  "info": {
    "title": "Sports Intelligence Autopilot",
    "description": "Professional sports intelligence across 38 leagues ( NBA, NFL, Cricket, Soccer, F1, Horse Racing and many others). Real-time scores, stats, odds analysis. FREE mode with ESPN data. Premium: value bets, arbitrage, DFS, AI predictions. 20 modes, 6 MCPs, 58 tools with beautiful HTML reports.",
    "version": "0.0",
    "x-build-id": "yqv09tKMOIlkeNaFc"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/actor_researcher.48~sports-intelligence-autopilot/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-actor_researcher.48-sports-intelligence-autopilot",
        "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/actor_researcher.48~sports-intelligence-autopilot/runs": {
      "post": {
        "operationId": "runs-sync-actor_researcher.48-sports-intelligence-autopilot",
        "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/actor_researcher.48~sports-intelligence-autopilot/run-sync": {
      "post": {
        "operationId": "run-sync-actor_researcher.48-sports-intelligence-autopilot",
        "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": {
          "mode": {
            "title": "Operational Mode",
            "enum": [
              "live_scores",
              "deep_stats",
              "injury_impact",
              "weather_edge",
              "community_insights",
              "fantasy_cheat_sheet",
              "intelligence_report",
              "sharp_line_hunter",
              "arbitrage_detector",
              "middling_scanner",
              "live_sniper",
              "dfs_optimizer",
              "steam_chaser",
              "sharp_vs_public",
              "ai_predictions"
            ],
            "type": "string",
            "description": "Select analysis mode. FREE modes work without any API keys.",
            "default": "live_scores"
          },
          "quickSelectPreset": {
            "title": "Quick Select Preset",
            "enum": [
              "custom",
              "usa_popular",
              "global_mega",
              "soccer_focus",
              "cricket_focus",
              "combat_sports",
              "individual_sports",
              "horse_racing",
              "max_coverage"
            ],
            "type": "string",
            "description": "Pre-configured sport packages. Overrides custom sports selection below.",
            "default": "usa_popular"
          },
          "sports": {
            "title": "Custom Sports Selection",
            "uniqueItems": true,
            "type": "array",
            "description": "Select specific sports/leagues. Only used when preset is set to Custom.",
            "items": {
              "type": "string",
              "enum": [
                "NBA",
                "NCAA Basketball",
                "EuroLeague",
                "NFL",
                "NCAA Football",
                "MLB",
                "IPL",
                "International T20",
                "ODI",
                "Test Cricket",
                "Big Bash League",
                "English Premier League",
                "La Liga",
                "Serie A",
                "Bundesliga",
                "Champions League",
                "MLS",
                "NHL",
                "SHL (Sweden)",
                "UFC",
                "Boxing",
                "ATP",
                "WTA",
                "ATP Doubles",
                "Formula 1",
                "MotoGP",
                "PGA Championship",
                "The Masters",
                "AFL",
                "Rugby League NRL",
                "Rugby Union World Cup",
                "Horse Racing UK",
                "Horse Racing US",
                "Horse Racing AU",
                "PDC World Championship",
                "PBA Tour"
              ],
              "enumTitles": [
                "🏀 NBA",
                "🏀 NCAA Basketball",
                "🏀 EuroLeague",
                "🏈 NFL",
                "🏈 NCAA Football",
                "⚾ MLB",
                "🏏 IPL",
                "🏏 International T20",
                "🏏 ODI",
                "🏏 Test Cricket",
                "🏏 Big Bash League",
                "⚽ English Premier League",
                "⚽ La Liga",
                "⚽ Serie A",
                "⚽ Bundesliga",
                "⚽ Champions League",
                "⚽ MLS",
                "🏒 NHL",
                "🏒 SHL Sweden",
                "🥊 UFC",
                "🥊 Boxing",
                "🎾 ATP",
                "🎾 WTA",
                "🎾 ATP Doubles",
                "🏎️ Formula 1",
                "🏍️ MotoGP",
                "⛳ PGA Championship",
                "⛳ The Masters",
                "🏉 AFL",
                "🏉 Rugby League NRL",
                "🏉 Rugby Union World Cup",
                "🏇 Horse Racing UK",
                "🏇 Horse Racing US",
                "🏇 Horse Racing AU",
                "🎯 PDC World Championship",
                "🎳 PBA Tour"
              ]
            },
            "default": [
              "NBA",
              "NFL",
              "MLB"
            ]
          },
          "maxGamesPerSport": {
            "title": "Max Games Per Sport",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Maximum number of games/matches to fetch per sport. Higher = more data, slower run.",
            "default": 15
          },
          "includeStats": {
            "title": "Include Team Statistics",
            "type": "boolean",
            "description": "Fetch season statistics. FREE for NBA, NFL, MLB via official APIs.",
            "default": true
          },
          "includeInjuries": {
            "title": "Include Injury Reports",
            "type": "boolean",
            "description": "Fetch injury reports for NFL and NBA. FREE via ESPN Injury API.",
            "default": true
          },
          "includeIntelligence": {
            "title": "Include Intelligence Insights",
            "type": "boolean",
            "description": "Generate smart insights: fatigue alerts, pitch reports, weather edges, venue bias. FREE.",
            "default": true
          },
          "includeFantasy": {
            "title": "Include Fantasy Picks",
            "type": "boolean",
            "description": "Generate fantasy team recommendations with Captain, Value, and Differential picks. FREE.",
            "default": false
          },
          "openweatherApiKey": {
            "title": "OpenWeatherMap API Key (Optional)",
            "type": "string",
            "description": "FREE tier available at openweathermap.org — 1000 calls/day. Enables weather edge for NFL/Cricket/Soccer."
          },
          "oddsApiKey": {
            "title": "The Odds API Key (Optional - Premium)",
            "type": "string",
            "description": "🔓 Unlock real-time odds from 50+ bookmakers, arbitrage detection, value bets, line movement. Get free tier (500 req/month) at the-odds-api.com"
          },
          "sportsRadarKey": {
            "title": "SportsRadar API Key (Optional - Premium)",
            "type": "string",
            "description": "🔓 Unlock play-by-play data, live betting feeds, player tracking, advanced metrics."
          },
          "draftKingsKey": {
            "title": "DraftKings API Key (Optional - Premium)",
            "type": "string",
            "description": "🔓 Unlock DFS lineup optimization, salary data, ownership projections."
          },
          "twitterApiKey": {
            "title": "Twitter/X API Key (Optional - Premium)",
            "type": "string",
            "description": "🔓 Unlock breaking news alerts, injury rumors, expert picks, social sentiment."
          },
          "openaiApiKey": {
            "title": "OpenAI API Key (Optional - Premium)",
            "type": "string",
            "description": "🔓 Unlock AI-powered predictions, game analysis, and betting recommendations."
          },
          "exportFormat": {
            "title": "Export Format",
            "enum": [
              "html",
              "json",
              "both"
            ],
            "type": "string",
            "description": "Output format for results.",
            "default": "html"
          },
          "webhookUrl": {
            "title": "Webhook URL (Optional)",
            "type": "string",
            "description": "Send results to Discord, Telegram, Slack, or any webhook endpoint when run completes."
          },
          "bankroll": {
            "title": "Bankroll ($)",
            "minimum": 100,
            "maximum": 1000000,
            "type": "integer",
            "description": "Your betting bankroll in USD. Used for Kelly criterion stake calculations in Premium modes.",
            "default": 1000
          },
          "minValueThreshold": {
            "title": "Minimum Value Bet Edge (%)",
            "minimum": 0,
            "maximum": 50,
            "type": "integer",
            "description": "Only report value bets with edge above this percentage. Premium modes only.",
            "default": 3
          },
          "kellyFraction": {
            "title": "Kelly Fraction",
            "minimum": 0.01,
            "maximum": 1,
            "type": "number",
            "description": "Fraction of full Kelly criterion for stake sizing. 0.25 = quarter Kelly (recommended for safety).",
            "default": 0.25
          },
          "proxyEnabled": {
            "title": "Enable Apify Proxy",
            "type": "boolean",
            "description": "Use Apify proxy rotation to avoid blocks on cricket, racing, and other scraping targets. Recommended ON.",
            "default": true
          },
          "proxyType": {
            "title": "Proxy Type",
            "enum": [
              "RESIDENTIAL",
              "DATACENTER"
            ],
            "type": "string",
            "description": "Type of proxy to use. Residential is best for anti-bot sites like Cricbuzz and Racing Post.",
            "default": "RESIDENTIAL"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}