getting api url from config file