Billing:

With this module it is possible to export the raw traffic data that is stored in the mysql database.

bill
The bill id of the bill you want to grab the traffic information from
type
Type of data collection (traffic|history|list)
group
Group traffic collection (hour|day|week|month)
from
From timestamp, the start date from where you want to start the data collection
to
To timestamp, the end data from where you want to stop the data collection
      Explanation : Collect the traffic data from yesterday until now
      Example 1   : http://162.55.190.80/api.php?username=demo&password=demo&module=billing&bill=1&from=&to=&type=traffic
      Result      : [JSON DATA]
      Explanation : Collect the traffic data from last month until last week grouped per day
      Example 2   : http://162.55.190.80/api.php?username=demo&password=demo&module=billing&bill=1&from=&to=&type=traffic&group=day
      Result      : [JSON DATA]
      Explanation : Collect the historical data
      Example 3   : http://162.55.190.80/api.php?username=demo&password=demo&module=billing&bill=1&type=historical
      Result      : [JSON DATA]
      Explanation : Collect the billing list
      Example 4   : http://162.55.190.80/api.php?username=demo&password=demo&module=billing&type=list
      Result      : [JSON DATA]