fix url for api call