Skip to content

Guides

How do I compare NFL player prop lines across sportsbooks?

The closing passing-yards line for one quarterback in one game at every book that posted it, with the over and under prices.

Code verified November 18, 2026. One call to get_player_props, 10 credits.

The call

game_id looks like 2025_01_BAL_BUF and comes from get_games. Add snapshot_type: opening for the first line.

import requests
import pandas as pd

API_KEY = "YOUR_API_KEY"

resp = requests.post(
    "https://mcp.endzoneapi.com/v1/get_player_props",
    headers={"x-api-key": API_KEY},
    json={
        "game_id": "2025_01_BAL_BUF",
        "player_id": "00-0034857",
        "market": "player_pass_yds",
    },
    timeout=60,
)
resp.raise_for_status()
data = resp.json()["data"]

props = pd.DataFrame(data["props"])
print(props[["bookmaker", "line", "over_odds", "under_odds"]].sort_values("line"))
print("spread between books:", props["line"].max() - props["line"].min(), "yards")

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.

Or use the official client: pip install endzoneapi

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": "2025_01_BAL_BUF",
      "player_name": "Josh Allen",
      "gsis_id": "00-0034857",
      "market": "player_pass_yds",
      "bookmaker": "betmgm",
      "line": 231.5,
      "over_odds": -115,
      "under_odds": -115,
      "captured_at": "2025-09-07 21:53:37+00",
      "source": "archive"
    },
    "...6 more"
  ],
  "count": 7
}

The example player is Josh Allen. The record against the line, market by market, is on the Josh Allen prop history page.

What to do next

  • get_player_stats (5 credits). The yards the player actually threw for, to grade the line.
  • get_alt_lines (10 credits). Alternate spreads and totals for the same game.

The data this uses

Every row above comes from NFL player props by sportsbook, 2023 on. NFL player prop lines from 7 sportsbooks since 2023: yards, receptions, passing TDs and anytime TD, opening and closing. REST or MCP, 500 free credits every month.

More guides

The same guide for other sports

The latest lines from every book are on the odds board. Today's props, with the best price on each side, are on the player props board. Rather ask Claude? 16 free Claude skills call these endpoints for you.

Start with 500 free credits every month

No card. REST or MCP.