# Airbnb Scraper (`datahamster/airbnb-scraper`) Actor

Airbnb scraper for search results in any city: listing name, type, price for your dates, price per night, rating, reviews, beds, bedrooms, Superhost and Guest favourite flags, coordinates and photos. No login. Monitor mode returns only new listings and price changes for a saved search.

- **URL**: https://apify.com/datahamster/airbnb-scraper.md
- **Developed by:** [Viktor Dubnytskiy](https://apify.com/datahamster) (community)
- **Categories:** Travel, Real estate
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.24 / 1,000 result items

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

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 examples already wired to this Actor's own input schema, see the [API](#api) section below.

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`).

# README

## Airbnb Scraper

Get Airbnb search results for any city or region as one flat row per listing: name, property and room type, the total price for your dates and the price per night, rating and review count, bedrooms, beds and baths, Superhost and Guest favourite flags, coordinates and photo URLs. No login, no cookies, no Airbnb account.

**Try it:** the prefilled example returns 20 rows in about 6 seconds and costs about $0.06. Results cost $2.80 per 1,000.

### What you get

Real rows from the example dataset (`locations: ["Lisbon, Portugal", "New York, NY"]`, no dates, so Airbnb picked the dates shown):

| name | type / area | price | per night | rating (reviews) | bedrooms / beds | badges |
|---|---|---|---|---|---|---|
| Charming Alfama Retreat w/ Balcony - Portas do Sol | Apartment in Graça | $179 for 2 nights, originally $219 (Dec 2 to 4) | $89.50 | 4.96 (28) | 1 / 2 | Guest favourite |
| Historic Design Apartment Castle | Apartment in Graça | $229 for 2 nights, originally $281 (Nov 18 to 20) | $114.50 | 4.88 (8) | 1 / 1 | Guest favourite |
| Tram 28 - Marvelous Balcony & Tagus River Views 3D | Apartment in Graça | $244 for 2 nights, originally $291 (Nov 28 to 30) | $122.00 | 4.92 (735) | 1 / 2 | Guest favourite |
| Cozy bedroom with city views | Room in New York City | $250 for 2 nights (Nov 22 to 24) | $125.00 | 4.99 (165) | not shown / 1 | Guest favourite |
| Cute Studio: Walk to Times Square | Apartment in New York City | $469 for 2 nights, originally $639 (Nov 29 to Dec 1) | $234.50 | 4.71 (302) | 1 / 1 | Guest favourite |

Full row: `listingId`, `url`, `name`, `title`, `subtitle`, `propertyType`, `roomType` (Entire home/apt, Private room, Shared room, Hotel room), `neighborhood`, `city`, `lat`, `lng`, `rating`, `reviewsCount`, `isNew`, `priceTotal`, `priceOriginal`, `pricePerNight`, `nights`, `currency`, `priceText`, `bedrooms`, `beds`, `bathrooms`, `unitsAvailable`, `bedInfo`, `isSuperhost`, `isGuestFavorite`, `isTopGuestFavorite`, `isFeaturedHotel`, `badges`, `thumbnail`, `photos`, `freeCancellation`, `checkIn`, `checkOut`, `adults`, `locationQuery`, `matchedLocation`.

### Use cases

- **Short-term rental market research.** Pull every listing Airbnb shows for a city and your dates to compare nightly prices, ratings and property types by neighbourhood.
- **Price tracking for a trip or a competitor set.** Save a search with fixed dates in monitor mode and get only new listings and nightly price changes on each scheduled run.
- **Hosts and property managers.** See what similar places nearby charge for the same dates before you set your own price.

### Monitor mode

Save the task, then set:

```json
{
  "mode": "monitor",
  "monitorStateId": "lisbon-december",
  "locations": ["Lisbon, Portugal"],
  "checkIn": "2026-12-01",
  "checkOut": "2026-12-04",
  "webhookUrl": "https://your-endpoint.example.com/hook"
}
```

Put it on a schedule (Apify, Schedules). Each run charges one `monitor-check` event ($0.005) and returns only listings that are new or whose price per night changed since the previous run, each billed as one `change` event ($0.0028).

Monitor mode needs both `checkIn` and `checkOut`. Without dates Airbnb picks different nights for every listing on every run, so every price would look changed; a monitor input without dates stops with an `invalid_input` reason before any page is fetched. Listings that Airbnb shows for other nights than the ones you asked for are left out of monitor results.

### Related actors

- [Zillow Scraper](https://apify.com/datahamster/zillow-scraper): for-sale and for-rent listings from US cities, with the same new-listing and price-change monitor.
- [PropertyFinder.ae Scraper](https://apify.com/datahamster/propertyfinder-ae-listings): rent and sale listings in Dubai and the UAE, with alerts.
- [Yelp Business Scraper & Monitor](https://apify.com/datahamster/yelp-business-monitor): ratings, hours and change alerts for local businesses.

### How it works

1. Each location becomes an Airbnb search page (`airbnb.com/s/<location>/homes`) with your dates, guests, currency and filters, the same page a logged-out visitor sees.
2. Listing cards are read from the JSON Airbnb embeds in that page, not from visible text.
3. Pages are followed through the page list Airbnb itself provides (up to 15 pages of 18 listings). Listings repeated on later pages are returned once.
4. Airbnb answers a place it does not know with listings from anywhere in the world, and a town it cannot resolve with listings from the whole country. The actor checks the location Airbnb says it searched, and with `strictLocationMatch` on (the default) such a location returns nothing and costs nothing. Each run saves what Airbnb searched for every location as `LOCATION_MATCH` in its key-value store.
5. Accents are removed before the search ("Kraków" is sent as "Krakow"), because Airbnb resolves accented names only in that form.

**Tip:** add the country to a town name, e.g. `Zürich, Switzerland` or `Évora, Portugal`.

### Input

| Field | Meaning | Default |
|---|---|---|
| `locations` | Places as you would type them into Airbnb, or airbnb.com/s/... URLs | `["Lisbon, Portugal"]` |
| `checkIn` / `checkOut` | Stay dates, YYYY-MM-DD; both or neither, required in monitor mode | none (Airbnb picks dates) |
| `adults` | Number of adult guests | `2` |
| `priceMin` / `priceMax` | Airbnb's nightly price filter in the chosen currency | none |
| `roomType` | Entire home/apt, Private room, Shared room or Hotel room | any |
| `currency` | Currency code for all prices | `USD` |
| `maxPagesPerLocation` | Pages of 18 listings per location, 1 to 15 | `15` |
| `strictLocationMatch` | Skip locations Airbnb does not recognise | `true` |
| `maxItems` | Stop the whole run after this many rows | `200` |
| `mode`, `monitorStateId`, `webhookUrl`, `telegramBotToken`, `telegramChatId` | Monitor mode and its alerts | scrape |

### Pricing

| Event | Price |
|---|---|
| result | $0.0028 per listing ($2.80 per 1,000) |
| monitor-check | $0.005 per monitor run |
| change | $0.0028 per new or changed listing |

You pay only for listings actually pushed. Platform usage is small because the pages are fetched without a proxy (about $0.001 for 100 listings in our test).

**Found it useful?** A short review on the Store page helps other people find this actor. If a row looks wrong, open an issue on the actor page.

### Limits

- Airbnb shows at most about 270 listings (15 pages) per search. Split a big city into neighbourhoods to get more.
- Without dates Airbnb picks dates per listing, so prices in one run can be for different nights. The dates every price is for are in `checkIn` and `checkOut`.
- `roomType` is derived from the card ("Room in ..." is a private room, a Featured hotel card is a hotel room, other cards are entire places). When you filter by room type, cards of other types that Airbnb mixes in are dropped.
- Bedrooms, beds and baths are present only when the card shows them. Multi-unit cards show `unitsAvailable` instead.
- A rate limit from Airbnb (HTTP 429) that lasts through the retries ends the run. Rows pushed before it are kept and the run summary shows `rate_limited`.
- No host names, host profiles or reviews. The Superhost badge is a yes/no flag on the listing.

### FAQ

**Do I need an Airbnb account?** No. Every request is made as a logged-out visitor.

**Can I get prices in euros or pounds?** Yes, set `currency` to `EUR`, `GBP` or any other code Airbnb supports. Prices and filters then use that currency.

**What happens with a misspelled location?** If Airbnb does not recognise it, or falls back to the whole country, nothing is pushed for it and nothing is charged. When no location in the run was recognised, the run log lists them and `RUN_SUMMARY` in the key-value store shows `no_matches`.

**Are host names collected?** No. Airbnb puts host first names into some price explanations; that text is never read.

### Changelog

- 0.1: initial release with search pages, dates, guests, price and room type filters, currency, deduplicated pagination, location check (including country fallbacks) and monitor mode with fixed dates.

# Actor input Schema

## `locations` (type: `array`):

Places to search, the way you would type them into Airbnb ("Lisbon, Portugal", "New York, NY"), or airbnb.com/s/... search URLs. One per line. Add the country to a town name, e.g. "Zürich, Switzerland".

## `checkIn` (type: `string`):

YYYY-MM-DD. Set both dates or neither; monitor mode needs both. Without dates Airbnb picks dates itself and every row shows them in checkIn/checkOut.

## `checkOut` (type: `string`):

YYYY-MM-DD, after the check-in date.

## `adults` (type: `integer`):

Number of adult guests. Airbnb only shows places that fit them and prices for that many guests.

## `priceMin` (type: `integer`):

Optional. Airbnb's own nightly price filter, in the chosen currency. Example: 50.

## `priceMax` (type: `integer`):

Optional. Airbnb's own nightly price filter, in the chosen currency. Example: 200.

## `roomType` (type: `string`):

Optional. Sent as Airbnb's room type filter; cards of other types that Airbnb mixes in when few places match are dropped.

## `currency` (type: `string`):

Three-letter currency code for prices, e.g. USD, EUR, GBP.

## `maxPagesPerLocation` (type: `integer`):

Airbnb serves up to 15 pages of 18 listings (about 270) per search. Lower it to save time.

## `strictLocationMatch` (type: `boolean`):

Airbnb fills a search for a place it does not know with listings from anywhere, or from the whole country. When on, such a location returns nothing and is not charged.

## `maxItems` (type: `integer`):

Stop after this many listings (you are charged only for pushed items).

## `mode` (type: `string`):

scrape = full results; monitor = only new/changed items since the previous run of this task

## `monitorStateId` (type: `string`):

Optional state id when not running as a saved task (monitor mode)

## `webhookUrl` (type: `string`):

POST a change summary here in monitor mode

## `telegramBotToken` (type: `string`):

Optional: bot token for monitor-mode change summaries

## `telegramChatId` (type: `string`):

Optional: chat id that receives monitor-mode summaries

## Actor input object example

```json
{
  "locations": [
    "Lisbon, Portugal",
    "New York, NY"
  ],
  "adults": 2,
  "currency": "USD",
  "maxPagesPerLocation": 1,
  "strictLocationMatch": true,
  "maxItems": 20,
  "mode": "scrape"
}
```

# Actor output Schema

## `results` (type: `string`):

All pushed rows (dataset, JSON)

## `resultsTable` (type: `string`):

Dataset in the Console viewer

## `runSummary` (type: `string`):

RUN_SUMMARY record

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "locations": [
        "Lisbon, Portugal",
        "New York, NY"
    ],
    "maxPagesPerLocation": 1,
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("datahamster/airbnb-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "locations": [
        "Lisbon, Portugal",
        "New York, NY",
    ],
    "maxPagesPerLocation": 1,
    "maxItems": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("datahamster/airbnb-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "locations": [
    "Lisbon, Portugal",
    "New York, NY"
  ],
  "maxPagesPerLocation": 1,
  "maxItems": 20
}' |
apify call datahamster/airbnb-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,datahamster/airbnb-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/l7KCYLnw0eFdfKwXr/builds/zvXebXHgKal2zR5Gv/openapi.json
