{
  "openapi": "3.0.1",
  "info": {
    "title": "Bet365 Sports Data Scraper | Scores, Players, Stats, Odds",
    "description": "Extract scores, fixtures, player profiles, match stats, lineups, transfers, and betting odds from Bet365. 15 actions across 13 sports and 2600+ competitions. Team and player names auto-resolved. Squad rankings, historical scores, 1X2 odds in three formats.",
    "version": "0.0",
    "x-build-id": "dCgT3OMw9ja1T44na"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/zen-studio~bet365-sports-data/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-zen-studio-bet365-sports-data",
        "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/zen-studio~bet365-sports-data/runs": {
      "post": {
        "operationId": "runs-sync-zen-studio-bet365-sports-data",
        "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/zen-studio~bet365-sports-data/run-sync": {
      "post": {
        "operationId": "run-sync-zen-studio-bet365-sports-data",
        "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": [
          "action"
        ],
        "properties": {
          "action": {
            "title": "Action",
            "enum": [
              "scores",
              "fixtures",
              "gameDetail",
              "teamGames",
              "playerProfile",
              "playerGames",
              "squadStats",
              "teamStats",
              "popular",
              "search",
              "competitions",
              "transfers",
              "odds",
              "trends",
              "dailyTip"
            ],
            "type": "string",
            "description": "What data to retrieve. Each action uses different fields below.<br><br><b>Scores &amp; Games:</b> scores, fixtures, gameDetail, teamGames<br><b>Players:</b> playerProfile, playerGames, squadStats, teamStats<br><b>Discovery:</b> popular, search, competitions, transfers<br><b>Betting:</b> odds, trends, dailyTip",
            "default": "scores"
          },
          "competitionIds": {
            "title": "Competitions",
            "type": "string",
            "description": "Competition slugs or IDs, comma-separated.<br><br><b>Used by:</b> scores, fixtures, odds (all values), squadStats, transfers (first value).<br><br><b>Examples:</b><br>• <code>premier-league</code><br>• <code>champions-league, bundesliga</code><br>• <code>nba</code>, <code>laliga</code><br><br>Run the <b>competitions</b> action to browse all 2600+ available slugs."
          },
          "season": {
            "title": "Season",
            "enum": [
              "Current season",
              "Last season",
              "2 seasons ago"
            ],
            "type": "string",
            "description": "Which season to pull data for.<br><br><b>Used by:</b> fixtures, scores.<br><br>Football leagues typically have 3 seasons of data. Other sports may only have the current season.",
            "default": "Current season"
          },
          "gameIds": {
            "title": "Game IDs",
            "type": "array",
            "description": "One or more numeric game IDs.<br><br><b>Used by:</b> gameDetail (all values), trends (first value).<br><br>Get game IDs from the <code>gameId</code> field in <b>scores</b> or <b>fixtures</b> output.",
            "items": {
              "type": "string"
            }
          },
          "competitorId": {
            "title": "Team",
            "type": "string",
            "description": "Team name or numeric ID. Names are auto-resolved (football teams prioritized).<br><br><b>Used by:</b> teamGames, squadStats, teamStats.<br><br><b>Examples:</b> <code>Real Madrid</code>, <code>Barcelona</code>, <code>Liverpool</code>"
          },
          "athleteIds": {
            "title": "Players",
            "type": "array",
            "description": "Player names or numeric IDs. Names are auto-resolved to the best match.<br><br><b>Used by:</b> playerProfile (all values), playerGames (first value).<br><br><b>Examples:</b> <code>Mbappe</code>, <code>Haaland</code>, <code>39789</code>",
            "items": {
              "type": "string"
            }
          },
          "statType": {
            "title": "Stat Type",
            "enum": [
              "Goals",
              "Assists",
              "Yellow Cards",
              "Red Cards",
              "Clean Sheets",
              "Rating",
              "Expected Goals (xG)",
              "Expected Assists (xA)",
              "Tackles Won",
              "Appearances",
              "Penalties Scored",
              "Penalties Saved"
            ],
            "type": "string",
            "description": "Stat to rank players by.<br><br><b>Used by:</b> squadStats.",
            "default": "Goals"
          },
          "searchQuery": {
            "title": "Search Query",
            "type": "string",
            "description": "Search for players, teams, and competitions by name.<br><br><b>Used by:</b> search.<br><br><b>Examples:</b> <code>Mbappe</code>, <code>Barcelona</code>, <code>Premier League</code>"
          },
          "sportType": {
            "title": "Sport",
            "enum": [
              "Football",
              "Basketball",
              "Tennis",
              "Hockey",
              "Handball",
              "American Football",
              "Baseball",
              "Volleyball",
              "Rugby"
            ],
            "type": "string",
            "description": "Sport filter.<br><br><b>Used by:</b> popular, competitions.",
            "default": "Football"
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum items to return. Controls pagination depth for scores and caps output for all actions.",
            "default": 500
          },
          "includeOdds": {
            "title": "Include Bet365 odds",
            "type": "boolean",
            "description": "Add 1X2 odds (home/draw/away) with opening and current prices.<br><br><b>Used by:</b> scores, teamGames.",
            "default": false
          },
          "language": {
            "title": "Language",
            "enum": [
              "English",
              "Deutsch",
              "Español",
              "Français",
              "Italiano",
              "Português",
              "Português (Brasil)",
              "Русский",
              "العربية",
              "Türkçe",
              "Nederlands",
              "Polski",
              "日本語",
              "中文(简体)"
            ],
            "type": "string",
            "description": "Language for team names, competition names, and labels.",
            "default": "English"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}