Guide

How to grade player props with an API

To settle a player prop you need three things: the line, the player's official stat, and the rules for pushes, voids and corrections. PropLine does all three. After every game, each prop line from every book we carry is graded won, lost, push or void against the official box score, with the actual stat attached.

This guide shows the calls, what comes back, and the edge cases that trip up home-made graders.

1. Get graded results for a game

Find the event id from /events (or keep the one you used to pull odds), then read /results once the game is final. Filter with markets= and bookmakers=.

# 1. Find the game (event id) for a sport
curl "https://api.prop-line.com/v1/sports/basketball_nba/events?apiKey=YOUR_KEY"

# 2. After the game: every prop line, graded
curl "https://api.prop-line.com/v1/sports/basketball_nba/events/EVENT_ID/results\
?markets=player_points,player_rebounds&apiKey=YOUR_KEY"

Example response (shortened). Every outcome carries resolution and actual_value:

{
  "id": "EVENT_ID",
  "sport_key": "basketball_nba",
  "home_team": "Denver Nuggets",
  "away_team": "Los Angeles Lakers",
  "status": "final",
  "home_score": 118,
  "away_score": 109,
  "bookmakers": [
    {
      "key": "draftkings",
      "title": "DraftKings",
      "markets": [
        {
          "key": "player_points",
          "description": "Player Points",
          "period": null,
          "outcomes": [
            {
              "name": "Over",
              "description": "Nikola Jokic",
              "point": 27.5,
              "price": -115,
              "resolution": "won",
              "actual_value": 31,
              "player_id": "nba:203999",
              "resolved_at": "2026-11-30T05:41:12Z"
            },
            {
              "name": "Under",
              "description": "Nikola Jokic",
              "point": 27.5,
              "price": -105,
              "resolution": "lost",
              "actual_value": 31
            }
          ]
        }
      ]
    }
  ]
}

resolution is null until the game is graded. Team lines (moneyline, spread, totals, team totals) are graded in the same response.

2. Same thing in Python and Node

Python

# pip install propline
from propline import PropLine

client = PropLine(api_key="YOUR_KEY")
res = client.get_results("basketball_nba", event_id=EVENT_ID,
                         markets=["player_points"])

for book in res["bookmakers"]:
    for market in book["markets"]:
        for o in market["outcomes"]:
            print(book["key"], o["description"], o["name"], o["point"],
                  "->", o["resolution"], "(actual", o["actual_value"], ")")

Node / TypeScript

// npm install propline
import { PropLine } from "propline";

const client = new PropLine({ apiKey: process.env.PROPLINE_API_KEY! });
const res = await client.getResults("basketball_nba", EVENT_ID, {
  markets: ["player_points"],
});

for (const book of res.bookmakers)
  for (const market of book.markets)
    for (const o of market.outcomes)
      console.log(book.key, o.description, o.name, o.point,
                  "->", o.resolution, "actual", o.actual_value);

3. Grade bets you placed

If you already have bets (your own, or your users'), send them to /bets/settle. It works for singles and parlays, at any book and any line, even one we never stored. You get the result, the stat it settled on, and the payout when you send a stake.

curl -X POST "https://api.prop-line.com/v1/bets/settle?apiKey=YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '[{
    "sport_key": "basketball_nba",
    "event_id": EVENT_ID,
    "market": "player_points",
    "selection": "Nikola Jokic",
    "side": "Over",
    "point": 27.5,
    "price": -115,
    "stake": 50
  }]'

Don't want to poll? Register bets with /bets and we push the result to your webhook when the game is graded:

# Register once. We settle it when the game is graded
# and send a bet_settled webhook (bet_regraded if a stat correction
# changes the result later).
curl -X POST "https://api.prop-line.com/v1/bets?apiKey=YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '[{ "ref": "my-bet-123", "sport_key": "basketball_nba",
         "event_id": EVENT_ID, "market": "player_points",
         "selection": "Nikola Jokic", "side": "Over",
         "point": 27.5, "price": -115, "stake": 50 }]'

4. Edge cases to get right

Whole-number lines can push

Over 25 points and the player scores exactly 25: that is a push, not a loss. Half-point lines (25.5) can never push. Quarter lines on soccer Asian handicaps settle as half_won or half_lost on /bets/settle.

Players who don't play are void

If the player is not in the official box score (scratched, inactive, did not play), the prop settles void. A player who appears and records zero settles normally, so an Under on 0.5 rebounds wins.

Stat corrections re-grade

Leagues change box scores after the game (a hit ruled an error, an assist removed). We re-check recent finals for MLB, NBA, WNBA, NHL, NFL and college football and re-grade only the props whose stat moved. resolved_at updates when that happens, and tracked bets get a bet_regraded webhook.

Soccer settles on 90 minutes

Goals, shots, cards and corners count regular time plus stoppage time. Extra time and penalty shootouts are excluded, the same way books settle these markets.

Postponed games are void

When a league postpones or cancels a game, every open prop on it is voided. The makeup game is a separate event with its own props.

Same name, different line per book

DraftKings may have Over 27.5 while PrizePicks has 26.5. Each book's line is graded at its own point, so the same player can win at one book and lose at another. Use bookmakers= to read one book.

Ladders and milestones

"3+ Strikeouts" style rungs are graded at their own threshold, not at 1. Every alt line on a ladder gets its own result.

Our grading, not house rules

Results come from official stats (league APIs and box scores). A book can have its own rule for an odd case (for example a player who leaves injured early). When it matters, check the book's house rules.

5. Backtests: graded props in bulk

GET /v1/exports/resolved-props streams a CSV of every graded prop for a sport and date range, with opening and closing lines on each row. GET /v1/sports/{sport}/players/{name}/history gives one player's graded props over time. See the API docs and what we grade by sport.

FAQ

How do I check if a player prop hit with an API?

Call GET /v1/sports/{sport}/events/{event_id}/results after the game. Each prop outcome has resolution (won, lost, push or void) and actual_value, the stat the player recorded.

How fast are props graded after a game ends?

Usually within about 5 minutes of the game going final for the major leagues. Smaller sports can take longer.

Which sports are graded?

MLB, NBA, WNBA, NHL, NFL, college football and basketball, 40 soccer leagues, tennis, UFC, golf and more. Every book's lines are graded, including alt lines and milestone ladders.

Can I grade a bet I placed at a book you don't carry?

Yes. POST /v1/bets/settle takes the line and price you bet and settles it from the same box score, even if we never stored that line.

Is it free?

The free plan can call /bets/settle to test the request (results come back redacted). Full results and /results need the Hobby plan ($9/month) or higher.

Can I download graded props in bulk for a backtest?

Yes. GET /v1/exports/resolved-props returns a CSV of every graded prop with opening and closing lines (Pro plan and up).

Get an API key

Free key in 30 seconds (1,000 requests a day). Graded results start on Hobby at $9/month.

Free tier includes 1,000 requests/day. Upgrade anytime.