{
  "openapi": "3.0.1",
  "info": {
    "title": "TennisExplorer Scraper - Tennis Results, Odds & H2H",
    "description": "TennisExplorer scraper for tennis results, fixtures and bookmaker odds: by date, tournament, player or match URL. Players, rankings, set scores, surface, round, head-to-head and odds per bookmaker with opening odds. Plain HTTP, no login. $1.50 per 1,000 matches.",
    "version": "0.1",
    "x-build-id": "JgAkowhkteEJKazdY"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/datagleaner~tennisexplorer-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-datagleaner-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/datagleaner~tennisexplorer-scraper/runs": {
      "post": {
        "operationId": "runs-sync-datagleaner-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/datagleaner~tennisexplorer-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-datagleaner-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": {
          "dates": {
            "title": "Dates (results and fixtures)",
            "type": "array",
            "description": "Day mode: every ATP, WTA, Challenger and ITF match on these days. Use `2026-10-12`, `yesterday`, `today`, `tomorrow`, an offset like `-3` or `+2`, or a range `2026-10-01..2026-10-07` (at most 31 days). Past days return results, today returns results and fixtures, future days return fixtures with their odds.",
            "items": {
              "type": "string"
            }
          },
          "tour": {
            "title": "Tour filter (day mode)",
            "enum": [
              "all",
              "atp-single",
              "wta-single",
              "atp-double",
              "wta-double"
            ],
            "type": "string",
            "description": "Narrow the day lists to one tour. Applies to `dates` only.",
            "default": "all"
          },
          "tournamentUrls": {
            "title": "Tournament URLs",
            "type": "array",
            "description": "Tournament mode: every match of an event, results and upcoming, e.g. `https://www.tennisexplorer.com/shanghai/2026/atp-men/`. Open the tournament on TennisExplorer and copy the address; the year in the URL picks the edition.",
            "items": {
              "type": "string"
            }
          },
          "playerUrls": {
            "title": "Player URLs",
            "type": "array",
            "description": "Player mode: a player's singles matches, e.g. `https://www.tennisexplorer.com/player/alcaraz-5ab70/`. Newest first, one season at a time (see `playerYears`).",
            "items": {
              "type": "string"
            }
          },
          "playerYears": {
            "title": "Seasons for player mode",
            "type": "array",
            "description": "Seasons to read for each player URL, e.g. `2026`, `2025`. Seasons are read in the order given until `maxMatches` is reached. Leave empty for the current season.",
            "items": {
              "type": "string"
            }
          },
          "matchUrls": {
            "title": "Match URLs or IDs",
            "type": "array",
            "description": "Single matches: `https://www.tennisexplorer.com/match-detail/?id=3344135` or just the ID `3344135`.",
            "items": {
              "type": "string"
            }
          },
          "maxMatches": {
            "title": "Max matches per source",
            "minimum": 1,
            "maximum": 20000,
            "type": "integer",
            "description": "Stops after this many matches for each date, tournament and player (a busy day lists 150 to 250 matches). Every match returned is billed.",
            "default": 100
          },
          "includeDetails": {
            "title": "Full match details (odds per bookmaker, H2H)",
            "type": "boolean",
            "description": "On: each match page is read for bookmaker odds with opening odds, head-to-head history and player profile. Off (day mode only): one request per day returns the list with average odds only, which is much faster. The price per match is the same.",
            "default": true
          },
          "includeAllMarkets": {
            "title": "Include over/under, handicap and correct-score odds",
            "type": "boolean",
            "description": "Adds the over/under, Asian handicap and correct-score odds tables from every bookmaker. Records get much larger. The home/away (match winner) odds are always included with full details.",
            "default": false
          },
          "requestDelaySecs": {
            "title": "Delay between requests (seconds)",
            "minimum": 0.1,
            "type": "number",
            "description": "Polite pacing between request starts. Lower is faster and raises the chance of being blocked.",
            "default": 0.4
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional. Off by default: TennisExplorer answered Apify datacenter IPs in testing. Enable a proxy if runs start getting blocked at high volume."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}