Overview
This guide is for API users migrating from GraphQL to REST. If you’re new to the Novig API, start with the Authentication guide.Authentication
All REST endpoints require authentication via Bearer token. Include your access token in every request:See the Authentication guide for instructions on obtaining an access token using your client credentials.
Environments
Migration Reference
1. GetLeaguesQuery → GET /nbx/v2/emm/event-metadata/leagues
Before (GraphQL):
2. EventsByLeague → GET /nbx/v2/emm/events
Before (GraphQL):
Response:
The REST endpoint returns a
marketIds array for each event, which can reduce follow-up queries.Visibility filtering: Unlike the GraphQL query, the REST endpoint does not automatically filter by is_visible_pregame or is_visible_live. Filter by status to get the events you need.3. MarketsByEvent → GET /nbx/v2/emm/events/getMarketsByEvent/:eventId
Before (GraphQL):
Query Parameters:
Response:
