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/objects/popular | |
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
// example of the 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
200 – Sizes of cached and non-cached served content.
// example of the response
{
"1599436800": {
"sizeCached": 443741901,
"sizeNonCached": 1004.1212242332124
}
}
404 – Could not get statistics by type without grouping.
Get bandwidth 95th percentile
Posthttps://api.cdn77.com/v3/stats/bandwidth/percentile
Request bodyrequired
// example of the 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
200 – Bandwidth 95th percentile returned.
// example of the response
{
"percentile": 12346
}
404 – Could not get Statistics. For specific error message check the request response.
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
// example of the 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
200 – Statistics grouped by resource returned.
// example of the response
{
"1234567890": {
"1599436800": {
"sizeCached": 443741901,
"sizeNonCached": 1004.1212242332124
}
}
}
404 – Could not get statistics grouped by resource.
Get sum per CDN Resource
Posthttps://api.cdn77.com/v3/stats/cdns/sum/{type}
Request parameters
Request bodyrequired
// example of the 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
200 – Statistics sum per CDN Resource returned.
// example of the response
{
"1234567890": {
"sum": 0
}
}
404 – Could not get statistics sum per CDN Resource.
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
// example of the 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
200 – Statistics by type grouped by datacenters returned.
// example of the response
{
"NA": {
"los angeles": {
"1234567890": {
"sizeCached": 443741901,
"sizeNonCached": 1004.1212242332124
}
}
}
}
404 – Could not get Statistics. For specific error message check the request response.
Get sum per data center
Posthttps://api.cdn77.com/v3/stats/datacenters/sum/{type}
Request parameters
Request bodyrequired
// example of the 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
200 – Statistics sum per datacenter returned.
// example of the response
{
"NA": {
"los angeles": {
"sum": 0
}
}
}
404 – Could not get statistics sum per datacenter.
Get popular objects report
Posthttps://api.cdn77.com/v3/stats/objects/popular
Request bodyrequired
// example of the request body
{
"cdn_ids": [
0
],
"from": 1625097600,
"to": 1625097600
}
UNIX Timestamp
UNIX Timestamp
Responses
200 – Statistic returned.
// example of the response
[
{
"category": "image/png",
"cdn_id": 1234567890,
"bytes_miss": 25234,
"bytes_total": 32112312,
"hit": 32087078,
"hit_ratio": 0.990913,
"index": 1,
"miss": 23,
"requests": 31873,
"status_2xx": 31560,
"status_3xx": 0,
"status_4xx": 312,
"status_5xx": 1,
"url": "https://cdn.example.com/image.png"
}
]
Get sum
Posthttps://api.cdn77.com/v3/stats/sum/{type}
Request parameters
Request bodyrequired
// example of the 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
200 – Statistics sum returned.
// example of the response
{
"sum": 0
}
404 – Could not get statistics sum.