CDN
Prewarming Residual Query
Endpoint
Request URL: cache/prefetchQuota (GET)
API Host:
cdn.api.edgenext.comAPI Version:
v2
Description
Queries the daily quota and remaining balance for file prefetch operations.
Request Parameters
The following list only includes API-specific request parameters. Common request parameters must also be included for production calls — see the Common Request Parameters page. Tokens can be obtained from customer support.
cURL Example (GET)
curl -v -X GET 'http://cdn.api.edgenext.com/v2/cache/prefetchQuota?token=xxx'
Response Parameters
The response contains the following parameters:
| Parameter | Data Type | Required | Description |
|---|---|---|---|
| url_quota | int | Yes | Daily URL prefetch quota limit |
| url_remain | int | Yes | Remaining URL prefetch quota for the day |
Response Example
JSON format:
{
"code": 0,
"data": {
"url_quota": 10000,
"url_remain": 9977
}
}
Response Headers
HTTP/1.0 200 OK
Api-Id: 1039
Content-Type: application/json; charset=utf-8
X-Ratelimit-Grad: minute
X-Ratelimit-Limit: 100
X-Ratelimit-Remaining: 99
X-Retry-After: 57
HTTP Status Codes
| Status Code | Description |
|---|---|
| 404 | The requested URL is invalid |
| 401 | Authentication error — your token may be incorrect |
| 400 | Invalid request parameters |
| 200 | Request succeeded, data returned |
| 5xx | Please contact the on-call team |
Need help? Contact our support team at support@edgenext.com.
Back to documentation home