Search K
Appearance
Appearance
Endpoints that list resources support filtering.
When a filter URL parameter can be used, it will be documented in the endpoint's documentation.
The parameter should be a JSON object with the following (optional) keys...
Type: Object or Array
Specify fields to include in or exclude from the response.
For example:
{ fields: {location: true, timestamp: true } }
Or:
{ fields: ["location", "timestamp"] }
Type: Number
Limit the number of instances to return.
For example:
{limit: 5}
Type: String
Specify sort order: ascending or descending.
For example:
order: 'timestamp DESC'
or for multiple properties
{ order: ['propertyName <ASC|DESC>’, 'propertyName <ASC|DESC>',...] }
Type: Number
Skip the specified number of instances.
For example:
{skip: 50}
Type: Object
Specify search criteria; similar to a WHERE clause in SQL.
Where clauses look like:
{where: {property: value}}
Or, to use an operation
{where: {property: {op: value}}}
Where op can be one of the following:
logical and
{where: {and: [condition1, condition2, ...]}}
logical or
{where: {or: [condition1, condition2, ...]}}
greater than, greater than or equal
{where: {timestamp: {gt: 1510332638000 }}}
To get all points since 16:50:38 on 10 Nov 2017 (unix timestamp in milliseconds)
less than, less than or equal
True if the value is between the two specified values: greater than or equal to first value and less than or equal to second value.
{where: {timestamp: {between: [1509900638000,1510332638000] }}}
To get all points between 16:50:38 on 5 Nov 2017 and 16:50:38 on 10 Nov 2017
In / not in an array of values
For geolocations, return the closest points, sorted in order of distance. Use with limit to return the n closest points.
not equal to