Axis P8815-2 API

AXIS P8815-2 3D People Counter
API specification
List download statistics
Returns statistics stored in the camera in JSON or plain text comma separated format (CSV)
Format:
Method:
GET
Request (CSV)
http://<servername>/a3dpc/api/export/csv?start=<date>&end=<date>&resolution=<resolut ion>
Request (JSON)
http://<servername>/a3dpc/api/export/json?start=<date>&end=<date>&resolution=<resolu tion>
Request parameter descriptions
Field
Parameters
date
YYYYMMDD (start-of-day)
yesterday (start-of-day)
today (start-of-day)
now (current time)
resolution
minute
hour
day
Return
on success: 200 OK
Returns statistics stored in the camera in JSON or plain text comma separated format (CSV). The first line of the CSV file contains a description of each element, and the following lines contain the corresponding data for the chosen time interval and resolution: start, end, in,
out
on error: 400 Bad Request
"error": {
"message": "Validation failed",
"errors": [
{
"field": <field>
"reason": "<reason>"
}
]
}
}
Examples
Retrieve statistics in JSON format from the previous day in hourly intervals
http://<servername>/a3dpc/api/export/json?start=yesterday&end=today&resolution=hour
Sample output
{
"data": [
{
"start": "2020-06-23 00:00:00",
"end": "2020-06-23 01:00:00",
"in": 0,
"out": 0
}
]
}
Retrieve statistics in CSV format for the current day in minute intervals
http://<servername>/a3dpc/api/export/csv?start=today&end=now&resolution=minute
Sample output (first 10 lines)
start,end,in,out
2020-09-23 00:00:00,2020-09-23 00:01:00,0,0
2020-09-23 00:01:00,2020-09-23 00:02:00,0,0
2020-09-23 00:02:00,2020-09-23 00:03:00,0,0
2020-09-23 00:03:00,2020-09-23 00:04:00,0,0
2020-09-23 00:04:00,2020-09-23 00:05:00,0,0
2020-09-23 00:05:00,2020-09-23 00:06:00,0,0
2020-09-23 00:06:00,2020-09-23 00:07:00,0,0
2020-09-23 00:07:00,2020-09-23 00:08:00,0,0
2020-09-23 00:08:00,2020-09-23 00:09:00,0,0
Retrieve statistics in CSV format for specific date range between 2020-08-01 until today in daily intervals
http://<servername>/a3dpc/api/export/csv?start=20200801&end=today&resolution=day
Loading...
+ 4 hidden pages