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

# Get available markets for an event

> List the market definitions available for one event, without prices. Use the returned market IDs with the event endpoint to fetch prices.



## OpenAPI

````yaml openapi.yaml GET /api/v2/events/{eventID}/markets
openapi: 3.1.0
info:
  title: TheRundown Sports API
  version: 2.0.0
  description: >
    **Resolve the event first.** Ambiguous date, team, player, or timezone? The
    agent asks instead of guessing.


    **Every price carries evidence.** Event, market, affiliate ID, line, and the
    price update time. A fetch time is not freshness.


    **Missing stays missing.** No remembered odds, no synthetic prices, no
    filled gaps.


    **IDs come from the API.** Sports, markets, and affiliates are discovered at
    runtime. Retired affiliates stay out.


    Real-time and historical sports data API: odds, lines, scores and statistics
    across major North American and international sports leagues.


    ## Authentication

    All endpoints (except `/sports` and `/affiliates`) require authentication.
    Send your API key from a private server-side environment variable in the
    `X-TheRundown-Key` header.

    The query-key security scheme is retained for compatibility with existing
    integrations and deprecated for new integrations; do not put keys in URLs,
    prompts, browser bundles, or public code.

    ## Off-the-Board Sentinel Value

    The value **0.0001** indicates a line is "off the board": the sportsbook has
    temporarily removed pricing (e.g., pending injury news). This is NOT an
    error. Display as "Off Board" or "N/A" in your UI.


    ## Rate Limiting

    Requests are rate-limited per API key tier. Check response headers for
    current limits.


    ## Data Updates

    - Live odds update in real-time during games

    - Use delta endpoints for efficient polling of changes

    - WebSocket connections available for streaming updates


    ## V1 vs V2

    V2 endpoints use market-based data structures (market_id, participants, line
    prices). V1 endpoints use legacy line-based structures (moneyline, spread,
    total objects). V2 is recommended for new integrations.
  contact:
    name: TheRundown API Support
    url: https://therundown.io
    email: support@therundown.io
  termsOfService: https://therundown.io/terms
servers:
  - url: https://therundown.io
    description: Production
security:
  - ApiKeyHeader: []
tags:
  - name: V2 Sports
    description: Sport listings, dates, and teams (V2)
  - name: V2 Events
    description: Events with market-based odds (V2)
  - name: V2 Markets
    description: Market definitions, odds, deltas, and history (V2)
  - name: V2 Futures
    description: >-
      Futures/outright competition events: championship and tournament-winner
      boards (V2, early access)
  - name: V2 Teams
    description: Team data, players, and stats (V2)
  - name: V2 Players
    description: Player data (V2)
  - name: V2 Stats
    description: Team and player statistics (V2)
  - name: V2 WebSocket
    description: Real-time streaming via WebSocket (V2)
  - name: V2 Reference
    description: 'Reference data: affiliates, sportsbooks, season types (V2)'
  - name: V1 Events
    description: Events with line-based odds (V1 legacy)
  - name: V1 Lines
    description: Moneyline, spread, total, best-line endpoints (V1 legacy)
  - name: V1 Sports
    description: Sport listings, dates, events, schedules (V1 legacy)
  - name: V1 Delta
    description: Delta/change feeds (V1 legacy)
  - name: V1 Reference
    description: Reference data (V1 legacy)
  - name: V1 WebSocket
    description: Real-time streaming via WebSocket (V1 legacy)
externalDocs:
  description: Build with AI guide
  url: https://therundown.io/build-with-ai
paths:
  /api/v2/events/{eventID}/markets:
    get:
      tags:
        - V2 Markets
      summary: Get available markets for an event
      description: >-
        Returns the list of market definitions available for this event (not
        prices; use the event endpoint with market_ids for prices).
      operationId: v2GetAvailableMarketsByEvent
      parameters:
        - $ref: '#/components/parameters/EventIDPath'
        - name: market_ids
          in: query
          schema:
            type: string
          description: >
            Optional comma-separated market IDs, trimmed with blank tokens
            ignored. Omit or leave blank to return all market definitions
            available for this event; this endpoint does not use the event-price
            endpoint's default market IDs 1,2,3. At most 12 IDs are accepted;
            more returns HTTP 400.
        - name: participant_ids
          in: query
          schema:
            type: string
          description: >
            Optional comma-separated participant IDs (up to 99 tokens). Tokens
            are trimmed and blank tokens ignored; excess tokens after the first
            99 are ignored. This filter applies independently of
            participant_type.
        - name: participant_type
          in: query
          schema:
            type: string
            enum:
              - TYPE_TEAM
              - TYPE_PLAYER
              - TYPE_RESULT
          description: >
            Optional participant type. Only the exact uppercase values
            TYPE_TEAM, TYPE_PLAYER, and TYPE_RESULT activate this filter; other
            values are ignored rather than rejected.
        - name: affiliate_ids
          in: query
          schema:
            type: string
          description: >
            Optional comma-separated affiliate IDs used to filter the price rows
            that determine which market definitions are returned. On this
            endpoint, 0 is an ordinary filter value, not the scores-only
            sentinel used by selected event-odds endpoints.
        - name: hide_closed
          in: query
          schema:
            type: string
          description: >
            Omitted, blank, or the case-insensitive exact value false includes
            definitions with matching closed-price rows. Any other nonempty
            value filters to currently open price rows. The value is not
            whitespace-trimmed. This event endpoint uses hide_closed, not
            hide_closed_markets.
        - name: class
          in: query
          schema:
            type: string
          description: >
            Optional comma-separated catalog class filter: core, prop, future,
            special. Values are case-sensitive, trimmed, and blank tokens are
            ignored. Valid values are OR-combined; class and family filters
            combine with AND. Unknown tokens are ignored, and an all-unknown or
            blank filter is absent. Uncatalogued markets use class=special for
            this filter.
        - name: family
          in: query
          schema:
            type: string
          description: >
            Optional comma-separated catalog family filter: moneyline, spread,
            total, team_total, player_ou, winning_margin, outright_winner,
            top_scorer, win_total, top_n_finish, make_cut, exact_result, other.
            Values are case-sensitive, trimmed, and blank tokens are ignored.
            Valid values are OR-combined; class and family filters combine with
            AND. Unknown tokens are ignored, and an all-unknown or blank filter
            is absent. Uncatalogued markets use family=other for this filter.
      responses:
        '200':
          description: Available markets
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Market'
              example:
                - id: 1
                  name: moneyline
                  line_value_is_participant: true
                  proposition: true
                  description: 'Moneyline: To win outright'
                  short_description: Moneyline
                  period_id: 0
                  live_variant_id: 41
                - id: 2
                  name: handicap
                  line_value_is_participant: false
                  proposition: true
                  description: 'Spread: Win or lose by margin of points'
                  short_description: Spread
                  period_id: 0
                  live_variant_id: 42
                - id: 3
                  name: totals
                  line_value_is_participant: false
                  proposition: true
                  description: 'Totals: Total points'
                  short_description: Totals
                  period_id: 0
                  live_variant_id: 43
                - id: 29
                  name: points
                  line_value_is_participant: false
                  proposition: true
                  description: 'Points: How many points will this player score?'
                  short_description: Points
                  period_id: 0
                  live_variant_id: 90
        '400':
          description: Invalid parameters, including more than 12 market_ids.
components:
  parameters:
    EventIDPath:
      name: eventID
      in: path
      required: true
      schema:
        type: string
      description: >-
        Canonical V2 event ID from the `event_id` field returned by event
        endpoints
  schemas:
    Market:
      type: object
      description: >
        Market definition. The `line_value_is_participant` flag indicates
        whether the market is participant-shaped (`true`) or whether the line
        value should be surfaced as the meaningful handicap, total, method,
        round, or threshold (`false`).
      properties:
        id:
          type: integer
          example: 1
        name:
          type: string
          example: Money Line
        description:
          type: string
        short_description:
          type: string
        line_value_is_participant:
          type: boolean
          description: >-
            If true, the selection is carried by the participant and line values
            may be placeholders or labels. If false, the line value is
            meaningful and should be displayed when present.
        proposition:
          type: boolean
          description: Whether this is a proposition/prop market
        period_id:
          type: integer
          nullable: true
          description: >
            Associated period. 0=Full Game, 1=1st Half, 2=2nd Half,
            3-6=Quarters/periods, 7=Live Full Game, 13-18=Live periods. For
            tennis, 3/4 represent prematch Set 1/Set 2 and 15/16 represent live
            Set 1/Set 2.
        live_variant_id:
          type: integer
          nullable: true
          description: ID of the live/in-play variant of this market
        updated_at:
          type: string
          format: date-time
  securitySchemes:
    ApiKeyHeader:
      type: apiKey
      in: header
      name: X-TheRundown-Key
      description: Recommended API key request header for new integrations

````

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