1. Obtain access and a token

Choose your sports and required data sections, then arrange access with the team. An account with active access can obtain a token through POST /api/token/ using username and password. Subsequent requests send Authorization: Token <token>. Keep both credentials on the server, outside the repository and client code.

2. Select a sport id and competition

The documentation uses tennis=1, football=2, hockey=3, basketball=4, volleyball=5, handball=6, baseball=7 and mma=8. Send sport_id to /api/v1/leagues and store the selected league's id. Do not substitute a provider's external league_id for the Neurokeff database id. Formula 1 has separate /api/v1/formula-1/* resources.

3. Retrieve a V2 match list

Use /api/v2/prematch with date for a schedule, /api/v2/live for ongoing games and /api/v2/finished for results. V2 always paginates: start with page=1 and page_size=20, save each page and follow the response. Inspect time_status in finished data because cancellations, postponements and interruptions appear there too.

4. Add details for the games you need

Take game_id from the list response and call /api/v2/games/data with include, or individual games/events, games/statistics, games/lineups and games/scoreboard endpoints. Check available before reading items or snapshot. Missing data does not mean a zero score or statistic. Use lang=ru for Russian, lang=en for English and lang=ru,en for both.

5. Make updates resilient

Set a timeout, limit retry attempts and increase retry intervals. A 400, 401 or 403 response requires correcting the request or access rather than retrying forever. Follow Retry-After after 429 when present. For WebSocket, apply the snapshot before changes and rebuild state from a fresh snapshot and REST after reconnecting.

6. Test realistic launch scenarios

Test an empty fixture day, a sport outside your access, missing statistics, a rescheduled game and a disconnected client. Confirm that a changed start time does not duplicate a fixture and that cached values are not presented as fresh live data. Log the path, sanitised parameters, HTTP status and request time for diagnosis.