Field selection
The API provides a generic system to select the fields of the returned items.
To select specific fields, simply add the fields=list_of_fields query parameter to the url, where list_of_fields is a comma separated list of the fields to return. If not set and no particular default value is specified, all the available fields will be returned.
Simple field selection example
In this example we get only the event_id and the total_bets of the popular events
$ curl --request GET \\
--url 'https://api.vaix.ai/api/sports/events/popular?fields=event_id,total_bets'Not all endpoints support field selection. If field selection is available for an endpoint, then the available fields to select are indicated in the documentation of that endpoint.
Was this helpful?