# Airbnb Price Statistics by Neighborhood (`bonpleincapital/airbnb-price-stats`) Actor

Airbnb price statistics per neighborhood: median, mean, quartiles, min, max nightly price, listings count and rating from public search. For hosts and investors. No occupancy data.

License: personal use only; resale and redistribution prohibited.
Created with the help of artificial intelligence.

- **URL**: https://apify.com/bonpleincapital/airbnb-price-stats.md
- **Developed by:** [Bon Plein Capital](https://apify.com/bonpleincapital) (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 $1.20 / 1,000 neighborhood results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
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 Price Statistics by Neighborhood

**Airbnb price statistics** in one click: this Actor reads the public Airbnb search results for any neighborhood and returns the median, mean, quartile, minimum and maximum nightly price, the number of listings and the average guest rating. Hosts, short-term rental investors and analysts can compare neighborhoods in a table instead of scrolling listings by hand. Export to JSON, CSV or Excel, or call it from the API.

### What can this Actor do?

- Compute Airbnb price statistics (median, mean, 25th and 75th percentile, min, max) for each neighborhood you list.
- Count the public listings with a readable price and average their guest rating.
- Return one clean row per neighborhood, ready for a spreadsheet or a market analysis.
- Work without any login: only public search pages are read.

Honest limits: the Actor reads the first page of public search results (often only a few listings are readable, up to about 18; check `listingsCount`) with prices converted to a nightly figure and no dates. Occupancy rates are not shown publicly by Airbnb, so they are not estimated. If Airbnb does not serve a page, the row has the status `no_listings_found` instead of invented numbers.

### How to use it

1. Click **Try for free** and open the **Input** tab.
2. Write one "Neighborhood, City, Country" per line, for example `Alfama, Lisbon, Portugal`.
3. Choose a currency and the maximum number of results, then click **Start**.
4. Download the results from the **Output** tab, or call the Actor from the API, Make, Zapier or n8n.

### Input

```json
{
  "queries": ["Alfama, Lisbon, Portugal", "Shoreditch, London, UK"],
  "currency": "USD",
  "maxItems": 2
}
```

### Output

Each neighborhood is one dataset item:

```json
{
  "query": "Alfama, Lisbon, Portugal",
  "currency": "USD",
  "listingsCount": 18,
  "medianNightlyPrice": 112,
  "meanNightlyPrice": 124.5,
  "minNightlyPrice": 55,
  "maxNightlyPrice": 310,
  "p25NightlyPrice": 85,
  "p75NightlyPrice": 150,
  "averageRating": 4.8,
  "status": "ok"
}
```

### How much does it cost?

This Actor uses **pay per event** pricing: one `result` event per neighborhood row. 1,000 results cost the price of 1,000 `result` events shown in the **Pricing** tab, so 1,000 neighborhoods are compared for a few dollars. Apify's free plan gives monthly credits to try it first.

### FAQ

#### Is it legal to use this Actor?

The Actor only reads public pages and returns aggregated prices, no personal data. You are responsible for using the results lawfully, including the GDPR if you combine them with personal data, and for respecting Airbnb's terms.

#### Why is the occupancy rate missing?

Airbnb does not publish occupancy on public search pages. This Actor never logs in and never bypasses captchas, so it does not guess it.

#### What if something does not work?

Open an issue in the **Issues** tab with your input and the run link. Airbnb can change its page layout, and we fix parsing quickly.

#### Can I use it through the API?

Yes. Every run can be started and read through the Apify API and its Python and JavaScript clients.

***

Created with the help of artificial intelligence.

# Changelog

This Actor's version history is a separate document: https://apify.com/bonpleincapital/airbnb-price-stats/changelog.md

# Actor input Schema

## `queries` (type: `array`):

One 'Neighborhood, City' per line. Each one returns one row of Airbnb price statistics.

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

Currency code of the prices (USD, EUR, GBP...).

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

Stop after this many neighborhoods. Keep it low to test the Actor cheaply.

## Actor input object example

```json
{
  "queries": [
    "Alfama, Lisbon, Portugal",
    "Shoreditch, London, UK"
  ],
  "currency": "USD",
  "maxItems": 1
}
```

# Actor output Schema

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

One dataset item per result, shown in the Overview view.

# 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 = {
    "queries": [
        "Alfama, Lisbon, Portugal"
    ],
    "currency": "USD",
    "maxItems": 1
};

// Run the Actor and wait for it to finish
const run = await client.actor("bonpleincapital/airbnb-price-stats").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 = {
    "queries": ["Alfama, Lisbon, Portugal"],
    "currency": "USD",
    "maxItems": 1,
}

# Run the Actor and wait for it to finish
run = client.actor("bonpleincapital/airbnb-price-stats").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 '{
  "queries": [
    "Alfama, Lisbon, Portugal"
  ],
  "currency": "USD",
  "maxItems": 1
}' |
apify call bonpleincapital/airbnb-price-stats --silent --output-dataset

```

## MCP server setup

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

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/9EB7wu7kVfcvnxeIG/builds/TsV4cTFBjlV7Xf5EQ/openapi.json
