{
  "openapi": "3.0.1",
  "info": {
    "title": "Tennis Scraper — Results, Odds, Rankings & Elo (ATP, WTA)",
    "description": "Tennis results and fixtures with betting odds for ATP, WTA, Challenger and ITF: set scores, round, surface, prize money, average and per-bookmaker closing / opening odds, head-to-head and player profiles. Plus ATP / WTA rankings and Elo ratings. Daily or historical. No login.",
    "version": "0.1",
    "x-build-id": "ZkVt7bwMMMhqj9LIX"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/yugenox~tennis-results-odds-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-yugenox-tennis-results-odds-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/yugenox~tennis-results-odds-scraper/runs": {
      "post": {
        "operationId": "runs-sync-yugenox-tennis-results-odds-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/yugenox~tennis-results-odds-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-yugenox-tennis-results-odds-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": [
              "results",
              "fixtures",
              "urls",
              "rankings",
              "elo"
            ],
            "type": "string",
            "description": "Results = finished matches of a day or date range. Fixtures = upcoming matches with pre-match odds and head-to-head. Tournament or match URLs = every match of a tournament page (with its round) or single match pages. Rankings = official ATP / WTA singles rankings. Elo ratings = weekly ATP / WTA Elo ratings (overall, hard, clay, grass).",
            "default": "results"
          },
          "tours": {
            "title": "Tours",
            "type": "array",
            "description": "Which match lists to read. Each tour includes every level the site covers for it: Grand Slams, ATP / WTA tour events, Challengers, ITF and more (narrow it with Levels below). Rankings and Elo use the singles list of each tour.",
            "items": {
              "type": "string",
              "enum": [
                "atp-single",
                "wta-single",
                "atp-double",
                "wta-double"
              ],
              "enumTitles": [
                "ATP singles (men)",
                "WTA singles (women)",
                "ATP doubles (men)",
                "WTA doubles (women)"
              ]
            },
            "default": [
              "atp-single",
              "wta-single"
            ]
          },
          "dateFrom": {
            "title": "Date from",
            "type": "string",
            "description": "First day (Central European time, the site's calendar). YYYY-MM-DD, or relative: \"today\", \"yesterday\", \"3 days ago\", \"-1 week\", \"tomorrow\", \"in 2 days\". Empty = yesterday for Results (or the most recent day with matches) and today for Fixtures. Relative dates make scheduled daily runs easy."
          },
          "dateTo": {
            "title": "Date to",
            "type": "string",
            "description": "Last day, same formats. Empty = the same day as Date from (Results) or tomorrow (Fixtures). Results are read newest day first; up to 366 days per run."
          },
          "players": {
            "title": "Players",
            "type": "array",
            "description": "Only matches (or ranking / Elo rows) of these players, e.g. \"Sinner\", \"Jannik Sinner\", \"Swiatek\". Accents and initials are handled (\"Djokovic\" finds \"Đoković N.\"). Empty = everyone.",
            "items": {
              "type": "string"
            }
          },
          "tournaments": {
            "title": "Tournaments",
            "type": "array",
            "description": "Only matches of tournaments whose name contains one of these, e.g. \"Vienna\", \"Wimbledon\", \"Australian Open\". Empty = all tournaments.",
            "items": {
              "type": "string"
            }
          },
          "levels": {
            "title": "Levels",
            "type": "array",
            "description": "Only matches of these tournament levels. Empty = all levels.",
            "items": {
              "type": "string",
              "enum": [
                "grand-slam",
                "tour",
                "challenger",
                "itf",
                "utr",
                "team",
                "exhibition",
                "junior"
              ],
              "enumTitles": [
                "Grand Slams",
                "ATP / WTA tour events (Masters, 500, 250, Finals …)",
                "Challengers",
                "ITF",
                "UTR Pro Tennis Series",
                "Team events (Davis Cup, BJK Cup, United Cup …)",
                "Exhibitions",
                "Juniors"
              ]
            }
          },
          "includeRoundAndSurface": {
            "title": "Round, surface and prize money",
            "type": "boolean",
            "description": "Add each match's round (R32, QF, F …), the court surface (hard, clay, grass, indoors) and the tournament's prize money. Read once per tournament, no extra charge.",
            "default": true
          },
          "includeMatchDetails": {
            "title": "Bookmaker odds, H2H and player profiles",
            "type": "boolean",
            "description": "Open each saved match's own page: every bookmaker's closing and opening odds (best odds too), the head-to-head record, and both players' rank, birth date, height, weight and playing hand. Charged once per match (see Pricing). The average odds of all bookmakers are always included without this.",
            "default": false
          },
          "startUrls": {
            "title": "Tournament or match URLs",
            "type": "array",
            "description": "For \"Tournament or match URLs\": TennisExplorer tournament pages (tennisexplorer.com/vienna/2026/atp-men/, add ?type=double for doubles or ?phase=qualification for qualifying) give every result and upcoming match with its round; match pages (tennisexplorer.com/match-detail/?id=3358311) give one match with all bookmakers' odds.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "topPlayers": {
            "title": "Top players (rankings and Elo)",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "How many players per tour for Rankings and Elo ratings, from number 1 down.",
            "default": 100
          },
          "rankingDate": {
            "title": "Ranking week",
            "type": "string",
            "description": "For Rankings: a past ranking week (YYYY-MM-DD, the Monday of that week). Empty = the latest ranking."
          },
          "maxItems": {
            "title": "Max rows",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Most rows for the whole run (matches, ranking rows or Elo rows), shared fairly between the tours. 0 = everything.",
            "default": 200
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Apify Proxy (datacenter) is the default and comes with every Apify plan, including the free one.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}