Airbnb has no open API for search results (its API is reserved to selected partners), and copying listings from the site by hand stops being fun after the first page of eighteen cards. This tutorial exports Airbnb listings to a CSV file with Python: several cities in one call, your own dates and number of guests, Airbnb's price, room type and bedroom filters, one row per listing with the nightly price, the total of the stay, the rating and the size, then a median price per city and per number of bedrooms with pandas. The data comes from the Airbnb Listings Scraper, an Apify Actor called through the official Python client. It reads the public search pages without logging in and collects nothing about hosts or guests.

What you need

  • An Apify account (the free plan is enough to try this) and its API token, from Apify Console → Settings → API & Integrations, exported as an environment variable: export APIFY_TOKEN=...
  • Python 3 and two packages:
pip install "apify-client>=3,<4" pandas 

What one row contains

One row per listing of the search, with the same column names as the other travel scrapers of the studio:

  • prices in currency: pricePerNight (after discounts, before taxes and itemised fees), priceTotal (the total of the stay shown on the card), priceBeforeDiscount (the strike-through total of a discount) and taxesAndFees where Airbnb itemises them;
  • the listing: title, propertyType ("Apartment", "Home"…), roomType (entire_place, private_room, shared_room or hotel_room), bedrooms, beds, bathrooms, rating on 5, reviewCount, badges, isSuperhost, latitude, longitude and a url that opens the listing for your dates;
  • the search: searchLocation (the destination that found the listing), checkIn, checkOut, nights, guests and searchRank.

bedrooms, beds and bathrooms appear only in searches with dates, which is one more reason to always give a stay.

Step 1: the input

This is the public task "Compare Airbnb prices in Paris, Rome and Barcelona", with a stay, entire homes only and a price floor:

run_input = { "locations": ["Paris, France", "Rome, Italy", "Barcelona, Spain"], "checkInDaysFromNow": 30, "nights": 3, "adults": 2, "roomTypes": ["entire_home"], "priceMin": 60, "minBedrooms": 1, "currency": "EUR", "maxResults": 50, } 
  • locations takes up to 50 destinations in one run, written as in the Airbnb search box (a city, a region, an address or a landmark). Each one is its own search with the same dates, guests, filters and currency, and maxResults applies to each destination: this run returns up to 150 listings.
  • checkInDaysFromNow and nights give a stay relative to today: check-in in 30 days, 3 nights, so the input works whenever you run it. For precise dates, use "checkIn": "2026-12-04" and "checkOut": "2026-12-07" instead. With no dates at all, the search is flexible: Airbnb proposes its own week per listing and prices are not comparable.
  • roomTypes (entire_home, private_room, shared_room, hotel_room), priceMin and priceMax (nightly price, a whole number in currency), minBedrooms, minBeds and minBathrooms are Airbnb's own filters.
  • adults, children, infants and pets change the prices and, for pets, keep only pet-friendly listings.

For a filter the form does not have (amenities, a neighbourhood, a category), set it on Airbnb in your browser and paste the URL of the results page into startUrls.

Step 2: run it and save the CSV

Save this as airbnb_to_csv.py:

import os import pandas as pd from apify_client import ApifyClient run_input = { "locations": ["Paris, France", "Rome, Italy", "Barcelona, Spain"], "checkInDaysFromNow": 30, "nights": 3, "adults": 2, "roomTypes": ["entire_home"], "priceMin": 60, "minBedrooms": 1, "currency": "EUR", "maxResults": 50, } client = ApifyClient(os.environ["APIFY_TOKEN"]) run = client.actor("myth84/airbnb-listings-scraper").call(run_input=run_input) listings = pd.DataFrame(client.dataset(run.default_dataset_id).iterate_items()) listings["badges"] = listings["badges"].str.join("; ") listings["perNightWithFees"] = (listings["priceTotal"] / listings["nights"]).round(2) columns = [ "searchLocation", "title", "propertyType", "roomType", "bedrooms", "beds", "bathrooms", "checkIn", "checkOut", "nights", "currency", "pricePerNight", "priceTotal", "perNightWithFees", "priceBeforeDiscount", "rating", "reviewCount", "isSuperhost", "badges", "latitude", "longitude", "url", ] listings[columns].to_csv("airbnb-paris-rome-barcelona.csv", index=False) print(listings.groupby("searchLocation").size()) 

badges is a list ("Guest favorite", "Superhost"…); joining it keeps one cell per listing in the CSV. perNightWithFees is the total of the stay divided by the nights: the nightly cost a guest really pays, fees included, which pricePerNight leaves out. The file opens as is in Excel, Google Sheets or LibreOffice.

The run stops at exactly maxResults unique listings per destination, and you are charged for those only. A run that finds no listing at all (a misspelt place, filters too strict) fails with an explicit message rather than returning an empty file that looks like a success.

Step 3: median prices per city

Add this to the script:

summary = listings.groupby("searchLocation").agg( listings=("title", "count"), medianPerNight=("pricePerNight", "median"), medianPerNightWithFees=("perNightWithFees", "median"), medianRating=("rating", "median"), discountedShare=("priceBeforeDiscount", lambda prices: round(prices.notna().mean(), 2)), ) print(summary.sort_values("medianPerNightWithFees")) by_size = listings.pivot_table( index="searchLocation", columns="bedrooms", values="perNightWithFees", aggfunc="median", ) print(by_size.round(0)) 

summary gives, per city, the number of listings, the median nightly price before and with fees, the median rating and the share of listings with a discount (a strike-through total). The median is the figure to read: one penthouse can move an average a lot, the median hardly. by_size crosses cities and number of bedrooms: the price of a one-bedroom against a two-bedroom flat in each city, for the same nights. Use city (the area shown in the listing title, sometimes a neighbourhood rather than the city) instead of searchLocation to go one level down within a city.

Bigger cities and other dates

  • More than 270 listings per city. Airbnb serves at most 15 pages of about 18 listings for one search. With splitSearchArea (on by default), a saturated search is split into map quadrants until maxResults is reached, so a run can collect thousands of listings for a large city.
  • Several stays. One run prices one stay for all its destinations. For two different weekends, start two runs and concatenate the DataFrames; checkIn tells the rows apart.
  • Local prices with taxes. On airbnb.com, the total may exclude taxes. European Airbnb sites show a regulated total including taxes, itemised in taxesAndFees: set domain to www.airbnb.fr, www.airbnb.de and so on, and compare only rows with the same domain, currency and dates.

Without code

Open one of the public tasks in Apify Console, such as "Entire homes on Airbnb in Lisbon", "Airbnb in London under £150 a night" or "Compare Airbnb prices in Paris, Rome and Barcelona", set the check-in and the nights (the tasks use flexible dates by default), run it and download the dataset from the Output tab as CSV, JSON or Excel. The Prices view puts nights, nightly price, total, strike-through price and taxes side by side. Save it as your own task and add a schedule for a fresh export every week.

Good to know

  • Airbnb's ranking is not deterministic: the same search can order listings differently from one visit to the next. The Actor keeps one browsing session per search and removes duplicates, but two runs never return exactly the same set.
  • Search cards show a subset: amenities, maximum guests and detailed fees are not on result cards and stay empty.
  • No personal data: no host names, profile photos or reviews; isSuperhost is a badge of the listing and never identifies a person.

Pricing is pay-per-event: $1.50 per 1,000 listings on Apify's Free plan, down to $0.99 on the higher plans, compute and proxies included. This run of up to 150 listings costs at most $0.23. Use the data for analysis, respect the platform's terms and local law, and do not republish listings.

Disclosure: I build these Actors and may earn a commission if you sign up to Apify through these links.