Retrieve CDN Stats
GET/api/v1/stats/cdn
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
periodis the usage period (defaults to 24, for past 24 hours)cdnis the user CDN for which data is returnedsumis total traffic in bytes for the given period
Request
Responses
- 200
- 401
- 403
- 500
Successful operation
Unauthorized - Invalid or missing authentication
Forbidden - Insufficient permissions
Internal server error