get https://api.vergesense.com/spaces/detections
Fetch all detections for spaces on a given day.
Response conforms to the JSON API spec https://jsonapi.org/.
Responses are limited to 10,000
detections after which pagination will take place.
Example Requests
Description | Query |
---|---|
Query for 1 day of data. | https://api.vergesense.com/spaces/detections?date=2022-08-02 |
Query for 1 hour of data. | https://api.vergesense.com/spaces/detections?filter[timestamp][gte]=2022-08-02T16:00:00Z&filter[timestamp][lt]=2022-08-02T17:00:00Z |
Query for 1 hour of data for a single space | https://api.vergesense.com/spaces/detections?space_id=1234&filter[timestamp][gte]=2022-08-02T16:00:00Z&filter[timestamp][lt]=2022-08-02T17:00:00Z |
Response
Space Detection Model
Field | Description | Data Type |
---|---|---|
id | Unique identifier for the space detection. | String |
type | space_detection | String |
attributes.space_id | The space (building/floor/space) that the detection was reported for | Integer |
attributes.timestamp | Timestamp of the detection (UTC) | String|null |
attributes.count | Count of people detected | Integer |
attributes.signs_of_life | Whether or not "signs of life" were detected | Integer|null |
relationships.building | Only present if the detection was reported for a building. Details included in the included top level response key. | Object|null |
relationships.floor | Only present if the detection was reported for a floor. Details included in the included top level response key. | Object|null |
relationships.space | Only present if the detection was reported for a space. Details included in the included top level response key. | Object|null |