Hockey V1
Betting Lines
Get betting lines for hockey games
GET
/
bets
/
lines
Betting Lines
curl --request GET \
--url https://api.sportsapipro.com/v1/hockey/bets/lines \
--header 'x-api-key: <api-key>'import requests
url = "https://api.sportsapipro.com/v1/hockey/bets/lines"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.sportsapipro.com/v1/hockey/bets/lines', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.sportsapipro.com/v1/hockey/bets/lines",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.sportsapipro.com/v1/hockey/bets/lines"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.sportsapipro.com/v1/hockey/bets/lines")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sportsapipro.com/v1/hockey/bets/lines")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"lines": {
"gameId": 123,
"markets": {
"moneyline": {
"home": 123,
"away": 123,
"draw": 123
},
"puckLine": {
"line": 123,
"home": 123,
"away": 123
},
"totalGoals": {
"line": 123,
"over": 123,
"under": 123
}
}
}
}Overview
Returns betting lines for a specific hockey game including moneylines, puck lines, and total goals from multiple sportsbooks.Code Examples
curl -X GET "https://api.sportsapipro.com/v1/hockey/bets/lines?gameId=4668072" \
-H "x-api-key: YOUR_API_KEY"
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();
import requests
response = requests.get(
'https://api.sportsapipro.com/v1/hockey/bets/lines',
params={'gameId': 4668072},
headers={'x-api-key': 'YOUR_API_KEY'}
)
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
Betting data availability varies by game and region. NHL games have the most comprehensive coverage.
Last modified on June 29, 2026
Was this page helpful?
⌘I
Betting Lines
curl --request GET \
--url https://api.sportsapipro.com/v1/hockey/bets/lines \
--header 'x-api-key: <api-key>'import requests
url = "https://api.sportsapipro.com/v1/hockey/bets/lines"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.sportsapipro.com/v1/hockey/bets/lines', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.sportsapipro.com/v1/hockey/bets/lines",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.sportsapipro.com/v1/hockey/bets/lines"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.sportsapipro.com/v1/hockey/bets/lines")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sportsapipro.com/v1/hockey/bets/lines")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"lines": {
"gameId": 123,
"markets": {
"moneyline": {
"home": 123,
"away": 123,
"draw": 123
},
"puckLine": {
"line": 123,
"home": 123,
"away": 123
},
"totalGoals": {
"line": 123,
"over": 123,
"under": 123
}
}
}
}