Device History API

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

Device History API Information

Requirement Types

Details

API

API 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'}

Methods

GET

Parameters

from_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 Information

Order by, From date, To date, Pagination, etc.