Get the BGP hijack events. (Beta)
/radar/bgp/hijacks/events
get
Radar BGP
radar-get-bgp-hijacks-events
{
"business": true,
"enterprise": true,
"free": true,
"pro": true
} {
"enum": [
"com.cloudflare.api.user.read"
]
} [
{
"in": "query",
"name": "page",
"schema": {
"description": "Current page number, starting from 1",
"type": "integer"
}
},
{
"in": "query",
"name": "per_page",
"schema": {
"description": "Number of entries per page",
"type": "integer"
}
},
{
"in": "query",
"name": "eventId",
"schema": {
"description": "The unique identifier of a event",
"type": "integer"
}
},
{
"in": "query",
"name": "hijackerAsn",
"schema": {
"description": "The potential hijacker AS of a BGP hijack event",
"type": "integer"
}
},
{
"in": "query",
"name": "victimAsn",
"schema": {
"description": "The potential victim AS of a BGP hijack event",
"type": "integer"
}
},
{
"in": "query",
"name": "involvedAsn",
"schema": {
"description": "The potential hijacker or victim AS of a BGP hijack event",
"type": "integer"
}
},
{
"in": "query",
"name": "involvedCountry",
"schema": {
"description": "The country code of the potential hijacker or victim AS of a BGP hijack event",
"type": "string"
}
},
{
"in": "query",
"name": "prefix",
"schema": {
"description": "The prefix hijacked during a BGP hijack event",
"type": "string"
}
},
{
"in": "query",
"name": "minConfidence",
"schema": {
"description": "The minimum confidence score to filter events (1-4 low, 5-7 mid, 8+ high)",
"type": "integer"
}
},
{
"in": "query",
"name": "maxConfidence",
"schema": {
"description": "The maximum confidence score to filter events (1-4 low, 5-7 mid, 8+ high)",
"type": "integer"
}
},
{
"in": "query",
"name": "dateRange",
"schema": {
"description": "Shorthand date ranges for the last X days - use when you don't need specific start and end dates.",
"enum": [
"1d",
"2d",
"7d",
"14d",
"28d",
"12w",
"24w",
"52w",
"1dControl",
"2dControl",
"7dControl",
"14dControl",
"28dControl",
"12wControl",
"24wControl"
],
"example": "7d",
"type": "string"
}
},
{
"in": "query",
"name": "dateStart",
"schema": {
"description": "Start of the date range (inclusive).",
"example": "2023-09-01T11:41:33.782Z",
"format": "date-time",
"type": "string"
}
},
{
"in": "query",
"name": "dateEnd",
"schema": {
"description": "End of the date range (inclusive).",
"example": "2023-09-01T11:41:33.782Z",
"format": "date-time",
"type": "string"
}
},
{
"in": "query",
"name": "sortBy",
"schema": {
"description": "Sort events by field",
"enum": [
"ID",
"TIME",
"CONFIDENCE"
],
"example": "TIME",
"type": "string"
}
},
{
"in": "query",
"name": "sortOrder",
"schema": {
"description": "Sort order",
"enum": [
"ASC",
"DESC"
],
"example": "DESC",
"type": "string"
}
},
{
"in": "query",
"name": "format",
"schema": {
"description": "Format results are returned in.",
"enum": [
"JSON",
"CSV"
],
"example": "json",
"type": "string"
}
}
] null {
"200": {
"content": {
"application/json": {
"schema": {
"properties": {
"result": {
"properties": {
"asn_info": {
"items": {
"properties": {
"asn": {
"type": "integer"
},
"country_code": {
"type": "string"
},
"org_name": {
"type": "string"
}
},
"required": [
"asn",
"org_name",
"country_code"
],
"type": "object"
},
"type": "array"
},
"events": {
"items": {
"properties": {
"confidence_score": {
"type": "integer"
},
"duration": {
"type": "integer"
},
"event_type": {
"type": "integer"
},
"hijack_msgs_count": {
"type": "integer"
},
"hijacker_asn": {
"type": "integer"
},
"hijacker_country": {
"type": "string"
},
"id": {
"type": "integer"
},
"is_stale": {
"type": "boolean"
},
"max_hijack_ts": {
"type": "string"
},
"max_msg_ts": {
"type": "string"
},
"min_hijack_ts": {
"type": "string"
},
"on_going_count": {
"type": "integer"
},
"peer_asns": {
"items": {
"type": "integer"
},
"type": "array"
},
"peer_ip_count": {
"type": "integer"
},
"prefixes": {
"items": {
"type": "string"
},
"type": "array"
},
"tags": {
"items": {
"properties": {
"name": {
"type": "string"
},
"score": {
"type": "integer"
}
},
"required": [
"name",
"score"
],
"type": "object"
},
"type": "array"
},
"victim_asns": {
"items": {
"type": "integer"
},
"type": "array"
},
"victim_countries": {
"items": {
"type": "string"
},
"type": "array"
}
},
"required": [
"duration",
"event_type",
"hijack_msgs_count",
"hijacker_asn",
"hijacker_country",
"victim_asns",
"victim_countries",
"id",
"is_stale",
"max_hijack_ts",
"min_hijack_ts",
"max_msg_ts",
"on_going_count",
"peer_asns",
"peer_ip_count",
"prefixes",
"confidence_score",
"tags"
],
"type": "object"
},
"type": "array"
},
"total_monitors": {
"type": "integer"
}
},
"required": [
"asn_info",
"events",
"total_monitors"
],
"type": "object"
},
"result_info": {
"properties": {
"count": {
"type": "integer"
},
"page": {
"type": "integer"
},
"per_page": {
"type": "integer"
},
"total_count": {
"type": "integer"
}
},
"required": [
"count",
"total_count",
"page",
"per_page"
],
"type": "object"
},
"success": {
"example": true,
"type": "boolean"
}
},
"required": [
"result",
"result_info",
"success"
],
"type": "object"
}
}
},
"description": "Successful Response"
},
"400": {
"content": {
"application/json": {
"schema": {
"properties": {
"errors": {
"items": {
"properties": {
"message": {
"type": "string"
}
},
"required": [
"message"
],
"type": "object"
},
"type": "array"
},
"result": {
"type": "object"
},
"success": {
"example": false,
"type": "boolean"
}
},
"required": [
"result",
"success",
"errors"
],
"type": "object"
}
}
},
"description": "Bad Request"
}
} [
{
"api_email": [],
"api_key": []
}
]