# 4 and 5 star hotels in New York, cheapest first

**Use case:** 

The cheapest 4 and 5 star hotels in New York on Google Hotels, sorted by price: price per night with and without taxes, total price, star class, rating, reviews, location and amenities. Change the city, dates, star class and price range to find the best deals anywhere.

## Input

```json
{
  "locations": [
    "New York"
  ],
  "checkInDate": "",
  "checkOutDate": "",
  "nights": 2,
  "adults": 2,
  "childrenAges": [],
  "currency": "USD",
  "maxHotelsPerLocation": 50,
  "includeVendorPrices": false,
  "propertyType": "hotels",
  "sortBy": "lowest_price",
  "hotelClass": [
    "4",
    "5"
  ],
  "minRating": "any",
  "amenities": [],
  "freeCancellation": false,
  "specialOffers": false,
  "ecoCertified": false,
  "language": "en",
  "country": "us"
}
```

## Output

```json
{
  "location": {
    "label": "Location",
    "format": "text"
  },
  "position": {
    "label": "#",
    "format": "number"
  },
  "name": {
    "label": "Name",
    "format": "text"
  },
  "type": {
    "label": "Type",
    "format": "text"
  },
  "rating": {
    "label": "Rating",
    "format": "number"
  },
  "reviewCount": {
    "label": "Reviews",
    "format": "number"
  },
  "displayedPrice": {
    "label": "Price shown",
    "format": "text"
  },
  "pricePerNightWithTaxes": {
    "label": "Per night incl. taxes",
    "format": "number"
  },
  "currency": {
    "label": "Currency",
    "format": "text"
  },
  "checkIn": {
    "label": "Check-in",
    "format": "text"
  },
  "checkOut": {
    "label": "Check-out",
    "format": "text"
  },
  "cheapestVendor": {
    "label": "Cheapest site",
    "format": "text"
  },
  "cheapestPricePerNightWithTaxes": {
    "label": "Cheapest per night",
    "format": "number"
  },
  "googleHotelsUrl": {
    "label": "Google Hotels",
    "format": "link"
  },
  "status": {
    "label": "Status",
    "format": "text"
  },
  "error": {
    "label": "Error",
    "format": "text"
  }
}
```

## About this Actor

This example demonstrates how to use [Google Hotels Scraper – Prices, Booking Sites, Reviews](https://apify.com/brii3343/google-hotels-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/brii3343/google-hotels-scraper.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/brii3343/google-hotels-scraper.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
