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

# Betting Lines

> Get betting lines for hockey games

## Overview

Returns betting lines for a specific hockey game including moneylines, puck lines, and total goals from multiple sportsbooks.

## Code Examples

<CodeGroup>
  ```bash cURL theme={null}
  curl -X GET "https://api.sportsapipro.com/v1/hockey/bets/lines?gameId=4668072" \
    -H "x-api-key: YOUR_API_KEY"
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch(
    'https://api.sportsapipro.com/v1/hockey/bets/lines?gameId=4668072',
    { headers: { 'x-api-key': 'YOUR_API_KEY' } }
  );
  const { lines } = await response.json();
  ```

  ```python Python theme={null}
  import requests

  response = requests.get(
      'https://api.sportsapipro.com/v1/hockey/bets/lines',
      params={'gameId': 4668072},
      headers={'x-api-key': 'YOUR_API_KEY'}
  )
  ```
</CodeGroup>

## Hockey Betting Markets

* **Moneyline (3-way)**: Win, Loss, or OT/Draw
* **Puck Line**: 1.5 goal handicap (similar to run line in baseball)
* **Total Goals**: Over/under on combined goals scored
* **Period Betting**: Bet on individual periods
* **Player Props**: Goals, assists, shots (NHL)
* **Futures/Outrights**: Stanley Cup winner, division winners

<Warning>
  Betting data availability varies by game and region. NHL games have the most comprehensive coverage.
</Warning>


## OpenAPI

````yaml openapi-hockey GET /bets/lines
openapi: 3.1.0
info:
  title: SportsAPI Pro - Hockey API
  description: >-
    Professional hockey data API providing live scores, team statistics, player
    stats, standings, betting odds, and more for NHL, KHL, and international
    hockey leagues worldwide.
  version: 1.0.0
  contact:
    name: SportsAPI Pro Support
    email: support@sportsapipro.com
servers:
  - url: https://api.sportsapipro.com/v1/hockey
    description: Path-based front door (recommended)
  - url: https://v1.hockey.sportsapipro.com
    description: Classic per-sport vanity host
security:
  - ApiKeyAuth: []
tags:
  - name: Games
    description: Live scores, fixtures, and match data
  - name: Competitions
    description: Leagues and tournaments
  - name: Standings
    description: League tables and rankings
  - name: Athletes
    description: Player statistics and data
  - name: Betting
    description: Betting lines, props, and predictions
  - name: Search
    description: Search entities
  - name: Account
    description: Account status and usage
paths:
  /bets/lines:
    get:
      tags:
        - Betting
      summary: Betting Lines
      description: >-
        Get betting lines for a hockey game including moneylines, puck lines,
        and totals
      operationId: getBettingLines
      parameters:
        - name: gameId
          in: query
          required: true
          description: Game ID
          schema:
            type: integer
            example: 4668072
      responses:
        '200':
          description: Betting lines retrieved successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  lines:
                    $ref: '#/components/schemas/BettingLine'
components:
  schemas:
    BettingLine:
      type: object
      properties:
        gameId:
          type: integer
        markets:
          type: object
          properties:
            moneyline:
              type: object
              properties:
                home:
                  type: integer
                away:
                  type: integer
                draw:
                  type: integer
            puckLine:
              type: object
              properties:
                line:
                  type: number
                home:
                  type: integer
                away:
                  type: integer
            totalGoals:
              type: object
              properties:
                line:
                  type: number
                over:
                  type: integer
                under:
                  type: integer
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: Your SportsAPI Pro API key

````