first api call working