The following shows how to generate the delivery/ivm/image-urls
report with the Generate a report POST operation of the Reporting API v2. See also other available reports.
Report definition
Provides URL requests and volume data for images configured to use Image and Video Manager, by URL.
Data available for: 90 days
Required products: Image and Video Manager
Available metrics
Metric name | Description | Configuration |
---|---|---|
hits | The number of image hits received over the Akamai network. | type: LONG, filterable: true, mandatory: false |
bytes | The number of bytes of image content delivered over the Akamai network. | type: LONG, filterable: true, mandatory: false |
hits200 | The number of requests that returned successful responses. | type: LONG, filterable: true, mandatory: false |
bytes200 | The volume of data served with successful responses. | type: LONG, filterable: true, mandatory: false |
pristineBytes | The volume of traffic from the origin. | type: LONG, filterable: true, mandatory: false |
averagePristineBytes | Average size of the original pristine image at your origin. | type: LONG, filterable: true, mandatory: false |
Available dimensions
Dimension name | Description | Configuration |
---|---|---|
cpcode | Content provider (CP) code. | type: LONG, filterable: true, mandatory: false, filterType: TEXT, authorizable: true |
time1day | Datapoint timestamp for 1 day granularity. | type: LONG, filterable: true, mandatory: false, filterType: TEXT, authorizable: false |
domain | A domain of the requested image. | type: STRING, filterable: true, mandatory: false, filterType: TEXT, authorizable: false |
url | A URL of the requested image. | type: STRING, filterable: true, mandatory: false, filterType: TEXT, authorizable: false |
token | The Image and Video Manager policy token for which you want data included. | type: STRING, filterable: true, mandatory: false, filterType: TEXT, authorizable: false |
tokenWithVersion | The Image and Video Manager policy token with the version for which you want data included. | type: STRING, filterable: true, mandatory: false, filterType: TEXT, authorizable: false |
Generate a report
Use the Generate a report POST operation to execute a report.
Follow the API workflows to:
POST request sample
POST /reporting-api/v2/reports/delivery/ivm/image-urls/data?timeRange=LAST_1_WEEK
Available time ranges
For this report, you can use these predefined ranges in the timeRange
query parameter:
-
LAST_1_DAY
-
LAST_1_WEEK
-
LAST_30_DAYS
-
LAST_90_DAYS
Supported filters
This report supports filtering by dimensions and metrics.
You can filter by each dimension or metric that is labeled as filterable: true
in the report options. See how to use filters.
Request body example
{
"dimensions": [
"url",
"token",
"domain",
"tokenWithVersion"
],
"metrics": [
"hits",
"bytes",
"hits200",
"bytes200",
"pristineBytes",
"averagePristineBytes"
],
"filters": [
{
"dimensionName": "cpcode",
"operator": "IN_LIST",
"expressions": [
"909500"
]
},
{
"dimensionName": "token",
"operator": "BEGINS_WITH",
"expressions": [
"test"
]
}
],
"sortBys": [
{
"name": "hits200",
"sortOrder": "DESCENDING"
}
],
"limit": 1000
}
Default values
These default values apply to all requests, meaning they are used unless you specify otherwise.
-
Time range. Short relative range of 7 days:
- start.
Now - 7 days
- end.
Now - 1 day
- start.
-
Metrics:
hits200
bytes200
-
Dimensions:
url
-
Filters:
cpcode
. You can use all CP codes to which you are authorized in Control Center. If you don't specify any CP codes in your request, the report shows data for all your available CP codes.
-
SortBys:
hits200
,DESCENDING
Limits
Each report has some configured limits. If your request has values that exceed the limits, it results in a HTTP 400 Bad Request response. This report has the following limits:
Setting | Limit |
---|---|
Maximum number of dimensions | 4 |
Maximum time range | 90 days |
Maximum retention of historic data | 90 days |
Maximum number of values for filters using the IN_LIST operator | 10000 |
Maximum length of value for TEXT filters | 100 |
Maximum number of data points returned | 50000 |
Rate limiting
This report uses the hit-based rate limiting. The limit is 200 requests per minute.
In the asynchronous flow, you can have 3 queued POST requests at the same time.
Read more about the rate limiting.
Get report options
To get the report metadata through the API, run the Get report options operation.
GET /reporting-api/v2/reports/delivery/ivm/image-urls
The response shows the list of available metrics and dimensions, the default values, and configured limits.
{
"name": "IVM image url report data",
"status": "PUBLISHED",
"metrics": [
{
"name": "hits",
"type": "LONG",
"filterable": true,
"mandatory": false
},
{
"name": "bytes",
"type": "LONG",
"filterable": true,
"mandatory": false
},
{
"name": "hits200",
"type": "LONG",
"filterable": true,
"mandatory": false
},
{
"name": "bytes200",
"type": "LONG",
"filterable": true,
"mandatory": false
},
{
"name": "pristineBytes",
"type": "LONG",
"filterable": true,
"mandatory": false
},
{
"name": "averagePristineBytes",
"type": "LONG",
"filterable": true,
"mandatory": false
}
],
"dimensions": [
{
"name": "cpcode",
"type": "LONG",
"filterable": true,
"mandatory": false,
"filterType": "TEXT",
"authorizable": true
},
{
"name": "time1day",
"type": "LONG",
"filterable": true,
"mandatory": false,
"filterType": "TEXT",
"authorizable": false
},
{
"name": "domain",
"type": "STRING",
"filterable": true,
"mandatory": false,
"filterType": "TEXT",
"authorizable": false
},
{
"name": "url",
"type": "STRING",
"filterable": true,
"mandatory": false,
"filterType": "TEXT",
"authorizable": false
},
{
"name": "token",
"type": "STRING",
"filterable": true,
"mandatory": false,
"filterType": "TEXT",
"authorizable": false
},
{
"name": "tokenWithVersion",
"type": "STRING",
"filterable": true,
"mandatory": false,
"filterType": "TEXT",
"authorizable": false
}
],
"predefinedTimeRanges": [
"LAST_1_DAY",
"LAST_1_WEEK",
"LAST_30_DAYS",
"LAST_90_DAYS"
],
"defaults": {
"defaultTimeRange": {
"start": "now - 7 days",
"end": "now - 1 day"
},
"defaultMetrics": [
"hits200",
"bytes200"
],
"defaultDimensions": [
"url"
],
"defaultSortBys": [
{
"name": "hits200",
"sortOrder": "DESCENDING"
}
]
},
"limits": {
"maxDimensions": 4,
"maxDateRangeInDays": 90,
"maxRetentionInDays": 90,
"inListFilterMaxValues": 10000,
"textFilterMaxLength": 100,
"dataPointsLimit": 50000
},
"links": [
{
"rel": "self",
"href": "/reporting-api/v2/reports/delivery/ivm/image-urls",
"describedBy": "/reporting-api/v2/reports/schema",
"allow": [
"GET"
]
},
{
"rel": "data",
"href": "/reporting-api/v2/reports/delivery/ivm/image-urls/data",
"allow": [
"POST"
]
}
]
}