getUrl api setup