got api call to work