用 curl 追踪国际空间站位置
实时获取空间站的纬度、经度和高度。
运行 curl -s https://api.wheretheiss.at/v1/satellites/25544,以 JSON 打印空间站位置。
01命令
命令
$ curl -s https://api.wheretheiss.at/v1/satellites/2554402作用说明
Where the ISS at? API 返回空间站当前的纬度、经度、高度和速度。可用 jq 提取字段,例如 jq '{lat, lon}' 或 jq '.altitude',再放进 watch 循环跟踪轨道。
03风险
!注意: 空间站约 90 分钟绕地球一圈,数据很快过时,单次调用不能代表长期位置。
04撤销
✓无需撤销——该命令不会改变持久状态。
05来源
- Where the ISS at? API依据: Documents the satellites/25544 endpoint returning ISS position and telemetry.
最后验证: 2026-09-20 · 分类: 网络