{
  "openapi": "3.0.1",
  "info": {
    "title": "Flashscore Tennis Scraper: Matches, Results, H2H, Stats & Odds",
    "description": "Get Flashscore tennis matches by date, tour, tournament or player: set scores, status, winner, plus head-to-head with last-5 form, per-set match stats and bookmaker odds. ATP, WTA, Challenger, ITF, singles and doubles. $0.002 per match; H2H, stats and odds $0.003 a row.",
    "version": "0.0",
    "x-build-id": "5nD8mwjPZnlFDkQcI"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapebench~flashscore-tennis-matches-results-h2h-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapebench-flashscore-tennis-matches-results-h2h-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/scrapebench~flashscore-tennis-matches-results-h2h-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapebench-flashscore-tennis-matches-results-h2h-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/scrapebench~flashscore-tennis-matches-results-h2h-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapebench-flashscore-tennis-matches-results-h2h-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": "Dates",
            "type": "array",
            "description": "Days to read: `today`, `yesterday`, `tomorrow` or YYYY-MM-DD (UTC calendar days), up to 7 days back and 7 ahead. One day is one request for every tour. `maxResults` applies per date.",
            "default": [
              "today"
            ],
            "items": {
              "type": "string"
            }
          },
          "date": {
            "title": "Date",
            "type": "string",
            "description": "One day, same values as Dates. Use either; if both are set they are merged."
          },
          "status": {
            "title": "Match status",
            "enum": [
              "all",
              "scheduled",
              "live",
              "finished"
            ],
            "type": "string",
            "description": "all, scheduled (not started), live (in play now) or finished (played, retired or walkover). Cancelled and interrupted matches show only with all.",
            "default": "all"
          },
          "tours": {
            "title": "Tours",
            "type": "array",
            "description": "Keep only these tours, as words from the tour name: `ATP`, `WTA`, `Challenger`, `ITF`, `Teams`, or narrower (`ITF Women`, `Challenger Men`). Empty = every tour on the day.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "tour": {
            "title": "Tour",
            "type": "string",
            "description": "One tour, same values as Tours."
          },
          "matchType": {
            "title": "Singles or doubles",
            "enum": [
              "all",
              "singles",
              "doubles"
            ],
            "type": "string",
            "description": "singles, doubles or all.",
            "default": "all"
          },
          "players": {
            "title": "Players",
            "type": "array",
            "description": "Keep only matches with one of these players, by name (`Lorenzo Musetti`, `Alcaraz`). Several words must all appear. A name with no match on the dates is a free notice.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "player": {
            "title": "Player",
            "type": "string",
            "description": "One player, same values as Players."
          },
          "tournaments": {
            "title": "Tournaments",
            "type": "array",
            "description": "Keep only tournaments whose name contains one of these words (`Davis Cup`, `Bogota`, `M15 Monastir`). Empty = all.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "tournament": {
            "title": "Tournament",
            "type": "string",
            "description": "One tournament, same values as Tournaments."
          },
          "includeH2H": {
            "title": "Add head-to-head rows",
            "type": "boolean",
            "description": "One extra h2h row per match: meetings and the head-to-head record, last-5 form of each player, each player's recent matches, and the same per surface (hard, clay, grass). Charged per row ($0.003); a match with no history gives no row and no charge.",
            "default": false
          },
          "h2hLastMatches": {
            "title": "Recent matches per player (head-to-head rows)",
            "minimum": 0,
            "maximum": 50,
            "type": "integer",
            "description": "How many recent matches of each player to list in an h2h row, per surface list (0-50; the site sends up to 50). Lower it for smaller rows; the price is the same.",
            "default": 50
          },
          "includeMatchStats": {
            "title": "Add match statistics rows",
            "type": "boolean",
            "description": "One extra match_stats row per started match: statistics for the match and for each set (aces, serve and return points, break points, games), total and per-set duration and the referee. Charged per row ($0.003); a match with no statistics gives no row and no charge.",
            "default": false
          },
          "includeOdds": {
            "title": "Add bookmaker odds to match statistics rows",
            "type": "boolean",
            "description": "Adds the bookmaker prices the site shows (US sportsbooks: match winner, sets, over/under, handicap, correct score; opening and current price) to the match_stats row of any match, including scheduled ones. The same $0.003 row event; no extra charge when the row already exists.",
            "default": false
          },
          "maxResults": {
            "title": "Max matches per date",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "At most this many matches per date, each billed $0.002 (details are billed on top). A free notice says how many more there were.",
            "default": 100
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify datacenter proxy by default, which the feed answers. Change it only to supply your own proxies.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}