Hotel Search API
БесплатноЗапускает вложенные скриптыНе проверенSearch and compare hotels with the Ktemia hotel API and return each seller's price, a booking link, and guest reviews. Use when the user asks to find…
от ktemiainc141 установка в других каталогахОб этом скилле
Hotel search with the Ktemia API
Ktemia compares stays and returns each seller's booking link, plus guest reviews. It does not reserve the room: the traveller books on the seller's site.
API reference: https://www.ktemia.com/docs/api/hotels/search/
Before you call anything
- You need
KTEMIA_API_KEYin the environment. If it is missing, tell the user to create a key (https://www.ktemia.com/docs/api/#authentication) and export it. Never print the key or put it in code you write for a browser. - You need a place, a check-in date, and a check-out date. Adults default to 2 and rooms default to 1.
- Do not guess. If the place or either date is missing or vague ("sometime in spring", "a nice hotel"), ask. Every API call counts against the user's monthly quota, so a guessed search wastes it.
- Dates are
YYYY-MM-DD, check-in is today or later, and the stay is 1 to 30 nights. Resolve "next Friday" into a date and confirm it with the user if there is any doubt.
Workflow
Use the bundled script scripts/ktemia.py in this skill's directory. It needs only Python 3, no packages. Every command prints JSON.
1. Turn a place name into a location id
location on a search is a locationId, not a city name.
python3 scripts/ktemia.py locations "London"
- Send
locations[].locationIdas--location. A neighbourhood and an airport in the same city have their own ids. - A row with
locationType: hotelis one property. ItslocationIdis still the city, so a search for that id returns the city. ItshotelIdis only for reviews. - If several places match (London, England and London, Ontario), ask which one. Do not take the first match.
2. Start the search
python3 scripts/ktemia.py search --location 29230 --checkin 2027-03-10 --checkout 2027-03-12
python3 scripts/ktemia.py search --location 29230 --checkin 2027-03-10 --checkout 2027-03-12 --adults 2 --rooms 1 --min-stars 4 --sort price --sort-order asc
Other options: --child-ages 4,7 (one age per child, 0–17, at most 8; send it only when the user named children), --min-rating 6|7|8|9, --max-price N (before-tax stay price, whole number), --free-cancellation, --amenities pool (ids from availableFilters on a previous results page), --country GB.
--providers narrows a search to named booking sites. It needs ids from a previous results page, so it belongs on a second search — see "Filter by booking site" below. Do not guess the ids.
country picks the market. Prices come back in that country's native currency: GB is GBP, DE is EUR, US is USD. Omit it for the US. Do not send a currency field.
sort is bestValue (default), price, rating, stars, or distance. --sort-order changes price and stars only. asc is cheapest, or fewest stars, first. Rating is always highest first. Distance is always nearest first.
The search returns a searchToken, valid for 60 minutes. It does not return hotels. A city search usually answers in 8–16 seconds while it settles.
3. Read results
python3 scripts/ktemia.py results <searchToken>
Up to 30 hotels per page. The first page is often a few short of 30. Show a short list: name, stars, guest score, neighbourhood, and price. price is the stay before taxes, which is what a price sort uses. total includes taxes. If nextToken is present and the user wants more, call results <nextToken>.
availableFilters on the full response (--raw) lists amenity ids you can send on a new search. Ask the user before starting that second search.
The summary also lists bookingSites: the sites selling stays in this search, each with a count. Those ids are what --providers takes.
4. Filter by booking site
When the user wants one site ("only Booking.com", "compare Expedia and Agoda"), read the ids off a results page and start a new search with them. A filter cannot be applied to an existing token.
python3 scripts/ktemia.py search --location 29230 --checkin 2027-03-10 --checkout 2027-03-12 --providers "Booking.com"
python3 scripts/ktemia.py search --location 29230 --checkin 2027-03-10 --checkout 2027-03-12 --providers "Booking.com,Expedia"
- Ids are display names with capitals and dots:
Booking.com,Expedia,Hotels.com,Priceline,Agoda.com,Trip.com,Super.com,HomeToGo. - Take them from
bookingSiteson a results page, exactly as written — matching is case-sensitive, unlike--amenitieswhich is lowercased. Separate with commas only, so an id containing a space is fine. - Up to 10. An id with
,,;, or=in it is rejected. - Which sites appear changes by city and date, so read the ids rather than hard-coding them. Tell the user this is a second search against their quota, and ask first.
With two or more sites, bestOption on each hotel is the cheapest among them, and details lists only those sites. availableFilters.bookingSites still lists every site in the search, so the user can
Установить Hotel Search API в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Bash(python3 scripts/ktemia.py:*)FAQ
Что делает скилл Hotel Search API?
Search and compare hotels with the Ktemia hotel API and return each seller's price, a booking link, and guest reviews. Use when the user asks to find, compare, or price a stay in a city on specific dates, to narrow prices to one booking site, or to read reviews of a hotel. Asks for missing details instead of guessing.
Как установить скилл Hotel Search API?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Hotel Search API запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic