APIs / Fotocasa / Search

Fotocasa: Search

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

GET /v1/fotocasa/search

Parameters

Send parameters in the query string.

ParameterTypeRequiredAllowed values
property_typeintegerOptional2, 3, 4, 5, 6, 7, 8
transaction_typeintegerOptional1, 3, 5, 7
location[]list of stringOptionalAny
pageintegerOptionalAny
sizeintegerOptionalAny
sortstringOptionalscoring, publicationDate, price
sort_order_descbooleanOptionalAny
new_constructionbooleanOptionalAny
latitudenumberOptionalAny
longitudenumberOptionalAny

Example request

Fotocasa
GET/v1/fotocasa/search?property_type=2&transaction_type=1&size=5
{
  "success": true,
  "data": {
    "total_items": 490645,
    "page": 1,
    "page_size": 5,
    "has_more": true,
    "items": [
      {
        "id": "1_186303595",
        "property_id": "186303595",
        "transaction_type": 1,
        "transaction_type_label": "sale",
        "property_type": 2,
        "property_type_label": "home",
        "property_subtype": 3,
        "property_subtype_label": "house_chalet",
        "purchase_type": 2,
        "purchase_type_label": "second_hand",
        "conservation_status": 2,
        "conservation_status_label": "very_good",
        "orientation": 4,
        "orientation_label": "south",
        "surface": 304,
        "rooms": 3,
        "baths": 3,
        "description": "En Vallirana, en zona tranquila y rodeada de naturaleza, encontramos esta magnífica casa de 304 m2 construidos en el 2007 sobre una parcela de 1192 m2 según los…",
        "agency_reference": "VV0771ZX",
        "publication_date": "2025-04-24T11:32:24.273",
        "alter_date": "2026-03-15T16:26:11.453",
        "zip_code": "08759",
        "zone": "",
        "street": "Avinguda Olesa de Bonesvalls",
        "antiquity": "4",
        "hot_water": "3",
        "address_visibility_mode": "1",
        "location": {
          "countryId": "724",
          "countryName": "España",
          "level1Id": "9",
          "level1Name": "Cataluña",
          "level2Id": "8",
          "level2Name": "Barcelona",
          "level3Id": "233",
          "level3Name": "Baix Llobregat",
          "level4Id": "379",
          "level4Name": "Vallirana, Zona de ",
          "level5Id": "8295",
          "level5Name": "Vallirana",
          "latitude": "41.3738025",
          "longitude": "1.8935169"
        },
        "agency": {
          "id": "9202765909391",
          "publisher_id": "fc4f93d7-6911-469b-bccf-f79e3f281e7f",
          "name": "VERVIVIENDAS.COM",
          "alias": "VERVIVIENDAS.COM",
          "type": "professional",
          "is_bank": false,
          "logo": "https://static.fotocasa.es/images/client/9202765909391/632614.jpg?rule=original",
          "urls": [
            "…",
            "…"
          ],
          "brand_info": {
            "barColor": "#1B7835",
            "textColor": "#FFFFFF"
          }
        },
        "transaction": {
          "type": "SALE",
          "price": 440000
        },
        "features": [
          {
            "id": 1,
            "label": "air_conditioning"
          },
          {
            "id": 2,
            "label": "wardrobes"
          }
        ],
        "product_ids": [
          161,
          151
        ],
        "multimedia": [
          {
            "url": "https://static.fotocasa.es/images/ads/f9f9f9d4-ea9a-4e06-978f-671cfd428dc9?rule=original",
            "type": "2",
            "position": 1
          },
          {
            "url": "https://static.fotocasa.es/images/ads/e4e89dee-84a3-4bba-bce7-c502db08cbb2?rule=original",
            "type": "2",
            "position": 2
          }
        ],
        "contracts": [
          {
            "productId": "7"
          },
          {
            "productId": "107"
          }
        ],
        "scoring": 88,
        "photos_count": 77,
        "has_photos": true,
        "has_videos": true,
        "has_online_guided_tour": false,
        "uris": [
          {
            "language": "es_ES",
            "value": "/es/comprar/vivienda/vallirana/aire-acondicionado-calefaccion-parking-jardin-terraza-internet-no-amueblado/186303595/d"
          },
          {
            "language": "en_US",
            "value": "/en/buy/home/vallirana/air-conditioning-heating-parking-garden-terrace-internet-not-furnished/186303595/d"
          }
        ]
      },
      {
        "id": "1_189454498",
        "property_id": "189454498",
        "transaction_type": 1,
        "transaction_type_label": "sale",
        "property_type": 2,
        "property_type_label": "home",
        "property_subtype": 3,
        "property_subtype_label": "house_chalet",
        "purchase_type": 2,
        "purchase_type_label": "second_hand",
        "conservation_status": 3,
        "conservation_status_label": "good",
        "orientation": 4,
        "orientation_label": "south",
        "surface": 132,
        "rooms": 3,
        "baths": 1,
        "description": "En Vallirana, en zona tranquila y residencial y a tan solo 5 minutos en coche del centro del pueblo, encontramos esta bonita casa con jardín de 132 m2 construid…",
        "agency_reference": "VV1020",
        "publication_date": "2026-04-21T22:51:35.960",
        "alter_date": "2026-04-21T23:01:05.817",
        "zip_code": "08759",
        "zone": "",
        "street": "Carrer Major",
        "antiquity": "6",
        "hot_water": "1",
        "address_visibility_mode": "1",
        "location": {
          "countryId": "724",
          "countryName": "España",
          "level1Id": "9",
          "level1Name": "Cataluña",
          "level2Id": "8",
          "level2Name": "Barcelona",
          "level3Id": "233",
          "level3Name": "Baix Llobregat",
          "level4Id": "379",
          "level4Name": "Vallirana, Zona de ",
          "level5Id": "8295",
          "level5Name": "Vallirana",
          "latitude": "41.3823932",
          "longitude": "1.9272289"
        },
        "agency": {
          "id": "9202765909391",
          "publisher_id": "fc4f93d7-6911-469b-bccf-f79e3f281e7f",
          "name": "VERVIVIENDAS.COM",
          "alias": "VERVIVIENDAS.COM",
          "type": "professional",
          "is_bank": false,
          "logo": "https://static.fotocasa.es/images/client/9202765909391/632614.jpg?rule=original",
          "urls": [
            "…",
            "…"
          ],
          "brand_info": {
            "barColor": "#1B7835",
            "textColor": "#FFFFFF"
          }
        },
        "transaction": {
          "type": "SALE",
          "price": 360000
        },
        "features": [
          {
            "id": 2,
            "label": "wardrobes"
          },
          {
            "id": 5,
            "label": "private_parking"
          }
        ],
        "product_ids": [
          161,
          151
        ],
        "multimedia": [
          {
            "url": "https://static.fotocasa.es/images/ads/297d797b-e264-4d6f-94e9-44994c34dbef?rule=original",
            "type": "2",
            "position": 1,
            "classification": "exterior"
          },
          {
            "url": "https://static.fotocasa.es/images/ads/6f4f71e9-967b-4c26-bb9a-81a98e7588d3?rule=original",
            "type": "2",
            "position": 2,
            "classification": "living room"
          }
        ],
        "contracts": [
          {
            "productId": "7"
          },
          {
            "productId": "107"
          }
        ],
        "scoring": 87,
        "photos_count": 51,
        "has_photos": true,
        "has_videos": true,
        "has_online_guided_tour": false,
        "uris": [
          {
            "language": "es_ES",
            "value": "/es/comprar/vivienda/vallirana/parking-jardin-terraza-internet-no-amueblado/189454498/d"
          },
          {
            "language": "en_US",
            "value": "/en/buy/home/vallirana/parking-garden-terrace-internet-not-furnished/189454498/d"
          }
        ]
      }
    ],
    "location_facets": {
      "provinces": [
        {
          "literal": "A Coruña",
          "counter": 5668,
          "combinedLocation": "724,0,15,0,0,0,0,0,0",
          "segments": "a-coruna-provincia/todas-las-zonas",
          "selected": false
        },
        {
          "literal": "Albacete",
          "counter": 3186,
          "combinedLocation": "724,0,2,0,0,0,0,0,0",
          "segments": "albacete-provincia/todas-las-zonas",
          "selected": false
        }
      ]
    },
    "purchase_type_facets": [
      {
        "key": "2",
        "count": 478597
      },
      {
        "key": "1",
        "count": 12038
      }
    ],
    "url_location_segments": {
      "ca": {
        "location": "espana",
        "zone": "totes-les-zones",
        "text": ""
      },
      "de": {
        "location": "espana",
        "zone": "alle-zonen",
        "text": ""
      },
      "en": {
        "location": "espana",
        "zone": "all-zones",
        "text": ""
      },
      "es": {
        "location": "espana",
        "zone": "todas-las-zonas",
        "text": ""
      }
    },
    "super_top_ad": {
      "id": "1_187403722",
      "property_id": "187403722",
      "transaction_type": 1,
      "transaction_type_label": "sale",
      "property_type": 2,
      "property_type_label": "home",
      "property_subtype": 3,
      "property_subtype_label": "house_chalet",
      "purchase_type": 2,
      "purchase_type_label": "second_hand",
      "conservation_status": 2,
      "conservation_status_label": "very_good",
      "surface": 205,
      "rooms": 4,
      "baths": 5,
      "description": "¿Te gustaría vivir rodeado de naturaleza, en una casa con amplios espacios, mucha luz y todas las comodidades? Este chalet único en Argentona te enamorará desde…",
      "agency_reference": "4767",
      "publication_date": "2025-08-27T10:25:17.850",
      "alter_date": "2026-09-03T12:37:36.680",
      "zip_code": "08310",
      "zone": "",
      "antiquity": "6",
      "address_visibility_mode": "3",
      "location": {
        "countryId": "724",
        "countryName": "España",
        "level1Id": "9",
        "level1Name": "Cataluña",
        "level2Id": "8",
        "level2Name": "Barcelona",
        "level3Id": "229",
        "level3Name": "Maresme",
        "level4Id": "364",
        "level4Name": "Argentona, Zona de",
        "level5Id": "8009",
        "level5Name": "Argentona",
        "level7Id": "2660",
        "level7Name": "Nucli Urbà ",
        "latitude": "41.5460870073519",
        "longitude": "2.3901693314685697"
      },
      "agency": {
        "id": "9202766304426",
        "publisher_id": "2df2490a-c7ea-49f1-a246-306f53eded79",
        "name": "ASSESSORIA IMMOBILIARIA EDUARD SL",
        "alias": "FINQUES EDUARD",
        "type": "professional",
        "is_bank": false,
        "logo": "https://static.fotocasa.es/images/client/2df2490a-c7ea-49f1-a246-306f53eded79/20231113180341?rule=original",
        "urls": [
          {
            "language": "es_ES",
            "value": "/es/pro/finques-eduard/"
          },
          {
            "language": "ca_ES",
            "value": "/ca/pro/finques-eduard/"
          }
        ],
        "brand_info": {
          "barColor": "#0E0D70",
          "textColor": "#FFFFFF"
        }
      },
      "transaction": {
        "type": "SALE",
        "price": 860000,
        "priceDrop": 630000
      },
      "features": [
        {
          "id": 3,
          "label": "heating"
        },
        {
          "id": 7
        }
      ],
      "product_ids": [
        229,
        161
      ],
      "multimedia": [
        {
          "url": "https://static.fotocasa.es/images/ads/c911becb-0531-497c-9c1f-34ab9a3b00bb?rule=original",
          "type": "2",
          "position": 1,
          "classification": "living room"
        },
        {
          "url": "https://static.fotocasa.es/images/ads/159dd471-6275-460e-bad2-fe826f16103a?rule=original",
          "type": "2",
          "position": 2,
          "classification": "swimming pool"
        }
      ],
      "contracts": [
        {
          "productId": "7"
        },
        {
          "productId": "107"
        }
      ],
      "scoring": 59,
      "photos_count": 36,
      "has_photos": true,
      "has_videos": false,
      "has_online_guided_tour": false,
      "uris": [
        {
          "language": "es_ES",
          "value": "/es/comprar/vivienda/argentona/calefaccion-jardin-piscina-no-amueblado/187403722/d"
        },
        {
          "language": "en_US",
          "value": "/en/buy/home/argentona/heating-garden-swimming-pool-not-furnished/187403722/d"
        }
      ]
    }
  },
  "meta": {
    "duration_ms": 1638,
    "endpoint_family": "search"
  }
}
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

data has these 5 fields, read from a recorded call. The recording leaves out fields that were empty, so a live call can return more.

FieldType
itemsobject[]
location_facetsobject
purchase_type_facetsobject[]
url_location_segmentsobject
super_top_adobject