APIs / Real estate / Fotocasa
1 credit per call7 endpoints40 datapointsChecked working 6 Dec 2026
Fotocasa API
Fotocasa API for property search, map search, listings, agencies, locations, area polygons and a price index as JSON. 7 endpoints, 1 credit per call.
{
"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"
}
}Sample data
What one call returns
A recorded run of search: the fields and shapes you will get, shortened to 2 items.
| # | idstring | property_idstring | transaction_typeinteger | transaction_type_labelstring | property_typeinteger | property_type_labelstring | property_subtypeinteger | property_subtype_labelstring | purchase_typeinteger | purchase_type_labelstring | conservation_statusinteger | conservation_status_labelstring | orientationinteger | orientation_labelstring | surfaceinteger | roomsinteger | bathsinteger | descriptionstring | agency_referencestring | publication_datestring | alter_datestring | zip_codestring | zonestring | streetstring | antiquitystring | hot_waterstring | address_visibility_modestring | locationobject | agencyobject | transactionobject | featuresobject[] | product_idsnumber[] | multimediaobject[] | contractsobject[] | scoringinteger | photos_countinteger | has_photosboolean | has_videosboolean | has_online_guided_tourboolean | urisobject[] |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | 1_186303595 | 186303595 | 1 | sale | 2 | home | 3 | house_chalet | 2 | second_hand | 2 | very_good | 4 | south | 304 | 3 | 3 | 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… | VV0771ZX | 2025-04-24T11:32:24.273 | 2026-03-15T16:26:11.453 | 08759 | Avinguda Olesa de Bonesvalls | 4 | 3 | 1 | {14 fields} | {9 fields} | {2 fields} | [2 items] | [2 items] | [2 items] | [2 items] | 88 | 77 | true | true | false | [2 items] | |
| 2 | 1_189454498 | 189454498 | 1 | sale | 2 | home | 3 | house_chalet | 2 | second_hand | 3 | good | 4 | south | 132 | 3 | 1 | 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… | VV1020 | 2026-04-21T22:51:35.960 | 2026-04-21T23:01:05.817 | 08759 | Carrer Major | 6 | 1 | 1 | {14 fields} | {9 fields} | {2 fields} | [2 items] | [2 items] | [2 items] | [2 items] | 87 | 51 | true | true | false | [2 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"
}
]
}
]id,property_id,transaction_type,transaction_type_label,property_type,property_type_label,property_subtype,property_subtype_label,purchase_type,purchase_type_label,conservation_status,conservation_status_label,orientation,orientation_label,surface,rooms,baths,description,agency_reference,publication_date,alter_date,zip_code,zone,street,antiquity,hot_water,address_visibility_mode,location,agency,transaction,features,product_ids,multimedia,contracts,scoring,photos_count,has_photos,has_videos,has_online_guided_tour,uris
1_186303595,186303595,1,sale,2,home,3,house_chalet,2,second_hand,2,very_good,4,south,304,3,3,"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…",VV0771ZX,2025-04-24T11:32:24.273,2026-03-15T16:26:11.453,08759,,Avinguda Olesa de Bonesvalls,4,3,1,"{""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""}","{""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""}}","{""type"":""SALE"",""price"":440000}","[{""id"":1,""label"":""air_conditioning""},{""id"":2,""label"":""wardrobes""}]","[161,151]","[{""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}]","[{""productId"":""7""},{""productId"":""107""}]",88,77,true,true,false,"[{""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""}]"
1_189454498,189454498,1,sale,2,home,3,house_chalet,2,second_hand,3,good,4,south,132,3,1,"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…",VV1020,2026-04-21T22:51:35.960,2026-04-21T23:01:05.817,08759,,Carrer Major,6,1,1,"{""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""}","{""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""}}","{""type"":""SALE"",""price"":360000}","[{""id"":2,""label"":""wardrobes""},{""id"":5,""label"":""private_parking""}]","[161,151]","[{""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""}]","[{""productId"":""7""},{""productId"":""107""}]",87,51,true,true,false,"[{""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""}]"Recorded 12 Nov 2026 · 2 items shown · 40 datapoints per itemGET /v1/fotocasa/search?property_type=2&transaction_type=1&size=5
40 datapoints
Identity
- idstring
- property_idstring
- transaction_typeinteger
- transaction_type_labelstring
- property_typeinteger
- property_type_labelstring
- property_subtypeinteger
- property_subtype_labelstring
- purchase_typeinteger
- purchase_type_labelstring
- conservation_statusinteger
- conservation_status_labelstring
- product_idsnumber[]
Location
- zip_codestring
- streetstring
- address_visibility_modestring
- locationobject
Reputation
- photos_countinteger
- has_photosboolean
Other
- orientationinteger
- orientation_labelstring
- surfaceinteger
- roomsinteger
- bathsinteger
- descriptionstring
- agency_referencestring
- publication_datestring
- alter_datestring
- zonestring
- antiquitystring
- hot_waterstring
- agencyobject
- transactionobject
- featuresobject[]
- multimediaobject[]
- contractsobject[]
- scoringinteger
- has_videosboolean
- has_online_guided_tourboolean
- urisobject[]
Playground
Run this API
curl "https://api.perceptlayer.com/v1/fotocasa/search?property_type=2&transaction_type=1&size=5" \
-H "X-API-Key: $API_KEY"Fotocasa · 7 endpoints
Endpoints
Every endpoint takes the same key. Open one for its parameters, the fields it returns and an example request.
| Endpoint | Required parameters | Returns | Cost |
|---|---|---|---|
GET/v1/fotocasa/agency | none+7 optional | location_facets | 1 credit |
GET/v1/fotocasa/listing | path | idproperty_idtitledescriptionpriceaddress+25 more | 1 credit |
GET/v1/fotocasa/locations | query+3 optional | idtextbase_textlevellevel_labelcode+3 more | 1 credit |
GET/v1/fotocasa/map-search | latitudelongitude+8 optional | idproperty_idsurfaceroomsbathsprice+3 more | 1 credit |
GET/v1/fotocasa/polygons | levelcode | levelgeometrycentroid | 1 credit |
GET/v1/fotocasa/price-index | none | countryprovincesprovince_countsource_url | 1 credit |
GET/v1/fotocasa/search | none+10 optional | itemslocation_facetspurchase_type_facetsurl_location_segmentssuper_top_ad | 1 credit |
Overview
About the Fotocasa API
What you can get
The Fotocasa API returns Fotocasa real-estate data as JSON through 7 endpoints.
- Search:
searchtakesproperty_type(2 to 8),transaction_type(1, 3, 5 or 7),location[],latitude,longitude,new_construction,sort(scoring, publicationDate or price) withsort_order_desc, andpageandsize.map-searchtakes the same parameters, withlatitudeandlongituderequired. - Listings:
listingtakes a listingpath. - Agencies:
agencytakes aclient_idorslug, withproperty_type,transaction_type,location[],pageandsize. - Locations:
locationstakes aquery, withvariant(geoadvisor or v3),property_typeandtransaction_type;polygonstakes alevel(COUNTRY, REGION or MUNICIPALITY) and acode. - Prices:
price-indextakes no parameters.
How a call works
Search around a point: GET /v1/fotocasa/map-search?latitude=40.4168&longitude=-3.7038&property_type=2&transaction_type=1&size=5 with your key in the X-API-Key header. search, map-search and agency page with page and size. Every successful call costs 1 credit; failed calls cost nothing.
More real estate APIs
Use cases
Watch new listings in an area, sorted by `publicationDate`
Use the Fotocasa API to watch new listings in an area, sorted by `publicationDate`Compare listing supply by property and transaction type across locations
Use the Fotocasa API to compare listing supply by property and transaction type across locationsSearch listings around coordinates for a map view
Use the Fotocasa API to search listings around coordinates for a map viewFetch municipality polygons, such as `level=MUNICIPALITY&code=28079`, to draw search areas
Use the Fotocasa API to fetch municipality polygons, such as `level=MUNICIPALITY&code=28079`, to draw search areasFAQ
Questions
Do I need a Fotocasa API key?
No. You call this Fotocasa API with your Perceptlayer key in the `X-API-Key` header, so there's no separate Fotocasa key to request.
How much does the Fotocasa API cost?
Each successful call costs one credit. New accounts get free credits to start, and credit packs bring the price down as you scale.
What format are responses in?
Every endpoint returns JSON, with no HTML parsing on your side.
What is the difference between search and map search?
Both take the same filters. `map-search` requires `latitude` and `longitude`; in `search` they are optional.
Is this the official Fotocasa API?
No. Perceptlayer is an independent service and is not affiliated with Fotocasa. It returns Fotocasa data as JSON with a Perceptlayer key, so there is no Fotocasa developer account, app review or partner approval to get first. It only reads data: if Fotocasa has an official API and you need to act on your own Fotocasa account, such as posting, managing orders or reading private data, use that one.
Should I build a Fotocasa scraper instead?
You can, but a Fotocasa scraper is code you maintain: page changes break it, requests get blocked, and Fotocasa's terms govern how you collect data. The Fotocasa API gives you 7 endpoints of named JSON fields for 1 credit per successful call, and failed calls cost nothing. A scraper makes sense only for data these endpoints don't return, so check the response in the playground on this page first.
Try the Fotocasa API with 100 free credits
No credit card. Failed calls are never billed.