Get BGP hijack events
GET/radar/bgp/hijacks/events
Retrieves the BGP hijack events.
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)
Query Parameters
involvedCountry: optional string
The country code of the potential hijacker or victim AS of a BGP hijack event.
maxLength2
minLength2
maxConfidence: optional number
Filters events by maximum confidence score (1-4 low, 5-7 mid, 8+ high).
Get BGP hijack events
curl https://api.cloudflare.com/client/v4/radar/bgp/hijacks/events \
-H "Authorization: Bearer $CLOUDFLARE_API_TOKEN"{
"result": {
"asn_info": [
{
"asn": 0,
"country_code": "country_code",
"org_name": "org_name"
}
],
"events": [
{
"id": 0,
"confidence_score": 0,
"duration": 0,
"event_type": 0,
"hijack_msgs_count": 0,
"hijacker_asn": 0,
"hijacker_country": "hijacker_country",
"is_stale": true,
"max_hijack_ts": "max_hijack_ts",
"max_msg_ts": "max_msg_ts",
"min_hijack_ts": "min_hijack_ts",
"on_going_count": 0,
"peer_asns": [
0
],
"peer_ip_count": 0,
"prefixes": [
"string"
],
"tags": [
{
"name": "name",
"score": 0
}
],
"victim_asns": [
0
],
"victim_countries": [
"string"
]
}
],
"total_monitors": 0
},
"result_info": {
"count": 0,
"page": 0,
"per_page": 0,
"total_count": 0
},
"success": true
}Returns Examples
{
"result": {
"asn_info": [
{
"asn": 0,
"country_code": "country_code",
"org_name": "org_name"
}
],
"events": [
{
"id": 0,
"confidence_score": 0,
"duration": 0,
"event_type": 0,
"hijack_msgs_count": 0,
"hijacker_asn": 0,
"hijacker_country": "hijacker_country",
"is_stale": true,
"max_hijack_ts": "max_hijack_ts",
"max_msg_ts": "max_msg_ts",
"min_hijack_ts": "min_hijack_ts",
"on_going_count": 0,
"peer_asns": [
0
],
"peer_ip_count": 0,
"prefixes": [
"string"
],
"tags": [
{
"name": "name",
"score": 0
}
],
"victim_asns": [
0
],
"victim_countries": [
"string"
]
}
],
"total_monitors": 0
},
"result_info": {
"count": 0,
"page": 0,
"per_page": 0,
"total_count": 0
},
"success": true
}