Trying to connect with api.