{
  "openapi": "3.0.1",
  "info": {
    "title": "Tennis Scraper: Live Scores, Odds, Stats & Point-by-Point",
    "description": "ATP, WTA, Challenger & ITF tennis from Flashscore: live scores, results, fixtures, rankings, set & tiebreak scores, plus bookmaker odds (19 books), match stats, point-by-point and head-to-head. No browser, no proxy. From $1 per 1,000 matches.",
    "version": "1.0",
    "x-build-id": "22wlV8aRCmofhX3jy"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/cycha~tennis-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-cycha-tennis-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/cycha~tennis-scraper/runs": {
      "post": {
        "operationId": "runs-sync-cycha-tennis-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/cycha~tennis-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-cycha-tennis-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": {
          "dayOffsets": {
            "title": "Days",
            "type": "array",
            "description": "Which days to collect (UTC). Flashscore serves the last 7 days and the published schedule (usually 1–2 days ahead).",
            "items": {
              "type": "string",
              "enum": [
                "-7",
                "-6",
                "-5",
                "-4",
                "-3",
                "-2",
                "-1",
                "0",
                "1",
                "2",
                "3",
                "4",
                "5",
                "6",
                "7"
              ],
              "enumTitles": [
                "7 days ago",
                "6 days ago",
                "5 days ago",
                "4 days ago",
                "3 days ago",
                "2 days ago",
                "Yesterday",
                "Today",
                "Tomorrow",
                "In 2 days",
                "In 3 days",
                "In 4 days",
                "In 5 days",
                "In 6 days",
                "In 7 days"
              ]
            },
            "default": [
              "0"
            ]
          },
          "status": {
            "title": "Match status",
            "enum": [
              "all",
              "live",
              "finished",
              "scheduled"
            ],
            "type": "string",
            "description": "Only matches in this state.",
            "default": "all"
          },
          "tours": {
            "title": "Tours",
            "type": "array",
            "description": "Which tours to include.",
            "items": {
              "type": "string",
              "enum": [
                "ATP",
                "WTA",
                "Challenger",
                "ITF",
                "Other"
              ],
              "enumTitles": [
                "ATP",
                "WTA",
                "Challenger",
                "ITF (men & women)",
                "Other (team events, UTR, exhibitions)"
              ]
            },
            "default": [
              "ATP",
              "WTA",
              "Challenger",
              "ITF",
              "Other"
            ]
          },
          "matchTypes": {
            "title": "Singles / doubles",
            "type": "array",
            "description": "Doubles rows list both players with their rankings.",
            "items": {
              "type": "string",
              "enum": [
                "singles",
                "doubles"
              ],
              "enumTitles": [
                "Singles",
                "Doubles"
              ]
            },
            "default": [
              "singles",
              "doubles"
            ]
          },
          "includeOdds": {
            "title": "Bookmaker odds",
            "type": "boolean",
            "description": "Pre-match / closing odds per bookmaker: match winner, sets over/under, set handicap, correct score, odd/even, for the match and each set, with opening prices, plus a summary (best and average price, implied probability). Finished matches keep their closing odds.",
            "default": false
          },
          "oddsCountry": {
            "title": "Odds country",
            "enum": [
              "GB",
              "IT",
              "ES",
              "FR",
              "DE",
              "US",
              "AU"
            ],
            "type": "string",
            "description": "Bookmakers depend on the country.",
            "default": "GB"
          },
          "oddsMarkets": {
            "title": "Odds markets",
            "type": "array",
            "description": "Keep only these markets.",
            "items": {
              "type": "string",
              "enum": [
                "HOME_AWAY",
                "OVER_UNDER",
                "ASIAN_HANDICAP",
                "CORRECT_SCORE",
                "ODD_OR_EVEN"
              ],
              "enumTitles": [
                "Match winner",
                "Over / under (games)",
                "Handicap",
                "Correct score",
                "Odd / even"
              ]
            },
            "default": [
              "HOME_AWAY",
              "OVER_UNDER",
              "ASIAN_HANDICAP",
              "CORRECT_SCORE",
              "ODD_OR_EVEN"
            ]
          },
          "includeStatistics": {
            "title": "Match statistics",
            "type": "boolean",
            "description": "Aces, double faults, 1st/2nd serve %, break points, return points, winners, unforced errors… for the match and each set, plus set durations. Played matches only.",
            "default": false
          },
          "includePointByPoint": {
            "title": "Point-by-point",
            "type": "boolean",
            "description": "Every game: score after it, server, winner, break, break points and the point sequence (15:0, 30:0…). Played matches only.",
            "default": false
          },
          "includeHeadToHead": {
            "title": "Head-to-head and form",
            "type": "boolean",
            "description": "Previous meetings of the two players and each player's last matches.",
            "default": false
          },
          "headToHeadLimit": {
            "title": "Head-to-head rows",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Maximum meetings and last matches per player.",
            "default": 10
          },
          "tournaments": {
            "title": "Tournaments (contains)",
            "type": "array",
            "description": "Keep matches whose tournament or category contains one of these, e.g. 'Wimbledon', 'Brussels', 'ITF Women'.",
            "items": {
              "type": "string"
            }
          },
          "players": {
            "title": "Players (contains)",
            "type": "array",
            "description": "Keep matches with one of these players, as Flashscore writes them (e.g. 'Sinner', 'Alcaraz C.').",
            "items": {
              "type": "string"
            }
          },
          "matchIds": {
            "title": "Match IDs or URLs",
            "type": "array",
            "description": "Specific Flashscore matches (8-character ID or match URL). Looked up across the last 7 days and the schedule unless you pick days.",
            "items": {
              "type": "string"
            }
          },
          "maxMatches": {
            "title": "Max matches",
            "minimum": 0,
            "type": "integer",
            "description": "0 = all matches found.",
            "default": 0
          },
          "dates": {
            "title": "Dates (YYYY-MM-DD)",
            "type": "array",
            "description": "Alternative to Days: exact dates within the last 7 days or the schedule.",
            "items": {
              "type": "string"
            }
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Not needed: Flashscore's feeds answer directly. Only set one if requests start failing.",
            "default": {
              "useApifyProxy": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}