sports

NBA games from balldontlie - schedule and scores in one feed.

NBA games from balldontlie — schedule and scores in one feed. Filter by season (start year), a single date, and/or team id. Each game: date, season, status, postseason flag, home/visitor teams and final (or live) scores. Cursor-paginated (pass meta.cursor as cursor to continue).

get/api/sports/nba-games

Request

  • Base URL: https://2s.io
  • URL: https://2s.io/api/sports/nba-games
  • Auth: API key in header PAYMENT-SIGNATURE

Query parameters

seasoninteger

Season start year, e.g. 2024 for the 2024-25 season.

datestring

Single date, YYYY-MM-DD.

team_idinteger

NBA team id (1–30).

cursorstring

Pagination cursor from a prior meta.cursor.

per_pageinteger

Page size, 1–100 (default 25).

trial1

Try before you buy. Set to 1 for one free real call per endpoint per hour — no wallet or payment needed — to verify the endpoint before paying. Equivalent to sending the "X-2s-Trial: 1" request header. Listed only on operations that offer a trial; the others always answer 402.

Response

(unresolved $ref)

Changes

No recorded changes to this operation across all 1 revision of this API.