Get Uptime Data of Hosts in Hostgroup via API

Hi,

we want to somehow get the Uptime in % of all the hosts in a hostgroup to process it further with a script.
We havent found a way to do it via the REST-API. The only way we can get the data is by exporting the view we get in the UI with the output_format=csv_export. Unfortunately the values dont match with the actual values of the UI, most of them just show 100% Uptime which is not correct.

I assume that the filters of the view are not parsed in the export, only when exporting via the UI. I need the data for the last 365 days and not just the current status.

Does anyone have an idea how we can get the correct data?

Thanks for your help,
Benedikt :slight_smile: