{
  "openapi": "3.0.1",
  "info": {
    "title": "Tennis Scraper: Scores, Rankings, Stats & Odds (160+ Books)",
    "description": "Every ATP, WTA, Challenger and ITF match (singles and doubles): live scores, set-by-set results with tiebreaks, retirements, ATP/WTA rankings, match statistics and odds from 160+ bookmakers with fair odds, value and arbitrage. No browser, fast and cheap.",
    "version": "0.1",
    "x-build-id": "aQo1vQ5jUcJZSYF68"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/zayne21~tennis-scores-stats-odds/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-zayne21-tennis-scores-stats-odds",
        "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/zayne21~tennis-scores-stats-odds/runs": {
      "post": {
        "operationId": "runs-sync-zayne21-tennis-scores-stats-odds",
        "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/zayne21~tennis-scores-stats-odds/run-sync": {
      "post": {
        "operationId": "run-sync-zayne21-tennis-scores-stats-odds",
        "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": {
          "daysAhead": {
            "title": "Days ahead",
            "minimum": 0,
            "maximum": 7,
            "type": "integer",
            "description": "Matches from today up to this many days ahead (0 = today only, max 7).",
            "default": 0
          },
          "daysBack": {
            "title": "Past days",
            "minimum": 0,
            "maximum": 7,
            "type": "integer",
            "description": "Also include matches of the last N days (max 7), with final scores.",
            "default": 0
          },
          "tours": {
            "title": "Tours",
            "type": "array",
            "description": "Leave empty for all tours.",
            "items": {
              "type": "string",
              "enum": [
                "ATP",
                "WTA",
                "CHALLENGER MEN",
                "CHALLENGER WOMEN",
                "ITF MEN",
                "ITF WOMEN",
                "OTHER"
              ],
              "enumTitles": [
                "ATP",
                "WTA",
                "Challenger (men)",
                "Challenger (women)",
                "ITF (men)",
                "ITF (women)",
                "Other (team events, juniors, exhibitions...)"
              ]
            }
          },
          "matchTypes": {
            "title": "Singles / doubles",
            "type": "array",
            "description": "Leave empty for both.",
            "items": {
              "type": "string",
              "enum": [
                "singles",
                "doubles"
              ],
              "enumTitles": [
                "Singles",
                "Doubles"
              ]
            }
          },
          "statuses": {
            "title": "Match statuses",
            "type": "array",
            "description": "Upcoming, live and/or finished (finished includes retirements, walkovers and cancellations).",
            "items": {
              "type": "string",
              "enum": [
                "scheduled",
                "live",
                "finished"
              ],
              "enumTitles": [
                "Upcoming",
                "Live",
                "Finished"
              ]
            },
            "default": [
              "scheduled",
              "live",
              "finished"
            ]
          },
          "tournaments": {
            "title": "Tournaments",
            "type": "array",
            "description": "Optional. Keep only competitions whose name or FlashScore URL contains one of these, e.g. Beijing, Roland Garros, /tennis/atp-singles/shanghai/.",
            "items": {
              "type": "string"
            }
          },
          "players": {
            "title": "Players",
            "type": "array",
            "description": "Optional. Keep only matches of these players (part of the name, accents ignored), e.g. Sinner, Swiatek.",
            "items": {
              "type": "string"
            }
          },
          "maxMatches": {
            "title": "Maximum matches",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Stop after saving this many matches (earliest first). You are charged per match saved.",
            "default": 200
          },
          "includeRankings": {
            "title": "Include ATP/WTA rankings",
            "type": "boolean",
            "description": "Current singles ranking and points of each player (free).",
            "default": true
          },
          "includeStatistics": {
            "title": "Include match statistics",
            "type": "boolean",
            "description": "Aces, double faults, serve and return points, break points, games won... for the match and each set (live and finished matches, small extra charge per match).",
            "default": false
          },
          "includeOdds": {
            "title": "Include bookmaker odds",
            "type": "boolean",
            "description": "Prices of all bookmakers of the selected countries, best price, fair odds, value bets and arbitrage (extra charge per match with odds).",
            "default": false
          },
          "countries": {
            "title": "Bookmaker countries (odds)",
            "type": "array",
            "description": "Bookmakers licensed in these countries are compared (UK: 20 bookmakers, Italy: 13, Canada: 10, France: 8...). Several countries are merged into one comparison per match.",
            "items": {
              "type": "string",
              "enum": [
                "GB",
                "IE",
                "FR",
                "DE",
                "IT",
                "ES",
                "PT",
                "NL",
                "AT",
                "CH",
                "PL",
                "CZ",
                "SK",
                "RO",
                "BG",
                "RS",
                "GR",
                "CY",
                "MT",
                "SE",
                "DK",
                "NO",
                "FI",
                "EE",
                "LV",
                "US",
                "CA",
                "MX",
                "CO",
                "PE",
                "EC",
                "VE",
                "AU",
                "ZA",
                "NG",
                "GH",
                "TZ",
                "KR",
                "TH",
                "PH",
                "MY",
                "MA",
                "XX"
              ],
              "enumTitles": [
                "United Kingdom: bet365, BetMGM.uk, Betfred, Unibetuk, Betway, Midnite +14",
                "Ireland: bet365, 1xBet.ie, Midnite, Novibet, Betway, Paddy Power +2",
                "France: Betclic.fr, Winamax, Unibet.fr, Pmu, Betsson.fr, Bet365.fr +2",
                "Germany: Neobet, bwin, Oddset.de, Winamax.de, Interwetten, Betano.de +1",
                "Italy: bet365.it, Sisal, GoldBet, Eurobet.it, BetssonIT, SNAI +7",
                "Spain: bet365, Sportium.es, Versus.es, Betway, Codere, Luckia.es +3",
                "Portugal: Betano.pt, Solverde.pt, bwin.pt",
                "Netherlands: Sevelev.nl, bet365.nl",
                "Austria: Admiralat, bet365, bet-at-home, bwin",
                "Switzerland: bet365, bet-at-home",
                "Poland: STS.pl, eFortuna.pl, Superbet.pl, Betclic.pl, BETFAN, LV BET",
                "Czechia: Tipsport.cz, iFortuna.cz, Chance.cz, Betano.cz",
                "Slovakia: Tipsport.sk, DOXXbet",
                "Romania: Unibetro, Superbet.ro, Betano.ro, MrBitRO, Getsbet, Fortuna.ro",
                "Bulgaria: bet365, Betano.bg, Winbet, MrBitRO, bwin",
                "Serbia: Mozzartbetrs, 1xBet.rs, SoccerBet, Superbet.rs, Admiralbet.rs, bet365",
                "Greece: bet365, Stoiximan.gr, PameStoixima, Novibet, Bwin.gr",
                "Cyprus: bet365, Stoiximan.cy, Novibet",
                "Malta: bet365, William Hill, bwin, Mozzartbet",
                "Sweden: Unibetse, Expektse, Dbet, bet365, BetMGM.se, 1x2 +1",
                "Denmark: bet365, Expektdk, Betano.dk, Stake.com, Unibetdk, LeoVegasDK",
                "Norway: Lilibet, Betsmith, Cloudbet, Roobet, Golissimo",
                "Finland: 1xBet, Winz.io, bet365, Coolbet, Golissimo",
                "Estonia: Olybet, bet365, Speedybet.ee, Unibetee, Coolbet",
                "Latvia: Olybet, Fenikss, 7bet.lv, bet365, 1xBet, 11.lv",
                "United States (New Jersey): Fanduel, bet365.us, BetMGM.us, DraftKings, Fanatics",
                "Canada (Ontario): bet365, Betway, Sports Interaction, Betano.ca (Ontario), TonyBet, PointsBet.ca +4",
                "Mexico: Calientemx, 1xBet, Betboom.mx, Betway, Codere, Novibet +2",
                "Colombia: Wplay.co, Betano.co, Stake.latam, Bwin.co, Betplay, Luckia.co",
                "Peru: Betsson, Betano.pe, bet365, 1xBet, Stake.latam, DoradoBet",
                "Ecuador: Betano.ec, 1xBet",
                "Venezuela: Grupo Cordialito, Juegaenlinea, Gogoroyal, Sellatuparley, Triunfobet, Betfine24",
                "Australia: bet365, Unibetau",
                "South Africa: Easybet, Betway Africa, Sportingbet, Worldsportsbetting, Sunbet, Virginbet +2",
                "Nigeria: 1xBet, Bet9ja, Betking",
                "Ghana: 1xBet, Betway Africa, Betano.gh",
                "Tanzania: Betway Africa, LeonBet, 1xBet",
                "South Korea: 1xBet, 10x10bet, Alphabet, Momobet, Betssen, Melbet",
                "Thailand: 1xBet, Stake.com, Melbet, bet-at-home, bet365, Betfair",
                "Philippines: 1xBet, Stake.com",
                "Malaysia: 1xBet, Stake.com",
                "Morocco: 1xBet, Melbet",
                "International: 1xBet, bet365, Unibet, Betfair, bwin, William Hill"
              ]
            },
            "default": [
              "GB"
            ]
          },
          "markets": {
            "title": "Odds markets",
            "type": "array",
            "description": "Markets collected when odds are included.",
            "items": {
              "type": "string",
              "enum": [
                "winner",
                "set_handicap",
                "game_handicap",
                "total_sets",
                "total_games",
                "correct_score",
                "odd_even"
              ],
              "enumTitles": [
                "Winner",
                "Set handicap",
                "Game handicap",
                "Total sets",
                "Total games",
                "Correct score",
                "Odd/even games"
              ]
            },
            "default": [
              "winner",
              "set_handicap",
              "game_handicap",
              "total_sets",
              "total_games"
            ]
          },
          "periods": {
            "title": "Odds periods",
            "type": "array",
            "description": "Whole match and/or individual sets.",
            "items": {
              "type": "string",
              "enum": [
                "match",
                "set1",
                "set2",
                "set3"
              ],
              "enumTitles": [
                "Match",
                "Set 1",
                "Set 2",
                "Set 3"
              ]
            },
            "default": [
              "match"
            ]
          },
          "onlyMatchesWithOdds": {
            "title": "Only matches with odds",
            "type": "boolean",
            "description": "When odds are included, skip matches no bookmaker of the selected countries prices (not charged).",
            "default": false
          },
          "valueThresholdPercent": {
            "title": "Value bet threshold (%)",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "An outcome is flagged as a value bet when best price x fair probability - 1 is at least this percentage.",
            "default": 2
          },
          "valueMaxOdds": {
            "title": "Value bet maximum odds",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Ignore value bets above these odds.",
            "default": 10
          },
          "demarginMethod": {
            "title": "Fair odds method",
            "enum": [
              "proportional",
              "power"
            ],
            "type": "string",
            "description": "How each bookmaker's margin is removed before taking the median over bookmakers.",
            "default": "proportional"
          },
          "includeOpeningOdds": {
            "title": "Include opening odds",
            "type": "boolean",
            "description": "Add each bookmaker's opening price.",
            "default": true
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Not needed in most cases.",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}