Automatic refreshing of api responses.