{
  "components": {
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "X-API-Key",
        "description": "API key from Settings > API. The full key is shown once at creation time; only a prefix is stored."
      },
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "Alternative to X-API-Key: \"Authorization: Bearer <key>\"."
      }
    },
    "schemas": {
      "Error": {
        "type": "object",
        "properties": {
          "code": {
            "type": "integer",
            "description": "Error code"
          },
          "status": {
            "type": "string",
            "description": "Error name"
          },
          "message": {
            "type": "string",
            "description": "Error message"
          },
          "errors": {
            "type": "object",
            "description": "Errors",
            "additionalProperties": {}
          }
        },
        "additionalProperties": false
      },
      "PaginationMetadata": {
        "type": "object",
        "properties": {
          "total": {
            "type": "integer",
            "description": "Total number of items."
          },
          "total_pages": {
            "type": "integer",
            "description": "Total number of pages."
          },
          "first_page": {
            "type": "integer",
            "description": "First available page number."
          },
          "last_page": {
            "type": "integer",
            "description": "Last available page number."
          },
          "page": {
            "type": "integer",
            "description": "Current page number."
          },
          "previous_page": {
            "type": "integer",
            "description": "Previous page number."
          },
          "next_page": {
            "type": "integer",
            "description": "Next page number."
          }
        },
        "additionalProperties": false
      },
      "PropType": {
        "type": "object",
        "properties": {
          "prop_type": {
            "type": "string"
          },
          "label": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Sport": {
        "type": "object",
        "properties": {
          "sport": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "has_odds": {
            "type": "boolean",
            "description": "Whether the schedule table currently has upcoming games."
          },
          "prop_types": {
            "type": "array",
            "description": "Player/team prop markets populated for this sport. Pass one as prop_type to GET /props/{sport}.",
            "items": {
              "$ref": "#/components/schemas/PropType"
            }
          }
        },
        "additionalProperties": false
      },
      "SportListResponse": {
        "type": "object",
        "properties": {
          "sports": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Sport"
            }
          },
          "count": {
            "type": "integer"
          }
        },
        "additionalProperties": false
      },
      "Book": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "BookListResponse": {
        "type": "object",
        "properties": {
          "books": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Book"
            }
          },
          "count": {
            "type": "integer"
          }
        },
        "additionalProperties": false
      },
      "OfferType": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string"
          },
          "market": {
            "type": "string"
          },
          "description": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "OfferTypeListResponse": {
        "type": "object",
        "properties": {
          "offer_types": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OfferType"
            }
          },
          "count": {
            "type": "integer"
          }
        },
        "additionalProperties": false
      },
      "TeamListResponse": {
        "type": "object",
        "properties": {
          "sport": {
            "type": "string"
          },
          "teams": {
            "type": "array",
            "description": "Team abbreviations as they appear in odds.",
            "items": {
              "type": "string"
            }
          },
          "count": {
            "type": "integer"
          }
        },
        "additionalProperties": false
      },
      "EventRef": {
        "type": "object",
        "properties": {
          "team1": {
            "type": "string",
            "description": "First side abbreviation; null when the observation has no event row.",
            "nullable": true
          },
          "team2": {
            "type": "string",
            "description": "Second side abbreviation; null when the observation has no event row.",
            "nullable": true
          },
          "start_date": {
            "type": "string",
            "description": "ISO-8601 UTC scheduled start, null when unknown.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Price": {
        "type": "object",
        "properties": {
          "book": {
            "type": "string",
            "description": "Sportsbook code, see GET /books."
          },
          "book_name": {
            "type": "string",
            "description": "Human readable sportsbook name."
          },
          "offer_type": {
            "type": "string",
            "description": "Market code, see GET /offer-types."
          },
          "market": {
            "type": "string",
            "description": "Market name, e.g. \"moneyline\"."
          },
          "team": {
            "type": "string",
            "description": "Side this price applies to."
          },
          "line": {
            "type": "number",
            "description": "Handicap/total line; null for moneyline."
          },
          "american_odds": {
            "type": "string",
            "description": "American odds as a string, e.g. \"-110\"."
          },
          "open_american_odds": {
            "type": "string",
            "description": "Opening price from the same book on the same side, when known. Lets you compute the move from open without a history call."
          },
          "open_line": {
            "type": "number",
            "description": "Opening line from the same book, when known."
          },
          "ts": {
            "type": "integer",
            "description": "Epoch seconds the price was observed."
          },
          "timestamp": {
            "type": "string",
            "description": "ISO-8601 UTC of ts."
          },
          "event_id": {
            "type": "string",
            "description": "On GET /odds/history (bulk range) only. Null when the observation has no matching event row.",
            "nullable": true
          },
          "event": {
            "description": "On GET /odds/history (bulk range) only: the game this observation belongs to, so a flat window can be regrouped into games without a second call per price.",
            "allOf": [
              {
                "$ref": "#/components/schemas/EventRef"
              }
            ]
          },
          "player_name": {
            "type": "string",
            "description": "Present on prop observations only."
          }
        },
        "additionalProperties": false
      },
      "Event": {
        "type": "object",
        "properties": {
          "event_id": {
            "type": "string",
            "description": "Stable identifier for use in /events/{sport}/{event_id}."
          },
          "sport": {
            "type": "string"
          },
          "team1": {
            "type": "string",
            "description": "Away team."
          },
          "team2": {
            "type": "string",
            "description": "Home team."
          },
          "start_date": {
            "type": "string"
          },
          "odds": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Price"
            }
          }
        },
        "additionalProperties": false
      },
      "EventListResponse": {
        "type": "object",
        "properties": {
          "events": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Event"
            }
          },
          "count": {
            "type": "integer"
          },
          "sport": {
            "type": "string"
          },
          "updated_since": {
            "type": "integer",
            "description": "Echoed when a delta filter was applied."
          }
        },
        "additionalProperties": false
      },
      "OddsRangeResponse": {
        "type": "object",
        "properties": {
          "sport": {
            "type": "string"
          },
          "prices": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Price"
            }
          },
          "count": {
            "type": "integer"
          },
          "next_cursor": {
            "type": "string",
            "description": "Pass back as cursor for the next page. Null when the window is exhausted."
          },
          "truncated": {
            "type": "boolean",
            "description": "True when more rows remain in the window."
          },
          "window": {
            "type": "object",
            "description": "The from/to window actually searched, in epoch seconds.",
            "additionalProperties": {}
          }
        },
        "additionalProperties": false
      },
      "EventDetailResponse": {
        "type": "object",
        "properties": {
          "event": {
            "$ref": "#/components/schemas/Event"
          },
          "sport": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "OddsHistoryResponse": {
        "type": "object",
        "properties": {
          "event_id": {
            "type": "string"
          },
          "sport": {
            "type": "string"
          },
          "team1": {
            "type": "string"
          },
          "team2": {
            "type": "string"
          },
          "start_date": {
            "type": "string",
            "description": "Scheduled start, US Eastern, as recorded."
          },
          "movement": {
            "type": "object",
            "description": "book -> market code -> team -> chronological list of {line, american_odds, ts, timestamp}.",
            "additionalProperties": {}
          },
          "count": {
            "type": "integer",
            "description": "Total observations across all books."
          }
        },
        "additionalProperties": false
      },
      "PriceListResponse": {
        "type": "object",
        "properties": {
          "prices": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Price"
            }
          },
          "count": {
            "type": "integer"
          },
          "event_id": {
            "type": "string"
          },
          "sport": {
            "type": "string"
          },
          "offer_type": {
            "type": "string"
          },
          "team": {
            "type": "string"
          },
          "basis": {
            "type": "string",
            "description": "Which price was selected: \"closing\" (last before cutoff), \"opening\" (first recorded) or \"best\" (highest at any time before cutoff)."
          },
          "cutoff": {
            "type": "integer",
            "description": "Epoch seconds the cutoff actually used."
          }
        },
        "additionalProperties": false
      },
      "AltLineGroup": {
        "type": "object",
        "properties": {
          "line": {
            "type": "number"
          },
          "prices": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Price"
            }
          }
        },
        "additionalProperties": false
      },
      "AltLinesResponse": {
        "type": "object",
        "properties": {
          "event_id": {
            "type": "string"
          },
          "sport": {
            "type": "string"
          },
          "alt_type": {
            "type": "string"
          },
          "lines": {
            "type": "array",
            "description": "One entry per handicap, sorted by line.",
            "items": {
              "$ref": "#/components/schemas/AltLineGroup"
            }
          },
          "count": {
            "type": "integer"
          }
        },
        "additionalProperties": false
      },
      "PropsResponse": {
        "type": "object",
        "properties": {
          "sport": {
            "type": "string"
          },
          "prop_type": {
            "type": "string"
          },
          "events": {
            "type": "array",
            "description": "One entry per game: {event_id, team1, team2, start_date, players:[{player_name, main_line, odds:[...]}]}. players also carries alt_lines and all_odds when a book is off the main line.",
            "items": {
              "type": "object",
              "additionalProperties": {}
            }
          },
          "count": {
            "type": "integer"
          }
        },
        "additionalProperties": false
      },
      "PropRow": {
        "type": "object",
        "properties": {
          "market": {
            "type": "string",
            "description": "Prop market code, e.g. \"tt_runs\", \"player_pts\"."
          },
          "offer_type": {
            "type": "string"
          },
          "subject": {
            "type": "string",
            "description": "Who the prop is on: a team abbreviation for tt_* markets, a player name for player_*/batter_*/pitcher_*."
          },
          "subject_type": {
            "type": "string",
            "description": "\"team\" or \"player\"."
          },
          "side": {
            "type": "string",
            "description": "\"Over\" or \"Under\"."
          },
          "line": {
            "type": "number"
          },
          "book": {
            "type": "string"
          },
          "book_name": {
            "type": "string"
          },
          "american_odds": {
            "type": "string"
          },
          "ts": {
            "type": "integer"
          },
          "timestamp": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "EventPropsResponse": {
        "type": "object",
        "properties": {
          "event_id": {
            "type": "string"
          },
          "sport": {
            "type": "string"
          },
          "props": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PropRow"
            }
          },
          "count": {
            "type": "integer"
          }
        },
        "additionalProperties": false
      },
      "ApiKeyInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "The label given to this key at creation."
          },
          "prefix": {
            "type": "string",
            "description": "Leading characters of the key, for telling several keys apart in a dashboard."
          }
        },
        "additionalProperties": false
      },
      "UsageResponse": {
        "type": "object",
        "properties": {
          "plan_id": {
            "type": "string",
            "description": "Plan granting the allowance: `api_developer` (Developer), `api_starter` (Starter), `api_pro` (Pro), `api_elite` (Elite). `api_developer` needs no subscription - it is provisioned automatically once the account email is confirmed."
          },
          "credits_limit": {
            "type": "integer",
            "description": "Credits available in the current period."
          },
          "credits_used": {
            "type": "integer"
          },
          "credits_remaining": {
            "type": "integer",
            "description": "Also on every response as the X-Credits-Remaining header."
          },
          "requests_made": {
            "type": "integer",
            "description": "Calls made this period. Counts requests, not credits, so it rises on free endpoints too."
          },
          "rate_limit_rpm": {
            "type": "integer",
            "description": "Requests per minute this key may make. Also the X-RateLimit-Limit header."
          },
          "period_start": {
            "type": "string",
            "description": "ISO 8601 start of the current allowance period."
          },
          "period_end": {
            "type": "string",
            "description": "ISO 8601 moment the allowance resets."
          },
          "resets_in_seconds": {
            "type": "integer"
          },
          "key": {
            "$ref": "#/components/schemas/ApiKeyInfo"
          }
        },
        "additionalProperties": false
      }
    },
    "responses": {
      "DEFAULT_ERROR": {
        "description": "Default error response",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "UNPROCESSABLE_ENTITY": {
        "description": "Unprocessable Entity",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      }
    }
  },
  "security": [
    {
      "ApiKeyAuth": []
    }
  ],
  "info": {
    "description": "Live and historical sports betting odds across 20 sportsbooks and 6 leagues.\n\nEvery response carries `X-Credits-Cost`, `X-Credits-Remaining` and `X-RateLimit-*` headers. Credits reset on the first of each month UTC. Free metadata endpoints cost nothing; bulk historical extraction costs the most. See the pricing table at [/odds-api](/odds-api).\n\nIdentical requests are collapsed server-side, so a repeated poll is cheap for us and fast for you: `X-Cache` says `HIT` or `MISS`, and a `HIT` is byte-identical to the response that populated it. Current odds are held for a few seconds; a historical window whose `to`/`cutoff` has already passed can never receive another row, so it is held for a day. Pass an explicit upper bound to get that. A `HIT` is still metered - the cache saves the query, not the credit.",
    "title": "Oddize Odds API",
    "version": "v1"
  },
  "paths": {
    "/api/v1/sports": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SportListResponse"
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/DEFAULT_ERROR"
          }
        },
        "tags": [
          "Meta"
        ],
        "operationId": "meta.sports",
        "summary": "List sports with odds coverage",
        "description": "Free - costs no credits. The leagues covered, each with the markets and prop types available for it.\n\n`has_odds` reports whether that league currently has scheduled games, so you can skip it in the off-season instead of discovering that from an empty response."
      }
    },
    "/api/v1/books": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BookListResponse"
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/DEFAULT_ERROR"
          }
        },
        "tags": [
          "Meta"
        ],
        "operationId": "meta.books",
        "summary": "List sportsbooks",
        "description": "Free - costs no credits. Every book in the archive. The `code` is what the `books` filter on the odds endpoints expects; `name` is for display."
      }
    },
    "/api/v1/offer-types": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OfferTypeListResponse"
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/DEFAULT_ERROR"
          }
        },
        "tags": [
          "Meta"
        ],
        "operationId": "meta.offer_types",
        "summary": "List market/offer types",
        "description": "Free - costs no credits. The market codes accepted by the `offer_type` filters. Note the odds endpoints default to the five main lines (s, t, ml, rl, tt); the alternate handicaps are reached through the `/alts` endpoint."
      }
    },
    "/api/v1/sports/{sport}/teams": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TeamListResponse"
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/DEFAULT_ERROR"
          }
        },
        "tags": [
          "Meta"
        ],
        "operationId": "meta.teams",
        "summary": "List teams for a sport",
        "description": "Free - costs no credits. Team abbreviations for one league. These are the values the `team` parameter takes on ml and s markets - copy one from here rather than guessing the spelling."
      },
      "parameters": [
        {
          "in": "path",
          "name": "sport",
          "required": true,
          "schema": {
            "type": "string",
            "minLength": 1
          }
        }
      ]
    },
    "/api/v1/odds/latest": {
      "get": {
        "parameters": [
          {
            "in": "query",
            "name": "sport",
            "description": "League to query.",
            "schema": {
              "type": "string",
              "enum": [
                "mlb",
                "nba",
                "nfl",
                "ncaabm",
                "ncaaf",
                "nhl"
              ]
            },
            "required": true
          },
          {
            "in": "query",
            "name": "books",
            "description": "Restrict to these sportsbook codes. Default: all.",
            "schema": {
              "type": "array",
              "default": null,
              "items": {
                "type": "string",
                "enum": [
                  "b365",
                  "blys",
                  "boag",
                  "bov",
                  "briv",
                  "circa",
                  "czr",
                  "dk",
                  "espn",
                  "fd",
                  "hrb",
                  "mgm",
                  "parx",
                  "pb",
                  "pin",
                  "poly",
                  "smkt",
                  "phtx",
                  "novig",
                  "gnug"
                ]
              },
              "nullable": true
            },
            "required": false,
            "explode": true,
            "style": "form"
          },
          {
            "in": "query",
            "name": "offer_types",
            "description": "Restrict to these market codes. Default: main lines.",
            "schema": {
              "type": "array",
              "default": null,
              "items": {
                "type": "string",
                "enum": [
                  "s",
                  "t",
                  "ml",
                  "rl",
                  "tt"
                ]
              },
              "nullable": true
            },
            "required": false,
            "explode": true,
            "style": "form"
          },
          {
            "in": "query",
            "name": "date",
            "description": "Games on this date (YYYY-MM-DD, US Eastern). Default: current and upcoming games.",
            "schema": {
              "type": "string",
              "default": null,
              "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
              "nullable": true
            },
            "required": false
          },
          {
            "in": "query",
            "name": "include_past",
            "description": "Include games that have already started.",
            "schema": {
              "type": "boolean",
              "default": false
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_since",
            "description": "Only return events whose odds changed after this time. The efficient way to poll: store the newest ts you saw and pass it next call.",
            "schema": {
              "type": "string",
              "default": null,
              "nullable": true
            },
            "required": false
          },
          {
            "in": "query",
            "name": "limit",
            "description": "Maximum events to return. A single sport's slate for one day fits well inside this, so the endpoint is not paginated; raise the limit rather than paging. Use GET /odds/history for cursor-paginated bulk extraction.",
            "schema": {
              "type": "integer",
              "default": 100,
              "minimum": 1,
              "maximum": 500
            },
            "required": false
          }
        ],
        "responses": {
          "422": {
            "$ref": "#/components/responses/UNPROCESSABLE_ENTITY"
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EventListResponse"
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/DEFAULT_ERROR"
          }
        },
        "tags": [
          "Odds"
        ],
        "operationId": "odds.latest",
        "summary": "Latest odds for a sport",
        "description": "Costs 1 credit. Current prices for every scheduled game in one league, one entry per event.\n\nTo poll efficiently, store the newest `ts` you saw and pass it back as `updated_since` - you then get only the games that actually moved, which is usually a small fraction of the slate."
      }
    },
    "/api/v1/odds/history": {
      "get": {
        "parameters": [
          {
            "in": "query",
            "name": "sport",
            "schema": {
              "type": "string",
              "enum": [
                "mlb",
                "nba",
                "nfl",
                "ncaabm",
                "ncaaf",
                "nhl"
              ]
            },
            "required": true
          },
          {
            "in": "query",
            "name": "from",
            "description": "Start of the window, inclusive.",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "in": "query",
            "name": "to",
            "description": "End of the window, inclusive.",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "in": "query",
            "name": "books",
            "schema": {
              "type": "array",
              "default": null,
              "items": {
                "type": "string",
                "enum": [
                  "b365",
                  "blys",
                  "boag",
                  "bov",
                  "briv",
                  "circa",
                  "czr",
                  "dk",
                  "espn",
                  "fd",
                  "hrb",
                  "mgm",
                  "parx",
                  "pb",
                  "pin",
                  "poly",
                  "smkt",
                  "phtx",
                  "novig",
                  "gnug"
                ]
              },
              "nullable": true
            },
            "required": false,
            "explode": true,
            "style": "form"
          },
          {
            "in": "query",
            "name": "offer_types",
            "schema": {
              "type": "array",
              "default": null,
              "items": {
                "type": "string",
                "enum": [
                  "s",
                  "t",
                  "ml",
                  "rl",
                  "tt",
                  "alt_s",
                  "alt_t"
                ]
              },
              "nullable": true
            },
            "required": false,
            "explode": true,
            "style": "form"
          },
          {
            "in": "query",
            "name": "cursor",
            "description": "Opaque pagination cursor taken from a previous response's next_cursor. Do not construct or parse it; it may change format.",
            "schema": {
              "type": "string",
              "default": null,
              "nullable": true
            },
            "required": false
          },
          {
            "in": "query",
            "name": "limit",
            "description": "Observations per page. This is the bulk extraction endpoint, so the ceiling is higher.",
            "schema": {
              "type": "integer",
              "default": 1000,
              "minimum": 1,
              "maximum": 5000
            },
            "required": false
          }
        ],
        "responses": {
          "422": {
            "$ref": "#/components/responses/UNPROCESSABLE_ENTITY"
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OddsRangeResponse"
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/DEFAULT_ERROR"
          }
        },
        "tags": [
          "Odds"
        ],
        "operationId": "odds.range",
        "summary": "All odds movement in a time window",
        "description": "Costs 10 credits. Bulk historical extraction: every observation recorded for a league between `from` and `to`, newest first, cursor paginated.\n\nThis is the most expensive endpoint and the only one that can pull large parts of the archive in one call. Page through it with `cursor`; never by offset. Narrow the window or pass `books`/`offer_types` to reduce cost per page."
      }
    },
    "/api/v1/events/{sport}/{event_id}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EventDetailResponse"
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/DEFAULT_ERROR"
          }
        },
        "tags": [
          "Odds"
        ],
        "operationId": "odds.event",
        "summary": "One event with current odds across books",
        "description": "Costs 1 credit. A single game by its `event_id`, with the latest price from every book.\n\n`event_id` may contain slashes (MLB ids look like `2026/09/10/nyamlb`), so it is a path parameter - pass it verbatim from a list response, do not URL-encode the slashes and do not substitute underscores."
      },
      "parameters": [
        {
          "in": "path",
          "name": "sport",
          "required": true,
          "schema": {
            "type": "string",
            "minLength": 1
          }
        },
        {
          "in": "path",
          "name": "event_id",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ]
    },
    "/api/v1/events/{sport}/{event_id}/odds": {
      "get": {
        "parameters": [
          {
            "in": "query",
            "name": "books",
            "description": "Restrict to these sportsbook codes. Default: all.",
            "schema": {
              "type": "array",
              "default": null,
              "items": {
                "type": "string",
                "enum": [
                  "b365",
                  "blys",
                  "boag",
                  "bov",
                  "briv",
                  "circa",
                  "czr",
                  "dk",
                  "espn",
                  "fd",
                  "hrb",
                  "mgm",
                  "parx",
                  "pb",
                  "pin",
                  "poly",
                  "smkt",
                  "phtx",
                  "novig",
                  "gnug"
                ]
              },
              "nullable": true
            },
            "required": false,
            "explode": true,
            "style": "form"
          },
          {
            "in": "query",
            "name": "offer_type",
            "description": "Restrict to one main-line market code. Default: all five. Alternate lines are not available here - use GET /events/{sport}/{event_id}/alts.",
            "schema": {
              "type": "string",
              "default": null,
              "enum": [
                "s",
                "t",
                "ml",
                "rl",
                "tt",
                null
              ],
              "nullable": true
            },
            "required": false
          },
          {
            "in": "query",
            "name": "from",
            "description": "Start of the window, inclusive. Default: no lower bound.",
            "schema": {
              "type": "string",
              "default": null,
              "nullable": true
            },
            "required": false
          },
          {
            "in": "query",
            "name": "to",
            "description": "End of the window, inclusive. Default: no upper bound.",
            "schema": {
              "type": "string",
              "default": null,
              "nullable": true
            },
            "required": false
          }
        ],
        "responses": {
          "422": {
            "$ref": "#/components/responses/UNPROCESSABLE_ENTITY"
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OddsHistoryResponse"
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/DEFAULT_ERROR"
          }
        },
        "tags": [
          "Odds"
        ],
        "operationId": "odds.history",
        "summary": "Full odds movement for one event",
        "description": "Costs 5 credits. Every recorded price for one game, grouped `book -> market -> side -> chronological list`. The grouping is what makes a full movement history cheap to consume: no client-side sort or regrouping needed.\n\nUnbounded by default. Pass `from`/`to` to narrow it, or `offer_type` and `books` to cut the payload."
      },
      "parameters": [
        {
          "in": "path",
          "name": "sport",
          "required": true,
          "schema": {
            "type": "string",
            "minLength": 1
          }
        },
        {
          "in": "path",
          "name": "event_id",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ]
    },
    "/api/v1/events/{sport}/{event_id}/closing": {
      "get": {
        "parameters": [
          {
            "in": "query",
            "name": "offer_type",
            "description": "ml, s, t, rl or tt.",
            "schema": {
              "type": "string",
              "enum": [
                "s",
                "t",
                "ml",
                "rl",
                "tt"
              ]
            },
            "required": true
          },
          {
            "in": "query",
            "name": "team",
            "description": "The side to price, exactly as it appears in the event's odds. For ml and s this is a team abbreviation (e.g. \"BOS\", \"NYY\"). For t this is exactly \"Over\" or \"Under\". Copy it from a GET /odds/latest or /events/{sport}/{event_id} response rather than guessing the spelling.",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "in": "query",
            "name": "cutoff",
            "description": "Only consider prices observed strictly before this time. Default: now. For true closing odds, pass the event's scheduled start (returned as start_date).",
            "schema": {
              "type": "string",
              "default": null,
              "nullable": true
            },
            "required": false
          }
        ],
        "responses": {
          "422": {
            "$ref": "#/components/responses/UNPROCESSABLE_ENTITY"
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PriceListResponse"
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/DEFAULT_ERROR"
          }
        },
        "tags": [
          "Odds"
        ],
        "operationId": "odds.closing",
        "summary": "Closing odds per book",
        "description": "Costs 2 credits. The last price each book had on one side before `cutoff`.\n\nFor a true closing line, pass the event's scheduled start as `cutoff`. Left at its default (now) this returns the most recent price, which for a game already started is not the close."
      },
      "parameters": [
        {
          "in": "path",
          "name": "sport",
          "required": true,
          "schema": {
            "type": "string",
            "minLength": 1
          }
        },
        {
          "in": "path",
          "name": "event_id",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ]
    },
    "/api/v1/events/{sport}/{event_id}/opening": {
      "get": {
        "parameters": [
          {
            "in": "query",
            "name": "offer_type",
            "description": "ml, s, t, rl or tt.",
            "schema": {
              "type": "string",
              "enum": [
                "s",
                "t",
                "ml",
                "rl",
                "tt"
              ]
            },
            "required": true
          },
          {
            "in": "query",
            "name": "team",
            "description": "The side to price, exactly as it appears in the event's odds. For ml and s this is a team abbreviation (e.g. \"BOS\", \"NYY\"). For t this is exactly \"Over\" or \"Under\". Copy it from a GET /odds/latest or /events/{sport}/{event_id} response rather than guessing the spelling.",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "in": "query",
            "name": "cutoff",
            "description": "Only consider prices observed strictly before this time. Default: now. For true closing odds, pass the event's scheduled start (returned as start_date).",
            "schema": {
              "type": "string",
              "default": null,
              "nullable": true
            },
            "required": false
          }
        ],
        "responses": {
          "422": {
            "$ref": "#/components/responses/UNPROCESSABLE_ENTITY"
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PriceListResponse"
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/DEFAULT_ERROR"
          }
        },
        "tags": [
          "Odds"
        ],
        "operationId": "odds.opening",
        "summary": "Opening odds per book",
        "description": "Costs 2 credits. The first price each book recorded on one side, before `cutoff`.\n\nNote this is the earliest price *in the archive*, not necessarily the book's true opener - if a line was posted before coverage began, the first observation is what you get."
      },
      "parameters": [
        {
          "in": "path",
          "name": "sport",
          "required": true,
          "schema": {
            "type": "string",
            "minLength": 1
          }
        },
        {
          "in": "path",
          "name": "event_id",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ]
    },
    "/api/v1/events/{sport}/{event_id}/best": {
      "get": {
        "parameters": [
          {
            "in": "query",
            "name": "offer_type",
            "description": "ml, s, t, rl or tt.",
            "schema": {
              "type": "string",
              "enum": [
                "s",
                "t",
                "ml",
                "rl",
                "tt"
              ]
            },
            "required": true
          },
          {
            "in": "query",
            "name": "team",
            "description": "The side to price, exactly as it appears in the event's odds. For ml and s this is a team abbreviation (e.g. \"BOS\", \"NYY\"). For t this is exactly \"Over\" or \"Under\". Copy it from a GET /odds/latest or /events/{sport}/{event_id} response rather than guessing the spelling.",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "in": "query",
            "name": "cutoff",
            "description": "Only consider prices observed strictly before this time. Default: now. For true closing odds, pass the event's scheduled start (returned as start_date).",
            "schema": {
              "type": "string",
              "default": null,
              "nullable": true
            },
            "required": false
          }
        ],
        "responses": {
          "422": {
            "$ref": "#/components/responses/UNPROCESSABLE_ENTITY"
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PriceListResponse"
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/DEFAULT_ERROR"
          }
        },
        "tags": [
          "Odds"
        ],
        "operationId": "odds.best",
        "summary": "Best available price per book",
        "description": "Costs 2 credits. The highest price each book offered on one side at any point before `cutoff` - not the close, and not necessarily from the same moment across books.\n\nUseful for \"what was the best number I could have gotten\" analysis. For an executable closing line use /closing instead."
      },
      "parameters": [
        {
          "in": "path",
          "name": "sport",
          "required": true,
          "schema": {
            "type": "string",
            "minLength": 1
          }
        },
        {
          "in": "path",
          "name": "event_id",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ]
    },
    "/api/v1/events/{sport}/{event_id}/alts": {
      "get": {
        "parameters": [
          {
            "in": "query",
            "name": "alt_type",
            "description": "alt_s for alternate spread, alt_t for alternate total.",
            "schema": {
              "type": "string",
              "enum": [
                "alt_s",
                "alt_t"
              ]
            },
            "required": true
          }
        ],
        "responses": {
          "422": {
            "$ref": "#/components/responses/UNPROCESSABLE_ENTITY"
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AltLinesResponse"
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/DEFAULT_ERROR"
          }
        },
        "tags": [
          "Odds"
        ],
        "operationId": "odds.alts",
        "summary": "Alternate spread or total lines",
        "description": "Costs 2 credits. Every alternate handicap a book has listed for one game, grouped by line and sorted ascending.\n\nOnly the last 7 days of observations are considered, matching the UI."
      },
      "parameters": [
        {
          "in": "path",
          "name": "sport",
          "required": true,
          "schema": {
            "type": "string",
            "minLength": 1
          }
        },
        {
          "in": "path",
          "name": "event_id",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ]
    },
    "/api/v1/props/{sport}": {
      "get": {
        "parameters": [
          {
            "in": "query",
            "name": "prop_type",
            "description": "Prop market code. Per sport: NBA/NCAABM - player_pts, player_reb, player_ast, player_3pm, player_pra, player_stl, player_blk, tt_pts; NFL/NCAAF - player_pass_yds, player_rush_yds, player_rec_yds, player_pass_td, player_atd, player_rec, tt_pts; MLB - pitcher_k, batter_h, batter_tb, batter_hr, batter_rbi, batter_r; NHL - player_g, player_sog, player_pts, player_ppp, tt_goals. GET /sports lists these per sport. An unrecognized code returns an empty set, not an error.",
            "schema": {
              "type": "string",
              "pattern": "^[a-z][a-z_0-9]*$"
            },
            "required": true
          },
          {
            "in": "query",
            "name": "limit",
            "description": "Maximum games to return, ordered by start time.",
            "schema": {
              "type": "integer",
              "default": 50,
              "minimum": 1,
              "maximum": 200
            },
            "required": false
          }
        ],
        "responses": {
          "422": {
            "$ref": "#/components/responses/UNPROCESSABLE_ENTITY"
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PropsResponse"
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/DEFAULT_ERROR"
          }
        },
        "tags": [
          "Odds"
        ],
        "operationId": "props.latest",
        "summary": "Latest player props by sport",
        "description": "Costs 2 credits. Current props for every upcoming game in a league, grouped by event then player, with the consensus main line and each book's price on it.\n\nWhere a book is off the main line, that player also carries `alt_lines` and `all_odds`. GET /sports lists the prop markets available per league; an unrecognized `prop_type` returns an empty set rather than an error."
      },
      "parameters": [
        {
          "in": "path",
          "name": "sport",
          "required": true,
          "schema": {
            "type": "string",
            "minLength": 1
          }
        }
      ]
    },
    "/api/v1/events/{sport}/{event_id}/props": {
      "get": {
        "parameters": [
          {
            "in": "query",
            "name": "team",
            "description": "Restrict to one team abbreviation.",
            "schema": {
              "type": "string",
              "default": null,
              "nullable": true
            },
            "required": false
          },
          {
            "in": "query",
            "name": "prop_types",
            "description": "Restrict to these prop markets. Default: all.",
            "schema": {
              "type": "array",
              "default": null,
              "items": {
                "type": "string"
              },
              "nullable": true
            },
            "required": false,
            "explode": true,
            "style": "form"
          }
        ],
        "responses": {
          "422": {
            "$ref": "#/components/responses/UNPROCESSABLE_ENTITY"
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EventPropsResponse"
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/DEFAULT_ERROR"
          }
        },
        "tags": [
          "Odds"
        ],
        "operationId": "props.event",
        "summary": "Team and player props for one event",
        "description": "Costs 2 credits. A flat list of every prop price for one game: one entry per market, subject, side, line and book.\n\nFlat rather than nested because this is a single event - there is nothing to group by. Defaults to team totals (`tt_*`); pass `prop_types` for player markets. `subject` is a team abbreviation for `tt_*` and a player name otherwise, and `subject_type` says which."
      },
      "parameters": [
        {
          "in": "path",
          "name": "sport",
          "required": true,
          "schema": {
            "type": "string",
            "minLength": 1
          }
        },
        {
          "in": "path",
          "name": "event_id",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ]
    },
    "/api/v1/account/usage": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UsageResponse"
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/DEFAULT_ERROR"
          }
        },
        "tags": [
          "Account"
        ],
        "operationId": "account.usage",
        "summary": "Credit balance and plan status",
        "description": "Free - costs no credits. Your remaining credits, the allowance for the period, when the period resets and the plan the key belongs to.\n\nEvery API response already carries the balance as `X-Credits-Remaining` / `X-Credits-Limit`, so you do not need to call this to stay under budget - it is here for the period boundaries and for checking a key before a run of expensive calls."
      }
    }
  },
  "tags": [
    {
      "name": "Meta",
      "description": "Catalog metadata: which sports, sportsbooks and markets are covered. Free, and the natural place to start an integration."
    },
    {
      "name": "Odds",
      "description": "Live and historical odds, opening/closing/best prices, alternate lines and props."
    },
    {
      "name": "Account",
      "description": "Your credit balance, plan and rate limits."
    }
  ],
  "openapi": "3.0.3"
}