{
  "openapi": "3.0.1",
  "info": {
    "title": "Sportsbook Odds Scraper - FanDuel & Unibet Lines, Props, Arbs",
    "description": "Betting odds from FanDuel (US) and Kambi books Unibet, LeoVegas and Paf (EU): moneyline/1X2, spreads, totals and props for NFL, NBA, NHL, EPL, La Liga, UCL and more. Line-movement feed plus best-price, no-vig and arbitrage comparison. $0.003/row.",
    "version": "0.1",
    "x-build-id": "lzVMlkahDA7EoGiNU"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/rjmacarthy~sportsbook-odds-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-rjmacarthy-sportsbook-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/rjmacarthy~sportsbook-odds-scraper/runs": {
      "post": {
        "operationId": "runs-sync-rjmacarthy-sportsbook-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/rjmacarthy~sportsbook-odds-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-rjmacarthy-sportsbook-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",
        "required": [
          "leagues",
          "books"
        ],
        "properties": {
          "leagues": {
            "title": "Leagues",
            "type": "array",
            "description": "Leagues to scrape, in priority order (the event limit is filled from the first league onwards). Off-season leagues simply return nothing.",
            "items": {
              "type": "string",
              "enum": [
                "nfl",
                "ncaaf",
                "nba",
                "ncaab",
                "nhl",
                "mlb",
                "epl",
                "laliga",
                "bundesliga",
                "seriea",
                "ligue1",
                "ucl",
                "mls",
                "ufc",
                "tennis-atp"
              ],
              "enumTitles": [
                "NFL",
                "College football (NCAAF)",
                "NBA",
                "College basketball (NCAAB)",
                "NHL",
                "MLB",
                "English Premier League",
                "La Liga",
                "Bundesliga",
                "Serie A",
                "Ligue 1",
                "UEFA Champions League",
                "MLS",
                "UFC",
                "Tennis - ATP"
              ]
            },
            "default": [
              "epl",
              "nba",
              "mlb"
            ]
          },
          "books": {
            "title": "Sportsbooks",
            "type": "array",
            "description": "FanDuel (US, New Jersey feed by default) and Kambi-powered books: Unibet, LeoVegas and Paf (European prices, decimal odds native). Pick 2+ books to get the cross-book comparison.",
            "items": {
              "type": "string",
              "enum": [
                "fanduel",
                "unibet",
                "leovegas",
                "paf"
              ],
              "enumTitles": [
                "FanDuel (US)",
                "Unibet (Kambi)",
                "LeoVegas (Kambi)",
                "Paf (Kambi)"
              ]
            },
            "default": [
              "unibet"
            ]
          },
          "markets": {
            "title": "Main markets",
            "type": "array",
            "description": "Main game markets to output. Moneyline includes the 3-way 1X2 in soccer. Note: the league listing of FanDuel soccer carries only the 1X2, and Kambi soccer only 1X2 + total goals; turn on 'Include props / all markets' for handicaps and everything else.",
            "items": {
              "type": "string",
              "enum": [
                "moneyline",
                "spread",
                "total"
              ],
              "enumTitles": [
                "Moneyline / 1X2",
                "Spread / handicap",
                "Total (over/under)"
              ]
            },
            "default": [
              "moneyline",
              "spread",
              "total"
            ]
          },
          "includeProps": {
            "title": "Include props / all markets",
            "type": "boolean",
            "description": "Also output player props and every other market of each event (halves, quarters, corners, alternate lines...). Costs one extra request per event on Kambi and one per market tab on FanDuel, and yields many more rows (hundreds per game).",
            "default": false
          },
          "maxEvents": {
            "title": "Max events per book",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum games per sportsbook across all selected leagues (soonest first). 0 = no limit.",
            "default": 50
          },
          "oddsFormat": {
            "title": "Odds format",
            "enum": [
              "both",
              "american",
              "decimal"
            ],
            "type": "string",
            "description": "Decimal odds are always output. 'american' or 'both' adds American odds (priceAmerican); 'decimal' leaves it null.",
            "default": "both"
          },
          "compare": {
            "title": "Cross-book comparison",
            "type": "boolean",
            "description": "With 2+ books: output one comparison item per game found at 2+ books, with the best price per outcome, no-vig fair probabilities, each book's overround and an arbitrage flag/margin.",
            "default": true
          },
          "onlyChanged": {
            "title": "Only changed odds (line-movement feed)",
            "type": "boolean",
            "description": "Output only rows that are new or whose price or line moved since the last run with the same state key, with previousPrice / previousLine. The first run outputs everything as the baseline. Ideal for schedules every few minutes - you only pay for movement.",
            "default": false
          },
          "stateKey": {
            "title": "State key (for 'Only changed')",
            "type": "string",
            "description": "Name of the saved price history. Use a different key for each schedule/task that should track odds independently.",
            "default": "default"
          },
          "kambiMarket": {
            "title": "Kambi market (country)",
            "type": "string",
            "description": "Country code passed to Kambi (Unibet, LeoVegas, Paf), e.g. GB, SE, NL, DK. Prices can differ slightly by market.",
            "default": "GB"
          },
          "fanduelState": {
            "title": "FanDuel state",
            "enum": [
              "nj",
              "pa",
              "ny",
              "il",
              "mi",
              "va",
              "oh",
              "az",
              "co",
              "in",
              "tn",
              "ks",
              "ky",
              "md",
              "nc",
              "la",
              "ia",
              "wv",
              "wy",
              "ct",
              "ma",
              "vt"
            ],
            "type": "string",
            "description": "US state feed of FanDuel (two-letter code, e.g. nj, pa, ny). Prices are usually the same across states (nj and pa tested).",
            "default": "nj"
          },
          "maxRequestsPerSecond": {
            "title": "Max requests per second (per site)",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Politeness limit per sportsbook host.",
            "default": 2
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Not needed normally. Applies to the Kambi books only - FanDuel is always fetched directly because its API rejects Apify Proxy IPs. Residential proxies are not supported (the Actor falls back to datacenter Apify Proxy).",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}