> ## 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 tennis matches

## Overview

Returns betting lines for a specific tennis match including moneylines, game spreads, and set totals from multiple sportsbooks.

## Code Examples

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

  ```javascript JavaScript theme={null}
  const response = await fetch(
    'https://api.sportsapipro.com/v1/tennis/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/tennis/bets/lines?gameId=4668072',
      headers={'x-api-key': 'YOUR_API_KEY'}
  )
  ```
</CodeGroup>

## Parameters

<ParamField query="gameId" type="integer" required>
  The match ID to get betting lines for
</ParamField>

## Tennis Betting Markets

* **Moneyline**: Winner of the match
* **Game Spread**: Handicap on total games won
* **Set Spread**: Handicap on sets won
* **Total Games**: Over/under on total games in match
* **Set Betting**: Exact set score prediction

## Response Structure

<ResponseField name="lines" type="object">
  Betting lines organized by market type and bookmaker
</ResponseField>

<Warning>
  Betting data availability varies by match and region. Grand Slam and ATP/WTA main draw matches have the best coverage.
</Warning>


## OpenAPI

````yaml openapi-tennis GET /bets/lines
openapi: 3.1.0
info:
  title: SportsAPI Pro - Tennis API
  description: >-
    Professional tennis data API providing live scores, rankings, player
    statistics, betting odds, and more for ATP, WTA, and Grand Slam tournaments
    worldwide.
  version: 1.0.0
  contact:
    name: SportsAPI Pro Support
    email: support@sportsapipro.com
servers:
  - url: https://api.sportsapipro.com/v1/tennis
    description: Path-based front door (recommended)
  - url: https://v1.tennis.sportsapipro.com
    description: Classic per-sport vanity host
security:
  - ApiKeyAuth: []
tags:
  - name: Games
    description: Live scores, fixtures, and match data
  - name: Competitions
    description: Tournaments and rankings
  - name: Standings
    description: ATP/WTA 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 tennis match including moneylines, spreads, and
        totals
      operationId: getBettingLines
      parameters:
        - name: gameId
          in: query
          required: true
          description: Match 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
            gameSpread:
              type: object
              properties:
                line:
                  type: number
                home:
                  type: integer
                away:
                  type: integer
            totalGames:
              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

````