adding the stats api call