## Get AS rankings by botnet threat feed activity `client.radar.entities.asns.botnetThreatFeed(ASNBotnetThreatFeedParamsquery?, RequestOptionsoptions?): ASNBotnetThreatFeedResponse` **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. ### Parameters - `query: ASNBotnetThreatFeedParams` - `asn?: Array` Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356. - `compareDateRange?: string` Relative date range for rank change comparison (e.g., "1d", "7d", "30d"). - `date?: string` The date to retrieve (YYYY-MM-DD format). If not specified, returns the most recent available data. Note: This is the date the report was generated. The report is generated from information collected from the previous day (e.g., the 2026-02-23 entry contains data from 2026-02-22). - `format?: "JSON" | "CSV"` Format in which results will be returned. - `"JSON"` - `"CSV"` - `limit?: number` Limits the number of objects returned in the response. - `location?: string` Filters results by location. Specify an alpha-2 location code. - `metric?: "OFFENSE_COUNT" | "NUMBER_OF_OFFENDING_IPS"` Metric to rank ASNs by. - `"OFFENSE_COUNT"` - `"NUMBER_OF_OFFENDING_IPS"` - `offset?: number` Skips the specified number of objects before fetching the results. - `sortOrder?: "ASC" | "DESC"` Sort order. - `"ASC"` - `"DESC"` ### Returns - `ASNBotnetThreatFeedResponse` - `ases: Array` - `asn: number` - `country: string` - `name: string` - `rank: number` - `rankChange?: number` - `meta: Meta` - `date: string` - `total: number` - `compareDate?: string` ### Example ```node 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); ``` #### Response ```json { "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 } ```