{
  "openapi": "3.1.0",
  "info": {
    "title": "NASCAR API",
    "version": "1.0",
    "description": "NASCAR API - OpenAPI 3.1 Specification"
  },
  "servers": [
    {
      "url": "https://api.sportsdata.io",
      "description": "Production server"
    }
  ],
  "paths": {
    "/nascar/v2/{format}/series": {
      "get": {
        "description": "Lists the different Series - the type of races administered by NASCAR - currently active.",
        "operationId": "nascar_v2_series_series",
        "summary": "Series",
        "parameters": [
          {
            "name": "format",
            "in": "path",
            "description": "Desired response format. Valid entries are <code>JSON</code> or <code>XML</code>.",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "JSON",
                "XML"
              ],
              "default": "JSON"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Series"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized"
                }
              }
            }
          }
        },
        "tags": [
          "NASCAR v2"
        ]
      }
    },
    "/nascar/v2/{format}/races/{season}": {
      "get": {
        "description": "Schedules",
        "operationId": "nascar_v2_races_schedules",
        "summary": "Schedules",
        "parameters": [
          {
            "name": "format",
            "in": "path",
            "description": "Desired response format. Valid entries are <code>JSON</code> or <code>XML</code>.",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "JSON",
                "XML"
              ],
              "default": "JSON"
            }
          },
          {
            "name": "season",
            "in": "path",
            "description": "Year of the season.\n<br>Examples: <code>2015</code>, <code>2016</code>.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Race"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized"
                }
              }
            }
          }
        },
        "tags": [
          "NASCAR v2"
        ]
      }
    },
    "/nascar/v2/{format}/drivers": {
      "get": {
        "description": "Driver Profiles - All",
        "operationId": "nascar_v2_drivers_driver_profiles___all",
        "summary": "Driver Profiles - All",
        "parameters": [
          {
            "name": "format",
            "in": "path",
            "description": "Desired response format. Valid entries are <code>JSON</code> or <code>XML</code>.",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "JSON",
                "XML"
              ],
              "default": "JSON"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Driver"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized"
                }
              }
            }
          }
        },
        "tags": [
          "NASCAR v2"
        ]
      }
    },
    "/nascar/v2/{format}/driver/{driverid}": {
      "get": {
        "description": "Driver Profiles - by Driver",
        "operationId": "nascar_v2_driver_driver_profiles___by_driver",
        "summary": "Driver Profiles - by Driver",
        "parameters": [
          {
            "name": "format",
            "in": "path",
            "description": "Desired response format. Valid entries are <code>JSON</code> or <code>XML</code>.",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "JSON",
                "XML"
              ],
              "default": "JSON"
            }
          },
          {
            "name": "driverid",
            "in": "path",
            "description": "Unique FantasyData Driver ID.\nExample:<code>80000268</code>.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Driver"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized"
                }
              }
            }
          }
        },
        "tags": [
          "NASCAR v2"
        ]
      }
    },
    "/nascar/v2/{format}/raceresult/{raceid}": {
      "get": {
        "description": "Leaderboard [Live & Final]",
        "operationId": "nascar_v2_raceresult_leaderboard__live___final",
        "summary": "Leaderboard [Live & Final]",
        "parameters": [
          {
            "name": "format",
            "in": "path",
            "description": "Desired response format. Valid entries are <code>JSON</code> or <code>XML</code>.",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "JSON",
                "XML"
              ],
              "default": "JSON"
            }
          },
          {
            "name": "raceid",
            "in": "path",
            "description": "Unique FantasyData Race ID.\nExample:<code>1</code>, <code>2</code>, etc.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RaceResult"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized"
                }
              }
            }
          }
        },
        "tags": [
          "NASCAR v2"
        ]
      }
    },
    "/nascar/v2/{format}/DriverRaceProjections/{raceid}": {
      "get": {
        "description": "Projected Player Race Stats - by Race",
        "operationId": "nascar_v2_driverraceprojections_projected_player_race_stats___by_race",
        "summary": "Projected Player Race Stats - by Race",
        "parameters": [
          {
            "name": "format",
            "in": "path",
            "description": "Desired response format. Valid entries are <code>JSON</code> or <code>XML</code>.",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "JSON",
                "XML"
              ],
              "default": "JSON"
            }
          },
          {
            "name": "raceid",
            "in": "path",
            "description": "Unique FantasyData Race ID.\nExample:<code>1</code>, <code>2</code>, etc.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DriverRaceProjection"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized"
                }
              }
            }
          }
        },
        "tags": [
          "NASCAR v2"
        ]
      }
    },
    "/nascar/v2/{format}/driversbyactive": {
      "get": {
        "description": "Drivers - by Active",
        "operationId": "nascar_v2_driversbyactive_drivers___by_active",
        "summary": "Drivers - by Active",
        "parameters": [
          {
            "name": "format",
            "in": "path",
            "description": "Desired response format. Valid entries are <code>JSON</code> or <code>XML</code>.",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "JSON",
                "XML"
              ],
              "default": "JSON"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DriverBasic"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized"
                }
              }
            }
          }
        },
        "tags": [
          "NASCAR v2"
        ]
      }
    },
    "/nascar/v2/{format}/tracks/{season}": {
      "get": {
        "description": "Tracks",
        "operationId": "nascar_v2_tracks_tracks",
        "summary": "Tracks",
        "parameters": [
          {
            "name": "format",
            "in": "path",
            "description": "Desired response format. Valid entries are <code>JSON</code> or <code>XML</code>.",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "JSON",
                "XML"
              ],
              "default": "JSON"
            }
          },
          {
            "name": "season",
            "in": "path",
            "description": "Year of the season.\n<br>Examples: <code>2015</code>, <code>2016</code>.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Tracks"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized"
                }
              }
            }
          }
        },
        "tags": [
          "NASCAR v2"
        ]
      }
    },
    "/nascar/v2/{format}/raceresultfinal/{raceid}": {
      "get": {
        "description": "Leaderboard [Final]",
        "operationId": "nascar_v2_raceresultfinal_leaderboard__final",
        "summary": "Leaderboard [Final]",
        "parameters": [
          {
            "name": "format",
            "in": "path",
            "description": "Desired response format. Valid entries are <code>JSON</code> or <code>XML</code>.",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "JSON",
                "XML"
              ],
              "default": "JSON"
            }
          },
          {
            "name": "raceid",
            "in": "path",
            "description": "Unique FantasyData Race ID.\nExample:<code>1</code>, <code>2</code>, etc.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RaceResult"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized"
                }
              }
            }
          }
        },
        "tags": [
          "NASCAR v2"
        ]
      }
    },
    "/nascar/v2/{format}/EntryListbyRace/{raceid}": {
      "get": {
        "description": "Entry List - by Race",
        "operationId": "nascar_v2_entrylistbyrace_entry_list___by_race",
        "summary": "Entry List - by Race",
        "parameters": [
          {
            "name": "format",
            "in": "path",
            "description": "Desired response format. Valid entries are <code>JSON</code> or <code>XML</code>.",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "JSON",
                "XML"
              ],
              "default": "JSON"
            }
          },
          {
            "name": "raceid",
            "in": "path",
            "description": "Unique FantasyData Race ID.\nExample:<code>1</code>, <code>2</code>, etc.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DriverRaceBasic"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized"
                }
              }
            }
          }
        },
        "tags": [
          "NASCAR v2"
        ]
      }
    },
    "/nascar/v2/{format}/FantasyGameStatsByRace/{raceid}": {
      "get": {
        "description": "Fantasy Points - by Race",
        "operationId": "nascar_v2_fantasygamestatsbyrace_fantasy_points___by_race",
        "summary": "Fantasy Points - by Race",
        "parameters": [
          {
            "name": "format",
            "in": "path",
            "description": "Desired response format. Valid entries are <code>JSON</code> or <code>XML</code>.",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "JSON",
                "XML"
              ],
              "default": "JSON"
            }
          },
          {
            "name": "raceid",
            "in": "path",
            "description": "Unique FantasyData Race ID.\nExample:<code>1</code>, <code>2</code>, etc.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FantasyRace"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized"
                }
              }
            }
          }
        },
        "tags": [
          "NASCAR v2"
        ]
      }
    },
    "/nascar/v2/{format}/LeaderboardBasic/{raceid}": {
      "get": {
        "description": "Leaderboard (Basic)",
        "operationId": "nascar_v2_leaderboardbasic_leaderboard__basic",
        "summary": "Leaderboard (Basic)",
        "parameters": [
          {
            "name": "format",
            "in": "path",
            "description": "Desired response format. Valid entries are <code>JSON</code> or <code>XML</code>.",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "JSON",
                "XML"
              ],
              "default": "JSON"
            }
          },
          {
            "name": "raceid",
            "in": "path",
            "description": "Unique FantasyData Race ID.\nExample:<code>1</code>, <code>2</code>, etc.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RaceResultBasic"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized"
                }
              }
            }
          }
        },
        "tags": [
          "NASCAR v2"
        ]
      }
    },
    "/nascar/v2/{format}/LeaderboardBasicFinal/{raceid}": {
      "get": {
        "description": "Leaderboard (Basic) [Final]",
        "operationId": "nascar_v2_leaderboardbasicfinal_leaderboard__basic___final",
        "summary": "Leaderboard (Basic) [Final]",
        "parameters": [
          {
            "name": "format",
            "in": "path",
            "description": "Desired response format. Valid entries are <code>JSON</code> or <code>XML</code>.",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "JSON",
                "XML"
              ],
              "default": "JSON"
            }
          },
          {
            "name": "raceid",
            "in": "path",
            "description": "Unique FantasyData Race ID.\nExample:<code>1</code>, <code>2</code>, etc.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RaceResultBasic"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized"
                }
              }
            }
          }
        },
        "tags": [
          "NASCAR v2"
        ]
      }
    },
    "/v3/nascar/odds/{format}/RaceOdds/{Raceid}": {
      "get": {
        "description": "Returns pre-race for a given race. Only returns the most recently seen odds, not inclusive of line movement.",
        "operationId": "nascar_v3_odds_race_odds",
        "summary": "Race Odds",
        "parameters": [
          {
            "name": "format",
            "in": "path",
            "description": "Desired response format. Valid entries are <code>JSON</code> or <code>XML</code>.",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "JSON",
                "XML"
              ],
              "default": "JSON"
            }
          },
          {
            "name": "Raceid",
            "in": "path",
            "description": "Unique FantasyData Race ID.\nExample:<code>1</code>, <code>2</code>, etc.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RaceOdds"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized"
                }
              }
            }
          }
        },
        "tags": [
          "NASCAR v3 Odds"
        ]
      }
    },
    "/v3/nascar/odds/{format}/RaceOddsLineMovement/{Raceid}": {
      "get": {
        "description": "Returns pre-race for a given race. Only returns the most recently seen odds. This is inclusive of line movement; as it is best suited for viewing historical odds, its cache time is slower than the Race Odds endpoint.",
        "operationId": "nascar_v3_odds_race_odds_line_movement",
        "summary": "Race Odds Line Movement",
        "parameters": [
          {
            "name": "format",
            "in": "path",
            "description": "Desired response format. Valid entries are <code>JSON</code> or <code>XML</code>.",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "JSON",
                "XML"
              ],
              "default": "JSON"
            }
          },
          {
            "name": "Raceid",
            "in": "path",
            "description": "Unique FantasyData Race ID.\nExample:<code>1</code>, <code>2</code>, etc.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RaceOdds"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized"
                }
              }
            }
          }
        },
        "tags": [
          "NASCAR v3 Odds"
        ]
      }
    },
    "/v3/nascar/odds/{format}/ActiveSportsbooks": {
      "get": {
        "description": "A list of all available sportsbooks with their associated unique IDs.",
        "operationId": "nascar_v3_odds_sportsbooks___by_active",
        "summary": "Sportsbooks - by Active",
        "parameters": [
          {
            "name": "format",
            "in": "path",
            "description": "Desired response format. Valid entries are <code>JSON</code> or <code>XML</code>.",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "JSON",
                "XML"
              ],
              "default": "JSON"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Sportsbook"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized"
                }
              }
            }
          }
        },
        "tags": [
          "NASCAR v3 Odds"
        ]
      }
    },
    "/v3/nascar/odds/{format}/BettingEvents/{season}": {
      "get": {
        "description": "The list of current BettingEvents for the given season, from which Betting Market data can be gathered via the Betting Markets by Event endpoint, for all available Betting Market types (e.g. Player Props, Team Props.)",
        "operationId": "nascar_v3_odds_betting_events___by_season",
        "summary": "Betting Events - by Season",
        "parameters": [
          {
            "name": "format",
            "in": "path",
            "description": "Desired response format. Valid entries are <code>JSON</code> or <code>XML</code>.",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "JSON",
                "XML"
              ],
              "default": "JSON"
            }
          },
          {
            "name": "season",
            "in": "path",
            "description": "The season to get BettingEvents. Valid entries are formatted as years such as <code>2023</code>",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BettingEvent"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized"
                }
              }
            }
          }
        },
        "tags": [
          "NASCAR v3 Odds"
        ]
      }
    },
    "/v3/nascar/odds/{format}/BettingEventsByDate/{date}": {
      "get": {
        "description": "The list of current BettingEvents for the given date, from which Betting Market data can be gathered via the Betting Markets by Event endpoint, for all available Betting Market types (e.g. Player Props, Team Props.)",
        "operationId": "nascar_v3_odds_betting_events___by_date",
        "summary": "Betting Events - by Date",
        "parameters": [
          {
            "name": "format",
            "in": "path",
            "description": "Desired response format. Valid entries are <code>JSON</code> or <code>XML</code>.",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "JSON",
                "XML"
              ],
              "default": "JSON"
            }
          },
          {
            "name": "date",
            "in": "path",
            "description": "The date of the race(s).\nExamples: 2023-02-19.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BettingEvent"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized"
                }
              }
            }
          }
        },
        "tags": [
          "NASCAR v3 Odds"
        ]
      }
    },
    "/v3/nascar/odds/{format}/BettingMarketsByRaceID/{raceID}": {
      "get": {
        "description": "Returns the markets and available outcomes for a given RaceID. Works the same as by BettingEventID but requires less ID mapping.",
        "operationId": "nascar_v3_odds_betting_markets___by_race",
        "summary": "Betting Markets - by Race",
        "parameters": [
          {
            "name": "format",
            "in": "path",
            "description": "Desired response format. Valid entries are <code>JSON</code> or <code>XML</code>.",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "JSON",
                "XML"
              ],
              "default": "JSON"
            }
          },
          {
            "name": "raceID",
            "in": "path",
            "description": "The RaceID of the desired race for which to pull all betting markets (includes outcomes/bets).",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "include",
            "in": "query",
            "description": "This parameter indicates which <code>BettingOutcome</code> records to return in the payload. By default, this endpoint only returns available outcomes, excluding the unlisted bets. <br><br><b>Important Note:</b> the default parameter of <code>available</code> is much faster and provides the best performance. Passing unlisted will return unlisted odds, but these are cached for much longer and may be several minutes old. For best performance, the default parameter is highly recommended. <br><br>Possible values include: <br><br><code>available</code> - excludes any betting outcomes that have been removed/unlisted by the respective sportsbook. This is more lightweight and delivers odds much faster than using unlisted. <br><br><code>unlisted</code> - includes the most recently available betting outcome per sportsbook, for each listed market, even those outcomes are expired/unlisted or otherwise unavailable from the respective sportsbook. This is a far heavier payload, and it's cached for much longer than available. <br><br>",
            "schema": {
              "type": "string",
              "enum": [
                "available",
                "unlisted"
              ],
              "default": "available"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BettingMarket"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized"
                }
              }
            }
          }
        },
        "tags": [
          "NASCAR v3 Odds"
        ]
      }
    },
    "/v3/nascar/odds/{format}/BettingMarket/{marketId}": {
      "get": {
        "description": "Returns full line movement for a given BettingMarket. Due to the sheer size of the output and the level of detail, it is intended for historical data purposes and not for the most up-to-the-second lines.",
        "operationId": "nascar_v3_odds_betting_market",
        "summary": "Betting Market",
        "parameters": [
          {
            "name": "format",
            "in": "path",
            "description": "Desired response format. Valid entries are <code>JSON</code> or <code>XML</code>.",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "JSON",
                "XML"
              ],
              "default": "JSON"
            }
          },
          {
            "name": "marketId",
            "in": "path",
            "description": "\nThe MarketId of the desired market for which to pull all outcomes/bets.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BettingMarket"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized"
                }
              }
            }
          }
        },
        "tags": [
          "NASCAR v3 Odds"
        ]
      }
    },
    "/v3/nascar/odds/{format}/BettingMarketsByMarketType/{eventID}/{marketTypeID}": {
      "get": {
        "description": "Returns Markets and available outcomes for a given event and market type requested. A lighter call than by BettingEventID as it only includes markets tagged with the specific MarketType, a full list of which is available for each sport in its Betting Metadata endpoint.",
        "operationId": "nascar_v3_odds_betting_markets___by_market_type",
        "summary": "Betting Markets - by Market Type",
        "parameters": [
          {
            "name": "format",
            "in": "path",
            "description": "Desired response format. Valid entries are <code>JSON</code> or <code>XML</code>.",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "JSON",
                "XML"
              ],
              "default": "JSON"
            }
          },
          {
            "name": "eventID",
            "in": "path",
            "description": "The EventId of the desired event/game for which to pull all betting markets (includes outcomes/bets).",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "marketTypeID",
            "in": "path",
            "description": "The Market Type ID of the desired MarketTypes to pull. Some common types include: 1 for Race Lines, 2 for Driver Props, 3 for Head to Head Props, 4 for Group Props, 6 for Race Props",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "include",
            "in": "query",
            "description": "This parameter indicates which <code>BettingOutcome</code> records to return in the payload. By default, this endpoint only returns available outcomes, excluding the unlisted bets. <br><br><b>Important Note:</b> the default parameter of <code>available</code> is much faster and provides the best performance. Passing unlisted will return unlisted odds, but these are cached for much longer and may be several minutes old. For best performance, the default parameter is highly recommended. <br><br>Possible values include: <br><br><code>available</code> - excludes any betting outcomes that have been removed/unlisted by the respective sportsbook. This is more lightweight and delivers odds much faster than using unlisted. <br><br><code>unlisted</code> - includes the most recently available betting outcome per sportsbook, for each listed market, even those outcomes are expired/unlisted or otherwise unavailable from the respective sportsbook. This is a far heavier payload, and it's cached for much longer than available. <br><br>",
            "schema": {
              "type": "string",
              "enum": [
                "available",
                "unlisted"
              ],
              "default": "available"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BettingMarket"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized"
                }
              }
            }
          }
        },
        "tags": [
          "NASCAR v3 Odds"
        ]
      }
    },
    "/v3/nascar/odds/{format}/BettingMetaData": {
      "get": {
        "description": "Returns the list of MarketTypes, BetTypes, PeriodTypes, OutcomeTypes, and ResultTypes to map the IDs to descriptive names. Also includes a list of the MarketType, BetType & PeriodType combinations which we will have resulting for.",
        "operationId": "nascar_v3_odds_betting_metadata",
        "summary": "Betting Metadata",
        "parameters": [
          {
            "name": "format",
            "in": "path",
            "description": "Desired response format. Valid entries are <code>JSON</code> or <code>XML</code>.",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "JSON",
                "XML"
              ],
              "default": "JSON"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BettingEntityMetadataCollection"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized"
                }
              }
            }
          }
        },
        "tags": [
          "NASCAR v3 Odds"
        ]
      }
    },
    "/v3/nascar/odds/{format}/BettingMarkets/{eventId}": {
      "get": {
        "description": "Returns the markets of all available types (e.g. Player Props, Team Props) and available outcomes for a given BettingEventID.",
        "operationId": "nascar_v3_odds_betting_markets___by_event",
        "summary": "Betting Markets - by Event",
        "parameters": [
          {
            "name": "format",
            "in": "path",
            "description": "Desired response format. Valid entries are <code>JSON</code> or <code>XML</code>.",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "JSON",
                "XML"
              ],
              "default": "JSON"
            }
          },
          {
            "name": "eventId",
            "in": "path",
            "description": "The EventId of the desired event/game for which to pull all betting markets (includes outcomes/bets).",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "include",
            "in": "query",
            "description": "This parameter indicates which <code>BettingOutcome</code> records to return in the payload. By default, this endpoint only returns available outcomes, excluding the unlisted bets. <br><br><b>Important Note:</b> the default parameter of <code>available</code> is much faster and provides the best performance. Passing unlisted will return unlisted odds, but these are cached for much longer and may be several minutes old. For best performance, the default parameter is highly recommended. <br><br>Possible values include: <br><br><code>available</code> - excludes any betting outcomes that have been removed/unlisted by the respective sportsbook. This is more lightweight and delivers odds much faster than using unlisted. <br><br><code>unlisted</code> - includes the most recently available betting outcome per sportsbook, for each listed market, even those outcomes are expired/unlisted or otherwise unavailable from the respective sportsbook. This is a far heavier payload, and it's cached for much longer than available. <br><br>",
            "schema": {
              "type": "string",
              "enum": [
                "available",
                "unlisted"
              ],
              "default": "available"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BettingMarket"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized"
                }
              }
            }
          }
        },
        "tags": [
          "NASCAR v3 Odds"
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "Unauthorized": {
        "properties": {
          "HttpStatusCode": {
            "type": "integer"
          },
          "Code": {
            "type": "integer"
          },
          "Description": {
            "type": "string"
          },
          "Help": {
            "type": "string"
          }
        }
      },
      "Series": {
        "properties": {
          "SeriesID": {
            "type": "integer",
            "description": "The unique ID of this series"
          },
          "Name": {
            "type": [
              "string",
              "null"
            ],
            "description": "The name of this series"
          }
        }
      },
      "Race": {
        "properties": {
          "RaceID": {
            "type": "integer",
            "description": "The unique ID of this race"
          },
          "SeriesID": {
            "type": "integer",
            "description": "The unique ID of the series that this race is associated with"
          },
          "SeriesName": {
            "type": [
              "string",
              "null"
            ],
            "description": "The name of the series that this race is associated with"
          },
          "Season": {
            "type": "integer",
            "description": "The season that this race is associated with"
          },
          "Name": {
            "type": [
              "string",
              "null"
            ],
            "description": "The name of this race"
          },
          "Day": {
            "type": [
              "string",
              "null"
            ],
            "description": "The day of this race"
          },
          "DateTime": {
            "type": [
              "string",
              "null"
            ],
            "description": "The date/time of this race"
          },
          "Track": {
            "type": [
              "string",
              "null"
            ],
            "description": "The name of the track for this race"
          },
          "Broadcast": {
            "type": [
              "string",
              "null"
            ],
            "description": "The broadcast airing this race"
          },
          "WinnerID": {
            "type": [
              "integer",
              "null"
            ],
            "description": "The unique ID of the driver who won this race"
          },
          "PoleWinnerID": {
            "type": [
              "integer",
              "null"
            ],
            "description": "The unique ID of the driver who won the qualifying pole"
          },
          "IsInProgress": {
            "type": "boolean",
            "description": "Indicates whether this race is currently in progress"
          },
          "IsOver": {
            "type": "boolean",
            "description": "Indicates whether this race is over"
          },
          "Updated": {
            "type": [
              "string",
              "null"
            ],
            "description": "The date/time when this race was last updated"
          },
          "Created": {
            "type": [
              "string",
              "null"
            ],
            "description": "The date/time when this race was created (in US Eastern Time)"
          },
          "RescheduledDay": {
            "type": [
              "string",
              "null"
            ],
            "description": "The day that this is race is rescheduled for (if race was postponed)"
          },
          "RescheduledDateTime": {
            "type": [
              "string",
              "null"
            ],
            "description": "The date/time that this is race is rescheduled for (if race was postponed)"
          },
          "Canceled": {
            "type": "boolean",
            "description": "Indicates whether this race has been canceled"
          },
          "ScheduledLaps": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Number of laps scheduled for this race"
          },
          "ActualLaps": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Total number of laps ran for this race"
          }
        }
      },
      "Driver": {
        "properties": {
          "DriverID": {
            "type": "integer",
            "description": "The unique ID of this driver (assigned by SportsDataIO)"
          },
          "FirstName": {
            "type": [
              "string",
              "null"
            ],
            "description": "The driver's first name"
          },
          "LastName": {
            "type": [
              "string",
              "null"
            ],
            "description": "The driver's last name"
          },
          "Number": {
            "type": [
              "integer",
              "null"
            ],
            "description": "The driver's car number"
          },
          "NumberDisplay": {
            "type": [
              "string",
              "null"
            ],
            "description": "The driver's car number for display purposes (with leading zeros when necessary)"
          },
          "Team": {
            "type": [
              "string",
              "null"
            ],
            "description": "The driver's team name"
          },
          "BirthDate": {
            "type": [
              "string",
              "null"
            ],
            "description": "The driver's birthdate"
          },
          "BirthPlace": {
            "type": [
              "string",
              "null"
            ],
            "description": "The driver's birthplace"
          },
          "Gender": {
            "type": [
              "string",
              "null"
            ],
            "description": "The driver's gender"
          },
          "Height": {
            "type": [
              "integer",
              "null"
            ],
            "description": "The driver's height"
          },
          "Weight": {
            "type": [
              "integer",
              "null"
            ],
            "description": "The driver's weight"
          },
          "Manufacturer": {
            "type": [
              "string",
              "null"
            ],
            "description": "The manufacturer of the driver's car"
          },
          "Engine": {
            "type": [
              "string",
              "null"
            ],
            "description": "The engine type of the driver's car"
          },
          "Chassis": {
            "type": [
              "string",
              "null"
            ],
            "description": "The chassis of the driver's car"
          },
          "Sponsors": {
            "type": [
              "string",
              "null"
            ],
            "description": "The names of the sponsor(s) of the driver"
          },
          "CrewChief": {
            "type": [
              "string",
              "null"
            ],
            "description": "The name of the crew chief for the driver"
          },
          "PhotoUrl": {
            "type": [
              "string",
              "null"
            ],
            "description": "This field is deprecated. Photos are no longer available through it. Headshots are now delivered through IMAGN. Please see our Headshots products for further information."
          },
          "Updated": {
            "type": [
              "string",
              "null"
            ],
            "description": "The date/time when this driver was last updated"
          },
          "Created": {
            "type": [
              "string",
              "null"
            ],
            "description": "The date/time when this driver was created (in US Eastern Time)"
          }
        }
      },
      "RaceResult": {
        "properties": {
          "Race": {
            "$ref": "#/components/schemas/Race",
            "description": "The details of the race including general information about the race itself (Ex: Name; DateTime; Track; WinnerID; IsInProgress; Scheduled Laps; etc.)"
          },
          "DriverRaces": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DriverRace"
            },
            "description": "The details of the drivers in this race"
          }
        }
      },
      "DriverRace": {
        "properties": {
          "StatID": {
            "type": "integer",
            "description": "The unique ID of this stat record"
          },
          "DriverID": {
            "type": "integer",
            "description": "The unique ID of this driver"
          },
          "Season": {
            "type": "integer",
            "description": "The season that this race is associated with"
          },
          "Name": {
            "type": [
              "string",
              "null"
            ],
            "description": "The driver's full name"
          },
          "Number": {
            "type": [
              "integer",
              "null"
            ],
            "description": "The driver's car number"
          },
          "NumberDisplay": {
            "type": [
              "string",
              "null"
            ],
            "description": "The driver's car number for display purposes (with leading zeros when necessary)"
          },
          "Manufacturer": {
            "type": [
              "string",
              "null"
            ],
            "description": "The manufacturer of the driver's car"
          },
          "DraftKingsSalary": {
            "type": [
              "integer",
              "null"
            ],
            "description": "The DraftKings salary of the driver for this race"
          },
          "RaceID": {
            "type": [
              "integer",
              "null"
            ],
            "description": "The unique ID of this race"
          },
          "Day": {
            "type": [
              "string",
              "null"
            ],
            "description": "The day of this race"
          },
          "DateTime": {
            "type": [
              "string",
              "null"
            ],
            "description": "The date/time of this race"
          },
          "Updated": {
            "type": [
              "string",
              "null"
            ],
            "description": "The date/time when this record was last updated"
          },
          "Created": {
            "type": [
              "string",
              "null"
            ],
            "description": "The date/time when this record was created"
          },
          "FantasyPoints": {
            "type": [
              "number",
              "null"
            ],
            "description": "The fantasy points scored by this driver"
          },
          "FantasyPointsDraftKings": {
            "type": [
              "number",
              "null"
            ],
            "description": "The fantasy points scored by this driver, according to the DraftKings scoring system"
          },
          "QualifyingSpeed": {
            "type": [
              "number",
              "null"
            ],
            "description": "The speed of this driver's car during the qualifying race"
          },
          "PoleFinalPosition": {
            "type": [
              "number",
              "null"
            ],
            "description": "The final position this driver finished in the qualifying race (pole)"
          },
          "StartPosition": {
            "type": [
              "number",
              "null"
            ],
            "description": "The driver's starting position for the race (typically the same as the PoleFinalPosition)"
          },
          "FinalPosition": {
            "type": [
              "number",
              "null"
            ],
            "description": "The driver's final position for the race"
          },
          "PositionDifferential": {
            "type": [
              "number",
              "null"
            ],
            "description": "The driver's differential between the final position and the starting position"
          },
          "Laps": {
            "type": [
              "number",
              "null"
            ],
            "description": "The total number of laps completed by the driver"
          },
          "LapsLed": {
            "type": [
              "number",
              "null"
            ],
            "description": "The total number of laps that this driver finished in first place"
          },
          "FastestLaps": {
            "type": [
              "number",
              "null"
            ],
            "description": "The total number of laps that this driver finished fastest"
          },
          "Points": {
            "type": [
              "number",
              "null"
            ],
            "description": "The total points scored by this driver"
          },
          "Bonus": {
            "type": [
              "number",
              "null"
            ],
            "description": "The total bonus points scored by this driver"
          },
          "Penalty": {
            "type": [
              "number",
              "null"
            ],
            "description": "The total penalty points applied to this driver"
          },
          "Wins": {
            "type": [
              "number",
              "null"
            ],
            "description": "Indicates whether this driver won the race"
          },
          "Poles": {
            "type": [
              "number",
              "null"
            ],
            "description": "Indicates whether this driver won the qualifying race (pole)"
          },
          "CurrentPosition": {
            "type": [
              "number",
              "null"
            ],
            "description": "Driver's current position in the race, updated live."
          }
        }
      },
      "DriverRaceProjection": {
        "properties": {
          "StatID": {
            "type": "integer",
            "description": "The unique ID of this stat record"
          },
          "DriverID": {
            "type": "integer",
            "description": "The unique ID of this driver"
          },
          "Season": {
            "type": "integer",
            "description": "The season that this race is associated with"
          },
          "Name": {
            "type": [
              "string",
              "null"
            ],
            "description": "The driver's full name"
          },
          "Number": {
            "type": [
              "integer",
              "null"
            ],
            "description": "The driver's car number"
          },
          "NumberDisplay": {
            "type": [
              "string",
              "null"
            ],
            "description": "The driver's car number for display purposes (with leading zeros when necessary)"
          },
          "Manufacturer": {
            "type": [
              "string",
              "null"
            ],
            "description": "The manufacturer of the driver's car"
          },
          "DraftKingsSalary": {
            "type": [
              "integer",
              "null"
            ],
            "description": "The DraftKings salary of the driver for this race"
          },
          "RaceID": {
            "type": [
              "integer",
              "null"
            ],
            "description": "The unique ID of this race"
          },
          "Day": {
            "type": [
              "string",
              "null"
            ],
            "description": "The day of this race"
          },
          "DateTime": {
            "type": [
              "string",
              "null"
            ],
            "description": "The date/time of this race"
          },
          "Updated": {
            "type": [
              "string",
              "null"
            ],
            "description": "The date/time when this record was last updated"
          },
          "Created": {
            "type": [
              "string",
              "null"
            ],
            "description": "The date/time when this record was created"
          },
          "FantasyPoints": {
            "type": [
              "number",
              "null"
            ],
            "description": "The fantasy points scored by this driver"
          },
          "FantasyPointsDraftKings": {
            "type": [
              "number",
              "null"
            ],
            "description": "The fantasy points scored by this driver, according to the DraftKings scoring system"
          },
          "QualifyingSpeed": {
            "type": [
              "number",
              "null"
            ],
            "description": "The speed of this driver's car during the qualifying race"
          },
          "PoleFinalPosition": {
            "type": [
              "number",
              "null"
            ],
            "description": "The final position this driver finished in the qualifying race (pole)"
          },
          "StartPosition": {
            "type": [
              "number",
              "null"
            ],
            "description": "The driver's starting position for the race (typically the same as the PoleFinalPosition)"
          },
          "FinalPosition": {
            "type": [
              "number",
              "null"
            ],
            "description": "The driver's final position for the race"
          },
          "PositionDifferential": {
            "type": [
              "number",
              "null"
            ],
            "description": "The driver's differential between the final position and the starting position"
          },
          "Laps": {
            "type": [
              "number",
              "null"
            ],
            "description": "The total number of laps completed by the driver"
          },
          "LapsLed": {
            "type": [
              "number",
              "null"
            ],
            "description": "The total number of laps that this driver finished in first place"
          },
          "FastestLaps": {
            "type": [
              "number",
              "null"
            ],
            "description": "The total number of laps that this driver finished fastest"
          },
          "Points": {
            "type": [
              "number",
              "null"
            ],
            "description": "The total points scored by this driver"
          },
          "Bonus": {
            "type": [
              "number",
              "null"
            ],
            "description": "The total bonus points scored by this driver"
          },
          "Penalty": {
            "type": [
              "number",
              "null"
            ],
            "description": "The total penalty points applied to this driver"
          },
          "Wins": {
            "type": [
              "number",
              "null"
            ],
            "description": "Indicates whether this driver won the race"
          },
          "Poles": {
            "type": [
              "number",
              "null"
            ],
            "description": "Indicates whether this driver won the qualifying race (pole)"
          },
          "CurrentPosition": {
            "type": [
              "number",
              "null"
            ],
            "description": "Driver's current position in the race, updated live."
          }
        }
      },
      "DriverBasic": {
        "properties": {
          "DriverID": {
            "type": "integer",
            "description": "The unique ID of this driver (assigned by SportsDataIO)"
          },
          "FirstName": {
            "type": [
              "string",
              "null"
            ],
            "description": "The driver's first name"
          },
          "LastName": {
            "type": [
              "string",
              "null"
            ],
            "description": "The driver's last name"
          },
          "Number": {
            "type": [
              "integer",
              "null"
            ],
            "description": "The driver's car number"
          },
          "NumberDisplay": {
            "type": [
              "string",
              "null"
            ],
            "description": "The driver's car number for display purposes (with leading zeros when necessary)"
          },
          "Team": {
            "type": [
              "string",
              "null"
            ],
            "description": "The driver's team name"
          },
          "BirthDate": {
            "type": [
              "string",
              "null"
            ],
            "description": "The driver's birthdate"
          },
          "BirthPlace": {
            "type": [
              "string",
              "null"
            ],
            "description": "The driver's birthplace"
          },
          "Gender": {
            "type": [
              "string",
              "null"
            ],
            "description": "The driver's gender"
          },
          "Height": {
            "type": [
              "integer",
              "null"
            ],
            "description": "The driver's height"
          },
          "Weight": {
            "type": [
              "integer",
              "null"
            ],
            "description": "The driver's weight"
          },
          "Manufacturer": {
            "type": [
              "string",
              "null"
            ],
            "description": "The manufacturer of the driver's car"
          },
          "Engine": {
            "type": [
              "string",
              "null"
            ],
            "description": "The engine type of the driver's car"
          },
          "Chassis": {
            "type": [
              "string",
              "null"
            ],
            "description": "The chassis of the driver's car"
          },
          "Sponsors": {
            "type": [
              "string",
              "null"
            ],
            "description": "The names of the sponsor(s) of the driver"
          },
          "CrewChief": {
            "type": [
              "string",
              "null"
            ],
            "description": "The name of the crew chief for the driver"
          },
          "Updated": {
            "type": [
              "string",
              "null"
            ],
            "description": "The date/time when this driver was last updated"
          },
          "Created": {
            "type": [
              "string",
              "null"
            ],
            "description": "The date/time when this driver was created (in US Eastern Time)"
          }
        }
      },
      "Tracks": {
        "properties": {
          "Track": {
            "type": [
              "string",
              "null"
            ],
            "description": "The name of the track for this race"
          }
        }
      },
      "DriverRaceBasic": {
        "properties": {
          "StatID": {
            "type": "integer",
            "description": "The unique ID of this stat record"
          },
          "DriverID": {
            "type": "integer",
            "description": "The unique ID of this driver"
          },
          "Season": {
            "type": "integer",
            "description": "The season that this race is associated with"
          },
          "Name": {
            "type": [
              "string",
              "null"
            ],
            "description": "The driver's full name"
          },
          "Number": {
            "type": [
              "integer",
              "null"
            ],
            "description": "The driver's car number"
          },
          "NumberDisplay": {
            "type": [
              "string",
              "null"
            ],
            "description": "The driver's car number for display purposes (with leading zeros when necessary)"
          },
          "Manufacturer": {
            "type": [
              "string",
              "null"
            ],
            "description": "The manufacturer of the driver's car"
          },
          "StartPosition": {
            "type": [
              "number",
              "null"
            ],
            "description": "The driver's starting position for the race (typically the same as the PoleFinalPosition)"
          },
          "FinalPosition": {
            "type": [
              "number",
              "null"
            ],
            "description": "The driver's final position for the race"
          },
          "PositionDifferential": {
            "type": [
              "number",
              "null"
            ],
            "description": "The driver's differential between their final position and their starting position"
          },
          "Laps": {
            "type": [
              "number",
              "null"
            ],
            "description": "The total number of laps completed by the driver"
          },
          "LapsLed": {
            "type": [
              "number",
              "null"
            ],
            "description": "The total number of laps that this driver completed while in first place"
          },
          "Points": {
            "type": [
              "number",
              "null"
            ],
            "description": "The total points scored by this driver"
          },
          "Wins": {
            "type": [
              "number",
              "null"
            ],
            "description": "Indicates whether this driver won the race"
          },
          "Poles": {
            "type": [
              "number",
              "null"
            ],
            "description": "Indicates whether this driver won the qualifying race (pole)"
          },
          "CurrentPosition": {
            "type": [
              "number",
              "null"
            ],
            "description": "Driver's current position in the race; updated live"
          }
        }
      },
      "FantasyRace": {
        "properties": {
          "DriverID": {
            "type": "integer",
            "description": "The unique ID of this driver (assigned by SportsDataIO)"
          },
          "Season": {
            "type": "integer",
            "description": "The season that this race is associated with"
          },
          "Day": {
            "type": [
              "string",
              "null"
            ],
            "description": "The day of this race"
          },
          "DateTime": {
            "type": [
              "string",
              "null"
            ],
            "description": "The date/time of this race"
          },
          "Name": {
            "type": [
              "string",
              "null"
            ],
            "description": "The name of this race"
          },
          "FantasyPoints": {
            "type": [
              "number",
              "null"
            ],
            "description": "The fantasy points scored by this driver"
          },
          "FantasyPointsDraftKings": {
            "type": [
              "number",
              "null"
            ],
            "description": "The fantasy points scored by this driver, according to the DraftKings scoring system"
          },
          "Updated": {
            "type": [
              "string",
              "null"
            ],
            "description": "The date/time when this race was last updated"
          }
        }
      },
      "RaceResultBasic": {
        "properties": {
          "Race": {
            "$ref": "#/components/schemas/RaceBasic",
            "description": "RaceBasic object (Includes basic information such as RaceID, Day, DateTime, Updated, and Created)"
          },
          "DriverRaces": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DriverRaceBasic"
            },
            "description": "StatBasic object (includes basic information on the drivers race performance such as DriveID, Season, Driver's Name, Start and Final positions, Lap information, etc.)"
          }
        }
      },
      "RaceBasic": {
        "properties": {
          "RaceID": {
            "type": "integer",
            "description": "The unique ID of this race"
          },
          "Day": {
            "type": [
              "string",
              "null"
            ],
            "description": "The day of this race"
          },
          "DateTime": {
            "type": [
              "string",
              "null"
            ],
            "description": "The date/time of this race"
          },
          "Updated": {
            "type": [
              "string",
              "null"
            ],
            "description": "The date/time when this race was last updated"
          },
          "Created": {
            "type": [
              "string",
              "null"
            ],
            "description": "The date/time when this race was created (in US Eastern Time)"
          }
        }
      },
      "RaceOdds": {
        "properties": {
          "RaceID": {
            "type": "integer",
            "description": "The unique ID of this race"
          },
          "SeriesID": {
            "type": "integer",
            "description": "The unique ID of the series that this race is associated with"
          },
          "SeriesName": {
            "type": [
              "string",
              "null"
            ],
            "description": "The name of the series that this race is associated with"
          },
          "Season": {
            "type": "integer",
            "description": "The season that this race is associated with"
          },
          "Name": {
            "type": [
              "string",
              "null"
            ],
            "description": "The name of this race"
          },
          "Day": {
            "type": [
              "string",
              "null"
            ],
            "description": "The day of this race"
          },
          "DateTime": {
            "type": [
              "string",
              "null"
            ],
            "description": "The date/time of this race"
          },
          "Track": {
            "type": [
              "string",
              "null"
            ],
            "description": "The name of the track for this race"
          },
          "IsInProgress": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Indicates whether this race is currently in progress"
          },
          "IsOver": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Indicates whether this race is over"
          },
          "PreGameOdds": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DriverRaceOdd"
            },
            "description": "List of the odds leading up to the start of the race"
          }
        }
      },
      "DriverRaceOdd": {
        "properties": {
          "DriverRaceOddID": {
            "type": "integer",
            "description": "The unique ID of the DriverRaceOdd record"
          },
          "SportsbookID": {
            "type": [
              "integer",
              "null"
            ],
            "description": "The ID of the Sportsbook associated with this record"
          },
          "SportsbookName": {
            "type": [
              "string",
              "null"
            ],
            "description": "The name of the Sportbook"
          },
          "DriverName": {
            "type": [
              "string",
              "null"
            ],
            "description": "The driver's full name"
          },
          "DriverID": {
            "type": [
              "integer",
              "null"
            ],
            "description": "The unique ID of the driver associated with this record"
          },
          "OddsToWin": {
            "type": "integer",
            "description": "The odds for this record, in American format i.e. +800, -200, etc."
          },
          "Created": {
            "type": [
              "string",
              "null"
            ],
            "description": "The date/time when this race was created (in US Eastern Time)"
          },
          "Updated": {
            "type": [
              "string",
              "null"
            ],
            "description": "The date and time when this record was last seen from the sportsbook"
          },
          "IsAvailable": {
            "type": "boolean",
            "description": "Indicates whether the odd is available for wagering at the related Sportsbook (excludes Consensus)"
          },
          "SportsbookUrl": {
            "type": [
              "string",
              "null"
            ],
            "description": "The URL for sportsbook event"
          }
        }
      },
      "Sportsbook": {
        "properties": {
          "SportsbookID": {
            "type": "integer",
            "description": "The unique ID of the sportsbook"
          },
          "Name": {
            "type": [
              "string",
              "null"
            ],
            "description": "The name of the sportsbooks"
          }
        }
      },
      "BettingEvent": {
        "properties": {
          "BettingEventID": {
            "type": "integer",
            "description": "The unique ID assocated with the betting event"
          },
          "Name": {
            "type": [
              "string",
              "null"
            ],
            "description": "The name of this betting event"
          },
          "Season": {
            "type": [
              "integer",
              "null"
            ],
            "description": "The season of this betting event"
          },
          "BettingEventTypeID": {
            "type": "integer",
            "description": "The ID associated with the type of betting event"
          },
          "BettingEventType": {
            "type": [
              "string",
              "null"
            ],
            "description": "Indicates the type of betting event"
          },
          "StartDate": {
            "type": [
              "string",
              "null"
            ],
            "description": "The last day for betting on this event"
          },
          "Created": {
            "type": [
              "string",
              "null"
            ],
            "description": "The date/time when this betting event was created (in US Eastern Time)"
          },
          "Updated": {
            "type": [
              "string",
              "null"
            ],
            "description": "The last updated date of this betting event"
          },
          "RaceID": {
            "type": [
              "integer",
              "null"
            ],
            "description": "The unique ID of the race tied to this event"
          },
          "BettingMarkets": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BettingMarket"
            },
            "description": "A list of the possible betting markets within a betting event"
          }
        }
      },
      "BettingMarket": {
        "properties": {
          "BettingMarketID": {
            "type": "integer",
            "description": "The unique ID associated with the betting market"
          },
          "BettingEventID": {
            "type": "integer",
            "description": "The unique ID associated with the betting market within the betting event"
          },
          "BettingMarketTypeID": {
            "type": [
              "integer",
              "null"
            ],
            "description": "The ID that distinguishes the different types of Market Types"
          },
          "BettingMarketType": {
            "type": [
              "string",
              "null"
            ],
            "description": "The name of the market type within a market (e.g. Race Prop, Driver Future, Race Line, etc.)"
          },
          "BettingBetTypeID": {
            "type": [
              "integer",
              "null"
            ],
            "description": "The ID associated with the name of the bet type within a market"
          },
          "BettingBetType": {
            "type": [
              "string",
              "null"
            ],
            "description": "The name of the bet type within a market (e.g. Tournament Winner, Best Score, etc.)"
          },
          "BettingPeriodTypeID": {
            "type": [
              "integer",
              "null"
            ],
            "description": "The BettingPeriodTypeID of this type of market which we can result"
          },
          "BettingPeriodType": {
            "type": [
              "string",
              "null"
            ],
            "description": "The name of the period type of this market"
          },
          "Name": {
            "type": [
              "string",
              "null"
            ],
            "description": "The name of this betting market"
          },
          "DriverID": {
            "type": [
              "integer",
              "null"
            ],
            "description": "The unique ID of the driver tied to this market (if applicable)"
          },
          "DriverName": {
            "type": [
              "string",
              "null"
            ],
            "description": "The name of the driver tied to this market (if applicable)"
          },
          "Created": {
            "type": [
              "string",
              "null"
            ],
            "description": "The date/time when this betting market was created (in US Eastern Time)"
          },
          "Updated": {
            "type": [
              "string",
              "null"
            ],
            "description": "The last updated date of this market"
          },
          "AvailableSportsbooks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Sportsbook"
            },
            "description": "The sportsbooks that have had odds in this market"
          },
          "AnyBetsAvailable": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Shows if any bets are currently available for betting in this market"
          },
          "BettingOutcomes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BettingOutcome"
            },
            "description": "A list of the possible betting outcomes from each sportsbook in this market"
          }
        }
      },
      "BettingOutcome": {
        "properties": {
          "BettingOutcomeID": {
            "type": [
              "integer",
              "null"
            ],
            "description": "The unique ID associated with this specific outcome"
          },
          "BettingMarketID": {
            "type": [
              "integer",
              "null"
            ],
            "description": "The unique ID associated with the betting market"
          },
          "SportsBook": {
            "$ref": "#/components/schemas/Sportsbook",
            "description": "The sportsbook offering this outcome for betting"
          },
          "BettingOutcomeTypeID": {
            "type": [
              "integer",
              "null"
            ],
            "description": "The ID of this specific outcome type"
          },
          "BettingOutcomeType": {
            "type": [
              "string",
              "null"
            ],
            "description": "The name of betting outcome type"
          },
          "PayoutAmerican": {
            "type": [
              "integer",
              "null"
            ],
            "description": "The American odds payout"
          },
          "PayoutDecimal": {
            "type": [
              "number",
              "null"
            ],
            "description": "The decimal odds payout"
          },
          "Value": {
            "type": [
              "number",
              "null"
            ],
            "description": "The number associated with the outcome (spread/total/etc)"
          },
          "Participant": {
            "type": [
              "string",
              "null"
            ],
            "description": "The name of the participant (typically team or player) associated with the outcome. NOTE: This is provided by the sportsbook. In the case of Player odds, we highly recommend using PlayerID as names of players can be inconsistent between sportsbooks."
          },
          "IsAvailable": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Denotes whether or not the betting outcome is currently available"
          },
          "IsAlternate": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Denotes whether or not the betting outcome is an alternate line"
          },
          "Created": {
            "type": [
              "string",
              "null"
            ],
            "description": "The date/time when this betting outcome was created (in US Eastern Time)"
          },
          "Updated": {
            "type": [
              "string",
              "null"
            ],
            "description": "The last updated date of the outcome"
          },
          "Unlisted": {
            "type": [
              "string",
              "null"
            ],
            "description": "The datetime the outcome was unlisted (no longer available for bets)"
          },
          "DriverID": {
            "type": [
              "integer",
              "null"
            ],
            "description": "The unique ID of the driver tied to this outcome (if applicable)"
          },
          "SportsbookUrl": {
            "type": [
              "string",
              "null"
            ],
            "description": "The URL for sportsbook event"
          },
          "GroupKey": {
            "type": [
              "integer",
              "null"
            ],
            "description": "A key to identify outcomes which are related and part of the same offering at a sportsbook (for instance; with Group markets; this key would identify all the options for a particular group of drivers)"
          },
          "IsInPlayRaceOdd": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Indicates if this outcome is considered in-play/live (was created after the race start date)"
          },
          "SportsbookMarketID": {
            "type": [
              "string",
              "null"
            ],
            "description": "The market ID on the given sportsbook for deeplinking (when available)"
          },
          "SportsbookOutcomeID": {
            "type": [
              "string",
              "null"
            ],
            "description": "The outcome ID on the given sportsbook for deeplinking (when available)"
          }
        }
      },
      "BettingEntityMetadataCollection": {
        "properties": {
          "BettingBetTypes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BettingEntityMetadata"
            },
            "description": "The list of the bet types that can be found within a market (e.g. Race Winner; Top 3 Finish)"
          },
          "BettingMarketTypes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BettingEntityMetadata"
            },
            "description": "A list of the possible market types within a betting event (e.g. Race Line; Drive Future)"
          },
          "BettingPeriodTypes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BettingEntityMetadata"
            },
            "description": "A list of the possible period types within a betting event (e.g. Race; Truck Series; Cup Series)"
          },
          "BettingEventTypes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BettingEntityMetadata"
            },
            "description": "A list of the possible BettingEventTypes"
          },
          "BettingOutcomeTypes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BettingEntityMetadata"
            },
            "description": "A list of the possible betting outcomes types (e.g. Yes; No)"
          }
        }
      },
      "BettingEntityMetadata": {
        "properties": {
          "RecordID": {
            "type": "integer",
            "description": "The ID of the record. Unique only within the same entity type (i.e. BettingMarketType Ids overlap with BettingBetType Ids)."
          },
          "Name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Denotes the name of the type (e.g. Betting Market Type, Betting Event Type, Betting Period Type)"
          },
          "Active": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Whether or not this market is currently in use"
          }
        }
      }
    },
    "securitySchemes": {
      "apiKeyHeader": {
        "type": "apiKey",
        "name": "Ocp-Apim-Subscription-Key",
        "in": "header"
      },
      "apiKeyQuery": {
        "type": "apiKey",
        "name": "key",
        "in": "query"
      }
    }
  },
  "security": [
    {
      "apiKeyHeader": []
    },
    {
      "apiKeyQuery": []
    }
  ]
}