# Hotel Rate Scraper for a 28-Night Stay in Chiang Mai

**Use case:** 

Long stays are priced differently: monthly rates, weekly discounts, different properties. One adult for twenty-eight nights, six weeks out, the fifty cheapest in dollars, price_total for the whole stay and price_nightly derived from it, so a month in an aparthotel and a month in a hotel compare on one column. Nights goes up to thirty. Cost: 50 hotel rows at $0.004 = at most $0.20 a run.

## Input

```json
{
  "locationQueries": [
    "Chiang Mai"
  ],
  "maxHotelsPerQuery": 50,
  "startUrls": [],
  "hotelNames": [],
  "hotelIds": [],
  "checkIn": "6 weeks",
  "nights": 28,
  "adults": 1,
  "childrenAges": [],
  "rooms": 1,
  "currency": "USD",
  "sortBy": "price",
  "minStars": 0,
  "maxPrice": 0,
  "includeRooms": false,
  "locale": "en-US",
  "sessions": 4,
  "perIp": 1,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

## Output

```json
{
  "name": {
    "label": "Property name",
    "format": "string"
  },
  "price_nightly": {
    "label": "Nightly rate",
    "format": "number"
  },
  "price_total": {
    "label": "Stay total",
    "format": "number"
  },
  "currency": {
    "label": "Currency",
    "format": "string"
  },
  "stars": {
    "label": "Stars",
    "format": "number"
  },
  "review_score": {
    "label": "Review score",
    "format": "number"
  },
  "room_name": {
    "label": "Cheapest room",
    "format": "string"
  },
  "free_cancellation": {
    "label": "Free cancellation",
    "format": "boolean"
  },
  "breakfast_included": {
    "label": "Breakfast included",
    "format": "boolean"
  },
  "display_location": {
    "label": "Neighbourhood",
    "format": "string"
  },
  "url": {
    "label": "Property URL",
    "format": "string"
  }
}
```

## About this Actor

This example demonstrates how to use [Booking.com Scraper — Hotel Prices & Availability by Date](https://apify.com/kestrel/booking-prices-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/kestrel/booking-prices-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/kestrel/booking-prices-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`).
