Use Airbnb Listing Price & Location Finder with Python
Search Airbnb by location and stay dates for listing price, rating, Superhost and verification status, GPS coordinates, and photos per property.
1. Choose the data you need
Review the published README for supported collection modes, examples, and limits. The recipe below uses the current published input definition.
2. Prepare a source-based input
This JSON contains published prefills and required-field defaults. Review every value for your task before running it; it is not a promise of successful collection.
{
"includeCalendar": false,
"includeDetails": false,
"includeReviews": false,
"location": "New York",
"maxListings": 3,
"mode": "search"
}
Download input.example.json and save your reviewed copy as input.json.
| Field | Type | Required | Description |
|---|---|---|---|
mode | string | optional | Search discovers listings by location or map area. Details loads the listing URLs or IDs you provide. |
location | string | optional | City, region, country or neighborhood, e.g. New York, Paris, SoHo. Airbnb's own location lookup validates the name before searching (mode=search). |
placeId | string | optional | Optional Google/Airbnb place ID (e.g. ChIJOwg_06VPwokRYv534QaPC8g). Takes precedence over the resolved location and skips text matching (mode=search). |
neighborhood | string | optional | Optional neighborhood to combine with Location, e.g. SoHo + New York (mode=search). |
bbox | object | optional | Search inside a map rectangle instead of a named location. Use decimal degrees: swLat, swLng (south-west corner) and neLat, neLng (north-east corner), plus an optional zoom (1-22). Example: {"swLat": 40.7075, "swLng": -74.0135, "neLat": 40.7904, "neLng": -73.9591, "zoom": 13} (mode=search). |
listingUrls | array | optional | Airbnb room URLs, e.g. https://www.airbnb.com/rooms/23222680 (mode=details). |
listingIds | array | optional | Numeric Airbnb listing IDs, e.g. 23222680. You can mix these with listing URLs (mode=details). |
checkIn | string | optional | Stay start date in YYYY-MM-DD format. Leave both dates empty to use Airbnb's displayed quote (search) or to skip the price quote (details). |
checkOut | string | optional | Stay end date in YYYY-MM-DD format. Must be after the check-in date. |
adults | integer | optional | Number of adult guests (1-16). |
children | integer | optional | Number of children aged 2-12 (0-15). |
infants | integer | optional | Number of infants under 2 (0-5). |
pets | integer | optional | Number of pets (0-5). |
minPrice | integer | optional | Lowest nightly price to include, in the selected currency. 0 means no minimum. |
maxPrice | integer | optional | Highest nightly price to include, in the selected currency. 0 means no maximum. |
roomType | string | optional | Restrict results to one Airbnb room type. |
propertyType | string | optional | Restrict results to one Airbnb property type. |
minBedrooms | integer | optional | Minimum number of bedrooms. 0 means no minimum. |
minBeds | integer | optional | Minimum number of beds. 0 means no minimum. |
minBathrooms | integer | optional | Minimum number of bathrooms. 0 means no minimum. |
maxListings | integer | optional | Hard cap on records (1-300). Airbnb pages hold 40 results each; duplicate cards are removed automatically. |
includeDetails | boolean | optional | Adds the listing page and an exact stay quote: host, amenities, photos, description, fees and availability. Costs extra requests per listing. |
includeReviews | boolean | optional | Fetch recent guest reviews for each listing (up to maxReviews). |
maxReviews | integer | optional | Reviews returned per listing (1-24). |
includeCalendar | boolean | optional | Fetch the day-by-day availability calendar for each listing. |
calendarMonths | integer | optional | Number of months to return, starting with the current month (1-12). |
currency | string | optional | Currency for prices. Airbnb returns quotes in this currency. |
locale | string | optional | Language/region used for Airbnb labels, dates and localized text. |
proxyConfiguration | object | optional | Optional. Leave empty and the actor connects directly, then switches to an automatic Apify proxy only if Airbnb blocks a request. |
3. Start an Actor run
Set APIFY_TOKEN in your environment. Python 3.10 or newer is sufficient; this recipe uses no third-party packages.
Execution may incur charges. Review current pricing on Apify. The request asks for a 120-second timeout and a charge limit; these settings are subject to Apify’s pricing and do not guarantee an all-inclusive spending cap.
import json
import os
import urllib.request
# Save the schema-derived example as input.json; review and edit it first.
with open("input.json", encoding="utf-8") as stream:
actor_input = json.load(stream)
token = os.environ["APIFY_TOKEN"]
request = urllib.request.Request(
"https://api.apify.com/v2/acts/02gBCbgBRDoLpMoY5/runs?timeout=120&maxTotalChargeUsd=0.50",
data=json.dumps(actor_input).encode("utf-8"),
headers={"Authorization": "Bearer " + token, "Content-Type": "application/json"},
method="POST",
)
# This starts a potentially billable run. Do not automatically retry this POST.
with urllib.request.urlopen(request, timeout=40) as response:
run = json.load(response)["data"]
print("Run ID:", run["id"])
print("Status:", run["status"])
# Inspect and download results in Apify Console once the run succeeds.
4. Inspect the actual results
Open the run in Apify Console and wait for a successful completion. Use the published output schema to locate results and the dataset schema to understand declared views. Missing or optional record fields must not be treated as guaranteed values.
Airbnb listings with nightly and stay-total prices, currency, fees, coordinates, room and property type, host details, amenities, photos, description, availability, optional reviews and an optional 12-month calendar.
Questions before you run
Which inputs are required?
No top-level fields are marked required in the published schema. Conditional requirements can still apply; check the README.
What does this guide verify?
The fields, prefills, and schema links are rendered from the published build. This is a usage recipe, not a paid live extraction test. Source availability and collection results can vary.
What if the run request times out?
Check Apify Console before retrying. The first request may already have created a run. Do not automatically repeat a run-creation POST.
Generated from source build zfEcct44bLImtWJsa and its README and schemas. Source changes regenerate this guide; no third-party editorial claims are inferred.