Scrape data in seconds

No proxies needed

Start Free
Web Scraping

Send Airbnb Data to Google Sheets Automatically

Saved Airbnb searches in one tab, listing rows in another, refreshed on a timer by a short Apps Script.

VK
Varun Kumar
··9 min read
Send Airbnb Data to Google Sheets Automatically: Pulldata blog cover

💡 Key Takeaways:

1) You can send Airbnb listing data to Google Sheets with a short Apps Script that calls a listings API and writes each listing as one row.

2) Airbnb prices only mean something next to the stay dates and guest count that produced them, so those inputs belong in the sheet as columns on every row.

3) A time-driven trigger reruns the script on a schedule and appends new rows, which turns a one-off pull into a price history you can chart in the same sheet.

Your market's prices, in one sheet

Pulldata is a no-code web data platform that collects live, structured data from public websites. Its Airbnb listings tool returns current listings as rows, from a dashboard, a REST API or an AI agent, and you pay only for results that come back.

What will you build?

You'll build a Google Sheet that sends saved Airbnb searches to a listings API and writes the returned listings back as rows. It runs from a custom menu or on a timer, with no server and no browser extension.

The whole thing lives in one spreadsheet. A tab called Searches holds the area, dates and guests for each search, a short Apps Script does the API call, and a tab called Listings collects the rows.

A Searches tab feeds an Apps Script that runs every Monday, calls the listings API and writes rows into the Listings tab

Nothing here depends on a Sheets add-on. Pulldata's docs describe a REST API and an MCP server, and we don't present a native Sheets connector as available.

What do you need before you start?

You need a Google account, a Pulldata API key and about twenty minutes. Apps Script runs in Google's cloud, so there's nothing to install.

Item

Where you get it

Notes

Google Sheet

sheets.google.com

Personal or Workspace account

Apps Script editor

Extensions, then Apps Script, inside the sheet

Script is bound to that one sheet

Pulldata API key

Dashboard, after sign-up (Pulldata docs)

Keep it in Script Properties

Request format

Airbnb listings API page

Endpoint, auth header and body fields

Saved searches

Your own market plan

One area, dates and guest count per row

Pulldata bills per result returned, so cost grows with the listings you ask for and how often the trigger runs. Check the live pricing page before you set a large limit or a daily schedule.

Example sum of 5 searches times 40 listings each times 4 runs a month giving 800 rows a month, labelled as example values

How do you connect Airbnb data to Google Sheets?

You connect Airbnb data to Google Sheets by storing your API key in the script, pasting a fetch function that reads each saved search, and writing the response into a Listings tab. The steps below go from an empty account to a scheduled sheet.

Step #1: Create a free account

Open the Pulldata sign-up page and pick Continue with Google, or enter an email and a password of at least 8 characters and click Create account. The page says new accounts get $10 free credit with no card required.

Pulldata create your account page with Continue with Google, email and password fields and a Create account button
The public sign-up page at app.pulldata.io/signup.

Copy your API key from the dashboard once you're in. You'll paste it in Step #3.

Step #2: Set up the two tabs

Create a tab named Searches with four headers in row 1: area, check_in, check_out and guests. Add one search per row below, such as one district for two adults on a fixed weekend.

Add a second tab named Listings and leave it empty. The script writes its own header row on the first run.

Keep searches small. A whole city in one row returns a mix of areas that's hard to compare, and our guide to Airbnb data by city shows how to split a big market into districts.

A city map with four districts and listing pins, where one city-wide search circle is capped and mixes all the districts

Step #3: Store your API key in Script Properties

Open Extensions, then Apps Script. In the editor, go to Project Settings and add a script property called PULLDATA_API_KEY with your key as the value.

Google describes script properties as the place for app-wide settings such as credentials, shared by everyone with access to the script (Apps Script Properties Service). Keep the sheet's sharing tight for that reason.

An Apps Script editor with the API key typed into Code.gs, marked orange, above the same key kept in Script Properties
Keep in mind

Anyone who can edit a bound script can read its script properties, so a shared team sheet effectively shares your key, and a separate key for that sheet lets you revoke it without breaking anything else.

Step #4: Paste the script

Replace the contents of Code.gs with the template below. It reads each saved search, sends one request per row, and appends one row per listing with the search inputs attached.

javascript
// Template: copy the real values from Pulldata's Airbnb listings API page.
const ENDPOINT = 'PASTE_AIRBNB_ENDPOINT_HERE';

function fetchAirbnbToSheet() {
  const ss = SpreadsheetApp.getActiveSpreadsheet();
  const searches = ss.getSheetByName('Searches');
  const out = ss.getSheetByName('Listings');
  const key = PropertiesService.getScriptProperties().getProperty('PULLDATA_API_KEY');
  const last = searches.getLastRow();
  if (last < 2) return;

  const rows = searches.getRange(2, 1, last - 1, 4).getValues();
  const stamp = new Date();
  const fields = [ /* listing field names from the API page */ ];

  rows.forEach(function (s) {
    const [area, checkIn, checkOut, guests] = s;
    if (!area) return;
    const res = UrlFetchApp.fetch(ENDPOINT, {
      method: 'post',
      contentType: 'application/json',
      headers: { /* auth header from the API page, using key */ },
      payload: JSON.stringify({ /* request body from the API page, with the search inputs */ }),
      muteHttpExceptions: true
    });
    if (res.getResponseCode() !== 200) {
      throw new Error(res.getResponseCode() + ': ' + res.getContentText());
    }
    const body = JSON.parse(res.getContentText());
    const listings = body.results || []; // check the response key on the API page
    const block = listings.map(function (l) {
      return [stamp, area, checkIn, checkOut, guests].concat(fields.map(f => l[f]));
    });
    if (out.getLastRow() === 0) {
      out.appendRow(['run_at', 'area', 'check_in', 'check_out', 'guests'].concat(fields));
    }
    if (block.length) {
      out.getRange(out.getLastRow() + 1, 1, block.length, block[0].length).setValues(block);
    }
  });
}

function onOpen() {
  SpreadsheetApp.getUi().createMenu('Airbnb')
    .addItem('Fetch listings now', 'fetchAirbnbToSheet')
    .addToUi();
}

The method, headers, payload and muteHttpExceptions options are documented in Google's UrlFetchApp reference. The endpoint, header, body and field names come from the Airbnb listings API page, so copy them from there rather than guessing.

One saved Lisbon search row fans out into six Listings rows, each repeating the search inputs before the listing fields

Step #5: Authorise and run it once

Save, reload the spreadsheet, and pick Airbnb, then Fetch listings now from the new menu. Google asks you to approve access to the sheet and to external requests the first time.

Read the permission screen before you click through. It should list spreadsheet access and permission to connect to an external service, which is what UrlFetchApp needs.

Step #6: Check the columns

The first five columns are yours: run time, area, check-in, check-out and guests. Everything after them comes from the API response, in the order you listed in fields.

Make sure a listing ID is among those fields. Overlapping searches return the same home twice, and the ID is the only safe key to dedupe on.

Six returned rows where listing ID B02 appears twice for the same home, leaving five unique listings after you dedupe on ID
Small detail, big payoff

Because the stay dates and guest count sit on every row, a price copied into another tab or report months later still says exactly which search produced it, and that's the column most Airbnb exports forget.

Step #7: Schedule it with a trigger

In the Apps Script editor, open Triggers, add a trigger for fetchAirbnbToSheet, choose a time-driven source and pick a daily or weekly interval. Google's installable triggers guide covers the options.

The script appends instead of overwriting, so every run adds a dated block of rows. That's how you build your own history, which our post on historical Airbnb data covers in more depth.

Overwrite keeps only the latest block of rows, while append stacks dated blocks for week 1 to week 4 into a usable history

Update the dates in the Searches tab as they pass. A search for last weekend returns nothing useful, and a rolling "four weeks from today" date keeps the comparison fair.

Timeline with a fixed stay date now in the past in orange and a rolling search window kept four weeks ahead of today in green

Step #8: Turn the rows into a summary

Add a third tab and use a QUERY or pivot table on Listings: rows by run_at and area, values as the median price for one room type. A line chart on that table shows how asking prices move.

Keep summaries on their own tab. Formulas inside the Listings tab collide with the rows the script appends.

A tracker with three tabs: Searches you edit, Listings the script writes with no formulas, Summary for formulas and charts

For which numbers to put in that summary, our guide to Airbnb data analysis walks through medians by area and room type.

How do you test it?

Test with one small area, one weekend and a low result limit first. You should see one header row and a short block of listing rows, each carrying the run time and your search inputs.

Then check these by hand:

  • Open three listings on Airbnb for the same dates and guests, and compare the prices with the sheet.
  • Confirm whether the price column is nightly or a total with fees.
  • Count unique listing IDs against total rows to spot duplicates.
  • Check Executions in the Apps Script sidebar for a completed run with no errors.

Once that works, add more searches or raise the limit. Grow one variable at a time so you can tell what changed.

Tip

Add a weekday search for the same week next to each weekend search, because the gap between the two medians often tells you more about pricing in a district than either number does alone.

Why isn't the script working?

Most failures show up as an HTTP status code in the error the script throws. Pulldata's docs list what each code means, and Apps Script adds its own limits on top.

A Run log tab listing errors with fixes: 401 check the API key, 400 the request body, 402 top up the balance, 429 slow down
  • 401 error: missing or wrong auth header. Re-copy the key into Script Properties with no spaces.
  • 400 error: invalid JSON or a missing required field. Check the body against the API page.
  • 402 error: the wallet balance is too low for the rows requested. Top up or lower the limit.
  • 429 error: too many requests a minute. The docs list a limit of 60, so space out searches.
  • Script stops part way: Apps Script caps each run's time. Split searches across two triggers.
  • Empty price cells: the home wasn't open for your dates. Keep the row for supply counts.
  • Rows appear twice: two triggers on the same function. Delete one in Triggers.

Google caps URL Fetch calls at 20,000 a day for consumer accounts and 100,000 for Workspace, with a 6-minute limit per script run (Apps Script quotas). A daily market sheet with a handful of searches sits far below both.

Watch out

A sheet that grows every day eventually hits Google Sheets' own size limits, so move old runs to an archive tab or a CSV every few months and keep the live tab small enough to load quickly.

Can you skip the script?

Yes, for a one-off look. Run the search in the no-code Airbnb tool, export the rows, then use File, Import in Google Sheets to add them to a tab.

Add the stay dates, guest count and run date as columns yourself, since a manual export won't carry your search inputs. Our guide on how to scrape Airbnb data covers that route step by step.

For questions in plain English instead of a sheet, the Airbnb MCP guide shows how to ask an AI assistant for the same rows. Before you share or publish a sheet, read our post on whether scraping Airbnb is legal, since host names in a shared file are personal data.

Airbnb Data Google Sheets FAQ

Can I use IMPORTXML to get Airbnb data into Sheets?

Not reliably. Airbnb pages load listings with scripts, so import formulas often return nothing, and Airbnb's terms ban scrapers anyway.

How often should the sheet refresh?

Weekly suits most pricing work. Daily runs make sense around events or holidays, but they multiply rows and cost.

Can I track one competitor's listing in Sheets?

Yes. Filter the Listings tab by that listing's ID, and each run adds one dated price point for your saved dates.

Will the sheet show occupancy?

No. Public listings don't show booked nights, so any occupancy figure would be an estimate you build yourself.

Can several people share the sheet?

Yes, but anyone who can edit the script can read the key. Give a shared sheet its own key so you can revoke it alone.

Disclaimer: This article is general information, not legal advice. Airbnb's terms restrict automated collection, so check them and the laws where you are before collecting or sharing Airbnb data; Pulldata is not affiliated with Airbnb or Google, and Google's quotas and features can change.

Share this article
V

Written by

Varun Kumar

Varun Kumar is co-founder of Pulldata, where he leads the data infrastructure behind its products. A backend engineer by training, he has spent 8 years building large-scale scraping and automation systems, and now oversees how Pulldata extracts, validates and delivers web data at scale.

FAQ

Frequently asked questions

Everything you need to know about extracting web data, proxy management, and zero-cost failed rows.

Explore Documentation

Where can I extract public web data from with PullData?

PullData provides ready-to-use scrapers for Google Maps, Google Search SERP, directory listings, company websites, and social platforms, with built-in proxy rotation and automated anti-bot bypass.

Do I need coding skills or proxies to collect data?

No coding or proxy management is required. Everything runs in the cloud. You only configure your target keywords or URLs, and PullData handles rate limits, proxy rotation, and CAPTCHAs automatically.

In what file formats can I download extracted data?

You can export datasets instantly into CSV, Microsoft Excel (XLSX), or JSON. You can also connect directly via Webhook or REST API to sync rows with your database or CRM.

What happens if a scraping job encounters failed rows?

PullData only charges for successfully scraped and verified rows. Any failed row or timeout costs 0 credits, ensuring you only pay for actionable data.

Get Started Free

Ready to extract web data?

No code, no proxies, no engineering overhead. Start with $10 free credits and collect clean public data instantly.

Instant Cloud Setup $10 Free Credits Included Failed Rows Cost $0
Weekly Digest

Get weekly data-extraction insights

One short email a week — new guides, scraper tips, and the occasional teardown. No spam, unsubscribe anytime.