Home/Docs/Events endpoint

Events endpoint: GET /events/

Last updated 2026-11-16

GET /events/?sport_key=... lists the upcoming games for one league with event_id, teams and a UTC start_time, and no prices. It is the small first call: find the game, then pass its event_id to /odds/, /props/ or /best-lines/.

Request

curl -H "x-api-key: YOUR_API_KEY" "https://api.bettingdataapi.com/events/?sport_key=americanfootball_nfl"

Parameters

ParameterRequiredWhat it does
sport_keyYesLeague key. GET /sports/ lists them.
event_idNoReturn one game only.

Response

{
  "success": true,
  "data": [
    {
      "event_id": "35e3bdff558b5d1506251e814986f164",
      "sport": "americanfootball",
      "league": "NFL",
      "home_team": "Baltimore Ravens",
      "away_team": "Los Angeles Chargers",
      "start_time": "2026-11-17T01:15:00Z"
    }
  ]
}

Events follow the same rule as odds: a game is listed until it starts. Seasonal leagues return an empty data array between seasons.

Typical flow

  • GET /events/?sport_key=basketball_nba: find tonight's game and its event_id.
  • GET /odds/?sport_key=basketball_nba&event_id=...: prices for that game.
  • GET /props/?sport_key=basketball_nba&event_id=...&markets=player_points: player lines (Business).

Frequently asked questions

How do I get an event_id?

Call GET /events/?sport_key=... . Every row has an event_id that the odds, props, best-lines and historical endpoints accept.

Does /events/ include games in progress?

No. Like /odds/, it lists upcoming games, and a game drops off when it starts.

Why is /events/ empty for a league?

The league is between seasons or has no scheduled games yet. GET /sports/ shows which leagues currently have a board.

Try it with a free key

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

Get a free API key