Skip to main content
GET

Recipes

1

1. Set a search operator for a field

Apply a search operator to the query. Here, the near operator is applied to a user_location field.
2

2. As a result, the API returns records filtered by the specified location.

All records with the 11.00,45.40;16800 value for the user_location field are turned.
1

1. Set a search operator for a field

Apply a search operator to the query. Here, the lt operator is applied to a score_value custom field.
2

2. As a result, the API returns records filtered upon the request.

All records with the score_value less than 1000 are returned.
1

1. Set an aggregation operator for a field to calculate an average for all numeric values

Apply an aggregation operator for a field to calculate an average for all numeric values.Here, the calc aggregation operator is applied to the score_value and set to the avg value.
2

2. Set an aggregation operator for a field to group records

Apply an aggregation operator to a field to group records. Here, a group_by operator is applied to a game_mode_name field.
3

3. As a result, the API returns records grouped according to the request.

The records are grouped by the gamed_mode_name field with an average calculated for the score_value field.
1

1. Use 'Authorization' header to pass API key

2

2. Set a search operator for a field

Apply a search operator to the query. Here, the near operator is applied to a user_location field.
3

3. As a result, the API returns records filtered by the specified location.

All records with the 11.00,45.40;16800 value for the user_location field are turned.
1

1. Use 'Authorization' header to pass API key

2

2. Set a search operator for a field

Apply a search operator to the query. Here, the lt operator is applied to a score_value custom field.
3

3. As a result, the API returns records filtered upon the request.

All records with the score_value less than 1000 are returned.
1

1. Use 'Authorization' header to pass API key

2

2. Set an aggregation operator for a field to calculate an average for all numeric values

Apply an aggregation operator for a field to calculate an average for all numeric values.Here, the calc aggregation operator is applied to the score_value and set to the avg value.
3

3. Set an aggregation operator for a field to group records

Apply an aggregation operator to a field to group records. Here, a group_by operator is applied to a game_mode_name field.
4

4. As a result, the API returns records grouped according to the request.

The records are grouped by the gamed_mode_name field with an average calculated for the score_value field.
If you are sorting records by time, use the _id field. It is indexed and will be much faster than the created_at field.
Combinations of operators are allowed. For example:
score_value[gt]=100&score_value[lt]=1000&game_mode_name[in]=deathmatch,ctf
Search Operators The request can contain all, some or none of the next search operators: Sort Operators Next sorting operators are allowed: Aggregation Operators

Path Parameters

class_name
string
required
Custom object class name.

Query Parameters

{custom_field_N}
string
Search records with the field that contains the specified value. Can be many 1..N.
{custom_field_N}[{search_operator}]
string
Search a record with the field that contains a value according to the specified value and operator.
limit
integer
default:"100"
Limit search results to N records. Max(Cloud/Enterprise): 100/1000. Useful for pagination.
skip
integer
default:"0"
Skip N records in search results. Useful for pagination.
count
integer
Count search results. Response will contain only count of records found.
sort_desc
string
Search results will be sorted by specified field in descending order.
sort_asc
string
Search results will be sorted by specified field in ascending order.
output[include]
string
The output parameter takes the form of a record with a list of fields for inclusion or exclusion from the result set. output[include] specifies the fields to include. The _id field is, by default, included in the result set. To exclude the _id field from the result set, you need to specify the exclusion of the _id field in the output[exclude] value.
output[exclude]
string
The output parameter takes the form of a record with a list of fields for inclusion or exclusion from the result set. output[exclude] specifies the fields to exclude. The _id field is, by default, included in the result set. To exclude the _id field from the result set, you need to specify the exclusion of the _id field in the output[exclude] value.

Headers

QB-Token
string
required
A user or application session token. See Authentication page to learn more about session tokens. Must be used either QB-Token or Authorization.
Authorization
string
default:"ApiKey {your_api_key}"
API key from Dashboard. Expected format: ApiKey {your_api_key}. Must be used either QB-Token or Authorization.
On-Behalf-Of
string
User ID. The user ID of the user on whose behalf the request is being made.

Response

A successful response
class_name
string
skip
integer
limit
integer
items
array of objects