Skip to content
Start here

Get top ASes by announced IP space

client.radar.bgp.ips.top.ases(TopAsesParams { country, date, format, 2 more } query?, RequestOptionsoptions?): TopAsesResponse { anchorTs, asns, country, metric }
GET/radar/bgp/ips/top/ases

Returns the top-N autonomous systems by announced IP space at the nearest 8-hour RIB boundary at or before the requested date. The snapped boundary is returned as anchor_ts.

Security
API Token

The preferred authorization scheme for interacting with the Cloudflare API. Create a token.

Example:Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY
API Email + API Key

The previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.

Example:X-Auth-Email: user@example.com

The previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.

Example:X-Auth-Key: 144c9defac04969c7bfad8efaa8ea194
Accepted Permissions (at least one required)
User Details WriteUser Details Read
ParametersExpand Collapse
query: TopAsesParams { country, date, format, 2 more }
country?: string

Optional ISO 3166-1 alpha-2 country filter. Omit for global top-N.

maxLength2
minLength2
date?: string

Filters results by the specified datetime (ISO 8601).

formatdate-time
format?: "JSON" | "CSV"

Format in which results will be returned.

One of the following:
"JSON"
"CSV"
limit?: number

Limits the number of objects returned in the response.

maximum50
minimum1
metric?: "v4_24s" | "v6_48s"

Ranking metric: IPv4 /24 count or IPv6 /48 count.

One of the following:
"v4_24s"
"v6_48s"
ReturnsExpand Collapse
TopAsesResponse { anchorTs, asns, country, metric }
anchorTs: string
formatdate-time
asns: Array<ASN>
asn: number
v4_24s: number
v6_48s: number
country: string | null
metric: string

Get top ASes by announced IP space

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.bgp.ips.top.ases();

console.log(response.anchorTs);
{
  "result": {
    "anchorTs": "2026-04-18T16:00:00.000Z",
    "asns": [
      {
        "asn": 749,
        "v4_24s": 875649,
        "v6_48s": 0
      }
    ],
    "country": "US",
    "metric": "v4_24s"
  },
  "success": true
}
Returns Examples
{
  "result": {
    "anchorTs": "2026-04-18T16:00:00.000Z",
    "asns": [
      {
        "asn": 749,
        "v4_24s": 875649,
        "v6_48s": 0
      }
    ],
    "country": "US",
    "metric": "v4_24s"
  },
  "success": true
}