call recommend api when is needed