Get AS rankings by botnet threat feed activity
client.radar.entities.asns.botnetThreatFeed(ASNBotnetThreatFeedParams { asn, compareDateRange, date, 6 more } query?, RequestOptionsoptions?): ASNBotnetThreatFeedResponse { ases, meta }
GET/radar/entities/asns/botnet_threat_feed
Retrieves a ranked list of Autonomous Systems based on their presence in the Cloudflare Botnet Threat Feed. Rankings can be sorted by offense count or number of bad IPs. Optionally compare to a previous date to see rank changes.
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 AS rankings by botnet threat feed activity
import Cloudflare from 'cloudflare';
const client = new Cloudflare({
apiToken: process.env['CLOUDFLARE_API_TOKEN'], // This is the default and can be omitted
});
const response = await client.radar.entities.asns.botnetThreatFeed();
console.log(response.ases);{
"result": {
"ases": [
{
"asn": 4134,
"country": "CN",
"name": "CHINANET-BACKBONE",
"rank": 1,
"rankChange": -2
}
],
"meta": {
"date": "2026-02-04",
"total": 50,
"compareDate": "2026-01-28"
}
},
"success": true
}Returns Examples
{
"result": {
"ases": [
{
"asn": 4134,
"country": "CN",
"name": "CHINANET-BACKBONE",
"rank": 1,
"rankChange": -2
}
],
"meta": {
"date": "2026-02-04",
"total": 50,
"compareDate": "2026-01-28"
}
},
"success": true
}