{
  "openapi": "3.0.1",
  "info": {
    "title": "TennisExplorer Scraper: Tennis Results & Betting Odds",
    "description": "Tennis results and betting odds from TennisExplorer: every ATP, WTA, Challenger, ITF and UTR match since 2005 with set scores, retired/walkover status and closing odds. Optional per-bookmaker odds with opening price and line movement, H2H, fixtures, player seasons, rankings.",
    "version": "1.0",
    "x-build-id": "vMs0a0qtBnywHemO0"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/axlymxp~tennisexplorer-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-axlymxp-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/axlymxp~tennisexplorer-scraper/runs": {
      "post": {
        "operationId": "runs-sync-axlymxp-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/axlymxp~tennisexplorer-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-axlymxp-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": {
          "mode": {
            "title": "What to scrape",
            "enum": [
              "matches",
              "fixtures",
              "players",
              "rankings"
            ],
            "type": "string",
            "description": "<b>Results</b>: every match of a date range (archive back to 2005) with scores and closing odds. <b>Fixtures</b>: scheduled matches with pre-match odds and H2H. <b>Players</b>: a player's full season(s). <b>Rankings</b>: ATP/WTA rankings.",
            "default": "matches"
          },
          "startDate": {
            "title": "Start date",
            "type": "string",
            "description": "YYYY-MM-DD, or relative: today, yesterday, tomorrow, -7, +1. Days are Central European days (the site's calendar). Default: yesterday (results) / today (fixtures)."
          },
          "endDate": {
            "title": "End date",
            "type": "string",
            "description": "Last day, inclusive (same formats). Empty = start date only. Max 366 days per run."
          },
          "matchTypes": {
            "title": "Tours",
            "type": "array",
            "description": "ATP/WTA singles and doubles. Challenger, ITF and UTR events are included in each tour; narrow them with Levels.",
            "items": {
              "type": "string",
              "enum": [
                "atp-single",
                "wta-single",
                "atp-double",
                "wta-double"
              ],
              "enumTitles": [
                "Men's singles (ATP, Challenger, ITF)",
                "Women's singles (WTA, WTA 125, ITF)",
                "Men's doubles",
                "Women's doubles"
              ]
            },
            "default": [
              "atp-single",
              "wta-single"
            ]
          },
          "levels": {
            "title": "Levels",
            "type": "array",
            "description": "Keep only these tournament levels. Empty = all.",
            "items": {
              "type": "string",
              "enum": [
                "tour",
                "challenger",
                "itf",
                "utr"
              ],
              "enumTitles": [
                "ATP / WTA tour (incl. Grand Slams, WTA 125, team cups)",
                "ATP Challenger",
                "ITF (Futures, W15-W100)",
                "UTR Pro Tennis Series"
              ]
            }
          },
          "statuses": {
            "title": "Match status",
            "type": "array",
            "description": "Keep only these statuses. Empty = all. Retired and walkover are derived from the score.",
            "items": {
              "type": "string",
              "enum": [
                "finished",
                "retired",
                "walkover",
                "scheduled"
              ],
              "enumTitles": [
                "Finished",
                "Retired",
                "Walkover",
                "Scheduled / not finished"
              ]
            }
          },
          "onlyWithOdds": {
            "title": "Only matches with odds",
            "type": "boolean",
            "description": "Drop matches that have no bookmaker odds (common in low-level ITF events).",
            "default": false
          },
          "tournaments": {
            "title": "Tournament filter",
            "type": "array",
            "description": "Keep only tournaments whose name contains one of these (e.g. Wimbledon, Almaty, challenger).",
            "items": {
              "type": "string"
            }
          },
          "includeMatchDetails": {
            "title": "Include bookmaker odds history, H2H and player bios",
            "type": "boolean",
            "description": "+1 page per match: odds of ~15 bookmakers for match winner, over/under, Asian handicap and correct score with opening price and every line move, head-to-head, round, surface, player rank/age/height/hand. Charged as a separate 'match details' event.",
            "default": false
          },
          "oddsHistory": {
            "title": "Keep full odds movement",
            "type": "boolean",
            "description": "Off = only current and opening odds per bookmaker (much smaller rows).",
            "default": true
          },
          "players": {
            "title": "Players",
            "type": "array",
            "description": "Names (Jannik Sinner), TennisExplorer slugs (sinner-8b8e8) or player URLs. Players mode: whose matches to scrape. Results/fixtures mode: keep only their matches.",
            "items": {
              "type": "string"
            }
          },
          "seasons": {
            "title": "Seasons",
            "type": "array",
            "description": "Players mode: years to scrape (e.g. 2024, 2025). Empty = current season.",
            "items": {
              "type": "string"
            }
          },
          "playerMatchType": {
            "title": "Player matches",
            "enum": [
              "singles",
              "doubles"
            ],
            "type": "string",
            "description": "Players mode: singles or doubles matches.",
            "default": "singles"
          },
          "rankingTours": {
            "title": "Ranking tours",
            "type": "array",
            "description": "Rankings mode.",
            "items": {
              "type": "string",
              "enum": [
                "atp-men",
                "wta-women"
              ],
              "enumTitles": [
                "ATP (men)",
                "WTA (women)"
              ]
            },
            "default": [
              "atp-men",
              "wta-women"
            ]
          },
          "rankingKind": {
            "title": "Ranking type",
            "enum": [
              "singles",
              "doubles",
              "race"
            ],
            "type": "string",
            "description": "Rankings mode.",
            "default": "singles"
          },
          "rankingDate": {
            "title": "Ranking date",
            "type": "string",
            "description": "YYYY-MM-DD of a published ranking (Mondays), back to 1998. Empty = latest."
          },
          "maxRank": {
            "title": "Max rank",
            "minimum": 1,
            "maximum": 2500,
            "type": "integer",
            "description": "Rankings mode: scrape positions 1..N.",
            "default": 100
          },
          "maxItems": {
            "title": "Max rows",
            "minimum": 1,
            "maximum": 200000,
            "type": "integer",
            "description": "Hard cap on dataset rows. You are charged per row.",
            "default": 500
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional. TennisExplorer works without a proxy."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}