parse data into useful stats and serve back to front-end through api