Skip to content
looot docs
Esc
↑↓navigate↵open⌘Jpreview
On this page

SearchAPI.io - Google Hotels API

SearchAPI.io tool searchapi-io-google-hotels on looot: input fields, $0.004 per call, output shape, and code to run it with curl, JavaScript or Python.

The Google Hotels API provides comprehensive hotel and vacation rental search capabilities. Search for accommodations by location or within geographic boundaries, filter by amenities, price, and property type, and get detailed information about each property including pricing, reviews, and availability. Cross-linking: The property_token returned by this API can be used with the Google Hotels Property API to fetch detailed information about a specific property. Pass it as the property_token parameter. Send one of: q, bounding_box. Dates must be in the future.

  • Tool id: searchapi-io-google-hotels
  • Provider: SearchAPI.io
  • Job: Google hotels search (search.google-hotels)
  • Price: $0.004 per call. A call that fails at the provider costs $0.

Inputs

Name Type Required Description
adults integer no
amenities string no
bathrooms integer no
bedrooms integer no
bounding_box string no
brands string no
check_in_date string yes Example: “2027-09-15”
check_out_date string yes Example: “2027-09-17”
children_ages string no
currency string no
eco_certified boolean no
engine string no Fixed to “google_hotels” for this endpoint. Example: “google_hotels”
for_displaced_individuals boolean no
free_cancellation boolean no
gl string no
hl string no
hotel_class string no
next_page_token string no
price_max number no
price_min number no
property_type string no
property_types string no
q string no Example: “Paris”
rating string no
sort_by string no
special_offers boolean no

Output

The run’s result holds the provider’s answer. Signed in, looot inspect searchapi-io-google-hotels prints its fields.

Run it

Every call needs your API token in LOOOT_TOKEN; Sign in shows how to get one. Each run also needs a new idempotency key, so a retry never pays twice. With wait: 30 the answer comes back inline when the run ends within 30 seconds. Otherwise you get the running run back: poll GET /v1/runs/<runId>.

Example input with placeholder values:

curl -X POST "https://api.looot.ai/v1/runs" \
  -H "Authorization: Bearer $LOOOT_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"endpointId":"searchapi-io-google-hotels","input":{"check_in_date":"2027-09-15","check_out_date":"2027-09-17","q":"Paris","engine":"google_hotels"},"wait":30}'
const response = await fetch("https://api.looot.ai/v1/runs", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.LOOOT_TOKEN}`,
    "Content-Type": "application/json",
    "Idempotency-Key": crypto.randomUUID(),
  },
  body: JSON.stringify({
    endpointId: "searchapi-io-google-hotels",
    input: {
      check_in_date: "2027-09-15",
      check_out_date: "2027-09-17",
      q: "Paris",
      engine: "google_hotels",
    },
    wait: 30,
  }),
});
const run = await response.json();
console.log(run.status, run.result);
import os
import uuid

import requests

response = requests.post(
    "https://api.looot.ai/v1/runs",
    headers={
        "Authorization": f"Bearer {os.environ['LOOOT_TOKEN']}",
        "Idempotency-Key": str(uuid.uuid4()),
    },
    json={
        "endpointId": "searchapi-io-google-hotels",
        "input": {
            "check_in_date": "2027-09-15",
            "check_out_date": "2027-09-17",
            "q": "Paris",
            "engine": "google_hotels",
        },
        "wait": 30,
    },
    timeout=90,
)
run = response.json()
print(run["status"], run.get("result"))

To let looot pick among every provider of this job instead, send job:search.google-hotels as endpointId; see the job page.

Was this page helpful?