Nimbryxo Studio

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.

FieldTypeRequiredDescription
modestringoptionalSearch discovers listings by location or map area. Details loads the listing URLs or IDs you provide.
locationstringoptionalCity, region, country or neighborhood, e.g. New York, Paris, SoHo. Airbnb's own location lookup validates the name before searching (mode=search).
placeIdstringoptionalOptional Google/Airbnb place ID (e.g. ChIJOwg_06VPwokRYv534QaPC8g). Takes precedence over the resolved location and skips text matching (mode=search).
neighborhoodstringoptionalOptional neighborhood to combine with Location, e.g. SoHo + New York (mode=search).
bboxobjectoptionalSearch 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).
listingUrlsarrayoptionalAirbnb room URLs, e.g. https://www.airbnb.com/rooms/23222680 (mode=details).
listingIdsarrayoptionalNumeric Airbnb listing IDs, e.g. 23222680. You can mix these with listing URLs (mode=details).
checkInstringoptionalStay 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).
checkOutstringoptionalStay end date in YYYY-MM-DD format. Must be after the check-in date.
adultsintegeroptionalNumber of adult guests (1-16).
childrenintegeroptionalNumber of children aged 2-12 (0-15).
infantsintegeroptionalNumber of infants under 2 (0-5).
petsintegeroptionalNumber of pets (0-5).
minPriceintegeroptionalLowest nightly price to include, in the selected currency. 0 means no minimum.
maxPriceintegeroptionalHighest nightly price to include, in the selected currency. 0 means no maximum.
roomTypestringoptionalRestrict results to one Airbnb room type.
propertyTypestringoptionalRestrict results to one Airbnb property type.
minBedroomsintegeroptionalMinimum number of bedrooms. 0 means no minimum.
minBedsintegeroptionalMinimum number of beds. 0 means no minimum.
minBathroomsintegeroptionalMinimum number of bathrooms. 0 means no minimum.
maxListingsintegeroptionalHard cap on records (1-300). Airbnb pages hold 40 results each; duplicate cards are removed automatically.
includeDetailsbooleanoptionalAdds the listing page and an exact stay quote: host, amenities, photos, description, fees and availability. Costs extra requests per listing.
includeReviewsbooleanoptionalFetch recent guest reviews for each listing (up to maxReviews).
maxReviewsintegeroptionalReviews returned per listing (1-24).
includeCalendarbooleanoptionalFetch the day-by-day availability calendar for each listing.
calendarMonthsintegeroptionalNumber of months to return, starting with the current month (1-12).
currencystringoptionalCurrency for prices. Airbnb returns quotes in this currency.
localestringoptionalLanguage/region used for Airbnb labels, dates and localized text.
proxyConfigurationobjectoptionalOptional. 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.