微算力 · API 导航与自营网关
API 接入 EN
未登录登录
🏨

全球酒店实时比价引擎

Hotel Pricer · v1.1.1
效率 安全 B 级 作者 jrojas537 公开目录收录
1.2k 下载 0 安装 2.4k 收藏 17 浏览

简介

基于Amadeus API的Go语言酒店比价工具,支持按城市、日期、人数搜索实时房价,需自行编译安装并配置API密钥。

原始描述

Search hotels by city, dates, and guests using Amadeus API, returning availability and pricing in JSON format via a Go CLI tool.

通过你的 Agent 添加

点「快速安装」复制一段指令,粘给你正在用的 Agent(Claude Code、Codex、OpenClaw 等),它会自己完成安装。

或者手动安装

Claude Codeunzip -o skill.zip -d ~/.claude/skills/hotel-pricer/
其它 Agent解压到它自己的 skills 目录,目录名用 hotel-pricer

包里是 SKILL.md 加作者附带的文件,解压后目录名就是技能名。 技能申请的权限由作者决定,装之前请确认它能读什么、能执行什么。

技能正文

hotel-pricer Skill

A Go-based CLI for searching hotel availability and pricing using the Amadeus API.

Description

This skill allows the agent to find hotel deals by city, check-in/out dates, and number of guests. It securely manages Amadeus API credentials and provides formatted JSON output.

Prerequisites

  • go (for installation)
  • An Amadeus for Developers account with API Key and Secret.

Installation

The hotel-pricer binary must be compiled and placed in the system's PATH.

# From the hotel-pricer source directory
go build
sudo mv hotel-pricer /usr/local/bin/

Configuration

Credentials must be set before use.

hotel-pricer config set --api-key YOUR_API_KEY --api-secret YOUR_API_SECRET

Usage

Search for Hotels

hotel-pricer search --city <IATA_CODE> --check-in <YYYY-MM-DD> --check-out <YYYY-MM-DD> [flags]

Example: hotel-pricer search --city NYC --check-in 2024-12-24 --check-out 2024-12-28 --guests 2

Flags

  • --city, -c: City code (IATA) (required)
  • --check-in, -i: Check-in date (YYYY-MM-DD) (required)
  • --check-out, -o: Check-out date (YYYY-MM-DD) (required)
  • --guests, -g: Number of guests (default: 1)
  • --radius, -r: Search radius in kilometers (default: 20)

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

travelhotelapicligolangamadeusprice-comparison

同类 Skill