Get domain rank details
GET/radar/ranking/domain/{domain}
Retrieves domain rank details. Cloudflare provides an ordered rank for the top 100 domains, but for the remainder it only provides ranking buckets like top 200 thousand, top one million, etc.. These are available through Radar datasets endpoints.
Security
API Token
The preferred authorization scheme for interacting with the Cloudflare API. Create a token.
Example:
API Email + API Key
The previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.
Example:
The previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.
Example:
Accepted Permissions (at least one required)
Get domain rank details
curl https://api.cloudflare.com/client/v4/radar/ranking/domain/$DOMAIN \
-H "Authorization: Bearer $CLOUDFLARE_API_TOKEN"{
"result": {
"details_0": {
"categories": [
{
"id": 81,
"name": "Content Servers",
"superCategoryId": 26
}
],
"bucket": "2000",
"rank": 3,
"top_locations": [
{
"locationCode": "US",
"locationName": "United States",
"rank": 1
}
]
},
"meta": {
"dateRange": [
{
"endTime": "2022-09-17T10:22:57.555Z",
"startTime": "2022-09-16T10:22:57.555Z"
}
]
}
},
"success": true
}Returns Examples
{
"result": {
"details_0": {
"categories": [
{
"id": 81,
"name": "Content Servers",
"superCategoryId": 26
}
],
"bucket": "2000",
"rank": 3,
"top_locations": [
{
"locationCode": "US",
"locationName": "United States",
"rank": 1
}
]
},
"meta": {
"dateRange": [
{
"endTime": "2022-09-17T10:22:57.555Z",
"startTime": "2022-09-16T10:22:57.555Z"
}
]
}
},
"success": true
}