# Google Hotels API

Hotels from Google Hotels with property and place IDs, category, star rating and prices for your dates. Search by location, check-in and check-out date, or hotel class.

**Pricing:** $0.002 per hotel

**Endpoint:** `POST /v1/data/google-hotels/hotels/run`

**Auth:** `Authorization: Bearer mk_live_...`

## Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `location` | string | Yes | Location. |
| `checkInDate` | date | Yes | Check In Date as a date (YYYY-MM-DD). |
| `checkOutDate` | date | Yes | Check Out Date as a date (YYYY-MM-DD). |
| `hotelClass` | array | No | One or more hotel class. One request reads them all. |
| `sortBy` | string | No | Sort By to use. Relevance by default. |
| `adults` | integer | No | Adults as a whole number. |
| `currency` | string | No | Three-letter currency code for prices, e.g. USD, EUR, GBP, INR. Defaults to USD. |
| `maxResults` | integer | No | How many hotels to return in total. Defaults to 100; use 0 for all. |

## Example

`?wait=true` holds the request open until the run finishes (up to 60s) and returns the rows inline: one request, no polling.

```bash
curl -X POST "https://api.mindcase.co/v1/data/google-hotels/hotels/run?wait=true" \
  -H "Authorization: Bearer mk_live_YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"params":{"location":"...","checkInDate":"...","checkOutDate":"..."}}'
```

```python
import requests

resp = requests.post(
    "https://api.mindcase.co/v1/data/google-hotels/hotels/run",
    params={"wait": "true"},
    headers={"Authorization": "Bearer mk_live_YOUR_API_KEY"},
    json={"params": {
    "location": "...",
    "checkInDate": "...",
    "checkOutDate": "..."
}},
)
rows = resp.json()["data"]
```

## Longer runs

If the run is still going at the 60s ceiling you get back `{ job_id, status: "running" }` instead of rows (same if the result is over 100 rows; those come back `truncated`). Poll with that `job_id`:

```bash
# 1) check status
curl https://api.mindcase.co/v1/jobs/JOB_ID \
  -H "Authorization: Bearer mk_live_YOUR_API_KEY"

# 2) when status == completed, fetch the rows
curl https://api.mindcase.co/v1/jobs/JOB_ID/results \
  -H "Authorization: Bearer mk_live_YOUR_API_KEY"
```

Full API reference (auth, jobs, balance, SDKs, MCP): https://mindcase.co/skills.md

## Response columns

| Field | Display name | Type |
|-------|--------------|------|
| `name` | Name | text |
| `hotelUrl` | Hotel URL | url |
| `propertyId` | Property ID | text |
| `placeId` | Place ID | text |
| `category` | Category | text |
| `starRating` | Star Rating | number |
| `checkIn` | Check In | date |
| `checkOut` | Check Out | date |
| `pricePerNight` | Price Per Night | number |
| `totalPrice` | Total Price | number |
| `currency` | Currency | text |
| `originalPricePerNight` | Original Price Per Night | number |
| `priceHistory` | Price History | object |
| `rating` | Rating | rating |
| `reviews` | Reviews | number |
| `ratingDistribution` | Rating Distribution | object_array |
| `reviewAspects` | Review Aspects | object_array |
| `externalRatings` | External Ratings | object_array |
| `reviewSummaryPositive` | Review Summary Positive | text |
| `reviewSummaryNegative` | Review Summary Negative | text |
| `featuredReviewSnippets` | Featured Review Snippets | array |
| `amenities` | Amenities | array |
| `address` | Address | text |
| `phone` | Phone | phone |
| `website` | Website | url |
| `latitude` | Latitude | number |
| `longitude` | Longitude | number |
| `neighborhood` | Neighborhood | text |
| `neighborhoodDescription` | Neighborhood Description | text |
| `locationHierarchy` | Location Hierarchy | object_array |
| `countryCode` | Country Code | text |
| `description` | Description | text |
| `highlights` | Highlights | array |
| `checkInTime` | Check In Time | text |
| `checkOutTime` | Check Out Time | text |
| `ecoCertified` | Eco Certified | boolean |
| `inclusivityLabels` | Inclusivity Labels | array |
| `thumbnail` | Thumbnail | url |
| `roomTypes` | Room Types | object_array |
| `bookingLinks` | Booking Links | object_array |
| `photos` | Photos | object_array |
| `nearbyPlaces` | Nearby Places | object_array |
