Get a report for your account’ s traffic by running the following command:
curl - X GET https://api.geosurf.io/info/bw_calc/report/${start_date}/${end_date}/${metric}/${EMAIL}/${PASS}
Meta description will include the start date and end date alongside with the selected metric and number of rows.
Each property includes the" upload", "download", "total" traffic for each of your account’ s IPs within a 10 minutes timeframe.
Expected response:
[
{
"start_date": "2017 - 12 - 01 10",
"end_date": "2017 - 12 - 28 23",
"metric": "MB",
"timestamp_delta": "10 MINUTES",
"total_rows": 206,
"max_rows": 5000
},
[
{
"upload": 0.003,
"download": 0.075,
"total": 0.078,
"ts": "2017 - 12 - 27 13: 25: 29",
"ip": "209.126 .107 .56"
},
{
"
upload": 0.003,
"download": 0.075,
"total": 0.078,
"ts": "2017 - 12 - 27 13: 26: 12",
"ip": "2012.123 .12 .1"
},
]
]
Please make sure to use the following formats:
Metric format– GB / MB
Date format - YYYY - MM - DD HH
*Max rows allowed - 5000*