编程

Scavio Google Hotels

试用

Search Google Hotels for a destination and dates, then fetch per-property vendor pricing and full details — as structured JSON. Price, rating, class, and amenity filters. v2 engine, 1 credit per request.

它能做什么

Search Google Hotels for a destination and dates, then fetch per-property vendor pricing and full details — as structured JSON. Price, rating, class, and amenity filters. v2 engine, 1 credit per request.

技能文档

Google Hotels API - Hotel Search, Rates, Ratings, Amenities

Search Google Hotels for a destination and stay dates, then open any property for full details and per-vendor pricing — all as structured JSON. Two endpoints, each 1 credit.

When to trigger

Use this skill when the user asks to:

  • Find hotels or vacation rentals for a destination and dates
  • Compare lodging by price, rating, class, or amenities
  • Get full details and booking-site prices for a specific property

Setup

Get a free API key at scavio.dev (50 free credits to get started, no card required):

export SCAVIO_API_KEY=sk_live_your_key

Endpoints

EndpointCreditsDescription
POST https://api.scavio.dev/api/v2/google/hotels1Search lodging, returns properties[]
POST https://api.scavio.dev/api/v2/google/hotels/detail1Full property details + vendor prices
Authorization: Bearer $SCAVIO_API_KEY

Workflow

  1. Search: call /hotels with query (use the " hotels" form), check_in_date, and check_out_date. Filter with price, rating, class, and amenities.
  2. Read properties[]; each has a name, rate_per_night, overall_rating, and a detail_token.
  3. Details: call /hotels/detail with a property's detail_token and the same stay dates to get full info and booking-site prices in property.booking_sources.
  4. Page more results with next_page_token from the search response.

Hotels Search Parameters

ParameterTypeDefaultDescription
querystringrequiredUse the " hotels" form (e.g. Bali hotels)
check_in_datestringrequiredCheck-in YYYY-MM-DD
check_out_datestringrequiredCheck-out YYYY-MM-DD
sort_bynumber--3 lowest price, 8 highest rating, 13 most reviewed
min_pricenumber--Minimum nightly price
max_pricenumber--Maximum nightly price
ratingnumber--7 (3.5+), 8 (4.0+), 9 (4.5+)
hotel_classstring--Comma-separated 2-5 (e.g. 4,5)
amenitiesstring--Amenity filter ids
property_typesstring--12 = vacation rentals
free_cancellationboolean--Only free-cancellation offers
eco_certifiedboolean--Only eco-certified properties
special_offersboolean--Only special offers
next_page_tokenstring--Pagination cursor from a prior response
limitnumber--Cap properties returned (1-20)
hlstring--UI language
glstring--Geo country
currencystring--Currency code (e.g. USD)

Hotels Detail Parameters

ParameterTypeDefaultDescription
detail_tokenstringrequiredFrom a listing property's detail_token
check_in_datestringrequiredCheck-in YYYY-MM-DD
check_out_datestringrequiredCheck-out YYYY-MM-DD
currencystring--Currency code
glstring--Geo country
hlstring--UI language

Example

import requests

BASE = "https://api.scavio.dev"
# Your key from https://scavio.dev/?utm_source=clawhub&utm_medium=skill&utm_campaign=google-hotels-api. Load it from your environment or secret
# store in real code - keep it out of source control.
API_KEY = "sk_your_key_here"
HEADERS = {"Authorization": f"Bearer {API_KEY}"}
DATES = {"check_in_date": "2026-10-01", "check_out_date": "2026-10-05"}

# 1. Search hotels, highest rated first
search = requests.post(f"{BASE}/api/v2/google/hotels", headers=HEADERS,
    json={"query": "Bali hotels", **DATES, "sort_by": 8, "rating": 8}).json()

prop = search["properties"][0]
print(prop["name"], prop.get("overall_rating"), prop.get("rate_per_night"))

# 2. Full details + vendor prices for that property
detail = requests.post(f"{BASE}/api/v2/google/hotels/detail", headers=HEADERS,
    json={"detail_token": prop["detail_token"], **DATES, "currency": "USD"}).json()
for src in detail["property"]["booking_sources"]:
    print(src.get("source"), src.get("rate_per_night"))

Responses

Search returns properties[]; detail returns property with booking_sources[]. Each also includes response_time, credits_used, credits_remaining, and cached.

{
  "properties": [
    {
      "name": "Example Resort",
      "type": "hotel",
      "overall_rating": 4.6,
      "reviews": 3120,
      "hotel_class": 5,
      "rate_per_night": { "lowest": "$180", "extracted_lowest": 180 },
      "detail_token": "CggI...Aw"
    }
  ],
  "response_time": 1760,
  "credits_used": 1,
  "credits_remaining": 993,
  "cached": false
}

Guardrails

  • Each call costs 1 credit.
  • Never fabricate property names, ratings, prices, or vendors. Only return API data.
  • The detail call needs a detail_token from a search result plus the same stay dates — always run /hotels first.
  • Prices reflect the requested currency; state the currency and the stay dates when quoting.

Failure handling

  • 400 means an invalid parameter (e.g. missing dates or detail_token) — fix and retry.
  • 401 means the API key is invalid or missing. Check SCAVIO_API_KEY.
  • 429 means rate or usage limit exceeded. Wait before retrying. See https://scavio.dev/docs/rate-limits?utm_source=clawhub&utm_medium=skill&utm_campaign=google-hotels-api.
  • 502 / 503 mean upstream is temporarily unavailable. Wait a few seconds before retrying.
  • If no properties are returned, loosen price/rating/class filters or try different dates.
  • If SCAVIO_API_KEY is not set, prompt the user to export it before continuing.

相关技能

Search Booking.com for a destination and stay with live nightly prices, pull one property in full with rooms and rate plans, and read guest reviews with the category breakdown. 3 endpoints, 1 credit each, structured JSON.

Researches hotels, flights, attractions, short-term rentals, and live events via the Crawlora API — Booking.com, Expedia, Agoda, TripAdvisor, Trip.com, Airbnb, and Ticketmaster — returning clean JSON. Use when the user wants to search or compare hotel/stay prices and reviews, look up flight options, find attractions/things-to-do or concerts/events, or research an Airbnb host or listing.

1 次安装

Find the cheapest hotel deal by comparing live prices across Booking.com, Agoda, Google Hotels, and OpenTravel for any city worldwide and any travel dates — one command returns ranked best-value, cheapest, and quality picks with direct booking links, all normalized to USD. Use whenever someone asks for hotel prices, hotel deals, the cheapest room or rate, best hotel rates, a hotel price comparison, or which OTA is cheaper — e.g. 'is Booking or Agoda cheaper for Tokyo', 'find me a hotel in Bangkok under $100', 'compare hotel prices for 12–15 Aug', 'cheapest hotel near Shinjuku'.

Search Booking.com hotels by location, dates and occupancy in one unified schema, with cross-OTA price comparison. Use for hotel discovery on Booking.com. Powered by StayingAPI.

3 次安装

Search live Google Hotels stays by location, dates and occupancy, returned in one unified schema alongside every other booking platform. Use when a user wants to find Google Hotels listings. Powered by the StayingAPI REST API / MCP server.

3 次安装