How to make a query that allows me to obtain a history of each of my hosts in icingaweb2

Hello, I made a python script that allows me to obtain the data of each host
configured in my icingaweb2. Now, I need to make a query that allows me to obtain a history of each of these hosts but so far I have not been successful. I have looked at the documentation of the rest of icinga api but I have not caught something that may be of use to me, any idea how to do it?