APIs / Idealista / Locations

Idealista: Locations

Locations from Idealista as JSON. 1 credit per successful call.

GET /v1/idealista/locations

Parameters

Send parameters in the query string.

ParameterTypeRequiredAllowed values
countrystringRequiredes, it, pt, fr
modestringRequiredsuggest, reverse, vacational, picker, smart
prefixstringOptionalUp to 80 characters
coordinatesstringOptionalUp to 40 characters
property_typestringOptionalhomes, newDevelopments, bedrooms, offices, premises, transfers, buildings, storageRooms, garages, vacationRentals, luxury, lands
operationstringOptionalsale, rent
localestringOptionalUp to 8 characters
languagestringOptionalUp to 8 characters
filterstringOptionalUp to 80 characters
location_idstringOptionalUp to 80 characters

Example request

Idealista
GET/v1/idealista/locations?country=es&mode=suggest&prefix=Madrid
{
  "success": true,
  "data": {
    "locations": [
      {
        "name": "Madrid, Madrid",
        "locationId": "0-EU-ES-28-07-001-079",
        "divisible": true,
        "type": "location",
        "suggestedLocationId": 28643,
        "subTypeText": "Municipio",
        "total": 20113
      },
      {
        "name": "Madrid",
        "locationId": "0-EU-ES-28",
        "divisible": true,
        "type": "location",
        "suggestedLocationId": 30090,
        "subTypeText": "Provincia",
        "total": 34253
      },
      {
        "name": "Las Rozas de Madrid, Madrid",
        "locationId": "0-EU-ES-28-02-005-127",
        "divisible": true,
        "type": "location",
        "suggestedLocationId": 24770,
        "subTypeText": "Municipio",
        "total": 571
      }
    ],
    "total": 10
  },
  "meta": {
    "duration_ms": 475,
    "endpoint_family": "locations"
  }
}
200 OKJSONX-Credits-Used: 1
Recorded 12 Nov 2026 and shortened.

Run this endpoint in the playground with your own parameters. 1 credit per successful call; failed calls are free.

Response fields

Each item in data.locations has these 7 fields, read from a recorded call that returned 10 items. The recording leaves out fields that were empty, so a live call can return more.

FieldType
namestring
locationIdstring
divisibleboolean
typestring
suggestedLocationIdinteger
subTypeTextstring
totalinteger