{
  "openapi": "3.0.1",
  "info": {
    "title": "TennisExplorer Match Results and Betting Odds Scraper",
    "description": "TennisExplorer scraper for tennis match results and betting odds: every ATP, WTA, Challenger and ITF singles match by date, tournament or player, with score, round, surface and average odds, plus each bookmaker's opening and closing odds. Upcoming matches too. Maintained by CleanScrape.",
    "version": "0.1",
    "x-build-id": "85ShSKEHnGxnilWnA"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/cleanscrape~tennisexplorer-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-cleanscrape-tennisexplorer-scraper",
        "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/cleanscrape~tennisexplorer-scraper/runs": {
      "post": {
        "operationId": "runs-sync-cleanscrape-tennisexplorer-scraper",
        "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/cleanscrape~tennisexplorer-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-cleanscrape-tennisexplorer-scraper",
        "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": {
          "dateFrom": {
            "title": "From date",
            "type": "string",
            "description": "The first day of matches (TennisExplorer's calendar, Central European time), such as 2025-06-30, yesterday or -7 days. Past days give results; today and the next days give the schedule with current odds. Empty, with no tournaments or players: yesterday."
          },
          "dateTo": {
            "title": "To date",
            "type": "string",
            "description": "The last day. Empty: one day, or until today when From date is in the past. With tournaments or players below, the dates only narrow their matches."
          },
          "tournaments": {
            "title": "Tournaments (optional)",
            "type": "array",
            "description": "One per line: a name with optional years (Wimbledon, Australian Open 2020-2025, Orleans Challenger 2026) or a TennisExplorer tournament link. Both tours unless the link names one.",
            "items": {
              "type": "string"
            }
          },
          "players": {
            "title": "Players (optional)",
            "type": "array",
            "description": "One per line: a name with optional years (Jannik Sinner, Draper 2024) or a TennisExplorer player link. All of the player's singles matches of the year.",
            "items": {
              "type": "string"
            }
          },
          "years": {
            "title": "Years",
            "type": "string",
            "description": "For tournaments and players without their own years: 2025, 2020-2025 or 2023, 2025. Empty: the latest season with matches."
          },
          "tours": {
            "title": "Tours",
            "type": "array",
            "description": "Men, women or both.",
            "items": {
              "type": "string",
              "enum": [
                "ATP",
                "WTA"
              ],
              "enumTitles": [
                "Men (ATP, Challenger, men's ITF)",
                "Women (WTA, women's ITF)"
              ]
            },
            "default": [
              "ATP",
              "WTA"
            ]
          },
          "levels": {
            "title": "Levels",
            "type": "array",
            "description": "Which tournaments. ITF matches are about half of each day and rarely have odds.",
            "items": {
              "type": "string",
              "enum": [
                "grandSlam",
                "tour",
                "challenger",
                "itf",
                "other"
              ],
              "enumTitles": [
                "Grand Slams",
                "Main tour (ATP and WTA events, Finals)",
                "Challengers",
                "ITF (Futures and women's ITF)",
                "Other (UTR series, exhibitions, team events)"
              ]
            },
            "default": [
              "grandSlam",
              "tour",
              "challenger",
              "itf",
              "other"
            ]
          },
          "includeQualifying": {
            "title": "Qualifying matches",
            "type": "boolean",
            "description": "Also the qualifying rounds of each tournament.",
            "default": true
          },
          "bookmakerOdds": {
            "title": "Bookmaker odds",
            "type": "boolean",
            "description": "Also each bookmaker's opening and latest odds for every match (the latest before the start are the closing odds), in a \"Bookmaker odds\" table, with the best and opening odds on the match row. Reads each match page, so about 3 matches a second instead of hundreds.",
            "default": false
          },
          "maxMatches": {
            "title": "Maximum matches",
            "minimum": 1,
            "maximum": 200000,
            "type": "integer",
            "description": "The most matches to save in one run, earliest first.",
            "default": 1000
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}