> ## 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 dates for multiple sports

> Get the dates with scheduled events for one or more sport IDs in one V2 odds API call, keyed by sport ID, to fill a date picker before requesting events.



## OpenAPI

````yaml openapi.yaml GET /api/v2/sports/dates
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/sports/dates:
    get:
      tags:
        - V2 Sports
      summary: Get available dates for multiple sports
      description: Returns dates with events for the specified sport IDs.
      operationId: v2GetDatesBySportIDs
      parameters:
        - name: sport_ids
          in: query
          required: true
          schema:
            type: string
          description: >-
            Comma-separated sport IDs. Whitespace is trimmed, blank entries are
            ignored and duplicates are removed. Omitting the parameter or
            leaving it empty returns HTTP 400.
        - $ref: '#/components/parameters/OffsetQuery'
        - $ref: '#/components/parameters/DateFormatQuery'
        - $ref: '#/components/parameters/ExcludeCanceledQuery'
      responses:
        '200':
          description: Dates keyed by sport ID
          content:
            application/json:
              schema:
                type: object
                additionalProperties:
                  type: object
                  properties:
                    dates:
                      type: array
                      description: >-
                        One entry per caller-local day with events, in ascending
                        order. Lists today and later days, plus the previous day
                        while one of its events is still unfinished.
                      items:
                        oneOf:
                          - type: string
                            description: >-
                              Default `format=iso8601`: the earliest event start
                              on that day, shifted by `offset` minutes and
                              written as `YYYY-MM-DDTHH:MM:SS+0000`. The first
                              10 characters are the caller-local date.
                          - type: integer
                            description: >-
                              With `format=epoch`: the same shifted value in
                              Unix seconds.
              example:
                '2':
                  dates: []
                '3':
                  dates: []
                '4':
                  dates:
                    - 2026-02-13T00:30:00+0000
                '6':
                  dates:
                    - 2026-02-13T00:00:00+0000
        '400':
          description: '`sport_ids` is missing or empty'
          content:
            application/json:
              example:
                error: sport_ids query parameter is required
components:
  parameters:
    OffsetQuery:
      name: offset
      in: query
      schema:
        type: integer
        default: 0
        example: 300
      description: >-
        UTC offset in **minutes** for the date boundary. US zone values change
        with daylight saving time (daylight / standard), so use the value in
        effect on the date you request. Eastern `240` / `300`, Central `300` /
        `360`, Mountain `360` / `420`, Pacific `420` / `480`. Without this, the
        API day boundary is midnight UTC.
    DateFormatQuery:
      name: format
      in: query
      schema:
        type: string
        default: iso8601
        enum:
          - iso8601
          - epoch
      description: >-
        Date format: `iso8601` returns date strings, `epoch` returns Unix
        timestamps
    ExcludeCanceledQuery:
      name: exclude_canceled
      in: query
      schema:
        type: string
        enum:
          - 'true'
      description: >-
        Set to `true` to leave out events whose status is `STATUS_CANCELED` or
        `STATUS_CANCELLED`, so a day that holds only canceled events is not
        listed. Any other value is ignored. By default canceled events count
        toward the listed dates.
  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.