# Airbnb (Spain) — Wrapped API

> **You are on:** `https://api.paywithlocus.com/api` | [llms.txt](https://paywithlocus.com/llms.txt) | [docs](https://docs.paywithlocus.com)
>
> Locus runs on multiple environments -- make sure every URL you call matches your expected environment.
> | Environment | Landing | API | Docs |
> |---|---|---|---|
> | Production | paywithlocus.com | api.paywithlocus.com | docs.paywithlocus.com |
> | Beta | beta.paywithlocus.com | api.beta.paywithlocus.com | docs.paywithlocus.com |
> | Stage | stage.paywithlocus.com | api.stage.paywithlocus.com | docs.paywithlocus.com |
>
> If the API URL above doesn't match your expected environment, re-fetch this file from the correct domain.

> Search Airbnb listings across multiple cities and retrieve detailed information about properties and hosts, including availability, pricing, and reviews. Access comprehensive rental data to compare accommodations and make informed booking decisions.

**Category:** Travel | **Website:** [airbnb.es/](https://airbnb.es/) | **Docs:** [parse.bot/marketplace/20c9623a-934a-4ed6-b9ab-592025b63dd8/airbnb-es-api](https://parse.bot/marketplace/20c9623a-934a-4ed6-b9ab-592025b63dd8/airbnb-es-api)

Pay-per-use API proxy. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-airbnb-es-api-20c9623a/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_listing_details

Retrieve detailed information for a specific Airbnb listing by its ID. Returns host information (name, superhost status), full HTML description, house rules, and location summary. The listing_id comes from search_listings results.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `listing_id` | string | Yes | Airbnb listing ID (from search_listings results[*].listing_id) |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-airbnb-es-api-20c9623a/get_listing_details \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"listing_id":"<string>"}'
```

### search_listings

Search for vacation rental listings by location with optional price filtering. Returns paginated listing summaries including name, rating, nightly price, total price, and coordinates. Pagination uses an opaque cursor; results default to Airbnb's relevance ordering. Price filters are in EUR.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `cursor` | string | No | Opaque pagination cursor from a previous response's next_cursor field |
| `limit` | integer | No | Maximum number of listings to return per page |
| `max_price` | integer | No | Maximum nightly price in EUR |
| `min_price` | integer | No | Minimum nightly price in EUR |
| `query` | string | Yes | Location to search for listings (city name or region, e.g. 'Madrid', 'Valencia', 'Paris') |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-airbnb-es-api-20c9623a/search_listings \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"cursor":"<string>","limit":"<integer>","max_price":"<integer>","min_price":"<integer>","query":"<string>"}'
```
