Get history of each host via API

Hi, regards,

I am new to icinga so i have a question to ask,
How i can get history of each host with API ?
because if i refer to this Get service/host history with API topic

The result can be too large if the data is already build up several year
So what i want is where i can get history of each host in between period

Or should i get that data from other app like elasticsearch or grafana ?

Thanks