用途:pp-airhint 是驱动 Airhint 机票价格预测 API 的 CLI 技能,可获取航班买/等建议、最低票价与航班搜索结果,适合灵活出行者做批量比价与购票时机判断。
主要能力:predict 返回给定航班的买/等建议;cheapest-deal-month 查某月某路线最低单程票价;cheapest-airline-deal-month 查指定航司在某日期附近的低价;flights create-search 与 get-search 通过 search_id 轮询搜索结果;airport-autocomplete 按名称或 IATA 代码搜索机场城市;airport-names 批量查询机场名称。另有工作流:predict-sweep 按日期范围扫价格,compare-routes 同日比较多条路线,cheapest-window 找某月最便宜的出发日。
使用方式:先安装 CLI,npx -y @mvanhorn/printing-press-library install airhint --cli-only,再用 airhint-pp-cli --version 验证;安装失败可用 go install github.com/mvanhorn/printing-press-library/library/travel/airhint/cmd/airhint-pp-cli@latest。命令加 --agent 启用 JSON 输出、非交互模式,支持 --select 裁字段、--dry-run 预览、--deliver 输出到文件或 webhook。无需认证,可运行 airhint-pp-cli doctor 检查。不确定命令时用 airhint-pp-cli which "<需求>" 查找。
限制:依赖 CLI 正确安装并在 PATH 中;数据来自上游 API,部分响应为二进制格式,模式证据较弱;价格与预测结果以接口实际返回为准,其余收费、配额等信息暂未提供。