| Home | Services | Forums |
Overview
The ecommStats Web Services API exposes a set of methods that allow outside programs to access data in the ecommStats databases.
The methods are based on REST design principles so making a request is simply a URL string using http://api.ecommstats.com/rest/? as the endpoint with parameters, for example:
http://api.ecommstats.com/rest/?method=history.getTimeBuckets&username=myusername&
password=mypassword&siteId=123The method parameter specifies what action or resource you are attempting to access as specified in the Methods list and is required for every call.
The response is returned in an xml format, for example:
<?xml version="1.0" encoding="utf-8" ?> <response> <list> <TimeBucket> <month>10</month> <year>2004</year> <day>3</day> <hour>0</hour> <campaignClicks>184</campaignClicks> <week>0</week> <visitors>365</visitors> <pageviews>3954</pageviews> <orders>7</orders> <revenue>736.4</revenue> </TimeBucket> ...