Parrot ANAFI flight log parser, as an API

Upload the flight log you export from FreeFlight 6 (.json), FreeFlight 7 (.gutma) or the drone itself (.pud) and get back a CSV with the GPS track, altitude, speed, attitude, battery and flight time, in the same columns as our DJI and ArduPilot output.

Free tier includes 100 API calls/month. No credit card required.

# Queue a FreeFlight 6 export
curl -X POST \
  https://dronelogapi.com/api/v2/logs/upload \
  -H "Authorization: Bearer YOUR_KEY" \
  -F "file=@anafi-flight.json"

# 202 — detected as Parrot, queued
{
  "statusCode": 202,
  "message": "Flight log queued for processing.",
  "flightId": "9f2c8b3e-4b6a-4a1e-9c2d-7a1f6e0d5b21"
}
.JSON
FreeFlight 6 export
.GUTMA
FreeFlight 7 flight log
.PUD
Raw on-drone recording
Auto
Format detected from content

How to export your ANAFI flight logs

Which file you get depends on the app that flies your drone. Upload it as it is: no renaming or conversion.

FreeFlight 6 .json

ANAFI, ANAFI Thermal, ANAFI FPV, ANAFI USA

In FreeFlight 6, open My Flights, pick the flight and tap the share icon to save the flight log as a .json file. Flights synced to your MyParrot account can also be exported as JSON there.

FreeFlight 7 .gutma

ANAFI Ai and newer FreeFlight drones

FreeFlight 7 and later keep each flight as a .gutma file, the open GUTMA flight-logging JSON format. In recent FreeFlight versions the list is under Settings → Flight logs; share or copy the file from there.

On the drone .pud

ANAFI, Bebop 2, Disco

Parrot drones also record a binary .pud file, the source FreeFlight builds its JSON from. A Bebop 2 keeps them in internal_000/Bebop_Drone/academy, reachable over FTP at 192.168.42.1.

Not supported: the .bin files in the FDR folder of the drone's SD card. Parrot encrypts them and only Parrot can read them. Use the FreeFlight export instead.

What you get from every Parrot log

One CSV row per recorded sample (three to five per second), with the same column names as our DJI output, so one importer handles every drone in your fleet.

  • GPS track and home distance

    Latitude and longitude of the drone at every sample, the take-off point, and the distance from it. Samples before the first GPS fix stay empty instead of showing 500/500.

  • Altitude, speed and attitude

    Height above take-off, north/east/vertical and horizontal speed, and pitch, roll and yaw converted from radians to degrees.

  • Battery

    Charge level on every format. GUTMA logs add pack voltage, current and per-cell voltages.

  • Flight state and alerts

    Landed, taking off, flying or landing on each row, plus Parrot's alerts such as low battery, motor cut-out or a disturbed magnetometer (FreeFlight JSON and PUD).

  • Flight totals

    Flight time (for FreeFlight 6 logs counted the way FreeFlight counts it), distance flown, maximum height and speeds, and photo count for GUTMA logs.

  • Aircraft and controller

    Drone model, serial number when the log carries one, firmware version, and the Skycontroller serial or app version, so flights roll up per drone in your dashboard.

Convert a Parrot flight log to CSV

Upload the file to the auto-detect endpoint, then poll the status endpoint with the returned flightId. Polling doesn't count toward your monthly API usage.

# 1. Upload: returns 202 with a flightId
curl -X POST https://dronelogapi.com/api/v2/logs/upload \
  -H "Authorization: Bearer YOUR_KEY" \
  -F "file=@log-19-5713A-20220518T095431+0000.gutma"

# 2. Poll until status is "processed" (or "failed")
curl https://dronelogapi.com/api/v2/logs/status/FLIGHT_ID \
  -H "Authorization: Bearer YOUR_KEY"
import time
import requests

API = "https://dronelogapi.com/api/v2/logs"
HEADERS = {"Authorization": "Bearer YOUR_KEY"}

with open("anafi-flight.json", "rb") as log:
    upload = requests.post(API + "/upload", headers=HEADERS, files={"file": log})
upload.raise_for_status()
flight_id = upload.json()["flightId"]

while True:
    result = requests.get(API + "/status/" + flight_id, headers=HEADERS).json()
    if result["status"] in ("processed", "failed"):
        break
    time.sleep(2)

if result["status"] == "failed":
    raise RuntimeError(result["error"])

with open("flight.csv", "w") as out:
    out.write(result["csv"])
import { openAsBlob } from "node:fs";
import { writeFile } from "node:fs/promises";
import { setTimeout as sleep } from "node:timers/promises";

const API = "https://dronelogapi.com/api/v2/logs";
const headers = { Authorization: "Bearer YOUR_KEY" };

const form = new FormData();
form.append("file", await openAsBlob("anafi-flight.json"), "anafi-flight.json");

const upload = await fetch(API + "/upload", { method: "POST", headers, body: form });
if (!upload.ok) throw new Error(await upload.text());
const { flightId } = await upload.json();

let result;
do {
  await sleep(2000);
  result = await (await fetch(API + "/status/" + flightId, { headers })).json();
} while (!["processed", "failed"].includes(result.status));

if (result.status === "failed") throw new Error(result.error);
await writeFile("flight.csv", result.csv);
GET /api/v2/logs/status/{flightId} — 200

{"status": "pending"}

{"status": "processed", "csv": "CUSTOM.date [local],CUSTOM.updateTime [local],OSD.flyTime,OSD.latitude,OSD.longitude,OSD.height [m],..."}

{"status": "failed", "error": "Not a Parrot flight log (FreeFlight JSON, PUD or GUTMA)."}

Full request and error reference in the API documentation. Column meanings are listed under flight log data fields.

Parrot flight logs: common questions

Which Parrot drones and log files are supported?

FreeFlight 6 JSON exports (ANAFI, ANAFI Thermal, ANAFI FPV and ANAFI USA flown with FreeFlight 6), FreeFlight 7 .gutma flight logs (ANAFI Ai) and the raw .pud files Parrot drones record. The parser is tested on real ANAFI and ANAFI Ai logs. Bebop 2 and Disco .pud files use the same self-describing layout and are read the same way, but we have not yet checked them against a real Bebop or Disco log.

How do I export a flight log from FreeFlight 6?

Open My Flights in FreeFlight 6, select the flight and tap the share icon. FreeFlight saves the flight log as a .json file that you can upload as it is. Flights synced to MyParrot can also be exported as JSON from your account.

What is a .gutma file?

GUTMA is an open flight-logging JSON format from the Global UTM Association. FreeFlight 7 writes one .gutma file per flight with position, speeds, attitude, battery voltage and current, and events such as take-off, landing and photos. We accept .gutma files written by Parrot apps.

Can I upload the .bin files from the FDR folder on the SD card?

No. The flight data recorder files on the SD card are encrypted by Parrot and cannot be read outside Parrot. Export the flight from FreeFlight instead, as a .json (FreeFlight 6) or .gutma (FreeFlight 7) file.

What columns are in the CSV?

The same names as our DJI output: CUSTOM.date [local], OSD.flyTime, OSD.latitude, OSD.longitude, OSD.height [m], OSD.hSpeed [m/s], OSD.pitch, OSD.roll, OSD.yaw, HOME.distance [m], BATTERY.chargeLevel, DETAILS.totalTime [s], DETAILS.totalDistance [m], DETAILS.aircraftSerial and more. Values Parrot does not record are left out rather than filled with zeros. Parrot-only values such as the Wi-Fi signal are in PARROT.* columns.

Why does my ANAFI Ai log have no satellite count?

ANAFI Ai GUTMA logs write 0 for the satellite count and Wi-Fi signal on every sample, so we leave those columns out instead of reporting a weak GPS. GUTMA also has no barometric height: height above take-off is computed from the GPS altitude.

Is processing synchronous?

No. The upload returns a flightId with a 202 status straight away and the log is parsed in the background. Poll the status endpoint until status is processed, then read the csv field.

Is there a free way to try the parser?

Every account gets 100 free API calls per month, no credit card required. You can also upload logs from the dashboard without writing code.

Get your ANAFI flight data into a spreadsheet

Get your API key in 30 seconds. 100 free calls per month, no credit card needed.

Also flying other drones? See the DJI flight log parser and the ArduPilot flight log parser.