API and code stats update