make a proper request to the api