Get Nagios Status from other webpage


I would like to create a small script that I can run on a website (that is not located on the Nagios server) that would pull the status of the nagios server, giving me the number of host and service outages. so i can see a quick status. Does anyone know if this can be done? Thanks.