Skip to main content

Device History API

This API provides summary security assessment data per host per date.

Requirement TypesDetails
APIAPI https://csi7\.secunia\.com/csi/api/action=api&which=device\_history&from\_date='2020\-01\-01'&to\_date='2020\-12\-15'&order\_by=\{'date':'ASC'\}
MethodsGET
Parametersfrom_date (date) YYYY-MM-DD = Api will return data from the given date to_date (date) YYYY-MM-DD = Api will return data till given date result_per_page (int) = Number of results which API will return on one page page (int) = Page which you want to display order_by = Sort the result. Columns - device_id , date , score, insecure,eol,patched,total
Response{"success":true,"error_code":0,"data":{"rows":[{"date":"2020-12-14","device_id":"20","score":"84","insecure":"31","eol":"6","patched":"191",total:"228"},{"date":"2020-12-14","device_id":"19","score":"87","insecure":"10","eol":"4","patched":"92","total":"106"},{"date":"2020-12-14","device_id":"18","score":"75","insecure":"6","eol":"16","patched":"65","total":"87"},{"date":"2020-12-14","device_id":"17","score":"81","insecure":"8","eol":"1","patched":"38","total":"47"},{"date":"2020-12-14","device_id":"16","score":"74","insecure":"19","eol":"3","patched":"62","total":"84"},{"date":"2020-12-14","device_id":"15","score":"75","insecure":"11","eol":"4","patched":"46","total":"61"}],"total":25},"has_more":"true","current_page":1}
Received InformationOrder by, From date, To date, Pagination, etc.