Statistics
Name | Method | Path |
---|---|---|
post | /v3/stats/{type} | |
post | /v3/stats/bandwidth/percentile | |
post | /v3/stats/cdns/{type} | |
post | /v3/stats/cdns/sum/{type} | |
post | /v3/stats/datacenters/{type} | |
post | /v3/stats/datacenters/sum/{type} | |
post | /v3/stats/sum/{type} |
Get stats
posthttps://api.cdn77.com/v3/stats/{type}
Request parameters
Available values: bandwidth,costs,headers,headers-detail,hit-miss,hit-miss-detail,traffic,traffic-detail,traffic-miss,
Request bodyrequired
// request body
{
"cdn_ids": [
1234567890
],
"location_ids": [
"prague"
],
"aggregation": "7-d",
"from": 1625097600,
"to": 1625097600
}
List of CDN Resource IDs. Use if you want statistics only for specific CDN Resources. More information in our CDN Resources API documentation.
List of Datacenters. Use if you want statistics only for specific Datacenters. Example values: "chicago", "los angeles"
Accepts values in minutes, hours, days or months in the following formatting: 5-m, 1-h, 1-d, 1-month (minutes must be divisible by five)
UNIX Timestamp
UNIX Timestamp
Responses
// response
{
"1599436800": {
"sizeCached": 443741901,
"sizeNonCached": 1004.1212242332124
}
}
Get bandwidth 95th percentile
posthttps://api.cdn77.com/v3/stats/bandwidth/percentile
Request bodyrequired
// request body
{
"cdn_ids": [
1234567890
],
"location_ids": [
"prague"
],
"from": 1625097600,
"to": 1625097600
}
List of CDN Resource IDs. Use if you want statistics only for specific CDN Resources. More information in our CDN Resources API documentation.
List of Datacenters. Use if you want statistics only for specific Datacenters. Example values: "chicago", "los angeles"
UNIX Timestamp
UNIX Timestamp
Responses
// response
{
"percentile": 12346
}
Get stats per CDN Resource
posthttps://api.cdn77.com/v3/stats/cdns/{type}
Request parameters
Available values: bandwidth,costs,headers,headers-detail,hit-miss,hit-miss-detail,traffic,traffic-detail,traffic-miss,
Request bodyrequired
// request body
{
"cdn_ids": [
1234567890
],
"location_ids": [
"prague"
],
"aggregation": "7-d",
"from": 1625097600,
"to": 1625097600
}
List of CDN Resource IDs. Use if you want statistics only for specific CDN Resources. More information in our CDN Resources API documentation.
List of Datacenters. Use if you want statistics only for specific Datacenters. Example values: "chicago", "los angeles"
Accepts values in minutes, hours, days or months in the following formatting: 5-m, 1-h, 1-d, 1-month (minutes must be divisible by five)
UNIX Timestamp
UNIX Timestamp
Responses
// response
{
"1234567890": {
"1599436800": {
"sizeCached": 443741901,
"sizeNonCached": 1004.1212242332124
}
}
}
Get sum per CDN Resource
posthttps://api.cdn77.com/v3/stats/cdns/sum/{type}
Request parameters
Available values: headers,traffic,hit-miss,costs,
Request bodyrequired
// request body
{
"cdn_ids": [
1234567890
],
"location_ids": [
"prague"
],
"from": 1625097600,
"to": 1625097600
}
List of CDN Resource IDs. Use if you want statistics only for specific CDN Resources. More information in our CDN Resources API documentation.
List of Datacenters. Use if you want statistics only for specific Datacenters. Example values: "chicago", "los angeles"
UNIX Timestamp
UNIX Timestamp
Responses
// response
{
"1234567890": {
"sum": 0
}
}
Get stats per data center
posthttps://api.cdn77.com/v3/stats/datacenters/{type}
Request parameters
Available values: bandwidth,costs,headers,headers-detail,hit-miss,hit-miss-detail,traffic,traffic-detail,traffic-miss,
Request bodyrequired
// request body
{
"cdn_ids": [
1234567890
],
"location_ids": [
"prague"
],
"aggregation": "7-d",
"from": 1625097600,
"to": 1625097600
}
List of CDN Resource IDs. Use if you want statistics only for specific CDN Resources. More information in our CDN Resources API documentation.
List of Datacenters. Use if you want statistics only for specific Datacenters. Example values: "chicago", "los angeles"
Accepts values in minutes, hours, days or months in the following formatting: 5-m, 1-h, 1-d, 1-month (minutes must be divisible by five)
UNIX Timestamp
UNIX Timestamp
Responses
// response
{
"NA": {
"los angeles": {
"1234567890": {
"sizeCached": 443741901,
"sizeNonCached": 1004.1212242332124
}
}
}
}
Get sum per data center
posthttps://api.cdn77.com/v3/stats/datacenters/sum/{type}
Request parameters
Available values: headers,traffic,hit-miss,costs,
Request bodyrequired
// request body
{
"cdn_ids": [
1234567890
],
"location_ids": [
"prague"
],
"from": 1625097600,
"to": 1625097600
}
List of CDN Resource IDs. Use if you want statistics only for specific CDN Resources. More information in our CDN Resources API documentation.
List of Datacenters. Use if you want statistics only for specific Datacenters. Example values: "chicago", "los angeles"
UNIX Timestamp
UNIX Timestamp
Responses
// response
{
"NA": {
"los angeles": {
"sum": 0
}
}
}
Get sum
posthttps://api.cdn77.com/v3/stats/sum/{type}
Request parameters
Available values: headers,traffic,hit-miss,costs,
Request bodyrequired
// request body
{
"cdn_ids": [
1234567890
],
"location_ids": [
"prague"
],
"from": 1625097600,
"to": 1625097600
}
List of CDN Resource IDs. Use if you want statistics only for specific CDN Resources. More information in our CDN Resources API documentation.
List of Datacenters. Use if you want statistics only for specific Datacenters. Example values: "chicago", "los angeles"
UNIX Timestamp
UNIX Timestamp
Responses
// response
{
"sum": 0
}