api gettting data from environment var