Added API for accessing trends data.