# 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/tools/idealista
- Handle: `@idealista`
- Category: [Real estate](https://fous.com/tools/category/real-estate)
- Source website: https://idealista.com
- Last verified: Sep 29, 2026

## Methods

### Get price per square meter

Operation `get_price_per_square_meter`, version 1. 1 credit per completed call. Failed calls without a completed billing receipt are free; completed work can remain charged if delivery is interrupted.

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 completed call. Failed calls without a completed billing receipt are free; completed work can remain charged if delivery is interrupted.

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

Replace `YOUR_API_KEY` with a Fous API key. To create one, open Developers at the bottom of Fous Studio, turn on Developer mode, then go to API keys (https://app.fous.com/keys). Change the values in `input` to run the same tool on new data.

```bash
curl 'https://api.fous.com/v1/query' \
  --fail-with-body --silent --show-error --max-time 180 \
  -H "Authorization: Bearer YOUR_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.
import json
import urllib.error
import urllib.request

api_key = "YOUR_API_KEY"

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=180) 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.
const apiKey = "YOUR_API_KEY";

const response = await fetch("https://api.fous.com/v1/query", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${apiKey}`,
    "Content-Type": "application/json",
  },
  signal: AbortSignal.timeout(180_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);
```

## Use from an AI assistant

Connect this tool to Claude Code, Claude Desktop, Cursor, VS Code, Codex and any MCP client as its own MCP server. Each method is a typed tool whose arguments are the method’s input.

- Server URL: `https://api.fous.com/mcp/tools/idealista`
- Authorization: `Authorization: Bearer <Fous API key>`

**Tools**

- `get_price_per_square_meter`: Get price per square meter. 1 credit per completed call. Failed calls without a completed billing receipt are free; completed work can remain charged if delivery is interrupted.
- `search_properties`: Search properties. 1 credit per completed call. Failed calls without a completed billing receipt are free; completed work can remain charged if delivery is interrupted.
- `fous_get_run`: the result of a run that was still going, by its `request_id`. Free.

Claude Code:

```bash
claude mcp add --scope user --transport http fous-idealista https://api.fous.com/mcp/tools/idealista --header "Authorization: Bearer ${FOUS_API_KEY:?Set FOUS_API_KEY to your Fous API key}"
```

To give the assistant every tool, connect `https://api.fous.com/mcp`: it finds one with `fous_search_tools` and runs it with `fous_run_tool`. Setup for other clients: https://fous.com/llms-full.txt.

## 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

### Can I run it with my own inputs?

Yes. Change the inputs in Studio and press Run, or send new inputs from your code, or ask a connected AI assistant.

### Can I call this Idealista tool as an API?

Yes. Send a POST request to /v1/query with your Fous API key and the inputs, and get JSON back.

### How much does it cost?

Each completed run costs 1 credit. Failed runs without a completed receipt are free; completed work can remain charged if delivery is interrupted. 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. Some results are reused for up to 24 hours, and results that use your account or key are never reused. It was last verified 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/tools/zoopla.md): UK homes for sale and to rent.
- [Realtor.com API](https://fous.com/tools/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/tools/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/tools/immoscout24.md): Search apartments and houses across Germany.
- [Rightmove API](https://fous.com/tools/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/tools/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/tools/homes-com.md): Search homes for sale in the United States.
- [Domain.com.au API](https://fous.com/tools/domain-com-au.md): Search Australian homes for sale, rent and recently sold on Domain.
- [All Real estate tools](https://fous.com/tools/category/real-estate)
