add script to export all the IPS of a day, update API accordingly