API for /stats/: upd.