Skip to content

Get pilot totals

Fetch a linked pilot’s cumulative flight totals.

GET /v1/pilot-totals?pilot_id=PILOT_ID

Required scope: pilot-totals.

Terminal window
curl -X GET \
"https://api.skyden.app/functions/v1/api/v1/pilot-totals?pilot_id=52b00948-12cd-4d06-ac29-027641d59ef0" \
-H "Authorization: Bearer YOUR_API_KEY"

200 OK

{
"data": {
"pilot_id": "52b00948-12cd-4d06-ac29-027641d59ef0",
"last_updated": "2026-04-21T06:22:12.127Z",
"totals": {
"total_flight_time_minutes": 7342,
"pic_minutes": 6765,
"sic_minutes": 577,
"dual_minutes": 0,
"instructor_minutes": 2432,
"cross_country_minutes": 7342,
"night_minutes": 4036,
"ifr_minutes": 7189,
"actual_instrument_minutes": 7189,
"simulated_instrument_minutes": 0,
"single_engine_minutes": 0,
"multi_engine_minutes": 7342,
"multi_pilot_minutes": 7342,
"simulator_minutes": 1305
},
"landings": {
"total_day": 20,
"total_night": 14
},
"flight_count": 80,
"last_flight_date": "2026-04-13T00:00:00.000Z"
},
"meta": {
"api_version": "v1",
"request_id": "req_03284a58"
}
}
CodeStatusMeaning
PILOT_NOT_FOUND404Pilot not linked (never linked, or previously disconnected)
INSUFFICIENT_SCOPE403Your API key doesn’t have the pilot-totals scope

See Errors for the full list of common error codes.

All time values are in minutes (integer).

FieldDescription
total_flight_time_minutesTotal flight time
pic_minutesPilot in Command
sic_minutesSecond in Command
dual_minutesDual instruction received
instructor_minutesTime as flight instructor
cross_country_minutesCross-country flight time
night_minutesNight flight time
ifr_minutesTotal IFR time (actual + simulated)
actual_instrument_minutesActual instrument conditions
simulated_instrument_minutesSimulated instrument (hood/foggles)
single_engine_minutesSingle-engine aircraft
multi_engine_minutesMulti-engine aircraft
multi_pilot_minutesMulti-pilot operations
simulator_minutesFlight simulator / training device
landings.total_dayTotal day landings
landings.total_nightTotal night landings
flight_countTotal number of flights
last_flight_dateDate of most recent flight, serialized as an ISO 8601 timestamp at midnight UTC (e.g. 2026-04-13T00:00:00.000Z). null for a pilot with no flights on record.
last_updatedWhen Skyden last aggregated this pilot’s totals (≤ 5 min old for cached reads, or the current time for just-linked pilots computed live).