WaveCDN API
Fetch setup traffic
Fetch the traffic of a setup specified by id in a given time period. The traffic of both dates are included.
Request
GET https://api.wavecdn.com/v3/setup/{id}/traffic/{date_from}/{date_to}
id={..}
The id of the setup for which the traffic should be fetched.
date_from={..}
The date indicating the start of the period for which the traffic should be fetched. The format should be YYYY-mm-dd, for example 2024-01-01.
date_to={..}
The date indicating the end of the period for which the traffic should be fetched. The format should be YYYY-mm-dd, for example 2024-01-31.
Response
On success, you get the status code 200 and the traffic in bytes of the setup in the given time period. See the following example which shows 1 GB of traffic in the first half of November 2024.
<?xml version="1.0" encoding="UTF-8"?> <setup_traffic> <setup_id>100</setup_id> <date_from>2024-11-01</date_from> <date_to>2024-11-15</date_to> <traffic>1073741824</traffic> </setup_traffic>
If a setup with the given id could not be found, the status code 404 is returned.