# Airbnb Competitor Analysis: Comps, Price & Occupancy (`thelastscraper/airbnb-competitor-analysis`) Actor

One Airbnb listing vs its 20 most comparable listings nearby: price percentile, occupancy range, ratings, amenity gaps and recommendations, each number with its n, plus a paste-ready report.

- **URL**: https://apify.com/thelastscraper/airbnb-competitor-analysis.md
- **Developed by:** [The Last Scraper](https://apify.com/thelastscraper) (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 $170.00 / 1,000 competitor analyses

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/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 Competitor Analysis

Give me one Airbnb listing and I compare it with the 20 most comparable listings around it, in one
run: I pick the comps in code (your own listings left out), compute where your price, occupancy,
rating and amenities stand, each number with how many comps it rests on, and write a report you or
your AI assistant can paste. **One price per analysis: $0.38 on the Free plan** ($0.17 on Gold),
plus at most $0.10 if I scan other weeks.

### Use it from an AI agent (MCP)

Add me as a tool through Apify's MCP server:
`https://mcp.apify.com?tools=thelastscraper/airbnb-competitor-analysis`. An input that works as is:

```json
{"listing": "https://www.airbnb.com/rooms/1290695487984975140", "dates": "auto", "adults": 2, "currency": "USD", "weekScan": "if_needed"}
```

- **Quote first, then run once.** The whole analysis is one run and one `analysis` event, whatever
  radius the comps need. The only extra is the week scan: at most 8 × `week-scan-week`. The most a
  run can cost is $0.48 on the Free plan. With fewer than 5 comps I charge nothing.
- **Send the listing ID as text** (`"1290695487984975140"`) or the URL: a JSON number loses digits.
- **Leave the dates to `auto`** unless the user gave dates: I read the listing's calendar and pick a
  stay it can sell, so it has a price to compare. `OUTPUT.dates.reason` says which dates and why.
- **Wait for the run to end** (2-8 minutes): call `get-actor-run` until it is SUCCEEDED, then read
  `OUTPUT` (`verdictCode`, `summary`, `nextStep`, `dates`, `missing`) and `REPORT_MD`, and present
  the report.
- **Everything in `OUTPUT.missing` is an offer** with its cost (hotels, channel prices, review
  themes...): ask the user before running any of it.
- **Rows:** your listing and its comps in the default dataset. Useful `fields`:
  `rank,listing_id,title,url,score,distance_km,price_per_night_before_taxes,availability,est_occupancy_calendar_adjusted_90,est_occupancy_calendar_90,rating,review_count`.

### What I do, step by step

1. **Dates.** With `dates: auto` I read your listing's calendar first and take the stay nearest to
   today + 30 days that it can sell: every night free, check-in allowed on the first day,
   check-out allowed on the day after the last night, at least that day's minimum stay, a check-in
   within 90 days and no night on 20 Dec-3 Jan. I try 5 nights, then 4, then 3, never fewer and
   never below the check-in day's minimum stay; if no such stay is free, I use the default dates
   (today + 30 days, 5 nights, 7 Jan if they touch the holidays) and say your calendar is full. If
   the default dates are booked or blocked, I say so. With `dates: explicit` I use your dates as
   given.
2. **Your listing.** Its page, its quote for the dates, its calendar, ratings and photos.
3. **Your own listings.** I read your host profile (and `hostProfileUrl`, if you give one) and
   leave every one of your listings out, by listing ID and by host ID. Listings you have on other
   accounts or co-host go in `excludeListings`: they are left out too.
4. **The radius.** I count listings like yours within 1 km for free; under 15, I double the radius,
   at most twice.
5. **The comp search.** Up to 60 candidates nearest first, with the same bedrooms, bathrooms within
   0.5, the same room type, no hotels, and the amenities you sell (pool, gym, hot tub, free
   parking) as Airbnb filters.
6. **The comp set, in code.** Hard filters: not yours; the same room type and bedrooms; bathrooms
   within 0.5 and guests within 2; a studio never competes with a non-studio (lofts, duplexes and
   apartments do compete: the same format only raises the score); within the radius; every
   amenity your listing sells (pool of the same kind, gym, hot tub, parking, beach access); the
   same probable building class. Views (sea, city, marina...), waterfront and beachfront, and
   features only titles show (24/7 security, a concierge) raise the score and never exclude. Then a similarity score, at most 2 comps per host and 2 per identical title, and the 20 best.
   Comps with no price for your dates stay in. If fewer than 10 pass, counting those with no
   price, I first turn the amenity that removes the most candidates into a score factor, one at a
   time (pool last), and only then widen the radius once, inside the same run and price. Each
   step is reported.
7. **Other weeks** (`weekScan: if_needed`). When your listing or fewer than 5 comps have a price, I
   quote up to 8 other weeks with the same weekday and nights, only weeks where your calendar and
   at least 5 comps' calendars are free. I charge only the weeks Airbnb answered.
8. **The numbers.** Price percentile, median and quartiles (never from fewer than 5 priced comps),
   price per guest and per bedroom, the occupancy range for the next 90 days, review velocity,
   rating, sub-ratings and the share of low stars, how many comps are booked or blocked, amenity
   gaps, photos, minimum nights, Instant Book, cancellation policy, response time and badges.
9. **Recommendations** from fixed rules, each with the numbers behind it: high demand, a premium
   backed by demand, priced high for the demand you get, priced high for its quality, room to
   raise the price, a key amenity you lack, photos, Instant Book.

### What you get

- **Default dataset:** your listing (`record_type` subject, `rank` 0) and each comp, with its score
  and the score's factors, distance, price, why it has no price (`availability`: priced, booked or
  blocked, a stay rule...), occupancy range, rating, reviews and link.
- **`candidates` dataset:** every listing the search returned and the filter that left it out
  (`excluded_reason`), your own listings included: the audit trail.
- **`weeks` dataset:** the other weeks, what the calendars said and what the quotes said, keyed by
  listing and check-in.
- **`OUTPUT`:** `verdictCode`, the dates and why, each step's status, the comp-set counts, every KPI
  with its n, the recommendations, the week scan, the hotel recipe for studios and 1-bedrooms, what
  is missing with its cost, and exactly what was charged.
- **`REPORT_MD`:** the report in English, every listing named and linked, every number with its n,
  ending with what is not in this analysis yet and what it would cost.

### Price

| Event | When | Free | Bronze | Silver | Gold |
|---|---|---|---|---|---|
| `analysis` | Once per run that delivers at least 5 comps | $0.38 | $0.29 | $0.22 | $0.17 |
| `week-scan-week` | Each other week quoted and answered (up to 8) | $0.0125 | $0.010 | $0.0085 | $0.007 |

Nothing is charged when fewer than 5 comps pass the filters, when the listing no longer exists or
when it is a hotel listing.

### Honest limits

- **Booked or blocked:** a public calendar cannot tell a booking from an owner block, so I never
  say "booked" alone. Occupancy is always a range.
- **Asking prices:** prices are what Airbnb quotes before taxes for the dates and guests, not what
  guests paid.
- **Future weeks lean high:** only free comps quote, and cheaper ones book first. I say how many
  comps had no quote.
- **Amenity premiums are associations,** not guarantees; groups under 15 are marked indicative.
- **Your listings under another account** or that you co-host cannot be detected by me: give their
  profile in `hostProfileUrl` or the listings themselves in `excludeListings`.
- **Hotels:** for studios and 1-bedrooms I give the exact input and cost of the hotel comparison
  (thelastscraper/google-hotels-vacation-rentals) in `OUTPUT.hotels`; I do not run it myself.

### Related Actors

- [Airbnb Scraper](https://apify.com/thelastscraper/airbnb-scraper): listings, prices and calendars for a whole area.
- [Airbnb Calendar & Occupancy](https://apify.com/thelastscraper/airbnb-calendar-occupancy): daily calendars and occupancy.
- [Airbnb Reviews Scraper](https://apify.com/thelastscraper/airbnb-reviews): review texts.
- [Airbnb Listing Details Scraper](https://apify.com/thelastscraper/airbnb-listing-details): one listing's full data and prices for many date windows.

# Actor input Schema

## `listing` (type: `string`):

Required. ONE listing URL (https://www.airbnb.com/rooms/<id>, any Airbnb domain, or a share link) or its ID as text ("1290695487984975140"; a JSON number loses digits). Not a profile: put that in hostProfileUrl. Cost: one analysis per run (US$0.38 Free plan), whatever radius the comps need, plus at most 8 weeks scanned ($0.0125 each): at most $0.48. Nothing charged with fewer than 5 comps.

## `hostProfileUrl` (type: `string`):

Optional. An Airbnb profile link exactly as Airbnb shows it (/users/show/<id> or /users/profile/<id>; they use different IDs, never rewrite one as the other). The listing's own host is always read, so this is only for a second account or a co-host: its listings are left out of the comps too.

## `excludeListings` (type: `array`):

Optional. Your listings on other accounts or that you co-host: listing URLs or IDs as text. They are never compared with your listing.

## `dates` (type: `string`):

auto (default): the stay is picked from your listing's calendar, the 5-night stay nearest to today + 30 days that it can sell (check-in within 90 days, no night on 20 Dec-3 Jan; 4 or 3 nights if no 5-night stay is free, never below your minimum stay), so your listing has a price. explicit: checkIn and checkOut used as given (a checkIn alone also means explicit). OUTPUT.dates says which dates and why.

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

YYYY-MM-DD, e.g. 2027-01-12. Only with explicit dates; leave empty for auto.

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

YYYY-MM-DD, the day after the last night. Empty with a check-in = 5 nights.

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

Default 2, 1-16. Every price (yours and the comps') is quoted for this party.

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

Default USD. ISO 4217 code for every amount, e.g. EUR, GBP, AED.

## `weekScan` (type: `string`):

if_needed (default): when your listing has no price on the dates or fewer than 5 comps do, the same run quotes up to 8 other weeks (same weekday and nights) where your calendar and at least 5 comps' calendars are free, charged $0.0125 per week answered (Free plan; at most $0.10). off: never runs; OUTPUT.missing offers it with its cost.

## `actorVariant` (type: `string`):

Internal: which Store Actor this is (do not change).

## Actor input object example

```json
{
  "listing": "https://www.airbnb.com/rooms/1290695487984975140",
  "excludeListings": [],
  "dates": "auto",
  "adults": 2,
  "currency": "USD",
  "weekScan": "if_needed",
  "actorVariant": "competitor-analysis"
}
```

# Actor output Schema

## `comps` (type: `string`):

One row for your listing and one per comp.

## `candidates` (type: `string`):

Each candidate with its excluded_reason.

## `weeks` (type: `string`):

The week scan, keyed by listing_id and check_in.

## `summary` (type: `string`):

Verdict, dates, KPIs with n, recommendations, what is missing, what was charged.

## `report` (type: `string`):

REPORT_MD, the paste-ready report.

# 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 = {
    "listing": "https://www.airbnb.com/rooms/1290695487984975140",
    "excludeListings": []
};

// Run the Actor and wait for it to finish
const run = await client.actor("thelastscraper/airbnb-competitor-analysis").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 = {
    "listing": "https://www.airbnb.com/rooms/1290695487984975140",
    "excludeListings": [],
}

# Run the Actor and wait for it to finish
run = client.actor("thelastscraper/airbnb-competitor-analysis").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 '{
  "listing": "https://www.airbnb.com/rooms/1290695487984975140",
  "excludeListings": []
}' |
apify call thelastscraper/airbnb-competitor-analysis --silent --output-dataset

```

## MCP server setup

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

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/W8nPmGb3x657BDrcC/builds/rZKaJLVF0MjjtG6v3/openapi.json
