# Idealista API

> Idealista returns property listings and asking prices per square metre as a workflow and API.

Idealista searches homes for sale or rent in Spain, Italy, or Portugal using a location and optional price, room, and listing filters. Get price per square meter returns monthly asking prices per square metre and price changes for a named area, using its country and listing type.

- Page: https://fous.com/workflows/idealista
- Handle: `@idealista`
- Category: [Real estate](https://fous.com/workflows/category/real-estate)
- Source website: https://idealista.com
- Last verified: Sep 29, 2026
- Fous is not affiliated with Idealista.

## Methods

### Get price per square meter

Operation `get_price_per_square_meter`, version 1. 1 credit per call.

Get the latest monthly asking price per square metre and price changes for a named city, district or neighbourhood in Spain, Italy or Portugal. For smaller areas, include their city (for example, "Lisboa, Alvalade"). Rental prices are per square metre per month. Reports cover areas published by idealista.

**Input**

| Field | Type | Required | Example | Description |
|---|---|---|---|---|
| `country` | string | no | `"Italy"` | Country of the area, for example Portugal. |
| `location` | string | yes | `"Barcelona"` | Area name; include the city for a district or neighbourhood, for example Barcelona or Lisboa, Alvalade. |
| `listing_type` | string | no | `"rent"` | Sale or rental asking prices, for example rent. |

**Input schema**

```json
{
  "type": "object",
  "required": [
    "location"
  ],
  "properties": {
    "country": {
      "enum": [
        "Spain",
        "Italy",
        "Portugal"
      ],
      "type": "string",
      "default": "Spain",
      "description": "Country of the area, for example Portugal.",
      "examples": [
        "Italy",
        "Portugal"
      ]
    },
    "location": {
      "type": "string",
      "description": "Area name; include the city for a district or neighbourhood, for example Barcelona or Lisboa, Alvalade.",
      "examples": [
        "Barcelona",
        "Milano",
        "Lisboa, Alvalade"
      ]
    },
    "listing_type": {
      "enum": [
        "sale",
        "rent"
      ],
      "type": "string",
      "default": "sale",
      "description": "Sale or rental asking prices, for example rent.",
      "examples": [
        "rent"
      ]
    }
  },
  "additionalProperties": false,
  "examples": [
    {
      "location": "Barcelona"
    },
    {
      "country": "Italy",
      "location": "Milano"
    },
    {
      "country": "Portugal",
      "location": "Lisboa, Alvalade",
      "listing_type": "rent"
    }
  ]
}
```

**Output**

| Field | Type | Example | Description |
|---|---|---|---|
| `currency` | string | `"EUR"` |  |
| `area_name` | string | `"Barcelona"` | Name of the reported area. |
| `listing_type` | string | `"sale"` |  |
| `report_month` | string | `"2026-08"` | Month covered by the report (YYYY-MM). |
| `report_page_url` | string | `"https://www.idealista.com/sala-de-prensa/informes-precio-vivienda/venta/cataluna/barcelona-provincia/barcelona/"` |  |
| `change_year_percent` | number or null | `6.3` |  |
| `highest_recorded_month` | string or null | `"2026-07"` |  |
| `change_three_months_percent` | number or null | `0.4` |  |
| `change_previous_month_percent` | number or null | `-0.2` |  |
| `average_asking_price_per_square_meter_eur` | number | `5440` | Reported asking price in EUR per square metre; per month for rentals. |
| `highest_recorded_price_per_square_meter_eur` | number or null | `5449` |  |

**Example input**

```json
{
  "location": "Barcelona"
}
```

**Example output**

```json
{
  "currency": "EUR",
  "area_name": "Barcelona",
  "listing_type": "sale",
  "report_month": "2026-08",
  "report_page_url": "https://www.idealista.com/sala-de-prensa/informes-precio-vivienda/venta/cataluna/barcelona-provincia/barcelona/",
  "change_year_percent": 6.3,
  "highest_recorded_month": "2026-07",
  "change_three_months_percent": 0.4,
  "change_previous_month_percent": -0.2,
  "average_asking_price_per_square_meter_eur": 5440,
  "highest_recorded_price_per_square_meter_eur": 5449
}
```

### Search properties

Operation `search_properties`, version 1. 1 credit per call.

Search Idealista homes for sale or rent by city, district or neighbourhood in Spain, Italy or Portugal. Returns listings in site order with prices and property details. Some locations or requests may be temporarily blocked by the site.

**Input**

| Field | Type | Required | Example | Description |
|---|---|---|---|---|
| `country` | string | no | `"Portugal"` | Country to search, for example Portugal. |
| `location` | string | yes | `"Lisboa, Arroios"` | City, district or neighbourhood, for example Madrid, Chamberí. |
| `max_price` | integer | no | `500000` | Maximum price in EUR, for example 500000 for sale or 2000 for monthly rent. |
| `min_price` | integer | no |  | Minimum price in EUR, for example 150000 for sale or 900 for monthly rent. |
| `min_rooms` | integer | no | `2` | Minimum number of rooms, for example 2. |
| `max_results` | integer | no | `5` | Maximum properties to return, for example 30 (up to 60). |
| `listing_type` | string | no | `"sale"` | Sale or rent, for example rent. |

**Input schema**

```json
{
  "type": "object",
  "required": [
    "location"
  ],
  "properties": {
    "country": {
      "enum": [
        "Spain",
        "Italy",
        "Portugal"
      ],
      "type": "string",
      "default": "Spain",
      "description": "Country to search, for example Portugal.",
      "examples": [
        "Portugal",
        "Italy"
      ]
    },
    "location": {
      "type": "string",
      "description": "City, district or neighbourhood, for example Madrid, Chamberí.",
      "examples": [
        "Lisboa, Arroios",
        "Lisboa",
        "Roma"
      ]
    },
    "max_price": {
      "type": "integer",
      "minimum": 0,
      "description": "Maximum price in EUR, for example 500000 for sale or 2000 for monthly rent.",
      "x-fous-developer": true,
      "examples": [
        500000,
        1800
      ]
    },
    "min_price": {
      "type": "integer",
      "minimum": 0,
      "description": "Minimum price in EUR, for example 150000 for sale or 900 for monthly rent.",
      "x-fous-developer": true
    },
    "min_rooms": {
      "type": "integer",
      "minimum": 0,
      "description": "Minimum number of rooms, for example 2.",
      "x-fous-developer": true,
      "examples": [
        2
      ]
    },
    "max_results": {
      "type": "integer",
      "default": 30,
      "maximum": 60,
      "minimum": 1,
      "description": "Maximum properties to return, for example 30 (up to 60).",
      "x-fous-developer": true,
      "examples": [
        5,
        4
      ]
    },
    "listing_type": {
      "enum": [
        "sale",
        "rent"
      ],
      "type": "string",
      "default": "sale",
      "description": "Sale or rent, for example rent.",
      "examples": [
        "sale",
        "rent"
      ]
    }
  },
  "additionalProperties": false,
  "examples": [
    {
      "country": "Portugal",
      "location": "Lisboa, Arroios",
      "max_price": 500000,
      "min_rooms": 2,
      "max_results": 5,
      "listing_type": "sale"
    },
    {
      "country": "Portugal",
      "location": "Lisboa",
      "max_price": 1800,
      "max_results": 4,
      "listing_type": "rent"
    },
    {
      "country": "Italy",
      "location": "Roma",
      "max_results": 4
    }
  ]
}
```

**Output**

| Field | Type | Example | Description |
|---|---|---|---|
| `properties` | array |  | Properties in the order shown on Idealista. |
| `properties[].floor` | string or null | `"2º andar sem elevador"` | Floor as shown on the listing. |
| `properties[].rooms` | integer or null | `2` | Number of rooms. |
| `properties[].title` | string | `"Apartamento T2 na Rua de Arroios, 103, Alameda - Praça do Chile - Almirante Reis, Arroios"` | Title in the site’s language. |
| `properties[].has_lift` | boolean or null | `false` | Whether the listing says it has a lift. |
| `properties[].price_eur` | integer or null | `369000` | Sale price or monthly rental price in EUR. |
| `properties[].advertiser` | string | `"Century 21 City Lounge"` | Agency or private advertiser. |
| `properties[].photo_link` | string or null | `"https://img4.idealista.pt/blur/480_360_mq/0/id.pro.pt.image.master/8c/e2/70/313822699.jpg"` | Photo link. |
| `properties[].area_address` | string or null | `"Rua de Arroios, 103, Alameda - Praça do Chile - Almirante Reis, Arroios"` | Area or address from the title, as shown. |
| `properties[].listing_link` | string | `"https://www.idealista.pt/imovel/34944752/"` | Property page link. |
| `properties[].size_square_metres` | integer or null | `70` | Size in square metres. |
| `properties[].idealista_property_code` | string | `"34944752"` | Idealista listing code. |
| `properties[].price_per_square_metre_eur` | integer or null | `5271` | Price per square metre in EUR. |

**Example input**

```json
{
  "country": "Portugal",
  "location": "Lisboa, Arroios",
  "max_price": 500000,
  "min_rooms": 2,
  "max_results": 5,
  "listing_type": "sale"
}
```

**Example output**

```json
{
  "properties": [
    {
      "floor": "2º andar sem elevador",
      "rooms": 2,
      "title": "Apartamento T2 na Rua de Arroios, 103, Alameda - Praça do Chile - Almirante Reis, Arroios",
      "has_lift": false,
      "price_eur": 369000,
      "advertiser": "Century 21 City Lounge",
      "photo_link": "https://img4.idealista.pt/blur/480_360_mq/0/id.pro.pt.image.master/8c/e2/70/313822699.jpg",
      "area_address": "Rua de Arroios, 103, Alameda - Praça do Chile - Almirante Reis, Arroios",
      "listing_link": "https://www.idealista.pt/imovel/34944752/",
      "size_square_metres": 70,
      "idealista_property_code": "34944752",
      "price_per_square_metre_eur": 5271
    },
    {
      "floor": "1º andar sem elevador",
      "rooms": 2,
      "title": "Apartamento T2 na Rua do Funchal, 11, Estefânia, Arroios",
      "has_lift": false,
      "price_eur": 318500,
      "advertiser": "Cavalcanti RealEstate Team",
      "photo_link": "https://img4.idealista.pt/blur/480_360_mq/0/id.pro.pt.image.master/ec/26/35/329767946.jpg",
      "area_address": "Rua do Funchal, 11, Estefânia, Arroios",
      "listing_link": "https://www.idealista.pt/imovel/35357330/",
      "size_square_metres": 80,
      "idealista_property_code": "35357330",
      "price_per_square_metre_eur": 3981
    },
    {
      "floor": null,
      "rooms": 3,
      "title": "Apartamento T3 na Rua Capitão Renato Baptista, 74, Anjos, Arroios",
      "has_lift": false,
      "price_eur": 499000,
      "advertiser": "JPVA - Real Estate Group",
      "photo_link": "https://img4.idealista.pt/blur/480_360_mq/0/id.pro.pt.image.master/c5/a5/7b/317815207.jpg",
      "area_address": "Rua Capitão Renato Baptista, 74, Anjos, Arroios",
      "listing_link": "https://www.idealista.pt/imovel/34745931/",
      "size_square_metres": 100,
      "idealista_property_code": "34745931",
      "price_per_square_metre_eur": null
    }
  ]
}
```

## Quick start

Call the API with a Fous API key (`FOUS_API_KEY`). To create one, turn on Developer mode in Fous Studio, then open Keys & connections → API keys (https://app.fous.com/keys).

```bash
# First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
: "${FOUS_API_KEY:?Set FOUS_API_KEY before running this example}"

curl 'https://api.fous.com/v1/query' \
  --fail-with-body --silent --show-error --max-time 120 \
  -H "Authorization: Bearer $FOUS_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "api": "@idealista",
  "visibility": "public",
  "operation": "get_price_per_square_meter",
  "version": 1,
  "input": {
    "location": "Barcelona"
  },
  "response": {
    "format": "json"
  }
}'
```

```python
# Save as fous.py and run with python3 fous.py. No packages needed.
# First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
import json
import os
import urllib.error
import urllib.request

api_key = os.environ.get("FOUS_API_KEY")
if not api_key:
    raise RuntimeError("Set FOUS_API_KEY before running this example")

body = json.loads("{\n  \"api\": \"@idealista\",\n  \"visibility\": \"public\",\n  \"operation\": \"get_price_per_square_meter\",\n  \"version\": 1,\n  \"input\": {\n    \"location\": \"Barcelona\"\n  },\n  \"response\": {\n    \"format\": \"json\"\n  }\n}")
request = urllib.request.Request(
    "https://api.fous.com/v1/query",
    data=json.dumps(body).encode("utf-8"),
    headers={
        "Authorization": f"Bearer {api_key}",
        "Content-Type": "application/json",
    },
    method="POST",
)
try:
    with urllib.request.urlopen(request, timeout=120) as response:
        result = json.load(response)
except urllib.error.HTTPError as error:
    raise RuntimeError(f"HTTP {error.code}: {error.read().decode('utf-8', errors='replace')}") from error
if result.get("success") is False:
    raise RuntimeError(result.get("error", {}).get("message", "Request failed"))
print(json.dumps(result["data"]["output"], indent=2))
```

```typescript
// Save as fous.mts and run with npx tsx fous.mts.
// First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
const apiKey = process.env.FOUS_API_KEY;
if (!apiKey) throw new Error("Set FOUS_API_KEY before running this example");

const response = await fetch("https://api.fous.com/v1/query", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${apiKey}`,
    "Content-Type": "application/json",
  },
  signal: AbortSignal.timeout(120_000),
  body: JSON.stringify({
  "api": "@idealista",
  "visibility": "public",
  "operation": "get_price_per_square_meter",
  "version": 1,
  "input": {
    "location": "Barcelona"
  },
  "response": {
    "format": "json"
  }
}),
});
type ApiResult = { success: boolean; data?: { output: unknown }; error?: { message: string } };
const result: ApiResult = await response.json();
if (!response.ok || result.success === false) {
  throw new Error(result.error?.message ?? `HTTP ${response.status}`);
}
if (!result.data) throw new Error("Missing API response data");
console.log(result.data.output);
```

Or describe the data in plain language: send `{"api":"@idealista","prompt":"Describe the data you need, with every detail"}` to the same URL. Fous fills in the input, runs the method that fits and returns only the fields you asked for; `data.route.calls[].request` is the exact call it made. Routing is free; the run costs the same.

## Use cases

- Compare homes for sale or rent across locations
- Filter listings by price and number of rooms
- Review asking prices for a city or neighbourhood
- Track reported price changes over time

## FAQ

### Is Fous affiliated with Idealista?

No. Fous is not affiliated with Idealista. This workflow reads the public idealista.com website and returns its data.

### How much does it cost?

Each run costs 1 credit. With pay-as-you-go, a credit costs 1¢; monthly plans cost less per credit.

### Do I need a Idealista account?

No. You only need a Fous account.

### How current is the data?

Fous gets the data from idealista.com when you run it; repeating the same request within a day may return the saved result. Fous checks this workflow automatically; it last passed a check on Sep 29, 2026.

### What homes are for sale or rent in a location?

Search properties returns listings for a city, district, or neighbourhood, with optional price, room, and listing-type filters.

### What is the asking price per square metre in an area?

Get price per square meter returns the reported asking price for a named area and listing type.

### How have asking prices changed recently?

Get price per square meter returns changes from the previous month, three months, and year.

## Related

- [Zoopla API](https://fous.com/workflows/zoopla.md): UK homes for sale and to rent.
- [Realtor.com API](https://fous.com/workflows/realtor-com.md): Realtor.com returns home listings for sale, rent, or recently sold, property details and estimates, and local agent profiles; some fields or sold prices may be missing.
- [Zillow API](https://fous.com/workflows/zillow.md): Zillow provides homes for sale, rental listings, home details, estimates, and housing market figures; rental details, history, schools, estimates, and market figures may be missing or reflect different reporting dates.
- [ImmoScout24 API](https://fous.com/workflows/immoscout24.md): Search apartments and houses across Germany.
- [Rightmove API](https://fous.com/workflows/rightmove.md): Rightmove searches UK homes for sale or rent and finds recent sold prices; searches return up to 100 listings, and area averages reflect returned properties only.
- [Apartments.com API](https://fous.com/workflows/apartments-com.md): Apartments.com returns U.S. apartments and homes matching location and optional filters, plus community details; rent and availability may be missing or change.
- [Homes.com API](https://fous.com/workflows/homes-com.md): Search homes for sale in the United States.
- [Domain.com.au API](https://fous.com/workflows/domain-com-au.md): Search Australian homes for sale, rent and recently sold on Domain.
- [All Real estate workflows](https://fous.com/workflows/category/real-estate)
