Formatting URL to obtain the desired data.