figuring out api calls