npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

n8n-nodes-airbnb-scraper

v0.1.6

Published

n8n node to scrape Airbnb listing data using the Airbnb Analyzer API

Readme

n8n-nodes-airbnb-scraper

This is an n8n community node that lets you scrape Airbnb listing data using the Airbnb Analyzer API.

Features

  • Scrape Listing Data: Extract comprehensive data from any Airbnb listing including:
    • Title, description, and property details
    • Pricing information
    • Host profile and reviews
    • Amenities and house rules
    • Location data
    • And more...

Installation

Follow the installation guide in the n8n community nodes documentation.

npm Installation

npm install n8n-nodes-airbnb-scraper

Manual Installation

  1. Go to Settings > Community Nodes
  2. Select Install
  3. Enter n8n-nodes-airbnb-scraper and confirm

Credentials

You need an API token to use this node. To get one:

  1. Visit shortrentals.ai to get your token:
  2. Once you have your token, add it in n8n:
    • Go to Credentials
    • Click Add Credential
    • Search for "Airbnb Scraper API"
    • Enter your API token

Operations

Scrape Listing

Scrapes data from an Airbnb listing.

Parameters:

  • Listing ID (required): The Airbnb listing ID (found in the URL after /rooms/)
  • Timeout: Maximum seconds to wait for scraping (default: 120)

Example: For the URL https://www.airbnb.com/rooms/1501733424018064312, the listing ID is 1501733424018064312.

Usage Example

  1. Add the Airbnb Scraper node to your workflow
  2. Select your credentials
  3. Enter the listing ID
  4. Execute the node to get the listing data

Output

The node returns comprehensive listing data including:

{
  "title": "Cozy Downtown Apartment",
  "description": "...",
  "maxGuests": 4,
  "bedrooms": 2,
  "bathrooms": 1,
  "location": {
    "city": "New York",
    "country": "United States"
  },
  "pricing": { ... },
  "amenities": [ ... ],
  "reviews": { ... },
  "hostProfile": { ... }
}

Compatibility

  • n8n version 1.0.0 or later
  • Node.js 18.x or later

Resources


Development Guide

Prerequisites

  • Node.js 18.x or later
  • npm or pnpm
  • n8n installed locally for testing

Setup

# Clone the repository
git clone https://github.com/ShortRentals-AI/n8n-nodes-airbnb-scraper.git
cd n8n-nodes-airbnb-scraper

# Install dependencies
npm install

# Build the node
npm run build

Local Testing

Method 1: Link to Local n8n

# In the node package directory
npm link

# In your n8n installation directory
npm link n8n-nodes-airbnb-scraper

# Start n8n
n8n start

Method 2: Custom n8n Directory

  1. Create a custom nodes directory:
mkdir -p ~/.n8n/custom
  1. Copy or link the built node:
# Option A: Symbolic link (recommended for development)
ln -s /path/to/n8n-nodes-airbnb-scraper ~/.n8n/custom/n8n-nodes-airbnb-scraper

# Option B: Copy the package
cp -r /path/to/n8n-nodes-airbnb-scraper ~/.n8n/custom/
  1. Set the environment variable and start n8n:
export N8N_CUSTOM_EXTENSIONS="~/.n8n/custom"
n8n start

Method 3: Docker

If using n8n with Docker:

docker run -it --rm \
  --name n8n \
  -p 5678:5678 \
  -v ~/.n8n:/home/node/.n8n \
  -v /path/to/n8n-nodes-airbnb-scraper:/home/node/.n8n/custom/n8n-nodes-airbnb-scraper \
  -e N8N_CUSTOM_EXTENSIONS="/home/node/.n8n/custom" \
  n8nio/n8n

Testing the Node

  1. Start n8n with your custom node loaded
  2. Open n8n in your browser (default: http://localhost:5678)
  3. Create a new workflow
  4. Search for "Airbnb Scraper" in the nodes panel
  5. Add the node and configure credentials
  6. Enter a test listing ID (e.g., 1501733424018064312)
  7. Execute the node and verify the output

Publishing to npm

Step 1: Prepare for Publishing

  1. Update package.json:

    • Ensure name is unique on npm
    • Update version following semver
    • Verify repository URL is correct
    • Check author and license fields
  2. Create an npm account if you don't have one:

npm adduser
  1. Login to npm:
npm login

Step 2: Build and Test

# Clean previous builds
rm -rf dist

# Build the package
npm run build

# Verify the build output
ls -la dist/

Step 3: Publish

# Dry run to check what will be published
npm publish --dry-run

# Publish to npm
npm publish --access public

Step 4: Verify Publication

  1. Check your package on npm: https://www.npmjs.com/package/n8n-nodes-airbnb-scraper
  2. Wait a few minutes for npm to index the package
  3. Test installation in a fresh n8n instance:
npm install n8n-nodes-airbnb-scraper

Updating the Package

  1. Make your changes
  2. Update the version in package.json:
npm version patch  # for bug fixes
npm version minor  # for new features
npm version major  # for breaking changes
  1. Build and publish:
npm run build
npm publish

Troubleshooting

Node not appearing in n8n

  1. Verify the build completed successfully: ls dist/
  2. Check n8n logs for errors when starting
  3. Ensure N8N_CUSTOM_EXTENSIONS is set correctly
  4. Restart n8n after making changes

Credential errors

  1. Verify the credential name matches in both files
  2. Check the Bearer token format in the API response
  3. Test the API endpoint directly with curl:
curl -X POST https://scraper.shortrentals.ai/api/scrape/listing \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"listingId": "1501733424018064312"}'

Build errors

  1. Ensure all dependencies are installed: npm install
  2. Check TypeScript version compatibility
  3. Verify n8n-workflow types are installed

License

MIT