parameterize apikey and domain