Basketball API. The whole game in data.
Neurokeff Basketball API: sport_id=4, fixtures, live scores, periods, lineups and team and player metrics. Explore documented endpoints and integration steps.
Games and quarter scores
Select basketball with sport_id=4 in V2 lists. Use /api/v2/games/scoreboard for score and clock state, and games/periods for quarters and additional periods. Retain the returned period code and number to distinguish regulation from overtime. A game result and one quarter's score are separate values.
Lineups and individual metrics
Check has_lineups in lists and fetch detail from games/lineups. Use games/players for participants and games/statistics for team metrics. Preserve metric types and units: percentages, attempts and playing time require different aggregation rules. Join participant profiles to /api/v1/players by id.
From a game to the season
Fetch standings separately through /api/v1/leagues/standings. Define league_id and season for a season view; a team name is not an identifier. Keep missing metrics empty while a record is incomplete and update them when data arrives.
Your first request
Obtain an active account token and set NEUROKEFF_API_KEY in your terminal environment. This command calls the documented API; your account determines access and returned data.
curl --fail-with-body --silent --show-error --get "https://dataonlineneurokeff.com/api/v2/live" \
-H "Authorization: Token $NEUROKEFF_API_KEY" \
-H "Accept: application/json" \
--data-urlencode "sport_id=4" \
--data-urlencode "lang=en" \
--data-urlencode "page=1" \
--data-urlencode "page_size=20"| Method | API path |
|---|---|
| GET | /api/v2/live |
| GET | /api/v2/games/scoreboard |
| GET | /api/v2/games/periods |
| GET | /api/v2/games/lineups |
| GET | /api/v2/games/players |
| GET | /api/v2/games/statistics |

