{
  "openapi": "3.0.1",
  "info": {
    "title": "Tennis Scraper: Live Scores, Results & Odds from 40+ Books",
    "description": "Every ATP, WTA, Challenger and ITF match: live scores, results with tiebreaks, current rankings, opening and closing odds from up to 42 bookmakers, no-vig consensus and line movement. Optional serve stats and point-by-point. Recent matches or full tournament history with odds back to 2009.",
    "version": "0.4",
    "x-build-id": "InLtB9rqug3RT8tuh"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/sports-odds-lab~tennis-odds-results/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-sports-odds-lab-tennis-odds-results",
        "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/sports-odds-lab~tennis-odds-results/runs": {
      "post": {
        "operationId": "runs-sync-sports-odds-lab-tennis-odds-results",
        "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/sports-odds-lab~tennis-odds-results/run-sync": {
      "post": {
        "operationId": "run-sync-sports-odds-lab-tennis-odds-results",
        "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": "What to scrape",
            "enum": [
              "recent",
              "tournaments"
            ],
            "type": "string",
            "description": "Recent matches: every tour from up to 7 days back to 7 days ahead (upcoming matches with current odds). Tournament history: complete past editions of the tournaments you list below, odds back to 2009 — add them in the 'Tournament history' section.",
            "default": "recent"
          },
          "statuses": {
            "title": "Match status",
            "type": "array",
            "description": "Finished includes retirements and walkovers. Live matches come with the server and the points of the current game (run it every few minutes for a live scoreboard). Other = cancelled or postponed.",
            "items": {
              "type": "string",
              "enum": [
                "finished",
                "scheduled",
                "live",
                "other"
              ],
              "enumTitles": [
                "Finished",
                "Scheduled",
                "Live",
                "Cancelled / postponed"
              ]
            },
            "default": [
              "finished",
              "scheduled"
            ]
          },
          "daysBack": {
            "title": "Days back",
            "minimum": 0,
            "maximum": 7,
            "type": "integer",
            "description": "How many past days to include (0 = today only). Up to 7.",
            "default": 1
          },
          "daysAhead": {
            "title": "Days ahead",
            "minimum": 0,
            "maximum": 7,
            "type": "integer",
            "description": "How many upcoming days to include. Up to 7. Upcoming matches carry the current prices instead of closing lines.",
            "default": 0
          },
          "tours": {
            "title": "Tours",
            "type": "array",
            "description": "Which levels of play to include.",
            "items": {
              "type": "string",
              "enum": [
                "ATP",
                "WTA",
                "CHALLENGER",
                "ITF",
                "TEAMS",
                "OTHER"
              ],
              "enumTitles": [
                "ATP",
                "WTA",
                "Challenger (men and women)",
                "ITF (men and women)",
                "Team events",
                "Other (exhibitions, juniors)"
              ]
            },
            "default": [
              "ATP",
              "WTA",
              "CHALLENGER"
            ]
          },
          "formats": {
            "title": "Formats",
            "type": "array",
            "description": "Singles, doubles or both.",
            "items": {
              "type": "string",
              "enum": [
                "SINGLES",
                "DOUBLES"
              ],
              "enumTitles": [
                "Singles",
                "Doubles"
              ]
            },
            "default": [
              "SINGLES"
            ]
          },
          "tournaments": {
            "title": "Tournaments",
            "type": "array",
            "description": "'Tour: Tournament' as shown on Flashscore — e.g. 'ATP: Wimbledon', 'WTA: French Open', 'ATP: Indian Wells', 'Challenger Men: Genova', 'ITF Women: W15 Monastir' — or the tournament's Flashscore URL. 'ATP: all' = every ATP tournament. Tours: ATP, WTA, ATP Doubles, WTA Doubles, Challenger Men, Challenger Women, ITF Men, ITF Women.",
            "items": {
              "type": "string"
            }
          },
          "years": {
            "title": "Years",
            "type": "array",
            "description": "Optional. Editions to scrape: single years (2024) or ranges (2015-2024). Leave empty to use 'Last editions'.",
            "items": {
              "type": "string"
            }
          },
          "lastYears": {
            "title": "Last editions",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Used when Years is empty: the latest edition of each tournament plus this many minus one before it.",
            "default": 1
          },
          "includeQualifying": {
            "title": "Include qualifying",
            "type": "boolean",
            "description": "Qualifying rounds of tournaments (both modes).",
            "default": true
          },
          "includeOdds": {
            "title": "Include odds",
            "type": "boolean",
            "description": "Opening and latest (closing) match-winner odds per bookmaker plus the no-vig consensus.",
            "default": true
          },
          "bookmakers": {
            "title": "Only these bookmakers",
            "type": "array",
            "description": "Optional. Names or parts of names, e.g. bet365, DraftKings, Betfred. Leave empty for all available (up to 42).",
            "items": {
              "type": "string"
            }
          },
          "onlyWithOdds": {
            "title": "Skip matches without odds",
            "type": "boolean",
            "description": "Do not save (and do not pay for) matches that no bookmaker priced.",
            "default": false
          },
          "includeStats": {
            "title": "Include match statistics",
            "type": "boolean",
            "description": "Aces, double faults, first/second serve points won, break points and more for finished matches (full detail on ATP/WTA/Challenger, partial on ITF).",
            "default": false
          },
          "includePointByPoint": {
            "title": "Include point-by-point",
            "type": "boolean",
            "description": "Every game of finished and live matches: server, winner, breaks and the score before each point (break, set and match points marked), plus every tiebreak point. One extra request per match.",
            "default": false
          },
          "includeRankings": {
            "title": "Include current rankings",
            "type": "boolean",
            "description": "Current ATP/WTA singles ranking of both players. Recent matches only — past tournament editions don't get it, because today's ranking would be misleading there.",
            "default": true
          },
          "maxMatches": {
            "title": "Max matches",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many matches (0 = no limit). With a limit the most important matches are kept first: ATP and WTA, then Challenger, team events and ITF.",
            "default": 0
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}