NHL Betting Data

NHL API — Real-Time Odds from 43 Sportsbooks

Live NHL moneylines, puck lines, game totals, and player props from DraftKings, FanDuel, Pinnacle, and 40 other sportsbooks. One endpoint, one schema, sub-89ms latency.

By theFounder·SharpAPI

SharpAPI's NHL API returns real-time betting odds for every NHL game — regular season through the Stanley Cup Finals. Call GET /v1/odds?sport=icehockey_nhl&markets=h2h,spreads,totals for moneylines, puck lines (+/-1.5), and game totals, or stream live line movements via SSE. +EV detection and arbitrage alerts available on Pro+.

What the NHL API Returns

Moneylines (h2h)

Home/away/draw prices from every sportsbook on your plan, updated in real-time.

Puck Lines (Spreads)

Standard +/-1.5 puck lines and alternate lines from all covered sportsbooks.

Game Totals

Full-game over/under totals. Period totals available on Pro+.

Player Props

Goal scorer, assists, points, shots on goal, and saves from major books (Pro+).

Live In-Game Odds

Real-time in-game lines streamed via SSE including live moneylines and period lines.

No-Vig Fair Odds

Pinnacle no-vig lines for true probability calculations and +EV identification (Pro+).

Quick Start

REST — Fetch NHL Odds

// Fetch live NHL puck lines, moneylines, and totals
const res = await fetch(
  'https://api.sharpapi.io/v1/odds?sport=icehockey_nhl&markets=h2h,spreads,totals',
  { headers: { Authorization: `Bearer ${process.env.SHARPAPI_KEY}` } }
)
const { data: events } = await res.json()

for (const event of events) {
  console.log(`${event.home_team} vs ${event.away_team}`)
  for (const book of event.bookmakers) {
    const ml = book.markets.find(m => m.key === 'h2h')
    const pl = book.markets.find(m => m.key === 'spreads') // puck line
    if (ml && pl) {
      const [homeML, awayML] = ml.outcomes
      const [homePL, awayPL] = pl.outcomes
      console.log(`  ${book.title}: ML ${homeML.price}/${awayML.price} | PL ${homePL.point} (${homePL.price})`)
    }
  }
}

SSE — Stream Live NHL Lines

// Stream live NHL odds via SSE — covers all games, all markets
const source = new EventSource(
  'https://api.sharpapi.io/v1/stream?sport=icehockey_nhl',
  { headers: { Authorization: `Bearer ${process.env.SHARPAPI_KEY}` } }
)

source.addEventListener('odds:update', (e) => {
  const update = JSON.parse(e.data)
  console.log(`[${update.sportsbook}] ${update.market} ${update.outcome}: ${update.old_price} → ${update.new_price}`)
})

Get a free API key in 30 seconds — no credit card required.

Plans

PlanPriceSportsbooksLatencyStreaming
Free$0260s delayREST only
Hobby$79/mo5Real-timeSSE included
Pro$229/mo15Real-timeSSE + +EV + Arb

All plans include a free trial. See full pricing.

Frequently Asked Questions

Does SharpAPI have an NHL API?

Yes. SharpAPI provides real-time NHL betting odds from 43 US sportsbooks including DraftKings, FanDuel, BetMGM, Caesars, Pinnacle, and 38 others. Coverage includes moneylines, puck lines (spreads), game totals, and player props for every NHL regular season, playoff, and Stanley Cup Finals game.

What NHL markets does the API cover?

SharpAPI returns NHL moneylines (h2h), puck lines (+/-1.5 spreads and alternates), game totals, period lines, and player props including goal scorer, points, shots on goal, and saves. SharpAPI does not provide historical box scores or play-by-play — for those use the official NHL Stats API (api.nhle.com) which is free.

Is there a free NHL API for odds?

SharpAPI's free tier includes 12 requests per minute with no credit card required. You get NHL odds from 2 sportsbooks with a 60-second delay. Hobby ($79/mo) adds real-time data, SSE streaming, and 5 sportsbooks. The official NHL Stats API (api.nhle.com) is free for historical data.

What is a puck line in the NHL API?

The puck line is hockey's version of the point spread — almost always +/-1.5 goals. SharpAPI returns puck line odds under the "spreads" market key. Each outcome includes the team name, the points value (+1.5 or -1.5), and the American odds price from each sportsbook.

Can I get live in-game NHL odds?

Yes. SharpAPI streams live in-game NHL odds via SSE on Hobby plan and above. Period lines and live moneylines update the instant sportsbooks move them. No polling required — each SSE event is a delta containing the sportsbook, market, outcome, old price, and new price.

How does SharpAPI compare to the official NHL Stats API?

The official NHL Stats API (api.nhle.com) is free and provides historical game data, rosters, play-by-play, standings, and schedules. It does not provide betting odds. SharpAPI provides real-time betting odds from 43 sportsbooks but not historical game stats. Most betting app developers use both: NHL Stats API for game context, SharpAPI for odds.

Related

Ready to Build?
Start free. Scale when you're ready. No credit card required.

No credit card required