setting API call to use ENV var