Store api_key into file for future requests