---
title: "Idealista API: Locations | Perceptlayer"
description: "Locations from Idealista as JSON. 1 credit per successful call."
url: https://perceptlayer.com/apis/idealista/locations
---

[APIs](https://perceptlayer.com/apis) / [Idealista](https://perceptlayer.com/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.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `country` | string | Required | es, it, pt, fr |
| `mode` | string | Required | suggest, reverse, vacational, picker, smart |
| `prefix` | string | Optional | Up to 80 characters |
| `coordinates` | string | Optional | Up to 40 characters |
| `property_type` | string | Optional | homes, newDevelopments, bedrooms, offices, premises, transfers, buildings, storageRooms, garages, vacationRentals, luxury, lands |
| `operation` | string | Optional | sale, rent |
| `locale` | string | Optional | Up to 8 characters |
| `language` | string | Optional | Up to 8 characters |
| `filter` | string | Optional | Up to 80 characters |
| `location_id` | string | Optional | Up to 80 characters |

## Example request

cURL shell 

```
curl "https://api.perceptlayer.com/v1/idealista/locations?country=es&mode=suggest&prefix=Madrid" \
  -H "X-API-Key: $API_KEY"
```

[Run this endpoint in the playground](https://perceptlayer.com/apis/idealista?try=locations#playground) with your own parameters. 1 credit per successful call; failed calls are free.
