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

[APIs](https://perceptlayer.com/apis) / [Idealista](https://perceptlayer.com/apis/idealista) / Shorturis

# Idealista: Shorturis

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

POST `/v1/idealista/shorturis`

## Parameters

Send parameters in the JSON body.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `country` | string | Required | es, it, pt, fr |
| `direction` | string | Required | encode, decode |
| `location_id` | string | Optional | Up to 80 characters |
| `operation` | string | Optional | sale, rent |
| `property_type` | string | Optional | homes, newDevelopments, bedrooms, offices, premises, transfers, buildings, storageRooms, garages, vacationRentals, luxury, lands |
| `locale` | string | Optional | Up to 8 characters |
| `short_uris` | list of string | Optional | Up to 40 characters |

## Example request

cURL shell 

```
curl -X POST "https://api.perceptlayer.com/v1/idealista/shorturis" \
  -H "X-API-Key: $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"country":"es","direction":"encode","location_id":"0-EU-ES-28","operation":"sale","property_type":"homes"}'
```

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