Search real estate listings on fotocasa.es. Pass a city (madrid, barcelona, valencia…) or a full search URL. Browser rendering. 2 credits per call.
GET https://api.piloterr.com/v2/fotocasa/search?query=madrid&operation=buy
GET https://api.piloterr.com/v2/fotocasa/search?query=barcelona&operation=rent&page=2
GET https://api.piloterr.com/v2/fotocasa/search?query=https://www.fotocasa.es/es/comprar/viviendas/madrid-capital/todas-las-zonas/l
| Parameter |
Type |
Required |
Description |
query |
string |
yes |
City name or full fotocasa.es search URL |
operation |
string |
no |
buy / rent when query is a city. Default: buy |
page |
integer |
no |
Page number. Default: 1 |
| Field |
Type |
Description |
listings[] |
array |
Property cards |
listings[].id / url / title |
string |
Fotocasa id, detail URL, title |
listings[].price |
number | null |
Asking price in EUR |
listings[].currency |
string |
EUR |
listings[].price_drop / price_per_m2 |
number | null |
Reduction and €/m² |
listings[].rooms / bathrooms / area_m2 / floor |
integer | null |
Specs |
listings[].property_type / property_subtype |
string |
e.g. home / apartment |
listings[].operation |
string |
sale or rent |
listings[].city / neighborhood / address |
string |
Location |
listings[].latitude / longitude |
number | null |
Coordinates |
listings[].thumbnail_url |
string |
Image |
listings[].agency_name |
string | null |
Agency |
listings[].published_at |
string | null |
ISO 8601 |
meta.current_page / total_pages / total_results |
integer |
Pagination |
meta.has_next_page |
boolean |
More pages |
meta.location / operation |
string |
Search context |
| Code |
Meaning |
400 |
Empty or non-fotocasa.es query |
404 |
Page not found or no listings |
500 |
Rendering or parse failed |
- Index asking prices and €/m² by Spanish city and neighbourhood
- Feed a map UI with geo-tagged Fotocasa inventory
- Watch rental vs sale supply across Madrid, Barcelona, Valencia