Airbnb API Python Client

Extract Airbnb data with our Airbnb API Python client. Get programmatic access to amenities, location details, ratings, URL, price per night, number of guests, and more using simple Python code. Start free, no credit card required.

Trusted by industry leaders all over the world

Integrate our Airbnb API

The Apify API client for Python is the official library that allows you to use Airbnb API in Python, providing convenience functions and automatic retries on errors. Get started with simple pip installation and robust error handling built-in.

Python

Python

JavaScript

JavaScript

HTTP

HTTP

MCP

MCP

1from apify_client import ApifyClient
2
3# Initialize the ApifyClient with your Apify API token
4# Replace '<YOUR_API_TOKEN>' with your token.
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7# Prepare the Actor input
8run_input = {
9 "locationQueries": ["London"],
10 "locale": "en-US",
11 "currency": "USD",
12}
13
14# Run the Actor and wait for it to finish
15run = client.actor("tri_angle/airbnb-scraper").call(run_input=run_input)
16
17# Fetch and print Actor results from the run's dataset (if there are any)
18print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
19for item in client.dataset(run["defaultDatasetId"]).iterate_items():
20 print(item)
21
22# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

Get data with Airbnb API Python client

Use our Python API client to extract Airbnb listings data by providing location queries, check-in/check-out dates, price ranges, and guest requirements. The API returns structured data, including property details, host information, ratings, pricing, coordinates, amenities, house rules, and property descriptions.

Input

{
"locationQueries": [
"London"
]
}

Output

{
"_fromStrapi": true,
"id": "14926879",
"url": "<https://www.airbnb.com/rooms/14926879>",
"host": {
"_fromStrapi": true,
"id": "82436841",
"name": "Max And Billie",
"about": [
"Lives in London, United Kingdom"
],
"highlights": [
"8 years hosting"
],
"isSuperHost": false,
"profileImage": "<https://a0.muscache.com/im/pictures/user/ddc3b1ab-e2d5-4953-8295-bbefa7a5e808.jpg>"
},
"price": {
"label": "$107 per night",
"amount": "$107",
"breakDown": {
"basePrice": {
"price": "$48",
"description": "Cleaning fee"
},
"serviceFee": {
"price": "$40",
"description": "Airbnb service fee"
},
"totalBeforeTaxes": {
"price": "$302",
"description": "Total before taxes"
},
"basePriceBreakdown": [
{
"price": "$107",
"description": "11/25/2024"
},
{
"price": "$107",
"description": "11/26/2024"
},
{
"price": "$214",
"description": "Total Base Price"
}
]
},
"qualifier": "night"
},
"title": "Terrific Notting Hill Studio - Apartments for Rent in London, England, United Kingdom - Airbnb",
"images": [],
"locale": "en",
"rating": {
"value": 4.58,
"accuracy": 4.76,
"checking": 4.85,
"location": 4.95,
"cleanliness": 4.77,
"reviewsCount": 371,
"communication": 4.84,
"guestSatisfaction": 4.58
},
"coHosts": [],
"iosLink": "airbnb://rooms/14926879",
"homeTier": 1,
"language": "en",
"roomType": "Entire home/apt",
"amenities": [
{
"title": "Bathroom",
"values": [
{
"icon": "SYSTEM_HAIRDRYER",
"title": "Hair dryer",
"subtitle": "",
"available": true
},
{
"icon": "SYSTEM_SHAMPOO",
"title": "Shampoo",
"subtitle": "",
"available": true
},
{
"icon": "SYSTEM_HOT_WATER",
"title": "Hot water",
"subtitle": "",
"available": true
}
]
},
{
"title": "Bedroom and laundry",
"values": [
{
"icon": "SYSTEM_WASHER",
"title": "Washer",
"subtitle": "",
"available": true
},
{
"icon": "SYSTEM_DRYER",
"title": "Dryer",
"subtitle": "",
"available": true
},
{
"icon": "SYSTEM_TOILETRIES",
"title": "Essentials",
"subtitle": "Towels, bed sheets, soap, and toilet paper",
"available": true
},
{
"icon": "SYSTEM_HANGERS",
"title": "Hangers",
"subtitle": "",
"available": true
},
{
"icon": "SYSTEM_BLANKETS",
"title": "Bed linens",
"subtitle": "",
"available": true
},
{
"icon": "SYSTEM_PILLOW",
"title": "Extra pillows and blankets",
"subtitle": "",
"available": true
},
{
"icon": "SYSTEM_IRON",
"title": "Iron",
"subtitle": "",
"available": true
}
]
},
{
"title": "Entertainment",
"values": [
{
"icon": "SYSTEM_TV",
"title": "TV with standard cable",
"subtitle": "",
"available": true
}
]
},
{
"title": "Family",
"values": [
{
"icon": "SYSTEM_PACK_N_PLAY",
"title": "Pack ’n play/Travel crib",
"subtitle": "",
"available": true
},
{
"icon": "SYSTEM_HIGH_CHAIR",
"title": "High chair",
"subtitle": "",
"available": true
}
]
},
{
"title": "Heating and cooling",
"values": [
{
"icon": "SYSTEM_THERMOMETER",
"title": "Heating",
"subtitle": "",
"available": true
}
]
},
{
"title": "Home safety",
"values": [
{
"icon": "SYSTEM_DETECTOR_SMOKE",
"title": "Smoke alarm",
"subtitle": "",
"available": true
},
{
"icon": "SYSTEM_FIRE_EXTINGUISHER",
"title": "Fire extinguisher",
"subtitle": "",
"available": true
}
]
},
{
"title": "Internet and office",
"values": [
{
"icon": "SYSTEM_WI_FI",
"title": "Wifi",
"subtitle": "",
"available": true
}
]
},
{
"title": "Kitchen and dining",
"values": [
{
"icon": "SYSTEM_COOKING_BASICS",
"title": "Kitchen",
"subtitle": "Space where guests can cook their own meals",
"available": true
},
{
"icon": "SYSTEM_REFRIGERATOR",
"title": "Refrigerator",
"subtitle": "",
"available": true
},
{
"icon": "SYSTEM_COOKING_BASICS",
"title": "Cooking basics",
"subtitle": "Pots and pans, oil, salt and pepper",
"available": true
},
{
"icon": "SYSTEM_DISHES_AND_SILVERWARE",
"title": "Dishes and silverware",
"subtitle": "Bowls, chopsticks, plates, cups, etc.",
"available": true
},
{
"icon": "SYSTEM_STOVE",
"title": "Stove",
"subtitle": "",
"available": true
},
{
"icon": "SYSTEM_WATER_KETTLE",
"title": "Hot water kettle",
"subtitle": "",
"available": true
},
{
"icon": "SYSTEM_MAPS_BAR",
"title": "Wine glasses",
"subtitle": "",
"available": true
},
{
"icon": "SYSTEM_TOASTER",
"title": "Toaster",
"subtitle": "",
"available": true
},
{
"icon": "SYSTEM_DINING_TABLE",
"title": "Dining table",
"subtitle": "",
"available": true
}
]
},
{
"title": "Parking and facilities",
"values": [
{
"icon": "SYSTEM_MAPS_CAR_RENTAL",
"title": "Paid parking off premises",
"subtitle": "",
"available": true
}
]
},
{
"title": "Services",
"values": [
{
"icon": "SYSTEM_PETS",
"title": "Pets allowed",
"subtitle": "Assistance animals are always allowed",
"available": true
},
{
"icon": "SYSTEM_LUGGAGE_DROP",
"title": "Luggage dropoff allowed",
"subtitle": "For guests' convenience when they have early arrival or late departure",
"available": true
},
{
"icon": "SYSTEM_CALENDAR",
"title": "Long term stays allowed",
"subtitle": "Allow stay for 28 days or more",
"available": true
},
{
"icon": "SYSTEM_KEY",
"title": "Self check-in",
"subtitle": "",
"available": true
},
{
"icon": "SYSTEM_LOCK_ON_DOOR",
"title": "Smart lock",
"subtitle": "",
"available": true
}
]
},
{
"title": "Not included",
"values": [
{
"icon": "SYSTEM_NO_AIR_CONDITIONING",
"title": "Air conditioning",
"subtitle": "",
"available": ""
},
{
"icon": "SYSTEM_NO_DETECTOR_CO2",
"title": "Carbon monoxide alarm",
"subtitle": "There is no carbon monoxide detector on the property.",
"available": ""
}
]
}
],
"thumbnail": "<https://a0.muscache.com/pictures/miso/Hosting-14926879/original/218d04d9-57bf-49a7-81d9-71be16530cf8.jpeg>",
"highlights": [
{
"title": "Self check-in",
"subtitle": "Check yourself in with the smartlock."
},
{
"title": "Great location",
"subtitle": "95% of recent guests gave the location a 5-star rating."
},
{
"title": "Free cancellation for 48 hours",
"subtitle": "Get a full refund if you change your mind."
}
],
"houseRules": {
"general": [
{
"title": "Checking in and out",
"values": [
{
"icon": "SYSTEM_CLOCK",
"title": "Check-in after 3:00 PM"
},
{
"icon": "SYSTEM_CLOCK",
"title": "Checkout before 11:00 AM"
},
{
"icon": "SYSTEM_CHECK_IN",
"title": "Self check-in with smart lock"
}
]
},
{
"title": "During your stay",
"values": [
{
"icon": "SYSTEM_FAMILY",
"title": "1 guest maximum"
},
{
"icon": "SYSTEM_PETS",
"title": "Pets allowed"
},
{
"icon": "SYSTEM_NO_EVENTS",
"title": "No parties or events"
},
{
"icon": "SYSTEM_NO_CAMERA",
"title": "No commercial photography"
},
{
"icon": "SYSTEM_SMOKING_NOT_ALLOWED",
"title": "No smoking"
}
]
}
],
"additional": ""
},
"androidLink": "airbnb://rooms/14926879",
"coordinates": {
"latitude": 51.5101,
"longitude": -0.1949
},
"description": "Entire rental unit in London, United Kingdom. This studio on the top floor (4th floor) in a beautiful house, in the heart of Notting Hill. In June 2023 we overhauled the water system in the bu...",
"isSuperHost": false,
"personCapacity": 1,
"subDescription": {
"items": [
"1 guest",
"Studio",
"1 bed",
"1 bath"
],
"title": "Entire rental unit in London, United Kingdom"
},
"locationDescriptions": [
{
"title": "Neighborhood highlights",
"content": "The apartment is perfectly sandwiched between Westbourne Grove, Notting Hill Gate, with Holland Park and Kensington a short walk away. You can reach all the local beautiful open spaces on foot; Kensington Palace, Hyde Park and Holland Park. Notting Hill Gate, Portobello Road, Westbourne Grove and Kensington Church Street are full to bursting point with cool bars, traditional pubs and fantastic restaurants."
},
{
"title": "Getting around",
"content": "You have a choice of buses that link you to Central London in just a few minutes. Notting Hill Gate tube station is a 4-5 minute walk or you can stroll down to High Street Kensington station in 10-12 minutes. Black cabs and Ubers are very easy to find and much of the local shopping and sightseeing is easily done on foot."
}
],
"descriptionOriginalLanguage": "en"
}

How to use Airbnb API

Sign up for Apify account01

Creating an account is quick and free — no credit card required. Your account gives you access to more than 5,000 scrapers and APIs.

Get started for free
Install Apify Python client02

Install the Apify Python client using pip: pip install apify-client. This package provides a simple interface to interact with Airbnb API from your Python applications.

Get your Apify API token03

Go to settings in the Apify console and navigate to the “API & Integrations” tab. There, create a new token and save it for later.

Integrate Airbnb API04

Navigate to the Airbnb API page and click on the API dropdown menu in the top right corner. In the dropdown menu, you can see API clients, API endpoints, and more. Use the provided Python code examples to integrate Airbnb API into your Python application.

Open Airbnb Python API
Get your Airbnb data via API05

The Airbnb API returns structured JSON data that works perfectly with pandas, NumPy, and other Python data analysis libraries.

Why use Apify?

Never get blocked

Every plan (free included) comes with Apify Proxy, which is great for avoiding blocking and giving you access to geo-specific content.

Customers love us

We truly care about the satisfaction of our users and thanks to that we're one of the best-rated data extraction platforms on both G2 and Capterra.

Monitor your runs

With our latest monitoring features, you always have immediate access to valuable insights on the status of your web scraping tasks.

Export to various formats

Your datasets can be exported to any format that suits your data workflow, including Excel, CSV, JSON, XML, HTML table, JSONL, and RSS.

Integrate Apify to your workflow

You can integrate your Apify runs with platforms such as Zapier, Make, Keboola, Google Drive, or GitHub. Connect with practically any cloud service or web app.

Large developer community

Apify is built by developers, so you'll be in good hands if you have any technical questions. Our Discord server is always here to help!

Frequently asked questions

No, Airbnb does not provide an official Python API client for accessing their listings data. However, this Airbnb Scraper provides a reliable alternative Python API client to extract the same data you would find on Airbnb's website, including property details, pricing, ratings, and availability information in a structured JSON format.

Yes, you can try the Airbnb Python API client for free. Apify offers free usage credits for new users, and the scraper uses a pay-per-result pricing model at $1.25 per 1,000 results. For example, scraping 240 results (typical for one location) costs only $0.30, making it very affordable to test before committing to larger projects.

You can extract comprehensive Airbnb listing data through the Python API client including property ratings, prices per night, guest capacity, exact coordinates, detailed amenities, host information, property descriptions, house rules, room types, check-in/check-out times, and booking URLs. The Python API client can return up to 240 results per search query and supports filtering by price range, dates, number of guests, bedrooms, bathrooms, and beds.

Getting started with our Airbnb Python API is easy — simply create a free Apify account, get your API token, and start using the Airbnb API in Python, JavaScript, CLI, cURL, OpenAPI, or MCP.

Get started with Airbnb API Python client today

Get your first Airbnb data in Python in less than 5 minutes. No credit card required. No commitment. Cancel anytime.