{
  "openapi": "3.0.1",
  "info": {
    "title": "TennisExplorer Scraper: Tennis Odds, Results, H2H & Line Moves",
    "description": "Tennis match data for betting models: ATP, WTA, Challenger and ITF schedules and results with average odds, plus bookmaker odds with opening prices and line movement, head-to-head, player cards and player match histories from TennisExplorer. Odds-movement alerts for scheduled runs.",
    "version": "0.1",
    "x-build-id": "pSMnCnfVcsWGfl3Gq"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/roomy_tweet~tennisexplorer-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-roomy_tweet-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/roomy_tweet~tennisexplorer-scraper/runs": {
      "post": {
        "operationId": "runs-sync-roomy_tweet-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/roomy_tweet~tennisexplorer-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-roomy_tweet-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": "Days",
            "type": "array",
            "description": "Days to read, one per line: 2026-11-07, today, tomorrow, yesterday, +3 or -2 (Berlin calendar, as on TennisExplorer). Past days give results with closing average odds; coming days give the schedule with current odds. Leave empty for today and tomorrow.",
            "items": {
              "type": "string"
            }
          },
          "dateFrom": {
            "title": "From day",
            "type": "string",
            "description": "Optional range start (YYYY-MM-DD, or today, -30…). Adds every day up to \"To day\" (at most 400 days)."
          },
          "dateTo": {
            "title": "To day",
            "type": "string",
            "description": "Optional range end (YYYY-MM-DD, or today, +7…)."
          },
          "tours": {
            "title": "Tours",
            "type": "array",
            "description": "Which draws to read.",
            "items": {
              "type": "string",
              "enum": [
                "atp-single",
                "wta-single",
                "atp-double",
                "wta-double"
              ],
              "enumTitles": [
                "Men singles (ATP, Challenger, ITF, UTR)",
                "Women singles (WTA, WTA 125, ITF)",
                "Men doubles",
                "Women doubles"
              ]
            },
            "default": [
              "atp-single",
              "wta-single"
            ]
          },
          "levels": {
            "title": "Levels",
            "type": "array",
            "description": "Leave empty for all. Read from the tournament name: Challenger = ATP Challengers; ITF = futures; UTR = UTR Pro Tennis Series; Tour = everything else (ATP and WTA events, including WTA 125).",
            "items": {
              "type": "string",
              "enum": [
                "Tour",
                "Challenger",
                "ITF",
                "UTR"
              ],
              "enumTitles": [
                "Tour",
                "Challenger",
                "ITF",
                "UTR"
              ]
            }
          },
          "tournaments": {
            "title": "Tournaments",
            "type": "array",
            "description": "Optional: keep only tournaments whose name contains one of these words (Paris, Australian Open, Taipei).",
            "items": {
              "type": "string"
            }
          },
          "status": {
            "title": "Matches",
            "enum": [
              "all",
              "upcoming",
              "finished"
            ],
            "type": "string",
            "description": "Upcoming = not started yet. Finished = with a final score.",
            "default": "all"
          },
          "onlyWithOdds": {
            "title": "Only matches with odds",
            "type": "boolean",
            "description": "Skip matches that have no average odds on TennisExplorer (mostly small ITF matches).",
            "default": false
          },
          "maxMatches": {
            "title": "Max matches",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Cap on match rows per run, earliest first. 0 = no cap. Busy days have 150–500 matches across both tours.",
            "default": 1000
          },
          "includeMatchDetails": {
            "title": "Bookmaker odds, player cards and head-to-head",
            "type": "boolean",
            "description": "One extra page per match.",
            "default": false
          },
          "oddsMarkets": {
            "title": "Odds markets",
            "type": "array",
            "description": "Which bookmaker markets to keep (match details only).",
            "items": {
              "type": "string",
              "enum": [
                "homeAway",
                "overUnder",
                "asianHandicap",
                "correctScore"
              ],
              "enumTitles": [
                "Match winner (home/away)",
                "Over/under (sets and games)",
                "Asian handicap",
                "Correct score"
              ]
            },
            "default": [
              "homeAway"
            ]
          },
          "includeOddsHistory": {
            "title": "Odds movement history",
            "type": "boolean",
            "description": "Every price change of every bookmaker, with its time, back to the opening odds. Large rows; best with few matches.",
            "default": false
          },
          "players": {
            "title": "Players",
            "type": "array",
            "description": "Names (Carlos Alcaraz), TennisExplorer player links or slugs (alcaraz-5ab70).",
            "items": {
              "type": "string"
            }
          },
          "playerYears": {
            "title": "Seasons",
            "type": "array",
            "description": "Years of match history to read for each player (2026, 2025…). Defaults to this year.",
            "items": {
              "type": "string"
            }
          },
          "playerMatchType": {
            "title": "Player matches",
            "enum": [
              "singles",
              "doubles"
            ],
            "type": "string",
            "description": "Which of the player's matches to list.",
            "default": "singles"
          },
          "matchUrls": {
            "title": "Match links",
            "type": "array",
            "description": "TennisExplorer match links (…/match-detail/?id=3371579) or ids. Always read with full details.",
            "items": {
              "type": "string"
            }
          },
          "onlyNewResults": {
            "title": "Only results not saved before",
            "type": "boolean",
            "description": "Finished matches saved by earlier runs are skipped and not charged.",
            "default": false
          },
          "trackOdds": {
            "title": "Track odds between runs",
            "type": "boolean",
            "description": "Adds previousOdds1/2 and oddsChange1/2Percent to upcoming matches. Turned on by the alert below.",
            "default": false
          },
          "alertOddsMovePercent": {
            "title": "Alert when odds moved this %",
            "minimum": 0,
            "type": "number",
            "description": "For example 8: an upcoming match gets an alert when either player's average odds moved 8% or more since the last run."
          },
          "onlyAlerts": {
            "title": "Save only matches with an alert",
            "type": "boolean",
            "description": "Matches without an odds alert are not saved and not charged. Pair with an email, Slack or webhook integration.",
            "default": false
          },
          "stateStoreName": {
            "title": "Memory name",
            "type": "string",
            "description": "Named key-value store that keeps saved results and last odds. Use different names for different watchlists.",
            "default": "tennis-monitor"
          },
          "resetState": {
            "title": "Forget the memory",
            "type": "boolean",
            "description": "Starts from scratch for this memory name.",
            "default": false
          },
          "maxConcurrency": {
            "title": "Parallel requests",
            "minimum": 1,
            "maximum": 6,
            "type": "integer",
            "description": "Pages read at the same time. Keep it low to be gentle with the site.",
            "default": 3
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Optional. By default the Actor connects directly and switches to Apify Proxy by itself if the site refuses the connection."
          },
          "failOnQualityDrop": {
            "title": "Fail when the quality check trips",
            "type": "boolean",
            "description": "Mark the run as failed when pages stop parsing, so a schedule alerts you.",
            "default": false
          },
          "debugSamples": {
            "title": "Save raw samples",
            "type": "boolean",
            "description": "For troubleshooting: keeps the first raw HTML of each page type in the run's key-value store.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}