statistic and api