Read API key from environment if not given in arguments