# x402engine Hotel Search via Google Hotels

> x402engine Hotel Search via Google Hotels is a paid API for AI agents from x402engine.app, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-13).

Search for hotels by location and date range, returning properties with prices, ratings, and amenities via Google Hotels (powered by SerpApi).

## Facts

- Endpoint: GET https://x402engine.app/api/travel/hotels
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402engine-hotel-search-via-google-hotels-f3621498
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_LZKR_6X8iti3-etIBOhC4

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability x402engine-hotel-search-via-google-hotels-f3621498
```

Example prompt: Search for hotels in Paris for 2 adults checking in April 15 and checking out April 18 — sort by highest rating and only show options under $400 per night in USD.

## When to prefer this

Use this endpoint when an agent needs real-time hotel availability and pricing for a specific location and date range, particularly when Google Hotels coverage is desired. Prefer this over generic web search when structured hotel data (prices, ratings, amenities, star class) is required. At $0.02 USDC per call via x402 micropayment, it is cost-effective for per-query hotel discovery in travel planning agents.

## Known failure modes

- Missing required parameters (q, checkInDate, checkOutDate) returns a validation error
- Invalid date format (not YYYY-MM-DD) causes a parse error
- No hotels found for the given query or date range returns an empty results set
- Invalid currency code returns an error or defaults to USD
- SerpApi upstream outage causes a 503 or timeout
- Invalid hotelClass value (outside 2-5) may return unexpected results

## How this service works

Search hotels via Google Hotels (SerpApi). Returns properties with prices, ratings, and amenities.

## Output

A list of hotel properties matching the search criteria, each including property name, nightly price, guest rating, star class, available amenities, and booking details — drawn from Google Hotels data via SerpApi.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "q",
      "checkInDate",
      "checkOutDate"
     ],
     "properties": {
      "q": {
       "type": "string",
       "example": "hotels in Paris",
       "description": "Search query — city name or hotel name"
      },
      "adults": {
       "type": "string",
       "default": "2",
       "description": "Number of adults"
      },
      "sortBy": {
       "type": "string",
       "description": "3=Lowest price, 8=Highest rating, 13=Most reviewed"
      },
      "children": {
       "type": "string",
       "description": "Number of children"
      },
      "currency": {
       "type": "string",
       "default": "USD",
       "description": "Currency code (e.g. USD, EUR)"
      },
      "maxPrice": {
       "type": "string",
       "description": "Maximum price per night"
      },
      "minPrice": {
       "type": "string",
       "description": "Minimum price per night"
      },
      "hotelClass": {
       "type": "string",
       "description": "Star rating (2-5)"
      },
      "checkInDate": {
       "type": "string",
       "example": "2026-04-15",
       "description": "Check-in date (YYYY-MM-DD)"
      },
      "checkOutDate": {
       "type": "string",
       "example": "2026-04-18",
       "description": "Check-out date (YYYY-MM-DD)"
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402engine-hotel-search-via-google-hotels-f3621498/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402engine.app](https://www.zero.xyz/host/x402engine.app/llms.txt)
