set api url through query string