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.

ParameterTypeRequiredAllowed values
querystringRequiredUp to 120 characters
variantstringOptionalgeoadvisor, v3
property_typeintegerOptional2, 3, 4, 5, 6, 7, 8
transaction_typeintegerOptional1, 3, 5, 7

Example request

Fotocasa
GET/v1/fotocasa/locations?query=Madrid
{
  "success": true,
  "data": {
    "suggestions": [
      {
        "id": "level-8-id-122-lang-0",
        "text": "Ibiza de Madrid, Madrid",
        "base_text": "Ibiza de Madrid",
        "level": "NEIGHBORHOOD",
        "level_label": "neighborhood",
        "code": "122",
        "has_children": false,
        "coordinates": {
          "latitude": 40.4189,
          "longitude": -3.67431
        },
        "combined_location_ids": "724,14,28,173,0,28079,0,199,122"
      },
      {
        "id": "level-7-id-3476-lang-0",
        "text": "Colonia Madrid, Benidorm",
        "base_text": "Colonia Madrid",
        "level": "DISTRICT",
        "level_label": "district",
        "code": "3476",
        "has_children": false,
        "coordinates": {
          "latitude": 38.54487,
          "longitude": -0.13378
        },
        "combined_location_ids": "724,19,3,367,687,3031,0,3476,0"
      },
      {
        "id": "level-7-id-2358-lang-0",
        "text": "Avenida de Madrid, Palencia",
        "base_text": "Avenida de Madrid",
        "level": "DISTRICT",
        "level_label": "district",
        "code": "2358",
        "has_children": false,
        "coordinates": {
          "latitude": 41.99324469838171,
          "longitude": -4.5203348216931944
        },
        "combined_location_ids": "724,7,34,561,1042,34120,0,2358,0"
      }
    ]
  },
  "meta": {
    "duration_ms": 685,
    "endpoint_family": "autocomplete"
  }
}
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.suggestions has these 9 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
idstring
textstring
base_textstring
levelstring
level_labelstring
codestring
has_childrenboolean
coordinatesobject
combined_location_idsstring