{
  "openapi": "3.0.1",
  "info": {
    "title": "Tennis Odds API & Results: Live Scores, Closing Odds Export",
    "description": "Every ATP, WTA, Challenger and ITF match of the last 7 and next 7 days: set scores, tiebreaks, live score, opening and closing odds of several bookmakers, best and average odds, no-vig probability, favourite won, total games and handicap lines, match stats. No login.",
    "version": "0.1",
    "x-build-id": "TomXChQgeOP9wcgFj"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/s_actors~tennis-results-odds/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-s_actors-tennis-results-odds",
        "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/s_actors~tennis-results-odds/runs": {
      "post": {
        "operationId": "runs-sync-s_actors-tennis-results-odds",
        "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/s_actors~tennis-results-odds/run-sync": {
      "post": {
        "operationId": "run-sync-s_actors-tennis-results-odds",
        "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": {
          "daysBack": {
            "title": "Days back",
            "minimum": 0,
            "maximum": 7,
            "type": "integer",
            "description": "Past days to include: 0 = today only, 1 = yesterday and today, up to 7. Finished matches come with their closing odds.",
            "default": 1
          },
          "daysAhead": {
            "title": "Days ahead",
            "minimum": 0,
            "maximum": 7,
            "type": "integer",
            "description": "Coming days to include (fixtures with current odds): 0 = none, up to 7. Days are UTC days.",
            "default": 0
          },
          "tours": {
            "title": "Tours",
            "type": "array",
            "description": "Only these tours. Empty = all (ATP, WTA, Challenger, ITF, team cups, exhibitions, juniors). Grand Slams are under ATP and WTA.",
            "items": {
              "type": "string",
              "enum": [
                "atp",
                "wta",
                "challenger",
                "itf",
                "teams",
                "exhibition",
                "juniors",
                "other"
              ],
              "enumTitles": [
                "ATP",
                "WTA (WTA 125 too)",
                "ATP Challenger",
                "ITF men and women",
                "Team cups (Davis Cup, Billie Jean King Cup, United Cup)",
                "Exhibitions",
                "Juniors",
                "Other"
              ]
            }
          },
          "discipline": {
            "title": "Singles or doubles",
            "enum": [
              "all",
              "singles",
              "doubles"
            ],
            "type": "string",
            "description": "Singles, doubles (mixed too) or both.",
            "default": "all"
          },
          "statuses": {
            "title": "Match status",
            "type": "array",
            "description": "Only matches with these statuses. Empty = all. Finished includes retirements, walkovers and awarded matches; cancelled includes postponed, interrupted and abandoned.",
            "items": {
              "type": "string",
              "enum": [
                "finished",
                "live",
                "scheduled",
                "cancelled"
              ],
              "enumTitles": [
                "Finished",
                "Live now",
                "Scheduled",
                "Cancelled / postponed"
              ]
            }
          },
          "players": {
            "title": "Players",
            "type": "array",
            "description": "Only matches of these players: surname (\"Sinner\", \"Swiatek\") or as Flashscore writes it (\"Medvedev D.\"). Whole words, accents ignored.",
            "items": {
              "type": "string"
            }
          },
          "tournaments": {
            "title": "Tournaments",
            "type": "array",
            "description": "Only tournaments whose name contains one of these: \"Paris\", \"Vienna\", \"Australian Open\", \"W35\".",
            "items": {
              "type": "string"
            }
          },
          "maxMatches": {
            "title": "Max matches",
            "minimum": 1,
            "type": "integer",
            "description": "The run stops at this many matches (a busy day has ~500 matches of all tours).",
            "default": 2000
          },
          "includeOdds": {
            "title": "Odds (match winner)",
            "type": "boolean",
            "description": "Opening and current odds of each bookmaker below (closing odds once the match started), best and average odds, no-vig probability, favourite and whether the favourite won. Included in the match price.",
            "default": true
          },
          "bookmakers": {
            "title": "Bookmakers",
            "type": "array",
            "description": "Odds of these bookmakers, in this order (the first one with odds fills oddsHome / oddsAway). 1xBet, Interwetten and bwin price ~9 of 10 ATP and WTA matches; bet365 hides its odds of finished matches. Up to 8.",
            "items": {
              "type": "string",
              "enum": [
                "1xBet",
                "Interwetten",
                "bwin",
                "Unibet",
                "William Hill",
                "Betfred",
                "bet365",
                "Betway",
                "Ladbrokes",
                "Betsson",
                "Betclic",
                "Winamax",
                "Betano",
                "Superbet",
                "Stake.com",
                "Melbet",
                "Sportingbet",
                "bet-at-home",
                "NetBet",
                "Tipsport",
                "Fortuna",
                "STS",
                "Sisal",
                "SNAI",
                "BetMGM",
                "Expekt",
                "Novibet"
              ]
            },
            "default": [
              "1xBet",
              "Interwetten",
              "bwin"
            ]
          },
          "includeTotalsAndHandicaps": {
            "title": "Total games and handicap lines",
            "type": "boolean",
            "description": "Main over/under total games line and main games handicap with their odds (first bookmaker that has them). Included in the match price; the run takes longer.",
            "default": false
          },
          "includeStats": {
            "title": "Match statistics",
            "type": "boolean",
            "description": "Aces, double faults, 1st serve %, serve and return points won, break points, winners, unforced errors, games won and match duration of finished and live matches. Charged per match that has statistics (ATP, WTA, Challenger; most ITF matches have none).",
            "default": false
          },
          "onlyChanged": {
            "title": "Only new or changed matches",
            "type": "boolean",
            "description": "Output only matches that are new, changed status (started, finished, cancelled) or finished a set since the previous run (same monitor name). Schedule it every 15-60 minutes for a live results feed.",
            "default": false
          },
          "monitorName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Keeps the memory of output matches apart for different schedules."
          },
          "debugLog": {
            "title": "Debug log",
            "type": "boolean",
            "description": "Log every request retry.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}