> ## 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 moneyline price history for a line

> Read historical moneyline prices for a line ID through the V1 odds API. Review the request parameters and response fields.



## OpenAPI

````yaml openapi.yaml GET /api/v1/lines/{id}/moneyline
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/v1/lines/{id}/moneyline:
    get:
      tags:
        - V1 Lines
      summary: Get moneyline price history for a line
      operationId: v1GetMoneylines
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: >
            Line ID (`line_id`), not an event ID. Find it in a V1 event response
            at `lines.{affiliate_id}.line_id`, or with `include=all_periods` at
            `line_periods.{affiliate_id}.{period}.moneyline.line_id` (every
            period of a sportsbook's line shares the same line ID). Each line ID
            belongs to one sportsbook.
        - name: include
          in: query
          schema:
            type: string
            enum:
              - all_periods
          description: >
            Without `include`, only the pregame full-game price history is
            returned. With `include=all_periods`, rows are grouped by period
            (`period_full_game`, halves, quarters/periods) and in-play rows are
            returned under `period_live_full_game` (live full game, halves, and
            quarters/periods together; tell them apart by `period_id` and
            `period_description`). Live rows require a subscription with live
            odds access. Each period returns at most the newest 1,000 rows with
            no pagination; for full in-play history use `GET
            /api/v2/events/{eventID}/markets/history?market_ids=41,42,43,96`
            with `from`/`to` and `limit` up to 5000.
      responses:
        '200':
          description: 'Moneylines. An unknown line ID returns `{"moneylines": []}`.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  moneylines:
                    type: array
                    items:
                      $ref: '#/components/schemas/V1Moneyline'
              example:
                moneylines:
                  - affiliate_id: 4
                    moneyline_away: -105
                    moneyline_away_delta: 5
                    moneyline_home: -115
                    moneyline_home_delta: -5
                    moneyline_draw: 0.0001
                    date_updated: '2026-02-11T22:00:00Z'
                  - affiliate_id: 19
                    moneyline_away: -110
                    moneyline_away_delta: 0
                    moneyline_home: -110
                    moneyline_home_delta: 0
                    moneyline_draw: 0.0001
                    date_updated: '2026-02-11T21:30:00Z'
        '404':
          description: The line ID exists but has no moneyline prices to return.
components:
  schemas:
    V1Moneyline:
      type: object
      properties:
        line_id:
          type: integer
          description: Line identifier, as used by the V1 line routes.
        event_id:
          type: string
        sport_id:
          type: integer
        affiliate_id:
          type: integer
        moneyline_away:
          type: number
          description: Away team moneyline. 0.0001 = off the board.
          example: 150
        moneyline_away_delta:
          type: number
        moneyline_home:
          type: number
          example: -180
        moneyline_home_delta:
          type: number
        moneyline_draw:
          type: number
          description: Draw moneyline (soccer, UFC)
        moneyline_draw_delta:
          type: number
        date_updated:
          type: string
          format: date-time
          nullable: true
        format:
          type: string
          example: American
  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.