use api pagination for stats
fix test
fix typo
Merge pull request #38 from M6Web/feature-stats-pagination

use api pagination for stats