Request URL: cache/prefetchQuota (GET)
Endpoint Domain Name:
cdn.api.baishan.com
Endpoint Version:v2
Query the cache prefetch quota limit and remaining quota of the day
Notice: Please request the API token from your account team.
curl -v -X GET 'http://cdn.api.baishan.com/v2/cache/prefetchQuota?token=xxx'
Add request parameters to the URL query strings, i.e. ?key1=value1&key2=value2.
Parameter | Data Type | Requirement | Description |
---|
| url_quota | int | Required | Today’s URL prefetch quota limit |
| url_remain | int | Required | Today’s URL prefetch quota remaining |
Json format.
{
"code": 0,
"data": {
"url_quota": 10000,
"url_remain": 9977
}
}
HTTP/1.0 200 OK
Api-Id: 1039
Content-Type: application/json; charset=utf-8
X-Ratelimit-Grad: minute //Unit of the request number limit
X-Ratelimit-Limit: 100 // 100 requests (calls) per minutes maximum
X-Ratelimit-Remaining: 99 //99 calls left for the current minute
X-Retry-After: 16 //the rate limit resets in 16 seconds
Error Code | Description |
---|---|
404 | Bad request URLs. |
401 | Authorization Error: Invalid token or lack of access. |
400 | Bad request parameters. |
200 | Success. |
5xx | Please contact your account team. |