Skip to content
Start here

Get top ASes by announced IP space

radar.bgp.ips.top.ases(TopAsesParams**kwargs) -> TopAsesResponse
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
country: Optional[str]

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

maxLength2
minLength2
date: Optional[Union[str, datetime]]

Filters results by the specified datetime (ISO 8601).

formatdate-time
format: Optional[Literal["JSON", "CSV"]]

Format in which results will be returned.

One of the following:
"JSON"
"CSV"
limit: Optional[int]

Limits the number of objects returned in the response.

maximum50
minimum1
metric: Optional[Literal["v4_24s", "v6_48s"]]

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

One of the following:
"v4_24s"
"v6_48s"
ReturnsExpand Collapse
class TopAsesResponse:
anchor_ts: datetime
formatdate-time
asns: List[ASN]
asn: int
v4_24s: int
v6_48s: int
country: Optional[str]
metric: str

Get top ASes by announced IP space

import os
from cloudflare import Cloudflare

client = Cloudflare(
    api_token=os.environ.get("CLOUDFLARE_API_TOKEN"),  # This is the default and can be omitted
)
response = client.radar.bgp.ips.top.ases()
print(response.anchor_ts)
{
  "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
}