CDN
Country and Region List
Endpoint
Request URL: base/info/area (GET)
API Host:
cdn.api.edgenext.comAPI Version:
v2
Description
Retrieves the list of countries and special regions. The country/region code parameter returned by this API can be used as the query_area parameter in per-domain bandwidth and traffic query APIs.
Note:
Please contact your project manager to request access.
Request Parameters
Common parameters: Tokens can be obtained from the on-call team.
GET Parameters
Parameters are appended to the URL query string, e.g. ?key1=value1&key2=value2.
Example
curl -X GET "https://cdn.api.edgenext.com/v2/base/info/area?token=xxx"
Response Example
JSON format:
{
"code": 0,
"data": [
{
"id": "2",
"name": "United Arab Emirates",
"ename": "United Arab Emirates",
"code": "ae"
},
{
"id": "9",
"name": "Laos",
"ename": "Laos",
"code": "la"
},
...
]
}
Response Headers
HTTP/1.0 200 OK
Api-Id: 1716515003
Content-Type: application/json; charset=utf-8
X-Ratelimit-Grad: minute // Rate limit granularity (minute/hour/day)
X-Ratelimit-Limit: 300 // Requests per minute limit
X-Ratelimit-Remaining: 300 // Remaining requests this minute
X-Retry-After: 26 // Seconds until the current rate limit window resets
HTTP Status Codes
| Status Code | Description |
|---|---|
| 404 | The requested URL is invalid |
| 401 | Authentication error — your token may be incorrect or lacks permission |
| 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