Get top prefixes by BGP updates
client.radar.bgp.top.prefixes(TopPrefixesParams { asn, dateEnd, dateRange, 5 more } query?, RequestOptionsoptions?): TopPrefixesResponse { meta, top_0 }
GET/radar/bgp/top/prefixes
Retrieves the top network prefixes by BGP updates.
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 top prefixes by BGP updates
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.top.prefixes();
console.log(response.meta);{
"result": {
"meta": {
"dateRange": [
{
"endTime": "2022-09-17T10:22:57.555Z",
"startTime": "2022-09-16T10:22:57.555Z"
}
]
},
"top_0": [
{
"prefix": "2804:77cc:8000::/33",
"value": "10"
}
]
},
"success": true
}Returns Examples
{
"result": {
"meta": {
"dateRange": [
{
"endTime": "2022-09-17T10:22:57.555Z",
"startTime": "2022-09-16T10:22:57.555Z"
}
]
},
"top_0": [
{
"prefix": "2804:77cc:8000::/33",
"value": "10"
}
]
},
"success": true
}