Users

End users related endpoints

Get users with similar activity as the given user

get
/api/sports/users/similar

Returns a list of users with similar history activity to the given user.

Similar example

In this example we get 10 users with similar activity to the user with id 100984.

$ curl --request GET \
--url 'http://localhost:4001/api/sports/users/similar?user_id=100984&operator=bet25&count=10'
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
operatorstringOptional

The operator to use for querying data. Notice that this is applied only if your account has access to multiple operators. In a different case the assigned operator to your account is used and the value of this field is ignored.

bookmaker_idintegerOptional

The bookmaker id to use for querying data. Notice that this is applied only if your account has access to multiple operators. In a different case the assigned operator to your account is used and the value of this field is ignored. Note that this parameter is used together with the sub_bookmaker_id parameter.

sub_bookmaker_idintegerOptional

The sub-bookmaker id to use for querying data. Notice that this is applied only if your account has access to multiple operators. In a different case the assigned operator to your account is used and the value of this field is ignored. Note that this parameter is used together with the bookmaker_id parameter.

user_idstringRequired

The user to get similar users for.

countinteger · min: 1 · max: 100Optional

How many similar users to return.

Default: 10
Header parameters
x-vaix-client-idstringRequired

Custom client header, the value should be the name of the group the user belongs to

x-vaix-authentication-methodstringOptional

Authentication method to be used, supported values [vaix, iam]. Defaults to vaix

Responses
200

OK

application/json
get
/api/sports/users/similar
GET /api/sports/users/similar?user_id=text HTTP/1.1
Host: api.vaix.ai
Authorization: Bearer YOUR_SECRET_TOKEN
x-vaix-client-id: text
Accept: */*
{
  "data": {
    "age": 1,
    "apds": 1,
    "country": "text",
    "current_frequency_segment": "text",
    "current_value_segment": "text",
    "first_bet_at": "text",
    "first_wager_at": "text",
    "gender": "text",
    "ggr": "text",
    "product": "text",
    "registration_date": "text",
    "state": "text",
    "total_prize": "text",
    "total_stake": "text",
    "user_id": "text"
  },
  "status": "success"
}

Was this helpful?