{
  "openapi": "3.0.1",
  "info": {
    "title": "FanDuel Odds, Player Props & Same Game Parlay Scraper",
    "description": "Scrapes FanDuel Sportsbook (sportsbook.fanduel.com) odds for NFL, NBA, NHL, MLB, soccer and more: moneylines, spreads, totals, alternate lines, player props, futures, American or decimal odds and a same game parlay eligible flag per selection.",
    "version": "1.0",
    "x-build-id": "kzSQbLoVNyXqgorwG"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/confidential_gnat~fanduel-odds-sgp-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-confidential_gnat-fanduel-odds-sgp-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~fanduel-odds-sgp-scraper/runs": {
      "post": {
        "operationId": "runs-sync-confidential_gnat-fanduel-odds-sgp-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~fanduel-odds-sgp-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-confidential_gnat-fanduel-odds-sgp-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": {
          "startUrls": {
            "title": "FanDuel league, sport or event URLs",
            "type": "array",
            "description": "FanDuel Sportsbook pages, for example https://sportsbook.fanduel.com/football/nfl or https://sportsbook.fanduel.com/basketball/nba (league pages), https://sportsbook.fanduel.com/tennis (sport page) or a single game page such as https://sportsbook.fanduel.com/football/nfl/houston-texans-@-jacksonville-jaguars-35605984. Add ?tab=passing-props to a game URL to fetch one specific tab. Leave empty to use the league and sport pickers below.",
            "default": [],
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "maxItems": {
            "title": "Max events",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum games per start URL (and, when futures are selected, maximum futures events per start URL). Every game returns all its selections. A game page counts as one.",
            "default": 5
          },
          "marketGroups": {
            "title": "Market groups",
            "type": "array",
            "description": "What to scrape. Main lines = moneyline, spread, totals. Alternate lines = alternate spreads and totals, team totals (loads the Popular tab, one extra request per game). Player props = every player props tab (one extra request per tab). Game props = halves, quarters, scoring, specials and other game markets (one extra request per tab). Same game parlay = every market FanDuel allows in a same game parlay (loads the large parlay tab, about 15 seconds per game). Futures = outright and season markets. Leave empty for main lines only.",
            "items": {
              "type": "string",
              "enum": [
                "main",
                "alternate_lines",
                "props",
                "game_props",
                "sgp",
                "futures"
              ],
              "enumTitles": [
                "Main lines",
                "Alternate lines",
                "Player props",
                "Game props",
                "Same game parlay eligible markets",
                "Futures"
              ]
            },
            "default": []
          },
          "leagues": {
            "title": "Leagues",
            "type": "array",
            "description": "League pages to scrape in addition to the start URLs.",
            "items": {
              "type": "string",
              "enum": [
                "nfl",
                "nba",
                "nhl",
                "mlb"
              ],
              "enumTitles": [
                "NFL",
                "NBA",
                "NHL",
                "MLB"
              ]
            },
            "default": []
          },
          "sports": {
            "title": "Sports",
            "type": "array",
            "description": "Whole sport pages (every league FanDuel lists for the sport, for example college football with the NFL).",
            "items": {
              "type": "string",
              "enum": [
                "football",
                "basketball",
                "baseball",
                "hockey",
                "soccer",
                "tennis",
                "golf",
                "cricket",
                "rugby-union",
                "snooker",
                "mma"
              ],
              "enumTitles": [
                "American football",
                "Basketball",
                "Baseball",
                "Ice hockey",
                "Soccer",
                "Tennis",
                "Golf",
                "Cricket",
                "Rugby union",
                "Snooker",
                "MMA"
              ]
            },
            "default": []
          },
          "propTypes": {
            "title": "Prop types",
            "type": "array",
            "description": "Only keep player prop and game prop markets that contain one of these words, for example passing yds, points, rebounds, touchdown, strikeouts, quarter. Leave empty for all.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "includeLive": {
            "title": "Include live (in-play) games",
            "type": "boolean",
            "description": "Also return games that already started. Live odds change every few seconds, so each record shows the odds at scrape time.",
            "default": false
          },
          "oddsFormat": {
            "title": "Odds format",
            "enum": [
              "american",
              "decimal",
              "both"
            ],
            "type": "string",
            "description": "American odds (+120, -110), decimal odds (2.20, 1.91) or both.",
            "default": "american"
          },
          "snapshotName": {
            "title": "Snapshot name",
            "type": "string",
            "description": "Optional. Use the same name on each scheduled run to compare odds with the previous run. Every record gets changeSinceLastRun: new, changed or unchanged (odds or line moved). Records are never skipped, so odds are always fresh."
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "FanDuel blocks IPs outside the US. Use Apify Proxy with country US (datacenter works). If you still get blocked, switch to the RESIDENTIAL group.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyCountry": "US"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}