correct the url of api