{
  "openapi": "3.0.1",
  "info": {
    "title": "Tennis Odds Movement Monitor | $3.00/1K quote checks",
    "description": "Tennis odds movement monitor for Pinnacle and Kambi: watch a tournament, players or matches, snapshot prices every few hours, keep history per match and get alerts on line movement, a new favourite or a changed handicap or total, by webhook or email.",
    "version": "0.1",
    "x-build-id": "oyTJ1VDEiEeR3uctz"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/architekture~odds-movement-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-architekture-odds-movement-monitor",
        "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~odds-movement-monitor/runs": {
      "post": {
        "operationId": "runs-sync-architekture-odds-movement-monitor",
        "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~odds-movement-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-architekture-odds-movement-monitor",
        "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": {
          "tours": {
            "title": "Tours to watch",
            "type": "array",
            "description": "Watch every priced pre-match quote on these tours within hoursAhead (ITF and Challenger events run every week of the year). Combine with tournaments, playerNames or matchIds to narrow; leave empty to use only those.",
            "items": {
              "type": "string",
              "enum": [
                "ATP",
                "WTA",
                "Challenger",
                "ITF",
                "Other"
              ]
            }
          },
          "tournaments": {
            "title": "Tournaments",
            "type": "array",
            "description": "Watch every match whose tournament name contains one of these, for example \"ATP Finals\" or \"Metz\". Use this, players or match IDs.",
            "items": {
              "type": "string"
            }
          },
          "playerNames": {
            "title": "Players",
            "type": "array",
            "description": "Watch matches with one of these players, matched by surname (\"Sinner\").",
            "items": {
              "type": "string"
            }
          },
          "matchIds": {
            "title": "Match IDs",
            "type": "array",
            "description": "Watch these matches by Flashscore match ID (8 letters or digits, the matchId of the tennis data and odds actors).",
            "items": {
              "type": "string"
            }
          },
          "watchlistName": {
            "title": "Watchlist name",
            "type": "string",
            "description": "Names the history dataset and comparison store in your account. Keep it the same across runs to get movement and alerts.",
            "default": "my-odds-watch"
          },
          "books": {
            "title": "Bookmakers",
            "type": "array",
            "description": "pinnacle and/or kambi. Each price is watched per bookmaker.",
            "items": {
              "type": "string",
              "enum": [
                "pinnacle",
                "kambi"
              ]
            },
            "default": [
              "pinnacle"
            ]
          },
          "markets": {
            "title": "Markets",
            "type": "array",
            "description": "Markets to watch. Each outcome and line is one watched quote.",
            "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"
            ]
          },
          "hoursAhead": {
            "title": "Hours ahead",
            "minimum": 1,
            "maximum": 168,
            "type": "integer",
            "description": "Watch matches starting within this many hours. Matches in play are not watched.",
            "default": 48
          },
          "everyHours": {
            "title": "Check every (hours)",
            "minimum": 1,
            "maximum": 24,
            "type": "integer",
            "description": "How often you schedule this monitor (for example a schedule of 0 */2 * * * for every two hours). Recorded in the run summary.",
            "default": 2
          },
          "movementPoints": {
            "title": "Alert: movement of at least (points)",
            "minimum": 0.1,
            "maximum": 50,
            "type": "number",
            "description": "Alert when a price's implied probability moves by at least this many percentage points since the previous run (2.00 to 1.80 is 50.0% to 55.6%, a 5.6 point move).",
            "default": 2
          },
          "alertNewFavourite": {
            "title": "Alert: new favourite",
            "type": "boolean",
            "description": "Alert when the favourite flips on a match-winner or set 1 winner market.",
            "default": true
          },
          "alertLineChange": {
            "title": "Alert: line change",
            "type": "boolean",
            "description": "Alert when a handicap or total line moves (the new line starts its own price history).",
            "default": true
          },
          "freeTier": {
            "title": "Free tier",
            "type": "boolean",
            "description": "Up to 5 matches, one run a day for 7 days, never charged. Turn off for paid monitoring.",
            "default": false
          },
          "maxQuotes": {
            "title": "Max quotes per run",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "At most this many watched quotes per run, earliest match first. Each observed quote is one charge.",
            "default": 200
          },
          "webhookUrl": {
            "title": "Webhook URL (optional)",
            "type": "string",
            "description": "Alerts are POSTed here as JSON when any fire."
          },
          "notificationEmail": {
            "title": "Alert email (optional)",
            "type": "string",
            "description": "Alerts are emailed here when any fire."
          },
          "feedback": {
            "title": "Feedback",
            "type": "string",
            "description": "Tell us what you needed and did not get. Read by a human; never changes the 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}