Separated each api call to a file