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

[APIs](https://perceptlayer.com/apis) / [Fotocasa](https://perceptlayer.com/apis/fotocasa) / Locations

# Fotocasa: Locations

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

GET `/v1/fotocasa/locations`

## Parameters

Send parameters in the query string.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `query` | string | Required | Up to 120 characters |
| `variant` | string | Optional | geoadvisor, v3 |
| `property_type` | integer | Optional | 2, 3, 4, 5, 6, 7, 8 |
| `transaction_type` | integer | Optional | 1, 3, 5, 7 |

## Example request

cURL shell 

```
curl "https://api.perceptlayer.com/v1/fotocasa/locations?query=Madrid" \
  -H "X-API-Key: $API_KEY"
```

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