get https://{app}.{filespin}.{io}/api/v1/stats/cdn
Retrieve CDN usage stats
Response
The response JSON provides the traffic that the CDN received for the period.
{
"type": "traffic",
"period": 24,
"cdn": "cdn.filespin.io",
"data": {
"sum": 5564923752
}
}
Where
period
is the usage period (defaults to 24, for past 24 hours)cdn
is the user CDN for which data is returnedsum
is total traffic in bytes for the given period