List Cannonball Sessions

List all tracking sessions for potential law enforcement aircraft

GET /api/v1/cannonball/sessions/

Returns a list of Cannonball tracking sessions. Each session represents a period of tracking for an aircraft identified as potential law enforcement or surveillance.

Query Parameters

ParameterTypeDescription
active_onlybooleanOnly show active sessions (default: false)
hoursintegerFilter by hours since last seen
is_activebooleanFilter by active status
threat_levelstringFilter by threat level: info, warning, critical
identification_methodstringFilter by identification method

Response

{
  "sessions": [
    {
      "id": 1,
      "icao_hex": "A12345",
      "callsign": "N123HP",
      "is_active": true,
      "threat_level": "warning",
      "urgency_score": 75.0,
      "distance_nm": 2.5,
      "bearing": 45.0,
      "closing_speed_kts": 15.0,
      "last_seen": "2024-01-15T12:30:00Z",
      "pattern_count": 3,
      "alert_count": 2
    }
  ],
  "count": 1,
  "active_count": 1
}

Session Object Fields (List View)

FieldTypeDescription
idintegerSession ID
icao_hexstringAircraft ICAO hex code
callsignstringAircraft callsign
is_activebooleanWhether session is currently active
threat_levelstringCurrent threat level
urgency_scorefloat0-100 urgency rating
distance_nmfloatDistance from tracked user in nautical miles
bearingfloatBearing from tracked user
closing_speed_ktsfloatRate of approach in knots
last_seenstringISO 8601 timestamp of last position update
pattern_countintegerNumber of patterns detected
alert_countintegerNumber of alerts generated

Example Request

curl -X GET "https://api.skyspy.io/api/v1/cannonball/sessions/?active_only=true&hours=24" \
  -H "Authorization: Bearer YOUR_TOKEN"

Response Codes

CodeDescription
200Success
401Unauthorized - Invalid or missing authentication