> ## 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.

# List Same Game Parlay Legs

> List Same Game Parlay Legs. Lists the legs of one pre-match event that can go into a same game parlay, with a copy-pasteable legId for /sgp/quote.



## OpenAPI

````yaml /api-reference/openapi.json get /sgp/legs
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:
  /sgp/legs:
    get:
      tags:
        - Same Game Parlays
      summary: List Same Game Parlay Legs
      description: >-
        Lists the legs of one pre-match event that can go into a same game
        parlay, with a copy-pasteable legId for /sgp/quote. Each leg shows, per
        requested bookmaker, whether the bookmaker can combine it (eligible),
        its current single price and when that price last changed. Legs use the
        same market, hdp, label and side as /odds. bookmakers has one entry per
        requested bookmaker: ok, or a status with retryable, nextAction and
        reason explaining why none of its legs are eligible (the bookmaker does
        not cover the sport, has no same game parlays on this event, or could
        not be checked right now and should be retried after retryAfter
        seconds).
      parameters:
        - description: API key for authentication
          name: apiKey
          in: query
          required: true
          schema:
            type: string
        - description: Event ID from /events
          name: eventId
          in: query
          required: true
          schema:
            type: integer
          example: 61234567
        - description: >-
            Comma-separated bookmaker names (max 8); spaces around names are
            ignored
          name: bookmakers
          in: query
          required: true
          schema:
            type: string
          example: DraftKings
        - example: ML,Spread,Totals
          description: Comma-separated market names to keep, case-insensitive (max 40)
          name: markets
          in: query
          schema:
            type: string
        - description: Maximum number of legs to return (default 200, max 1000)
          name: limit
          in: query
          schema:
            type: integer
          example: 200
        - description: Number of legs to skip (for pagination)
          name: skip
          in: query
          schema:
            type: integer
          example: 0
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/controllers.SgpLegsResponse'
        '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: >-
            A free key (same game parlay quotes are available on paid plans), or
            a bookmaker that is not in your plan.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/controllers.ErrorResponse'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/controllers.ErrorResponse'
        '503':
          description: >-
            Service busy, or no requested bookmaker could be checked. Retry
            after the Retry-After header
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/controllers.ErrorResponse'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    controllers.SgpLegsResponse:
      type: object
      properties:
        date:
          type: string
        bookmakers:
          description: One entry per requested bookmaker, in request order.
          type: array
          items:
            $ref: '#/components/schemas/controllers.SgpLegsBookmaker'
        eventId:
          type: integer
          example: 61234567
        hasMore:
          type: boolean
          example: false
        legs:
          type: array
          items:
            $ref: '#/components/schemas/controllers.SgpLeg'
        status:
          type: string
          example: pending
    controllers.ErrorResponse:
      type: object
      properties:
        error:
          type: string
          example: Error message
    controllers.SgpLegsBookmaker:
      type: object
      description: >-
        Whether a requested bookmaker's legs could be checked. When status is
        not ok, every leg reads eligible false at that bookmaker.
      properties:
        bookmaker:
          type: string
          example: DraftKings
        status:
          type: string
          example: ok
          enum:
            - ok
            - leg_unavailable
            - unsupported
            - temporarily_unavailable
        retryable:
          type: boolean
        nextAction:
          type: string
          example: retry_later
          enum:
            - retry_later
            - choose_other_bookmaker
        reason:
          type: string
        retryAfter:
          type: integer
          description: >-
            Seconds to wait before calling /sgp/legs again, on
            temporarily_unavailable.
    controllers.SgpLeg:
      type: object
      properties:
        bookmakers:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/controllers.SgpLegBook'
        hdp:
          type: number
          example: 221.5
        label:
          type: string
        legId:
          type: string
          example: 61234567|Totals|221.5||over
        market:
          type: string
          example: Totals
        side:
          type: string
          example: over
          enum:
            - home
            - away
            - draw
            - over
            - under
            - 'yes'
            - 'no'
    controllers.SgpLegBook:
      type: object
      properties:
        eligible:
          description: The bookmaker can combine this leg into a same game parlay.
          type: boolean
          example: true
        price:
          type: string
          example: '1.93'
        updatedAt:
          type: string
  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.