> ## Documentation Index
> Fetch the complete documentation index at: https://docs.odds-api.io/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Odds-API.io REST base URL: https://api.odds-api.io/v3. Authenticate every request with the apiKey query parameter (for example /v3/events?apiKey=YOUR_API_KEY&sport=football). Keep the key server-side.
> For continuously fresh odds use the WebSocket feed at wss://api.odds-api.io/v3/ws (see /guides/websockets); use REST for snapshots and one-off lookups.
> Market names differ by sport. Call GET /v3/markets?sport=<sport> (no key needed) for the exact names instead of guessing them.
> Official SDKs: npm odds-api-io (Node.js/TypeScript), PyPI odds-api-io (Python), Composer odds-api-io/odds-api-php (PHP), go get github.com/odds-api-io/odds-api-go (Go), CRAN oddsapiio (R). MCP server: npx -y odds-api-mcp-server. Prefer them over hand-written HTTP clients.
> The full machine-readable docs are at https://docs.odds-api.io/llms-full.txt and the OpenAPI spec at https://docs.odds-api.io/api-reference/openapi.json.

# Get Event Odds

> Get odds for one event from your chosen bookmakers in one response, with every market each bookmaker offers, its prices and a link to the event page.



## OpenAPI

````yaml /api-reference/openapi.json get /odds
openapi: 3.0.0
info:
  description: >-
    Odds-API.io is a powerful sports betting odds comparison API, providing
    real-time data from 450+ bookmakers across 34 sports with near zero latency.


    - 450+ bookmakers supported

    - 34 sports including Football, Basketball, Tennis, Esports and more

    - Real-time odds with close to zero latency

    - Pre-match & In-play odds coverage

    - 99.99% uptime for reliability
  title: Odds-API.io - Real-Time Sports Betting Odds API (v3)
  contact: {}
  version: 3.0.0
servers:
  - url: https://api.odds-api.io/v3
security: []
paths:
  /odds:
    get:
      tags:
        - Odds
      summary: Get Event Odds
      description: Returns odds comparison for a specific event from selected bookmakers.
      parameters:
        - description: API key for authentication
          name: apiKey
          in: query
          required: true
          schema:
            type: string
        - example: '"123456"'
          description: Event ID
          name: eventId
          in: query
          required: true
          schema:
            type: string
        - example: '"Bet365,Unibet"'
          description: Comma-separated list of bookmaker names (max 30)
          name: bookmakers
          in: query
          required: true
          schema:
            type: string
        - example: ML,Spread,Totals
          description: Comma-separated market names to keep, case-insensitive (max 40)
          name: markets
          in: query
          schema:
            type: string
        - example: true
          description: >-
            Set to true to get the current WebSocket sequence number in the
            `X-OddsAPI-Seq` response header. Pass it as `lastSeq` when you open
            or reopen the WebSocket, so updates after this snapshot are
            replayed.
          name: includeSeq
          in: query
          schema:
            type: boolean
            default: false
      responses:
        '200':
          description: OK
          headers:
            X-OddsAPI-Seq:
              description: Current WebSocket sequence number. Sent when `includeSeq=true`.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/controllers.EventResponse'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/controllers.ErrorResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/controllers.ErrorResponse'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/controllers.ErrorResponse'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/controllers.ErrorResponse'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/controllers.ErrorResponse'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    controllers.EventResponse:
      type: object
      properties:
        away:
          type: string
        awayId:
          type: integer
        bookmakerIds:
          type: object
          additionalProperties:
            type: string
        bookmakers:
          type: object
          additionalProperties:
            type: array
            items:
              $ref: '#/components/schemas/dto.MultiMarketDto'
        date:
          type: string
        home:
          type: string
        homeId:
          type: integer
        id:
          type: integer
        league:
          $ref: '#/components/schemas/controllers.League'
        scores:
          $ref: '#/components/schemas/dto.Score'
        sport:
          $ref: '#/components/schemas/controllers.Sport'
        status:
          description: >-
            Whether the match is under way: pending, live, settled or cancelled.
            Can read live before the listed start, or while /events still lists
            the event as pending. A pending event never carries in-play prices.
          type: string
        replacedBy:
          type: integer
          description: >-
            Set only on a cancelled event that was re-issued under a new id (for
            example with home and away corrected): the id of the event to use
            instead. Omitted otherwise. A replaced event never carries odds.
          example: 72710126
        urls:
          type: object
          additionalProperties:
            type: string
    controllers.ErrorResponse:
      type: object
      properties:
        error:
          type: string
          example: Error message
    dto.MultiMarketDto:
      type: object
      properties:
        name:
          type: string
        odds:
          type: array
          items:
            $ref: '#/components/schemas/dto.Odds'
        updatedAt:
          type: string
    controllers.League:
      type: object
      properties:
        name:
          type: string
          example: Premier League
        slug:
          type: string
          example: premier-league
    dto.Score:
      type: object
      properties:
        away:
          description: Null for an event settled without a result.
          type: integer
          nullable: true
        home:
          description: >-
            Headline result: includes overtime, never a penalty shootout. Null
            for an event settled without a result.
          type: integer
          nullable: true
        periods:
          description: >-
            Keyed p1..pN (that period only), ft, ot and ap (running totals after
            regulation, overtime and a penalty shootout), currentgame, mapN,
            inningN. See
            https://docs.odds-api.io/guides/live-events#period-scores
          type: object
          additionalProperties:
            $ref: '#/components/schemas/dto.PeriodScore'
    controllers.Sport:
      type: object
      properties:
        name:
          type: string
          example: Football
        slug:
          type: string
          example: football
    dto.Odds:
      type: object
      properties:
        '12':
          type: string
        1X:
          description: >-
            Specialty market fields

            Double Chance: 1X (home or draw), 12 (home or away), X2 (draw or
            away)
          type: string
        X2:
          type: string
        away:
          type: string
        awayLink:
          type: string
        depthAway:
          type: string
        depthDraw:
          type: string
        depthHome:
          type: string
        depthLayAway:
          type: string
        depthLayDraw:
          type: string
        depthLayHome:
          type: string
        depthLayNo:
          description: >-
            Available liquidity to lay no. Yes/no markets only (currently Both
            Teams To Score on exchange-style books).
          type: string
        depthLayOver:
          description: >-
            Available liquidity to lay over. On yes/no markets this repeats
            depthLayYes, kept for compatibility.
          type: string
        depthLayUnder:
          description: >-
            Available liquidity to lay under. On yes/no markets this repeats
            depthLayNo, kept for compatibility.
          type: string
        depthLayYes:
          description: >-
            Available liquidity to lay yes. Yes/no markets only (currently Both
            Teams To Score on exchange-style books).
          type: string
        depthNo:
          description: >-
            Available liquidity to back no. Yes/no markets only (currently Both
            Teams To Score on exchange-style books).
          type: string
        depthOver:
          description: >-
            Available liquidity to back over. On yes/no markets this repeats
            depthYes, kept for compatibility.
          type: string
        depthUnder:
          description: >-
            Available liquidity to back under. On yes/no markets this repeats
            depthNo, kept for compatibility.
          type: string
        depthYes:
          description: >-
            Available liquidity to back yes. Yes/no markets only (currently Both
            Teams To Score on exchange-style books).
          type: string
        draw:
          type: string
        drawLink:
          type: string
        even:
          type: string
        exactly:
          description: >-
            Three-way corner lines only (Corners, Alternative Corners, 1st Half
            Corners): price for the count landing exactly on hdp. When present,
            Over and Under both lose on that number.
          type: string
        hdp:
          type: number
        home:
          type: string
        homeLink:
          type: string
        label:
          type: string
        layAway:
          type: string
        layDraw:
          type: string
        layHome:
          type: string
        layNo:
          type: string
        layOver:
          type: string
        layUnder:
          type: string
        layYes:
          type: string
        max:
          type: integer
        neither:
          description: 'Corners Race: neither team reaches the target'
          type: string
        'no':
          type: string
        none:
          description: >-
            Team-to-score markets (First/Last Team To Score, First Team To Score
            1st Period, Touchdown and Field Goal, First Team To Punt, Team To
            Score 2nd to 5th Goal): no team scores
          type: string
        odd:
          description: Odd/Even market
          type: string
        odds:
          description: >-
            Labeled markets (Half Time / Full Time, Correct Score) - single odds
            value per outcome
          type: string
        over:
          type: string
        under:
          type: string
        'yes':
          type: string
    dto.PeriodScore:
      type: object
      properties:
        away:
          type: integer
        home:
          type: integer
        overs:
          allOf:
            - $ref: '#/components/schemas/dto.SideFloats'
          description: Cricket only. Overs bowled by each side in this innings.
        wickets:
          allOf:
            - $ref: '#/components/schemas/dto.SideInts'
          description: Cricket only. Wickets lost by each side in this innings.
    dto.SideFloats:
      type: object
      description: >-
        Home/away pair that can be fractional. Cricket overs use cricket
        notation: 19.3 means nineteen overs and three balls.
      properties:
        away:
          type: number
          example: 20
        home:
          type: number
          example: 20
    dto.SideInts:
      type: object
      description: Home/away pair of whole numbers (cricket wickets).
      properties:
        away:
          type: integer
          example: 9
        home:
          type: integer
          example: 6
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: query
      name: apiKey
      description: >-
        Your Odds-API.io API key, sent as the apiKey query parameter. Get one at
        https://odds-api.io/pricing.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.