How do I compare NHL player prop lines across sportsbooks?
Every sportsbook's line and over and under price on shots on goal for one game, so you can find the books that disagree and the best price on each side.
Code verified October 12, 2026. One call to get_player_props, 10 credits.
The call
game_id comes from get_games or get_schedule. Leave market out for every prop in the game: goals, assists, points, blocked shots, goalie saves and anytime goal scorer. Add snapshot_type: "opening" for the first line instead of the close.
import requests
import pandas as pd
API_KEY = "YOUR_API_KEY"
resp = requests.post(
"https://mcp.puckapi.com/v1/get_player_props",
headers={"x-api-key": API_KEY},
json={
"game_id": "2025020002",
"market": "player_shots_on_goal",
},
timeout=60,
)
resp.raise_for_status()
data = resp.json()["data"]
def implied(odds):
return 100 / (odds + 100) if odds > 0 else -odds / (-odds + 100)
props = pd.DataFrame(data["props"])
props["fair_over"] = props["over_odds"].map(implied) / (
props["over_odds"].map(implied) + props["under_odds"].map(implied)
)
lines = props.pivot_table(index="player_name", columns="bookmaker", values="line")
print(lines.loc[lines.nunique(axis=1) > 1])
best = props.loc[props.groupby(["player_name", "line"])["over_odds"].idxmax()]
print(best[["player_name", "line", "bookmaker", "over_odds", "fair_over"]].head(8).round(3).to_string(index=False))
Replace YOUR_API_KEY with a key from your dashboard. Python needs requests and pandas (pip install requests pandas). JavaScript runs on Node 18 or newer, or in the browser.
What comes back
The data object of the response, trimmed to the first rows. Every field is real output from the run above.
{
"snapshot_type": "closing",
"games": 1,
"props": [
{
"game_id": "2025020002",
"game_date": "2025-10-07",
"player_name": "Adam Fox",
"player_id": 8479323,
"market": "player_shots_on_goal",
"bookmaker": "betmgm",
"line": 1.5,
"over_odds": -165,
"under_odds": 125,
"captured_at": "2025-10-08T00:05:39.000Z",
"source": "the_odds_api"
},
{
"game_id": "2025020002",
"game_date": "2025-10-07",
"player_name": "Adam Fox",
"player_id": 8479323,
"market": "player_shots_on_goal",
"bookmaker": "betonlineag",
"line": 1.5,
"over_odds": -169,
"under_odds": 129,
"captured_at": "2025-10-08T00:05:39.000Z",
"source": "the_odds_api"
},
"...76 more"
],
"count": 78
}What to do next
- get_prop_history (10 credits). One player's closing and opening line for every game in a span, with what he recorded and the over rate.
- search_players (2 credits). Find the player_id to pull one player's props across games.
More guides
Start with 500 free credits every month
No card. REST or MCP.