Add api url and fix old id