Call correct api