get last user id by api call