API Call working with totals