Airbnb Scraper avatar
Airbnb Scraper
Try for free

1 day trial then $25.00/month - No credit card required now

View all Actors
Airbnb Scraper

Airbnb Scraper

onidivo/airbnb-scraper
Try for free

1 day trial then $25.00/month - No credit card required now

Crawl the Airbnb site and extract data about rentals. Scrape rental details for any location with many filters. Download and use the data in whatever way you want.

The code examples below show how to run the Actor and get its results. To run the code, you need to have an Apify account. Replace <YOUR_API_TOKEN> in the code with your API token, which you can find under Settings > Integrations in Apify Console. Learn mode

Node.js

Python

curl

1import { ApifyClient } from 'apify-client';
2
3// Initialize the ApifyClient with your Apify API token
4const client = new ApifyClient({
5    token: '<YOUR_API_TOKEN>',
6});
7
8// Prepare Actor input
9const input = {
10    "location": "Malaga, Spain",
11    "startUrls": [
12        {
13            "url": "https://www.airbnb.com/rooms/31671872"
14        },
15        {
16            "url": "https://abnb.me/S2zNfBpfo9"
17        }
18    ],
19    "maxItems": 100,
20    "maxReviews": 10,
21    "calendarMonths": 0,
22    "currency": "USD",
23    "limitPoints": 100,
24    "proxyConfiguration": {
25        "useApifyProxy": true
26    },
27    "maxConcurrency": 50,
28    "timeoutMs": 60000
29};
30
31(async () => {
32    // Run the Actor and wait for it to finish
33    const run = await client.actor("onidivo/airbnb-scraper").call(input);
34
35    // Fetch and print Actor results from the run's dataset (if any)
36    console.log('Results from dataset');
37    const { items } = await client.dataset(run.defaultDatasetId).listItems();
38    items.forEach((item) => {
39        console.dir(item);
40    });
41})();
Developer
Maintained by Community
Actor metrics
  • 10 monthly users
  • 85.2% runs succeeded
  • 0.0 days response time
  • Created in Feb 2024
  • Modified 22 days ago