taking api url from config