{
  "openapi": "3.0.1",
  "info": {
    "title": "TennisExplorer Match Results Scraper",
    "description": "TennisExplorer Match Results Scraper extracts tennis results, live and upcoming matches with set-by-set scores, tie-breaks, winner, seeds, rankings, bookmaker odds, round, surface and head-to-head for ATP, WTA, Challenger and ITF, by date range. Filters by player, tournament, keyword and odds. No lo",
    "version": "1.0",
    "x-build-id": "7Dqprols7xoJNdAgP"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/neuro-scraper~tennisexplorer-match-results-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-neuro-scraper-tennisexplorer-match-results-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/neuro-scraper~tennisexplorer-match-results-scraper/runs": {
      "post": {
        "operationId": "runs-sync-neuro-scraper-tennisexplorer-match-results-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/neuro-scraper~tennisexplorer-match-results-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-neuro-scraper-tennisexplorer-match-results-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": {
          "section": {
            "title": "Results or upcoming",
            "enum": [
              "results",
              "upcoming"
            ],
            "type": "string",
            "description": "results = finished matches of past days; upcoming = today's schedule (live scores included) and the next days.",
            "default": "results"
          },
          "tour": {
            "title": "Tour / match types",
            "type": "array",
            "description": "Which lists to read: all (every tour incl. Challenger and ITF), atp-single, atp-double, wta-single, wta-double.",
            "items": {
              "type": "string",
              "enum": [
                "all",
                "atp-single",
                "atp-double",
                "wta-single",
                "wta-double"
              ]
            },
            "default": [
              "all"
            ]
          },
          "date": {
            "title": "Date",
            "type": "string",
            "description": "Optional: one day, YYYY-MM-DD. Default: yesterday for results, today for upcoming."
          },
          "fromDate": {
            "title": "From date",
            "type": "string",
            "description": "Optional: first day of a date range, YYYY-MM-DD."
          },
          "toDate": {
            "title": "To date",
            "type": "string",
            "description": "Optional: last day of a date range, YYYY-MM-DD."
          },
          "days": {
            "title": "Number of days",
            "minimum": 1,
            "maximum": 3650,
            "type": "integer",
            "description": "Without a range: how many days to read, going back from the date (results) or forward (upcoming).",
            "default": 1
          },
          "startUrls": {
            "title": "Tennis Explorer list URLs",
            "type": "array",
            "description": "Optional: results / matches links, e.g. https://www.tennisexplorer.com/results/?type=wta-single&year=2026&month=11&day=20",
            "items": {
              "type": "string"
            }
          },
          "players": {
            "title": "Players",
            "type": "array",
            "description": "Optional: keep matches of these players (name part or profile slug), e.g. Sinner, Swiatek.",
            "items": {
              "type": "string"
            }
          },
          "tournaments": {
            "title": "Tournaments",
            "type": "array",
            "description": "Optional: keep matches of tournaments whose name contains these words, e.g. Masters Cup, Challenger.",
            "items": {
              "type": "string"
            }
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Optional: keep matches whose tournament or player names contain these words.",
            "items": {
              "type": "string"
            }
          },
          "keywordMatch": {
            "title": "Keyword match",
            "enum": [
              "any",
              "all"
            ],
            "type": "string",
            "description": "any = one keyword is enough, all = every keyword must match.",
            "default": "any"
          },
          "excludeKeywords": {
            "title": "Exclude keywords",
            "type": "array",
            "description": "Optional: drop matches whose tournament or player names contain these words, e.g. ITF, Doubles.",
            "items": {
              "type": "string"
            }
          },
          "minOdds": {
            "title": "Minimum odds",
            "minimum": 1,
            "type": "number",
            "description": "Optional: keep matches whose lower decimal odds is at least this."
          },
          "maxOdds": {
            "title": "Maximum odds",
            "minimum": 1,
            "type": "number",
            "description": "Optional: keep matches whose higher decimal odds is at most this."
          },
          "requireOdds": {
            "title": "Only matches with odds",
            "type": "boolean",
            "description": "Keep only matches that have bookmaker odds.",
            "default": false
          },
          "onlyCompleted": {
            "title": "Only finished matches",
            "type": "boolean",
            "description": "Keep only finished (or retired) matches.",
            "default": false
          },
          "maxItems": {
            "title": "Max matches per tour type",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Matches per selected tour type (or per list URL), over all days.",
            "default": 50
          },
          "includeDetails": {
            "title": "Match details",
            "type": "boolean",
            "description": "Open every match for round, surface, full player names, rankings and head-to-head.",
            "default": true
          },
          "monitoringMode": {
            "title": "Monitoring mode (only new)",
            "type": "boolean",
            "description": "Return only matches (or match states, e.g. scheduled -> finished) not returned by earlier monitoring runs.",
            "default": false
          },
          "resetMonitoringState": {
            "title": "Reset monitoring",
            "type": "boolean",
            "description": "Forget what earlier monitoring runs returned, so every match counts as new again.",
            "default": false
          },
          "maxConcurrency": {
            "title": "Parallel requests",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Pages fetched at the same time.",
            "default": 8
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify proxy (datacenter is enough and cheapest; residential also works).",
            "default": {
              "useApifyProxy": true
            }
          },
          "type": {
            "title": "Type (alias)",
            "type": "string",
            "description": "Same as tour."
          },
          "mode": {
            "title": "Mode (alias)",
            "type": "string",
            "description": "Same as section."
          },
          "dateFrom": {
            "title": "Date from (alias)",
            "type": "string",
            "description": "Same as fromDate."
          },
          "dateTo": {
            "title": "Date to (alias)",
            "type": "string",
            "description": "Same as toDate."
          },
          "maxDays": {
            "title": "Max days (alias)",
            "type": "integer",
            "description": "Same as days."
          },
          "maxMatches": {
            "title": "Max matches (alias)",
            "type": "integer",
            "description": "Same as maxItems."
          },
          "searchUrl": {
            "title": "Search URL (alias)",
            "type": "string",
            "description": "Same as startUrls."
          },
          "onlyUpcoming": {
            "title": "Only upcoming (alias)",
            "type": "boolean",
            "description": "Same as section upcoming."
          },
          "useProxy": {
            "title": "Use proxy (alias)",
            "type": "boolean",
            "description": "false = connect directly."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}