correcting api url