adding an api call