ecommStats Web Analytics

Home     Services     Forums

ecommStats Web Services API Documentation

history.getTimeBuckets

Returns a list of statistics history in chunks of time.

Request Parameters

bucketType (Optional) - Can be one of: daily, weekly, monthly, yearly. Default is daily.

fromDate (Optional) - Starting date in YYYY-MM-DD format. Will return items between startDate and endDate. Default is start of current month.

toDate (Optional) - Ending date in YYYY-MM-DD format. Default is current date.

campaignId (Optional) - Will only retrieve data belonging to the specified campaign. Default is to not filter by campaign.

Method URL Sample

http://api.ecommstats.com/rest/?method=history.getTimeBuckets&username=myusername&password=mypassword&siteId=123