Get latest Internet traffic anomalies
client.radar.trafficAnomalies.get(TrafficAnomalyGetParams { asn, dateEnd, dateRange, 8 more } query?, RequestOptionsoptions?): TrafficAnomalyGetResponse { trafficAnomalies }
GET/radar/traffic_anomalies
Retrieves the latest Internet traffic anomalies, which are signals that might indicate an outage. These alerts are automatically detected by Radar and manually verified by our team.
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 latest Internet traffic anomalies
import Cloudflare from 'cloudflare';
const client = new Cloudflare({
apiToken: process.env['CLOUDFLARE_API_TOKEN'], // This is the default and can be omitted
});
const trafficAnomaly = await client.radar.trafficAnomalies.get();
console.log(trafficAnomaly.trafficAnomalies);{
"result": {
"trafficAnomalies": [
{
"startDate": "2023-08-02T23:15:00Z",
"status": "UNVERIFIED",
"type": "LOCATION",
"uuid": "55a57f33-8bc0-4984-b4df-fdaff72df39d",
"asnDetails": {
"asn": "189",
"name": "LUMEN-LEGACY-L3-PARTITION",
"locations": {
"code": "US",
"name": "United States"
}
},
"endDate": "2019-12-27T18:11:19.117Z",
"locationDetails": {
"code": "US",
"name": "United States"
},
"originDetails": {
"name": "us-east-1 Amazon Web Services",
"origin": "amazon-us-east-1"
},
"visibleInDataSources": [
"string"
]
}
]
},
"success": true
}Returns Examples
{
"result": {
"trafficAnomalies": [
{
"startDate": "2023-08-02T23:15:00Z",
"status": "UNVERIFIED",
"type": "LOCATION",
"uuid": "55a57f33-8bc0-4984-b4df-fdaff72df39d",
"asnDetails": {
"asn": "189",
"name": "LUMEN-LEGACY-L3-PARTITION",
"locations": {
"code": "US",
"name": "United States"
}
},
"endDate": "2019-12-27T18:11:19.117Z",
"locationDetails": {
"code": "US",
"name": "United States"
},
"originDetails": {
"name": "us-east-1 Amazon Web Services",
"origin": "amazon-us-east-1"
},
"visibleInDataSources": [
"string"
]
}
]
},
"success": true
}