uses proper url to get json