figuring out api call