# Airbnb Scraper (by URL)

Extract listing page information including, hotel names, prices, etc. from Airbnb by URLs.

- Template page: [https://www.octoparse.com/template/airbnb-scraper-by-url](https://www.octoparse.com/template/airbnb-scraper-by-url)
- Categories: Travel
- Status: `PUBLISHED`
- Run mode: `BOTH`

## Pricing

Free.

## What is an Octoparse template?

An Octoparse template is a ready-to-use scraping workflow with predefined inputs and structured outputs. Use the exact parameter keys below; do not invent parameters.

## Overview

This ready-to-use template collects structured data from detail pages.

## Output

The current workflow extracts 9 fields, including `Host`, `Keyword`, `hostType`, `roomName`, `roomPrice`, `roomRating`, `roomReviewcount`, `roomTitle`, `roomURL`.

## Use Cases

- Use structured results for research, comparison, and monitoring.
- Collect rows without building the extraction workflow from scratch.
- Combine results with other templates for downstream enrichment.
- Review a representative result before starting a large batch.

## Why Octoparse

- **No coding required:** complete URL (up to 1,000 per run) and start the template in local or cloud mode.
- **Flexible export:** review and export results as CSV, Excel, or JSON.

## Input

### URL (up to 1,000 per run)

Required. Enter a list of room listing URLs on Airbnb. Constraints: minItems=1; maxItems=1000; items.minLength=1; items.maxLength=5000.

## How to Use

# Airbnb Scraper (by URL)

Collects listing records: `roomTitle`, `roomName`, `roomURL`, `roomPrice`, `roomRating`, `Keyword`, `roomReviewcount`, `Host`, `hostType`. Data from [Airbnb](https://www.airbnb.com/).

## Pricing

**Free** – no per-line fee. Octoparse plan or resource limits may apply.

## Input

- **URL** (Required) – Enter up to 1,000 room listing URLs per run.

## How to Use

1. Open Airbnb Scraper (by URL) and click **Try it!**.
2. Complete the **URL** field.
3. Run locally in Octoparse.
4. Export the rows.

## Tips

- Test one representative URL before submitting a large batch.
- Keep `Keyword` in the export to trace rows to their originating input.

## Output Example

```json
{
"Keyword": "London",
"roomTitle": "Room in Hertfordshire",
"roomName": "Cozy double ensuite near woods",
"roomRating": "5.0",
"roomReviewcount": "15",
"roomPrice": "G$8,425 GYD per night",
"roomURL": "https://www.airbnb.com/rooms/791391176672941101?adults=1&category_tag=Tag%3A8678&children=0&enable_m3_private_room=true&infants=0&pets=0&check_in=2023-07-23&check_out=2023-07-29&source_impression_id=p3_1688612322_n7nSBvCbC9ZSyH2b&previous_page_section_name=1000&federated_search_id=63856029-82fb-450c-840a-49d7b14670d5",
"Host": "Stay with Helen",
"hostType": "Superhost"
}
```

## Notes

If you encounter any challenges or you want to submit your feedback to this template, please send an email to support@octoparse.com.

## Limitations

Results depend on what the source site exposes at run time. Fields may be empty when a source page does not provide a value. The template enforces the input limits shown above.

## Tips

Use specific, valid inputs and review a representative result before starting a large batch. Remove duplicate inputs when repeated records are not needed.

## FAQ

### What do I need to enter?

Use the exact inputs and limits listed above.

### What data does this template return?

See Output Schema below; availability can vary by source record.

### How is usage billed?

See the Pricing section above for current pricing and billing details.

## Related Templates

- [Airbnb Scraper (by Keyword)](https://www.octoparse.com/template/airbnb-scraper-by-keyword)
- [Google Local Service Scraper (by URL)](https://www.octoparse.com/template/google-business-local-services-scraper)
- [Twitter Scraper (by Account URL)](https://www.octoparse.com/template/twitter-scraper-by-account-url)
- [Etsy Product Scraper (by URL)](https://www.octoparse.com/template/etsy-product-scraper-by-url)
- [Zillow Listing Scraper (by URL)](https://www.octoparse.com/template/zillow-scraper)

## Input Schema

```json
{
  "title": "Airbnb Scraper (by URL) input",
  "description": "Input parameters configured for the current published template version.",
  "type": "object",
  "schemaVersion": 1,
  "additionalProperties": false,
  "properties": {
    "uRL": {
      "title": "URL (up to 1,000 per run)",
      "description": "Enter a list of room listing URLs on Airbnb.",
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 5000
      },
      "minItems": 1,
      "maxItems": 1000,
      "x-octoparse": {
        "apiEnabled": false
      }
    }
  },
  "required": [
    "uRL"
  ]
}
```

## Input JSON Example

Example 1

```json
{
  "uRL": [
    "https://www.airbnb.com/s/London/homes?tab_id=home_tab&refinement_paths%5B%5D=%2Fhomes&flexible_trip_lengths%5B%5D=one_week&monthly_start_date=2023-08-01&monthly_length=3&price_filter_input_type=0&price_filter_num_nights=5&channel=EXPLORE&source=structured_search_input_header&search_type=search_query"
  ]
}
```

Example 2

```json
{
  "uRL": [
    "https://www.airbnb.mx/s/San-Miguel-de-Allende--Guanajuato--M%C3%A9xico/homes?tab_id=home_tab&refinement_paths%5B%5D=%2Fhomes&flexible_trip_lengths%5B%5D=one_week&monthly_start_date=2024-02-01&monthly_length=3&price_filter_input_type=0&channel=EXPLORE&query=San%20Miguel%20de%20Allende%2C%20Gto.&place_id=ChIJD7xxmK9RK4QRpLAHHQMBMWU&date_picker_type=calendar&checkin=2024-03-08&checkout=2024-03-14&source=structured_search_input_header&search_type=filter_change&price_filter_num_nights=6&price_min=2444"
  ]
}
```


## Output Schema

```json
{
  "schemaVersion": 1,
  "type": "object",
  "properties": {
    "Host": {
      "type": "string",
      "description": ""
    },
    "Keyword": {
      "type": "string",
      "description": ""
    },
    "hostType": {
      "type": "string",
      "description": ""
    },
    "roomName": {
      "type": "string",
      "description": ""
    },
    "roomPrice": {
      "type": "string",
      "description": ""
    },
    "roomRating": {
      "type": "string",
      "description": ""
    },
    "roomReviewcount": {
      "type": "string",
      "description": ""
    },
    "roomTitle": {
      "type": "string",
      "description": ""
    },
    "roomURL": {
      "type": "string",
      "description": ""
    }
  },
  "title": "Airbnb Scraper (by URL) output",
  "description": "Initial output fields derived from the current published implementation. Field descriptions are maintained by Data Center; production field names and types should be refreshed from recent successful runs.",
  "additionalProperties": false
}
```

## Output Example

Example 1

```json
{
  "Host": "",
  "Keyword": "",
  "hostType": "",
  "roomName": "Soho penthouse with a wraparound roof terrace, skyline views, and a lift",
  "roomPrice": "$4,002 \n$3,250\n$3,250 for 5 nights, originally $4,002\n \nfor 5 nights",
  "roomRating": "4.99 ",
  "roomReviewcount": "67",
  "roomTitle": "Apartment in Soho",
  "roomURL": "https://www.airbnb.com/rooms/1562471937621362675?search_mode=regular_search&adults=1&check_in=2027-01-20&check_out=2027-01-25&children=0&infants=0&pets=0&source_impression_id=p3_bc1a5336-56f2-407c-b2f4-f067d96dddfb_46a2ce53-cf34-489b-aa0d-7d8d7fb161c7_0_1562471937621362675_1&previous_page_section_name=1000&federated_search_id=bc1a5336-56f2-407c-b2f4-f067d96dddfb"
}
```

Example 2

```json
{
  "Host": "",
  "Keyword": "",
  "hostType": "",
  "roomName": "Casa Libélula – 3 dormitorios con azotea, jacuzzi y vistas",
  "roomPrice": "$42,356 MXN en total",
  "roomRating": "4.74 ",
  "roomReviewcount": "19",
  "roomTitle": "Residencia en Zona Centro",
  "roomURL": "https://www.airbnb.com/rooms/1563929677262924205?search_mode=regular_search&adults=1&check_in=2026-12-07&check_out=2026-12-12&children=0&infants=0&pets=0&source_impression_id=p3_5a6bf024-879b-4e39-9cd4-d614694d9d19_6e45c402-cf09-4463-baa2-19fe9c16e822_0_1563929677262924205_0&previous_page_section_name=1000&federated_search_id=5a6bf024-879b-4e39-9cd4-d614694d9d19"
}
```

## API

`POST https://openapi.octoparse.com/api/agentTools/executeTask`

This is the OpenAPI Agent Tools `executeTask` endpoint. Authenticate with a Bearer token.

Request body:

`templateName` is the template slug; `parameters` is a JSON object string whose keys match Input Schema; `taskName`, `idempotencyKey`, and `maxCollectedRows` are optional.

Obtain a token:

```http
POST https://openapi.octoparse.com/token
Content-Type: application/json

{
  "username": "YOUR_USERNAME",
  "password": "YOUR_PASSWORD",
  "grant_type": "password"
}
```

Use `data.access_token` as `Authorization: Bearer <token>`. After starting, poll `getTaskStatus` and export with `exportData`.

```json
{
  "templateName": "airbnb-scraper-by-url",
  "taskName": "Airbnb Scraper (by URL)",
  "parameters": "{\"uRL\":[\"https://www.airbnb.com/s/London/homes?tab_id=home_tab&refinement_paths%5B%5D=%2Fhomes&flexible_trip_lengths%5B%5D=one_week&monthly_start_date=2023-08-01&monthly_length=3&price_filter_input_type=0&price_filter_num_nights=5&channel=EXPLORE&source=structured_search_input_header&search_type=search_query\"]}"
}
```

## Python Example

```python
import json
import requests

OPENAPI_BASE = "https://openapi.octoparse.com"
ACCESS_TOKEN = "YOUR_ACCESS_TOKEN"

parameters = json.loads("{\"uRL\":[\"https://www.airbnb.com/s/London/homes?tab_id=home_tab&refinement_paths%5B%5D=%2Fhomes&flexible_trip_lengths%5B%5D=one_week&monthly_start_date=2023-08-01&monthly_length=3&price_filter_input_type=0&price_filter_num_nights=5&channel=EXPLORE&source=structured_search_input_header&search_type=search_query\"]}")

response = requests.post(
    f"{OPENAPI_BASE}/api/agentTools/executeTask",
    headers={
        "Authorization": f"Bearer {ACCESS_TOKEN}",
        "Content-Type": "application/json",
    },
    json={
        "templateName": "airbnb-scraper-by-url",
        "taskName": "Airbnb Scraper (by URL)",
        "parameters": json.dumps(parameters, ensure_ascii=False),
    },
    timeout=60,
)
print(response.status_code)
print(response.json())
```

## HTTP/cURL Example

```bash
curl -X POST "https://openapi.octoparse.com/api/agentTools/executeTask" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  --data-binary @- <<'JSON'
{
  "templateName": "airbnb-scraper-by-url",
  "taskName": "Airbnb Scraper (by URL)",
  "parameters": "{\"uRL\":[\"https://www.airbnb.com/s/London/homes?tab_id=home_tab&refinement_paths%5B%5D=%2Fhomes&flexible_trip_lengths%5B%5D=one_week&monthly_start_date=2023-08-01&monthly_length=3&price_filter_input_type=0&price_filter_num_nights=5&channel=EXPLORE&source=structured_search_input_header&search_type=search_query\"]}"
}
JSON
```

## MCP Setup

Connect an MCP-compatible AI client to `https://mcp.octoparse.com` using browser OAuth or an Octoparse API key. Find `airbnb-scraper-by-url`, inspect its inputs, create a cloud task with the exact Input Schema keys, and export JSON results.

## Machine-readable Resources

- [Template contract](https://www.octoparse.com/templates/airbnb-scraper-by-url.json)
- [Manifest](https://www.octoparse.com/templates/airbnb-scraper-by-url-manifest.json)
