Updated API to support statistics retrieval based on date ranges.