Home/Docs/Best lines endpoint

Best lines endpoint: GET /best-lines/

Last updated 2026-11-16

GET /best-lines/?sport_key=... returns, for each upcoming game, the single best price on every outcome across all books, with the bookmaker that offers it. It is line shopping in one call, available on every plan for the leagues that plan includes.

Request

curl -H "x-api-key: YOUR_API_KEY" "https://api.bettingdataapi.com/best-lines/?sport_key=americanfootball_nfl&event_id=EVENT_ID"

Parameters

ParameterRequiredWhat it does
sport_keyYesLeague key.
event_idNoOne game. Recommended: a full league covers every market family and is large.
oddsFormatNoamerican (default) or decimal.

Response

{
  "success": true,
  "data": [
    {
      "event_id": "35e3bdff558b5d1506251e814986f164",
      "home_team": "Baltimore Ravens",
      "away_team": "Los Angeles Chargers",
      "start_time": "2026-11-17T01:15:00Z",
      "best_lines": [
        { "market": "h2h", "outcome": "Baltimore Ravens", "best_price": -210, "bookmaker": "betway" },
        { "market": "h2h", "outcome": "Los Angeles Chargers", "best_price": 212, "bookmaker": "polymarket" },
        { "market": "spreads", "outcome": "Baltimore Ravens", "point": -4.5, "best_price": -102, "bookmaker": "betfair_ex" }
      ]
    }
  ]
}
FieldMeaning
marketMarket family, e.g. h2h, spreads, totals.
outcomeTeam, player or side.
pointThe line, for spreads and totals. Each distinct line is its own row.
best_priceThe best price available for that outcome and line.
bookmakerThe book offering it. Exchanges and prediction markets are included.

Notes

  • Spreads and totals are compared per line, so a game can have several spread rows for the same team.
  • If you only want sportsbooks, call /odds/ with a bookmakers list and take the maximum yourself.

Frequently asked questions

What is a line shopping API?

An endpoint that compares the same bet across sportsbooks and returns the best available price. GET /best-lines/ does this for every outcome of every upcoming game in one call.

Which plan includes /best-lines/?

Every plan, for the leagues that plan includes. GET /sports/ shows the minimum plan for each league.

Does /best-lines/ include exchanges?

Yes. Betting exchanges and prediction markets are compared alongside sportsbooks, and the bookmaker field tells you which one has the price.

Try it with a free key

25 requests per day, moneylines for the free leagues, no credit card.

Get a free API key