{
  "openapi": "3.0.1",
  "info": {
    "title": "TennisExplorer Results, Odds, Match Stats & Players Scraper",
    "description": "ATP, WTA, Challenger and ITF match results with set scores and tiebreaks, bookmaker odds per match (winner, over/under, handicap, correct score; opening and closing), player profiles, and SofaScore serve/return match statistics with point-by-point.",
    "version": "0.1",
    "x-build-id": "2CKnd3heRkxWcVt5v"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/artsiom_k~tennisexplorer-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-artsiom_k-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/artsiom_k~tennisexplorer-scraper/runs": {
      "post": {
        "operationId": "runs-sync-artsiom_k-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/artsiom_k~tennisexplorer-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-artsiom_k-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": {
          "entityType": {
            "title": "What to scrape",
            "enum": [
              "matches",
              "odds",
              "players",
              "matchStats"
            ],
            "type": "string",
            "description": "\"matches\": one row per finished match, with set scores, tiebreaks and average closing odds. \"odds\": one row per match, bookmaker and market (match winner, over/under, Asian handicap, correct score) with opening and closing odds. \"players\": player profiles walked from the ATP/WTA singles rankings. \"matchStats\": one row per finished match from SofaScore with serve and return statistics (aces, double faults, first-serve %, break points, points and games won; whole match and per set) and point-by-point.",
            "default": "matches"
          },
          "tours": {
            "title": "Tours",
            "type": "array",
            "description": "Which tours. Each includes its Challenger/125, UTR and ITF events; filter those with Levels. Used by every type (players: singles only).",
            "items": {
              "type": "string",
              "enum": [
                "atp-single",
                "wta-single",
                "atp-double",
                "wta-double"
              ],
              "enumTitles": [
                "ATP singles (men)",
                "WTA singles (women)",
                "ATP doubles",
                "WTA doubles"
              ]
            },
            "default": [
              "atp-single",
              "wta-single"
            ]
          },
          "dateFrom": {
            "title": "From date",
            "type": "string",
            "description": "matches/odds/matchStats: first day (YYYY-MM-DD). Leave both dates empty for yesterday and today. Results and odds go back to the 1990s. matchStats lists days from 2026-01-01 on; for older matches use SofaScore players (then the dates only narrow their history)."
          },
          "dateTo": {
            "title": "To date",
            "type": "string",
            "description": "matches/odds/matchStats: last day. Defaults to today when only dateFrom is set."
          },
          "levels": {
            "title": "Levels",
            "type": "array",
            "description": "matches/odds/matchStats: tournament levels to keep. Leave empty for all. matchStats: ITF matches have no statistics on SofaScore (score only).",
            "items": {
              "type": "string",
              "enum": [
                "tour",
                "challenger",
                "itf",
                "utr",
                "team"
              ],
              "enumTitles": [
                "ATP / WTA tour (incl. WTA 125)",
                "Challenger",
                "ITF",
                "UTR Pro Tennis Series",
                "Team events & leagues (Davis Cup, BJK Cup, Bundesliga...)"
              ]
            }
          },
          "tournaments": {
            "title": "Tournament names",
            "type": "array",
            "description": "matches/odds/matchStats: keep only tournaments whose name contains one of these (e.g. Wimbledon).",
            "items": {
              "type": "string"
            }
          },
          "players": {
            "title": "Players",
            "type": "array",
            "description": "matches/odds: keep only matches with one of these players, by TennisExplorer slug or player URL (e.g. sinner-8b8e8). For matchStats use SofaScore players.",
            "items": {
              "type": "string"
            }
          },
          "includeMatchDetails": {
            "title": "Include match details",
            "type": "boolean",
            "description": "matches: add round, surface and both players' rank, birthdate, height, weight and hand (one extra page per match, slower).",
            "default": false
          },
          "markets": {
            "title": "Odds markets",
            "type": "array",
            "description": "odds: which markets to return.",
            "items": {
              "type": "string",
              "enum": [
                "match_winner",
                "over_under",
                "asian_handicap",
                "correct_score"
              ],
              "enumTitles": [
                "Match winner",
                "Over/under (sets, games)",
                "Asian handicap",
                "Correct score"
              ]
            },
            "default": [
              "match_winner",
              "over_under",
              "asian_handicap"
            ]
          },
          "sofascorePlayers": {
            "title": "SofaScore players (matchStats)",
            "type": "array",
            "description": "matchStats: return these players' match history instead of listing by day, back to about 2016. SofaScore player URL or id, e.g. https://www.sofascore.com/tennis/player/sinner-jannik/206570 or 206570. Dates, tours, levels and tournament names still filter.",
            "items": {
              "type": "string"
            }
          },
          "includePointByPoint": {
            "title": "Include point-by-point (matchStats)",
            "type": "boolean",
            "description": "matchStats: add every game's server, winner, break flag and running point score with aces and double faults. Turn off for statistics only (one request less per match).",
            "default": true
          },
          "maxItems": {
            "title": "Max results",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many rows. Defaults to 50 for a quick preview; clear it (null) for everything in range.",
            "default": 50
          },
          "mode": {
            "title": "Incremental mode",
            "enum": [
              "auto",
              "full",
              "incremental"
            ],
            "type": "string",
            "description": "matches and matchStats. \"auto\": with maxItems cleared, later runs return only matches not returned before (handy for a daily schedule over overlapping dates); a capped run or a SofaScore player history always returns rows. \"full\": everything. \"incremental\": only new/changed.",
            "default": "auto"
          },
          "concurrency": {
            "title": "Concurrency",
            "minimum": 1,
            "maximum": 25,
            "type": "integer",
            "description": "Pages (or SofaScore requests) fetched in parallel.",
            "default": 10
          },
          "impersonate": {
            "title": "TLS impersonation target",
            "type": "string",
            "description": "curl_cffi browser fingerprint; defaults to \"chrome\"."
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "TennisExplorer (matches, odds, players): not needed; the site answered every request from Apify's infrastructure without a proxy.",
            "default": {
              "useApifyProxy": false
            }
          },
          "sofascoreProxyConfiguration": {
            "title": "SofaScore proxy (matchStats)",
            "type": "object",
            "description": "matchStats: SofaScore blocks most IPs, so the Actor finds proxy IPs that work and keeps reusing them. Apify's datacenter proxy (the default) is enough; Residential is tried first if you pick it. Proxy traffic is included in the price.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}