Skip to navigation

Get behaviors

View as Markdown

Retrieve behavior records from the database using optional sensor, place, object, time-range, query-string, and result-limit filters.

Query parameters

sensorIdstringOptionalformat: "^.{0,10000}$"<=10000 characters
This parameter is incompatible with place. Only one of them can exist in the query.
placestringOptionalformat: "^.{0,10000}$"<=10000 characters
This parameter is incompatible with sensorId. Only one of them can exist in the query.
objectIdstringOptionalformat: "^.{0,10000}$"<=10000 characters
This parameter is incompatible with either 'place', 'queryString' or 'maxResultSize'. It also requires 'sensorId', 'fromTimestamp' and 'toTimestamp' in the query.
objectTypestringOptionalformat: "^.{0,10000}$"<=10000 characters
If this parameter is present in the query, then 'objectId' should also be present in the query.
fromTimestampdatetimeOptional
If this parameter is present in the query, then 'toTimestamp' should also be present in the query.
toTimestampdatetimeOptional
If this parameter is present in the query, then 'fromTimestamp' should also be present in the query.
queryStringstringOptionalformat: "^.{0,10000}$"<=10000 characters
'queryString' should follow lucene syntax.
maxResultSizelongOptional1-10000Defaults to 25

Response headers

Access-Control-Allow-OriginstringOptionalformat: "^.{0,10000}$"<=10000 characters

CORS header to allow cross-origin requests.

X-RateLimit-LimitintegerOptional
The maximum number of requests allowed in the current time period.
X-RateLimit-RemainingintegerOptional
The number of requests remaining in the current time period.
X-RateLimit-ResetintegerOptional

The time when the rate limit will be reset (Unix timestamp).

Response

Successful Operation.
behaviorslist of objects
timestampdatetime
Idstringformat: "^.{0,10000}$"<=10000 characters
idstringformat: "^.{0,10000}$"<=10000 characters
timeIntervalfloat
enddatetime
lengthlong-10000-10000
speedOverTimelist of doubles
sensorobject
placeobject
objectobject
directionenum
speeddouble
distancedouble
bearingdouble
videoPathstringformat: "^.{0,10000}$"<=10000 characters
locationsobjectOptional
smoothLocationsobjectOptional
eventobjectOptional
edgeslist of stringsOptional
analyticsModuleobjectOptional

Errors

400
Bad Request Error
404
Not Found Error
422
Unprocessable Entity Error
500
Internal Server Error