correcting api URL