{
  "openapi": "3.0.1",
  "info": {
    "title": "Tennis Odds Scraper — Pinnacle, Kambi — $1.50/1K until 11-24",
    "description": "Tennis odds scraper. Launch price $1.50/1K until 2026-11-24, then $1.50/1K (return price). Pre-match ATP, WTA, Challenger and ITF odds from Pinnacle and Kambi, optional Betfair Exchange back/lay, joined to Flashscore match IDs. Watch mode delivers only moved prices. Pay per result.",
    "version": "0.1",
    "x-build-id": "VNAaTx3HTmo3ovrYn"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/architekture~tennis-odds-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-architekture-tennis-odds-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/architekture~tennis-odds-scraper/runs": {
      "post": {
        "operationId": "runs-sync-architekture-tennis-odds-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/architekture~tennis-odds-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-architekture-tennis-odds-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": {
          "books": {
            "title": "Books (datacenter)",
            "type": "array",
            "description": "Sportsbooks read on datacenter proxies: pinnacle (moneylines, set and games handicaps and totals, set 1 lines) and kambi (Unibet Sweden: match odds, games handicap, total games). Leave empty to read only Betfair.",
            "items": {
              "type": "string",
              "enum": [
                "pinnacle",
                "kambi"
              ],
              "enumTitles": [
                "Pinnacle (sharp line, max stake)",
                "Kambi / Unibet"
              ]
            },
            "default": [
              "pinnacle",
              "kambi"
            ]
          },
          "includeBetfair": {
            "title": "Add Betfair Exchange (UK residential)",
            "type": "boolean",
            "description": "Also read Betfair Exchange best back and lay prices with available size (match odds, set betting, set 1 winner). Betfair refuses datacenter and non-UK traffic, so this book alone runs through a UK residential proxy and its rows are charged as odds-betfair. Anonymous exchange prices are a delayed feed.",
            "default": false
          },
          "tours": {
            "title": "Tours",
            "type": "array",
            "description": "Which tours to keep, from the book's tournament label (or the joined Flashscore tournament). Other = exhibitions, UTR and anything unlabelled.",
            "items": {
              "type": "string",
              "enum": [
                "ATP",
                "WTA",
                "Challenger",
                "ITF",
                "Other"
              ]
            },
            "default": [
              "ATP",
              "WTA",
              "Challenger"
            ]
          },
          "markets": {
            "title": "Markets",
            "type": "array",
            "description": "Markets to keep. Not every book prices every market: Pinnacle has all but set-betting, Kambi has match-winner, games-handicap and games-total, Betfair has match-winner, set-1-winner and set-betting.",
            "items": {
              "type": "string",
              "enum": [
                "match-winner",
                "set-1-winner",
                "set-handicap",
                "total-sets",
                "games-handicap",
                "games-total",
                "set-1-games-handicap",
                "set-1-games-total",
                "set-betting"
              ]
            },
            "default": [
              "match-winner",
              "set-1-winner",
              "set-handicap",
              "total-sets",
              "games-handicap",
              "games-total",
              "set-1-games-handicap",
              "set-1-games-total",
              "set-betting"
            ]
          },
          "includeAlternateLines": {
            "title": "Pinnacle alternate lines",
            "type": "boolean",
            "description": "Also deliver Pinnacle's alternate handicap and total lines (about 3x more rows). Off = main lines only.",
            "default": false
          },
          "includeDoubles": {
            "title": "Include doubles",
            "type": "boolean",
            "description": "Keep doubles matches (players are pairs, e.g. \"Arends S./Johnson L.\").",
            "default": true
          },
          "matchIds": {
            "title": "Flashscore match IDs",
            "type": "array",
            "description": "Optional: only these matches, by Flashscore match ID (the matchId of tennis-data-scraper, e.g. 6B33aysH). A match no selected book prices gets a free NO_ODDS status row.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "playerNames": {
            "title": "Player names",
            "type": "array",
            "description": "Optional: only matches with one of these players, matched by surname (e.g. \"Jannik Sinner\" or \"Sinner\").",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "hoursAhead": {
            "title": "Hours ahead",
            "minimum": 1,
            "maximum": 168,
            "type": "integer",
            "description": "Keep matches starting within this many hours (1 to 168).",
            "default": 48
          },
          "includeLive": {
            "title": "Include in-play prices",
            "type": "boolean",
            "description": "Also keep prices of matches already in play (isLive true). Off = pre-match only.",
            "default": false
          },
          "maxMatchesPerBook": {
            "title": "Max matches per book",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "At most this many matches per book, earliest start first (1 to 500).",
            "default": 100
          },
          "maxItems": {
            "title": "Max rows per run",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "Stop after delivering this many price rows (1 to 50,000).",
            "default": 5000
          },
          "incrementalMode": {
            "title": "Only price changes (watch mode)",
            "type": "boolean",
            "description": "Deliver and charge only prices that moved since the last delivered price for the same stateKey, plus outcomes not seen before. Unchanged prices are free and not written. Needs a stateKey.",
            "default": false
          },
          "stateKey": {
            "title": "State key",
            "type": "string",
            "description": "Any name you choose, reused on every run of the same inputs. Required for incrementalMode; also lets a stopped run resume without re-charging."
          },
          "feedback": {
            "title": "Feedback for the maintainers",
            "type": "string",
            "description": "Optional note for the maintainers. It is logged and read by a human, and it never changes output."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}