飞行信息 API

访问与限制Public, no key needed · Light▾

对所有人开放。来自您的个人资料的免费 API 密钥可提高限制:将其发送到 X-API-Key header, or as api_key= 在地址中。

5 分钟小时日
没有密钥303002,000
使用密钥1501,50010,000

登录在您的配置文件页面上创建免费密钥。

每个答案都包含 X-RateLimit-Remaining 和 X-RateLimit-Reset. 超过限制,答案是错误 429 与 retry_after (秒内)。拒绝的请求不计算在内。

公开 — 无需认证 不返回个人数据

概述

该端点返回单次飞行的公开摘要,包括各种尺寸的图表缩略图链接。可以通过cloud飞行ID或验证器返回的signature hash(即flyer可以从日志文件中读取的flight_unique_id值)来查找飞行。

这是单个索引查询,不返回任何用户识别信息:无账户、无设备序列号、无上传地址、无备注、图像或发射坐标。设备标签和竞争者标签包括在内,因为它们识别一个条目而不是一个人。

端点

GET https://www.altimetercloud.com/zh/api/flight_info/ 参数: id 或 hash

提供数字 id 或signature hash 之一。如果同时提供两者,id 优先级更高。仅返回公开可见的飞行。

参数

参数类型描述
id整数数字cloud飞行ID
hash字符串飞行的signature hash(64或128个十六进制字符),由验证器返回或写入日志文件
sig字符串hash 的别名

响应

API返回JSON格式。每次飞行都包含核心气压字段。具有IMU功能的飞行(Mercury或Nano硬件修订版本4及更高版本)还包含一个imu对象,包含加速度、方向、自旋、稳定性和双级回收数据。Mercury飞行另外包含mercury对象,其中包含额外的传感器和环境数据(外部温度探针、电池、主板温度),仅该板记录。仅气压飞行省略IMU和Mercury块。

✓ 找到(IMU飞行)
{
  "success": true,
  "flight": {
    "id": 1234,
    "url": "https://www.altimetercloud.com/zh/flights/1234/",
    "csv_url": "https://www.altimetercloud.com/zh/flightdata/4/1234.csv",
    "device": "nanov1",
    "firmware": "1.52",
    "revision": "4",
    "has_imu": 1,
    "tag": "MY-NANO",
    "competitor_tag": "C-07",
    "uploaddate": "10/06/26-14:22:01",
    "uploadstamp": 1781453721,
    "samples": 3210,
    "sps": 100,
    "apogee": 246.4,
    "apogee_time": 5210,
    "max_velocity": 98.3,
    "max_velocity_down": -12.4,
    "velocity_landing": 4.8,
    "landing_ms": 41800,
    "landing_m": 1.2,
    "flight_time": 41.8,
    "total_time": 44.2,
    "lockouts": 0,
    "not_real_flight": 0,
    "settings": {
      "sealevel": 1013.25,
      "samplerate": 100,
      "recordingstop": 1,
      "oversampling": 1,
      "iirfilter": 0,
      "pressurefilter": 1,
      "startuplock": 0,
      "usetemp": 1,
      "fixedtemp": 15,
      "launchdetect": 1,
      "sampleratio": 1,
      "maintainpower": 0,
      "maxsamples": 0,
      "recording_alt": 0,
      "units": 0,
      "units_velocity": 0,
      "units_acceleration": 0,
      "lockout_time": 0,
      "lockout_change": 0,
      "output_enable": 0,
      "orientation": 0,
      "launchprotection": 1
    },
    "imu": {
      "burnout": 1400,
      "ejection": 5600,
      "max_acceleration": 11.6,
      "acceleration": {
        "max_ascent": 11.6,
        "max_descent": 2.3,
        "max_burn": 11.6,
        "avg_ascent": 4.2,
        "avg_burn": 9.8
      },
      "velocity": {
        "burnout": 96.2,
        "descent": 5.1,
        "up_imu": 96.2,
        "down_imu": -11.8
      },
      "orientation": {
        "launch_pitch": 2,
        "launch_roll": 1,
        "launch_yaw": 0,
        "launch_tilt": 3,
        "max_tilt": 7
      },
      "spin": {
        "max": 540.5,
        "average": 120.2,
        "roll_rate": 33,
        "coning_rate": 4,
        "coning_power": 2
      },
      "stability": {
        "score": 92,
        "launch": 88,
        "coning": 95,
        "straight": 90,
        "confidence": 1,
        "thrust_straight": 97,
        "launch_tilt": 3
      },
      "dual_deploy": {
        "detected": 1,
        "drogue_velocity": 18.2,
        "main_velocity": 6.4,
        "main_altitude": 120.5,
        "main_time": 30200
      }
    },
    "thumbnails": {
      "meters_small": "https://www.altimetercloud.com/zh/flightdata/4/1234.webp",
      "meters_large": "https://www.altimetercloud.com/zh/flightdata/4/1234_l.webp",
      "feet_small":   "https://www.altimetercloud.com/zh/flightdata/4/1234_ft.webp",
      "feet_large":   "https://www.altimetercloud.com/zh/flightdata/4/1234_l_ft.webp",
      "miles_small":  "https://www.altimetercloud.com/zh/flightdata/4/1234_mi.webp",
      "miles_large":  "https://www.altimetercloud.com/zh/flightdata/4/1234_l_mi.webp",
      "km_small":     "https://www.altimetercloud.com/zh/flightdata/4/1234_km.webp",
      "km_large":     "https://www.altimetercloud.com/zh/flightdata/4/1234_l_km.webp"
    }
  }
}

仅气压飞行(例如修订版本低于4的Nano)返回相同的核心字段,has_imu设置为0且没有imu块:

ⓘ 找到(气压飞行)
{
  "success": true,
  "flight": {
    "id": 980,
    "device": "nanov1",
    "firmware": "1.52",
    "revision": "2",
    "has_imu": 0,
    "apogee": 312.7,
    "apogee_time": 6120,
    "max_velocity": 104.5,
    "...": "核心字段和设置,无imu块"
  }
}

如果没有公开飞行匹配提供的ID或hash:

✗ 未找到
{
  "success": false,
  "error": {
    "code": "404",
    "message": "未找到与该ID或signature hash相匹配的公开飞行"
  }
}

响应字段

所有测量值以基础SI单位返回:高度为米、速度为米/秒、加速度为g、角度为度、自旋和速率为每秒度,时间为毫秒(另有说明除外)。飞行页面可能将这些转换为您选择的单位,但API始终为SI单位。

核心(每次飞行)

字段类型描述
id / url整数 / 字符串Cloud飞行ID及其公开飞行页面
csv_url字符串原始CSV日志的直接下载链接
device / firmware / revision字符串型号(nanov1、mercuryv1)、固件版本、硬件修订版本
has_imu整数如果该型号和修订版本具有IMU(Mercury或Nano修订版本4+),则为1。确定imu块是否存在
tag / competitor_tag字符串设备标签和竞争者标签
uploaddate / uploadstamp字符串 / 整数上传日期字符串和unix时间戳
samples / sps整数记录的样本数和每秒样本数
apogee浮点数峰值高度,单位为米
apogee_time整数apogee的时间,单位为毫秒
max_velocity / max_velocity_down浮点数峰值上升和下降速度(米/秒),气压
velocity_landing浮点数着陆时的速度(米/秒)
landing_ms / landing_m数字着陆时间(毫秒)和着陆高度(米)
flight_time / total_time浮点数记录持续时间和总持续时间(包括前期发射),单位为秒
lockouts整数apogee锁定事件数
not_real_flight整数如果被标记为非真实飞行(例如工作台测试),则为1
settings对象日志头中的记录设置(海平面气压、采样率、滤波器、单位、锁定、输出、方向、发射保护等)
thumbnails对象图表图像URL:米、英尺、英里和公里,各有小型和大型尺寸

imu(仅限IMU兼容飞行)

仅当has_imu为1时存在。不存在于仅气压飞行中。

字段类型描述
burnout / ejection整数电机burnout和ejection时间,单位为毫秒
max_acceleration浮点数峰值加速度,单位为g
acceleration对象max_ascent、max_descent、max_burn、avg_ascent、avg_burn,全部单位为g
velocity对象burnout、descent(米/秒),加上up_imu / down_imu,即IMU导出的峰值上升和下降速度(米/秒)
orientation对象launch_pitch、launch_roll、launch_yaw、launch_tilt、max_tilt,全部单位为度
spin对象max、average、roll_rate、coning_rate、coning_power,全部单位为每秒度
stability对象score和launch / coning / straight / thrust_straight子评分(0–100)、confidence(0–1)和launch_tilt(度)
dual_deploy对象detected(0/1)、drogue_velocity / main_velocity(米/秒)、main_altitude(米)、main_time(毫秒)

mercury(仅限Mercury飞行)

仅适用于Mercury,它记录Nano不记录的额外传感器和环境层。从飞行的数据文件最尽力读取,所以较早的Mercury固件可能返回较少字段,任何缺失的字段都被省略。

"mercury": {
  "mt1_temp_c": 16,
  "battery_start_pct": 98,
  "battery_end_pct": 95,
  "board_temp_start_c": 13.02,
  "board_temp_end_c": 12.25,
  "recovered": 0
}
字段类型描述
mt1_temp_c浮点数发射时外部MT1温度探针读数,单位为摄氏度
battery_start_pct / battery_end_pct整数飞行开始和结束时的电池电量百分比
board_temp_start_c / board_temp_end_c浮点数飞行开始和结束时的主板温度,单位为摄氏度
recovered整数如果日志从闪存重建(由于崩溃或欠压),则为1,否则为0

API操场

输入公开飞行ID(或signature hash)并单击运行以获取其摘要。

飞行ID — 或者一个signature hash
https://www.altimetercloud.com/zh/api/flight_info/

Altimeter Cloud 致谢

免费使用。如果您使用 this API, or anything made from the answers, in a commercial product or service, credit AltimeterCloud with a link to www.altimetercloud.com 在使用点:在屏幕、页面或打印输出上显示数据的位置,例如 “Data from AltimeterCloud.com”。此页面上列出的数据自身来源要求的任何署名也适用。