{
  "openapi": "3.0.1",
  "info": {
    "title": "Sportsbook Odds Aggregator: Pinnacle, Bovada, Unibet & Smarkets",
    "description": "Compare pre-match and live odds from Pinnacle, Bovada, Unibet, Paf and Smarkets: moneyline, spread and total for tennis, soccer, basketball, hockey and more, with no-vig fair prices, best-price flags, edge vs Pinnacle, line movement, plus alternate lines, periods and props.",
    "version": "1.0",
    "x-build-id": "LhbeafyL5geSMD0Aq"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/confidential_gnat~sportsbook-odds-aggregator-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-confidential_gnat-sportsbook-odds-aggregator-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/confidential_gnat~sportsbook-odds-aggregator-scraper/runs": {
      "post": {
        "operationId": "runs-sync-confidential_gnat-sportsbook-odds-aggregator-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/confidential_gnat~sportsbook-odds-aggregator-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-confidential_gnat-sportsbook-odds-aggregator-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": "Bookmakers",
            "type": "array",
            "description": "Which bookmakers to read. Unibet and Paf share one price feed. Empty means Pinnacle, Bovada, Unibet and Smarkets.",
            "items": {
              "type": "string",
              "enum": [
                "pinnacle",
                "bovada",
                "unibet",
                "paf",
                "smarkets"
              ],
              "enumTitles": [
                "Pinnacle",
                "Bovada",
                "Unibet",
                "Paf",
                "Smarkets (exchange)"
              ]
            }
          },
          "sports": {
            "title": "Sports",
            "type": "array",
            "description": "Which sports to read. Empty means tennis.",
            "items": {
              "type": "string",
              "enum": [
                "tennis",
                "basketball",
                "soccer",
                "american-football",
                "ice-hockey",
                "baseball",
                "mma"
              ],
              "enumTitles": [
                "Tennis",
                "Basketball",
                "Soccer",
                "American football",
                "Ice hockey",
                "Baseball",
                "MMA"
              ]
            }
          },
          "markets": {
            "title": "Markets",
            "type": "array",
            "description": "Which main-line markets to keep: moneyline (winner), spread (handicap) and total (over/under). Empty means all three. Smarkets offers the moneyline only.",
            "items": {
              "type": "string",
              "enum": [
                "moneyline",
                "spread",
                "total"
              ],
              "enumTitles": [
                "Moneyline",
                "Spread",
                "Total"
              ]
            }
          },
          "includeAlternateLines": {
            "title": "Include alternate lines",
            "type": "boolean",
            "description": "Also read the alternate spreads and totals (Pinnacle, Bovada, Unibet and Paf), not only the main line.",
            "default": false
          },
          "includePeriods": {
            "title": "Include parts of the game",
            "type": "boolean",
            "description": "Also read moneylines, spreads and totals of the first set (tennis), half, quarter or period (Pinnacle, Bovada, Unibet and Paf).",
            "default": false
          },
          "includeProps": {
            "title": "Include props",
            "type": "boolean",
            "description": "Also read Bovada's, Unibet's and Paf's prop markets (total sets, set betting, tiebreaks, odd/even, correct scores and more). One row per selection, with the prop name in propName.",
            "default": false
          },
          "mode": {
            "title": "Pre-match or live",
            "enum": [
              "both",
              "pre_match",
              "live"
            ],
            "type": "string",
            "description": "Read games that have not started, games in play, or both.",
            "default": "both"
          },
          "maxEventsPerSport": {
            "title": "Max games per sport",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "How many games to keep for each sport. Games that more bookmakers carry come first, then the soonest, so a small number gives games you can compare.",
            "default": 20
          },
          "maxItems": {
            "title": "Max prices per bookmaker",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum prices (one per outcome) saved for each bookmaker.",
            "default": 5
          },
          "includeLineMovement": {
            "title": "Track line movement",
            "type": "boolean",
            "description": "Compares every price with the previous run and adds the previous price, the change, the direction and the first price seen. Needs the same books, sports and mode on every run; the first run has nothing to compare with.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "No proxy is needed in normal use. Turn on Apify Proxy if your runs get blocked.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}