Returns the current list of detected threats from the Cannonball analysis engine. Threats are cached and updated in real-time as aircraft data is processed.
Parameter Type Description max_rangefloat Maximum distance in nautical miles to include threat_levelstring Filter by threat level: info, warning, or critical
JSON
{
"threats": [
{
"icao_hex": "A12345",
"callsign": "N123HP",
"lat": 34.0522,
"lon": -118.2437,
"altitude": 1500,
"ground_speed": 85,
"track": 270,
"distance_nm": 2.5,
"bearing": 45.0,
"closing_speed": 15.0,
"threat_level": "warning",
"urgency_score": 75.0,
"is_known_le": true,
"identification_method": "database",
"identification_reason": "Known LAPD helicopter",
"operator_name": "Los Angeles Police Department",
"agency_name": "LAPD Air Support Division",
"agency_type": "local",
"patterns": [
{
"type": "circling",
"confidence": "high",
"duration_seconds": 300
}
]
}
],
"count": 1,
"total_detected": 3,
"timestamp": "2024-01-15T12:30:00Z"
}
Field Type Description icao_hexstring Aircraft ICAO hex code callsignstring Aircraft callsign (may be null) latfloat Current latitude lonfloat Current longitude altitudeinteger Altitude in feet ground_speedinteger Ground speed in knots trackinteger Track/heading in degrees distance_nmfloat Distance from user in nautical miles bearingfloat Bearing from user in degrees closing_speedfloat Rate of approach in knots (negative = departing) threat_levelstring Threat classification: info, warning, critical urgency_scorefloat 0-100 urgency rating is_known_leboolean Whether aircraft is in known LE database identification_methodstring How the aircraft was identified identification_reasonstring Human-readable identification reason operator_namestring Aircraft operator name agency_namestring Law enforcement agency name agency_typestring Agency type: federal, state, local, military patternsarray Active flight patterns detected
Bash
curl -X GET "https://api.skyspy.io/api/v1/cannonball/threats/?max_range=10&threat_level=warning" \
-H "Authorization: Bearer YOUR_TOKEN"
Code Description 200 Success 401 Unauthorized - Invalid or missing authentication