Fixed api to have correct url