All reports available can also be generated in XML format. This is useful if you want to integrate information from Logaholic into other web-based applications.
For example, to get the XML version of the “Visitors per Day” report, a simple request could look like this:
http://domain.com/logaholic/reports.php?conf=profilename&minimumDate=03 Dec 2012&maximumDate=04 Dec2012&displaymode=table&trafficsource=0&labels=_VISITORS_PER_DAY
There are many more variables you can add to change the content that is returned, but the easiest way to recreate the url is:
Version 2.x request the report you want from the Logaholic user interface, then copy the url adding “&xml=1” to the end.
Version 3.x request the report you want from the Logaholic user interface, run the report, click the print icon in top right corner of the displayed report, the print page shows you the url, at the end of the url replace print for xml.
For example, the data in the XML file exported from the “Visitors Per Day” report looks something like this:
<dataset id="Visitors per Day" > <entry date='01-Nov-2010 Mon' visitors='397' pageviews='1931' pages_per_user='4.8640' /> <entry date='02-Nov-2010 Tue' visitors='387' pageviews='1769' pages_per_user='4.5711' /> <entry date='03-Nov-2010 Wed' visitors='390' pageviews='1679' pages_per_user='4.3051' /> </dataset>
When you have password protected Logaholic login and password should also be submitted through the url.