Trendlog api

This is trendlog api interface.