Skip to main content
TutorialsNovember 24, 2026 · 9 min read

How to scrape Airbnb prices for specific dates

Collect Airbnb listing prices for the same stay dates, compare totals, and export a reusable pricing dataset using Spidra and Python.

How to scrape Airbnb prices for specific dates

A nightly rate isn't enough to compare Airbnb listings. The price depends on the dates, length of stay and any discounts or fees included in the quote. If your application is collecting accommodation prices, comparing the wrong stays can produce a convincing-looking dataset that answers the wrong question.

This tutorial collects dated Airbnb listing prices with Spidra, turns them into consistent rows, and shows how to check availability and repeat the collection.

You'll also see what the price data doesn't include, so missing fees don't accidentally become zeros in your database.

Start with a stay, not a nightly rate

Suppose you want to compare rentals in Austin for December 10 to 13, 2026. Every record needs to refer to the same stay. Record the listing ID, check-in and check-out, nights, displayed currency, nightly rate, quoted total and when the quote was collected. Keep the number of guests and other search filters consistent wherever your data source lets you set them.

A useful comparison is the effective nightly price:

effective nightly price = quoted stay total / number of nights

This is not the same as the host's base nightly rate, and it isn't necessarily the property's average daily rate (ADR). ADR is based on booked nights and revenue. Here, you're comparing asking prices for a chosen stay.

Airbnb made total-price display standard worldwide in April 2025. Search prices now include fees before taxes, with tax display varying by location and local rules. That makes the quoted total a better starting point than the headline nightly rate, but not always the final tax-inclusive checkout total. See Airbnb's price-display announcement and its price breakdown explanation.

Collect date-specific listings with Spidra

There are two useful ways to start. Spidra's ready-made templates return rows without writing selectors or an extraction schema. Its general Scrape API is available when you have a page and need different fields or Markdown. For this pricing workflow, the dated stays template gives us a consistent first dataset.

Install the Python SDK and create an API key from the Spidra dashboard:

pip install spidra
export SPIDRA_API_KEY="spd_YOUR_API_KEY"

The airbnb-stays-in-a-destination template accepts a destination and stay dates. The example below requests up to 20 listings in Austin for a three-night stay beginning 30 days from today:

import os
from datetime import date, timedelta
from spidra import Spidra

client = Spidra(api_key=os.environ["SPIDRA_API_KEY"])
check_in = date.today() + timedelta(days=30)
check_out = check_in + timedelta(days=3)
stay_inputs = {
    "areas": ["Austin, TX"],
    "checkin": check_in.isoformat(),
    "checkout": check_out.isoformat(),
    "stays": 20,
}
austin_run = client.run_template("airbnb-stays-in-a-destination", stay_inputs)
austin_rows = austin_run.rows or []

The SDK handles the run's submission and polling. A partial run can still contain useful rows, along with information about pages that failed. For a production pipeline, inspect austin_run.failures before calling a collection complete.

An Austin search for December 10 to 13, 2026, returned 20 listing rows. Your dates and prices will differ when you run the code above. One result was a guestroom in Zilker:

{
  "listingId": "16831133",
  "name": "Murphy Oaks Guestroom: Your Sweet Retreat in Zilker",
  "priceCheckIn": "2026-12-10",
  "priceCheckOut": "2026-12-13",
  "nights": 3,
  "nightlyPrice": 89.10,
  "originalPrice": 508,
  "totalPrice": 268,
  "priceText": "$268 for 3 nights, originally $508",
  "priceBreakdown": [
    {
      "description": "3 nights x $89.10",
      "amount": 267.30,
      "originalAmount": 507.30
    }
  ]
}

This record shows why it is worth storing both the displayed rate and the total. The 3-night line is $267.30, while the rounded displayed total is $268. An original price of $508 is also shown, but this one returned breakdown line doesn't independently identify every component that produced that comparison. Don't generate a cleaning-fee or discount amount by subtracting numbers and guessing what the difference represents.

For this stay, 268 / 3 gives an effective nightly price of about $89.33. Save that as a derived value alongside the original numbers.

Check availability and price the listings that matter

A search result is useful for discovery. Once you have a shortlist, ask for a quote for the exact dates you plan to compare, using airbnb-prices-for-dates:

price_inputs = {
    "listings": ["https://www.airbnb.com/rooms/1727038209464545328"],
    "checkin": "2026-12-17",
    "checkout": "2026-12-22",
}
price_run = client.run_template("airbnb-prices-for-dates", price_inputs)
price_rows = price_run.rows or []

One completed price check returned available: true, a nightly price of $200 and a five-night total of $1,000. Two other listings queried for different dates returned available: false with an explanation and no prices. Those weren't failed scrapes. They were successful responses saying the requested stays were unavailable.

Treat availability as its own field. A missing total for unavailable dates should stay missing, rather than being converted to a price of $0.

When you want more than the price, airbnb-listing-details is the additional step. It can attach property type, capacity, bedrooms, amenities, ratings and other listing context. That is how you move from "these two stays have different totals" to a comparison between listings with similar features. Use the same listing ID as the join key across your searches, price checks and detail records.

Save one row per listing and stay

A market dashboard needs records it can join and compare later. Keep the original response for auditing, then normalize the fields your application reads. At minimum, the stored row should identify the listing, price dates, source market, currency, total, availability, and collection timestamp.

The normalization step also needs to handle missing prices:

from datetime import date
from decimal import Decimal

def to_row(item):
    start = date.fromisoformat(item.get("priceCheckIn") or check_in.isoformat())
    end = date.fromisoformat(item.get("priceCheckOut") or check_out.isoformat())
    nights = (end - start).days
    total = item.get("totalPrice")
    return {
        "listing_id": item["listingId"],
        "check_in": start.isoformat(),
        "check_out": end.isoformat(),
        "total": total,
        "effective_nightly": (
            str((Decimal(str(total)) / nights).quantize(Decimal("0.01")))
            if total is not None and nights > 0 else None
        ),
    }

For the Zilker record above, to_row() returns an effective nightly value of 89.33 using the dates in the record. Don't reduce your dataset to those four fields alone. Keep the original priceBreakdown as JSON, a stable listing URL, the currency and an observed_at timestamp. If you can't establish whether a quoted total contains taxes, record the tax basis as unknown, not excluded.

The companion Python script for this tutorial takes the dated template rows and writes a CSV. It preserves optional prices, JSON-encodes breakdown lines, and adds an observation timestamp so later runs don't overwrite the meaning of earlier values.

The same template was also used on Lisbon with the same December dates, returning another 20 rows. That is useful evidence that the workflow can collect multiple markets. It isn't, on its own, a market-wide comparison. The properties aren't necessarily alike, and the displayed tax treatment can differ, so compare controlled sets before drawing conclusions about which city is cheaper.

Collect the same data again

Prices change, so one CSV is only a snapshot. A useful pricing product needs a repeatable process: ask for the same stay and search conditions, retain the old rows, and compare each listing's quoted total or availability over time.

You can do that in your application by scheduling the same SDK call and inserting the normalized results into a database. Keep the observed_at field. If you want alerts rather than an entire historical warehouse, Spidra Monitors can rerun a template on a schedule and notify you about new, changed or removed rows. A monitor compares checks; your application should persist the full price history if it needs historical charts.

There is one operational detail worth handling early. A fixed December 10 to 13 query becomes useless after those dates pass. For ongoing market intelligence, decide whether you are watching one specific upcoming stay or moving the observation window forward each week, and update the query accordingly.

For the dated Austin search, a daily monitor estimate came back at two credits per check. That is an estimate for those inputs, not a guaranteed cost for other searches or schedules. Use the free template and monitor estimates before starting recurring jobs.

Try it through Spidra MCP

If you're exploring a market with an AI assistant before writing your pipeline, Spidra also exposes its tools through MCP. Connect the hosted server at https://mcp.spidra.io/mcp in a supported client and sign in. In Claude Code, the hosted connection can be added with:

claude mcp add --transport http spidra https://mcp.spidra.io/mcp

Then ask the assistant to find the relevant template, inspect its inputs and run it only after you approve the data collection. For example:

Collect Austin stays for December 10 to 13, 2026. Show listing IDs, URLs, nightly rates, quoted totals and any returned discount lines. Leave missing fees as null instead of guessing. Flag unavailable results and note the currency and dates.

The MCP server exposes tools for finding templates, getting their input schema, running them and setting up monitors. That prompt is an example of how to direct an assistant, not a claimed recording of a completed agent session.

What this price data can and cannot tell you

The records in this walkthrough are quoted stays, not evidence of booked revenue, occupancy or actual guest payments. A listing may be unavailable because dates are booked, blocked by the host or subject to another restriction; the response alone does not identify why. Treat unavailable as unavailable, not automatically occupied.

The biggest field limitation here is fee itemization. Across the collected November 2026 responses, no separate cleaning fee, service fee or tax component appeared. Airbnb still has a detailed price view at checkout, but the template results did not expose that full breakdown. Store the returned total and any explicit discount lines. Don't invent fee columns or claim your data equals the final price paid in every jurisdiction.

Also, template results reflect whatever the source returned at collection time. Listings move, prices change, pages can become inaccessible and no web-data provider can guarantee every requested record. Your application should handle failed items and missing fields, not just the successful examples.

A small dataset is a useful first step. The more valuable workflow is a comparable set of listings, checked under the same conditions and saved over time. Start with Spidra's free account, try the dated search on a use case you're authorized to collect, and use the same API or MCP tools when you need to turn that experiment into a recurring job.

Frequently asked questions

Not from the sample Spidra responses examined in this tutorial. The returned price breakdown showed nightly amounts, some explicit discounts and stay totals, but no separate cleaning, service or tax values. Airbnb can show an itemized breakdown at checkout; don't assume a listing-data response includes the same fields.

Share this article

You build the product.
Spidra handles the data work.

Start with 300 free credits, about 300 pages. No credit card required.