# Idealista (Portugal) — Wrapped API

> **You are on:** `https://api.beta.paywithlocus.com/api` | [llms.txt](https://beta.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 and filter property listings across Portugal by location, price, and size, then access detailed information about each property including its characteristics and pricing history. Monitor how property prices change over time to help you make informed decisions about buying or selling real estate.

**Category:** Real Estate | **Website:** [idealista.pt/](https://idealista.pt/) | **Docs:** [parse.bot/marketplace/82eaf2c3-b9fe-4fa2-b6f5-c34ec8501b63/idealista-pt-api](https://parse.bot/marketplace/82eaf2c3-b9fe-4fa2-b6f5-c34ec8501b63/idealista-pt-api)

Pay-per-use API proxy for Locus Pro. Each call burns credits from your workspace balance.

## Access

**Base URL:** `https://api.beta.paywithlocus.com/api/wrapped/credits/idealista-portugal/`
**Auth:** `Authorization: Bearer <LOCUS_CREDITS_SECRET_KEY>` (an `lcr_` secret key or a scoped `lcac_` agent credential)
**Required header:** `Idempotency-Key: <fresh UUID per call>`. A retry with the same key replays the stored result without a new charge.
**Response:** the provider response after any endpoint-specific normalization. `X-Locus-Credits-Charged` carries the charge and `X-Locus-Credits-Balance` the remaining balance. Insufficient credits return `402` before the provider is called.
**Pricing:** estimated costs below are USD. Locus debits the credit equivalent at your workspace rate.

Full call contract: https://docs.paywithlocus.com/api-reference/introduction

> Using a Pay With Locus wallet key (`claw_` prefix)? Wallet routes are documented separately: https://docs.paywithlocus.com/wrapped-apis/for-agents

## Endpoints

### Get property details

Retrieve full details for a specific property listing including title, price, description, features, images, and update date. Use the property_code from search_properties results.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `property_id` | string | Yes | Idealista property code (e.g., '34665653') from search_properties results[*].property_code |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/idealista-portugal/get-property-details \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"property_id":"<string>"}'
```

### Search properties

Search for property listings in Portugal with flexible filters including location, price range, size, bedrooms, and coordinate-based radius search. Returns paginated results with up to 30 listings per page. Each listing includes a property_code usable with get_property_details for full information.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `bedrooms` | string | No | Number of bedrooms (e.g., '1', '2', '3') |
| `center` | string | No | Coordinates 'lat,lon' for circular search (e.g., '38.6979,-9.4215') |
| `location` | string | No | Location name for the search (e.g., 'lisboa', 'porto', 'coimbra') |
| `max_price` | integer | No | Maximum price in EUR |
| `max_size` | integer | No | Maximum size in sqm |
| `min_price` | integer | No | Minimum price in EUR |
| `min_size` | integer | No | Minimum size in sqm |
| `operation` | string | No | Operation type: 'comprar' (buy) or 'arrendar' (rent) |
| `page` | integer | No | Page number for pagination |
| `property_type` | string | No | Property type: 'casas', 'quarteis-escritorios', 'garagens' |
| `radius` | string | No | Radius in meters from center (e.g., '5000') |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/idealista-portugal/search-properties \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"bedrooms":"<string>","center":"<string>","location":"<string>","max_price":"<integer>","max_size":"<integer>","min_price":"<integer>","min_size":"<integer>","operation":"<string>","page":"<integer>","property_type":"<string>","radius":"<string>"}'
```

### Track price changes

Check current status and price for a list of property codes (up to 10). Returns whether each property is active, inactive (removed), blocked, or encountered an error during lookup.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `property_codes` | string | Yes | Comma-separated property codes, up to 10 (e.g., '34665653,35043589') |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/idealista-portugal/track-price-changes \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"property_codes":"<string>"}'
```

## Next steps

- [All wrapped API providers](https://beta.paywithlocus.com/wapi/index.md): pick another provider.
- [Find and call tools](https://beta.paywithlocus.com/agent/tools.md): price ceilings, async results, and errors.
- [Credits and billing](https://beta.paywithlocus.com/agent/billing.md): what a call costs and how to add credits.
- [Agent docs index](https://beta.paywithlocus.com/agent/index.md): every Locus agent page.