REST api created with stats page