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

# Expand a combo into its legs with market metadata

> Returns the individual legs that make up a combo (parlay), each with its outcome and market metadata. Pass exactly one of `condition_id` or `position_id`.



## OpenAPI

````yaml https://api.struct.to/openapi.json get /polymarket/combos/legs
openapi: 3.1.0
info:
  title: Polymarket API
  description: >-
    RESTful API for querying Polymarket prediction markets data including
    events, markets, traders, holders, and real-time metrics
  license:
    name: ''
  version: 1.0.0
servers:
  - url: https://api.struct.to/v1
security: []
paths:
  /polymarket/combos/legs:
    get:
      tags:
        - Combos
      summary: Expand a combo into its legs with market metadata
      description: >-
        Returns the individual legs that make up a combo (parlay), each with its
        outcome and market metadata. Pass exactly one of `condition_id` or
        `position_id`.
      operationId: get_combo_legs
      parameters:
        - name: condition_id
          in: query
          description: Combo condition id (0x-prefixed 32-byte hex)
          required: false
          schema:
            type: string
        - name: position_id
          in: query
          description: Combo position id, decimal or 0x-prefixed hex
          required: false
          schema:
            type: string
      responses:
        '200':
          description: >-
            Leg breakdown with market metadata. Unknown combos return 200 with
            `data: null` and an `unknown combo` message
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ComboLegsResponse'
        '400':
          description: Missing/invalid id, or not a combo
components:
  schemas:
    ComboLegsResponse:
      type: object
      required:
        - condition_id
        - leg_count
        - legs
      properties:
        condition_id:
          type: string
          description: Normalized combo condition id this breakdown belongs to.
        leg_count:
          type: integer
          description: Number of legs in the combo.
          minimum: 0
        legs:
          type: array
          items:
            $ref: '#/components/schemas/ComboLegDetail'
    ComboLegDetail:
      type: object
      required:
        - position_id
        - v2_condition_id
        - condition_id
        - leg_market_type
        - outcome_index
      properties:
        position_id:
          type: string
          description: Position id of this leg (decimal).
        v2_condition_id:
          type: string
          description: |-
            Alternate condition id form of this leg; use `condition_id` for
            market lookups.
        condition_id:
          type: string
          description: |-
            Condition id of the leg's market — use this with the market
            endpoints.
        leg_market_type:
          $ref: '#/components/schemas/ComboLegMarketType'
          description: Type of the leg's market.
        outcome_index:
          type: integer
          format: int32
          description: Index of the outcome this leg is on within its market.
          minimum: 0
        outcome:
          type:
            - string
            - 'null'
          description: Outcome name (e.g. "Yes", "No", or a team/player name).
        last_price:
          type:
            - number
            - 'null'
          format: double
          description: Latest traded price of this leg's outcome (0-1).
        status:
          type:
            - string
            - 'null'
          description: |-
            Leg result: "won", "lost", or "pending" while the market is
            unresolved.
        market_slug:
          type:
            - string
            - 'null'
        event_slug:
          type:
            - string
            - 'null'
        question:
          type:
            - string
            - 'null'
        title:
          type:
            - string
            - 'null'
        image_url:
          type:
            - string
            - 'null'
    ComboLegMarketType:
      type: string
      description: Kind of market a combo leg is on.
      enum:
        - binary
        - multi_outcome

````