automagically fetch API key