Fotocasa API: listings as JSON
Fotocasa has no API for reading listings. Its official interface only lets agents and their software upload their own listings. Listingrail reads live Fotocasa sale and rent listings (Spain) and returns them as JSON with one key, in the same format as the other 21 portals.
| Portal | Location | Type | Price | Remarks |
|---|---|---|---|---|
| Fotocasa | Madrid | Sale | €249,000 | On market |
Is there an official Fotocasa API?
Fotocasa's official integration lets agencies publish their own listings to Fotocasa, Habitaclia and Milanuncios (Fotocasa Pro) using an API key, usually through a property CRM. No official API for searching or reading listings was found. Market data is sold separately as Fotocasa Pro Data / DataVenues through the sales team.
Access. Agencies with a Fotocasa Pro contract (ad slots) get an API key following Fotocasa's Inmofactory guide and confirm the details with their Fotocasa business advisor; CRMs such as Witei, Inmovilla or Sooprema use that key. DataVenues is contracted via sales/demo.
Price. Fotocasa publishes no price for API access that we could find.
What the official route covers. Pushing an agency's own listings, videos, virtual tours and energy certificate data to Fotocasa, Habitaclia and Milanuncios. DataVenues (separate product) offers supply, demand, valuation and market reports.
What it does not. Reading, searching or exporting other advertisers' listings through an official API.
Checked on 2026-10-15. Sources: Witei FAQ - Fotocasa Pro interconnection · Fotocasa blog profesional - Que es Fotocasa Pro Data · DataVenues · Octoparse - API de datos inmobiliarios vs web scraping (vendor blog)
Get Fotocasa listings with Listingrail
POST this body to /v1/listings/search with your key. fotocasa takes Spanish city, e.g. 'madrid', or a Fotocasa search link (for price filters). One credit per listing returned; up to 500 per request.
The same request reads the other UK and European portals by changing source: Rightmove, Zoopla, Idealista, Immobiliare.it, Funda, Leboncoin, ImmoScout24, Kleinanzeigen, Daft.ie, Otodom, Imovirtual, Hemnet. All of them on one page.
{
"source": "fotocasa",
"location": "barcelona",
"type": "sale",
"limit": 50
}Response
The response to that request, with one real Fotocasa listing from 2026-10-15; the other listings follow in the same shape, and the credit numbers are an example for a 10,000-credit key. The portal's own record comes in raw (left out here), and fields Fotocasa does not show a visitor are null.
{
"source": "fotocasa",
"location": "barcelona",
"type": "sale",
"count": 50,
"credits_used": 50,
"credits_remaining": 9950,
"listings": [
{
"id": "190963242",
"url": "https://www.fotocasa.es/es/comprar/vivienda/madrid-capital/calefaccion/190963242/d",
"source": "fotocasa",
"title": "Calle Baleares, Comillas",
"address": "Comillas",
"city": "Madrid",
"region": "Madrid",
"postal_code": "28019",
"country": "ES",
"lat": 40.39156734400256,
"lng": -3.713090602679237,
"price": 249000,
"currency": "EUR",
"price_period": null,
"beds": 2,
"rooms": null,
"baths": 1,
"area": 50,
"area_unit": "sqm",
"property_type": "Flat",
"listed_at": "2026-09-28T19:12:14.170000+00:00",
"photos": [
"https://static.fotocasa.es/images/ads/efa8a65e-b7cc-404d-8811-4da1ee14de2e?rule=original"
],
"agent": {
"name": null,
"phone": null,
"company": "LA CASA AGENCY COMILLAS"
},
"raw": {
"…": "the portal's own record, left out here"
}
},
"…"
]
}Python
import requests
r = requests.post(
"https://listingrail.com/v1/listings/search",
headers={"Authorization": "Bearer YOUR_KEY"},
json={"source":"fotocasa","location":"barcelona","type":"sale","limit":50},
timeout=180,
)
for home in r.json()["listings"]:
print(home["price"], home["currency"], home["address"], home["url"])JavaScript
const r = await fetch("https://listingrail.com/v1/listings/search", {
method: "POST",
headers: { Authorization: "Bearer YOUR_KEY", "content-type": "application/json" },
body: JSON.stringify({"source":"fotocasa","location":"barcelona","type":"sale","limit":50}),
});
const { listings } = await r.json();
console.log(listings.length, listings[0]);Fields Fotocasa fills
20 of 23 fields are filled for Fotocasa (Spain); 3 come back as null.
idurltitleaddresscityregionpostal_codecountrylatlngpricecurrencybedsbathsareaproperty_typelisted_atphotosagent.phoneagent.company
Not given by Fotocasa to a visitor, so returned as null: price_period, rooms, agent.name.
Questions about the Fotocasa API
Does Fotocasa have a public API?
Fotocasa has no API for reading listings. Its official interface only lets agents and their software upload their own listings. The details, with sources, are above on this page.
Is there a free Fotocasa API?
No. Fotocasa's only official interface is for agents uploading their own listings; there is no API for reading listings, free or paid. Listingrail's free key returns 250 Fotocasa listings a month, with no card.
How do I get a Fotocasa API key?
Officially: Agencies with a Fotocasa Pro contract (ad slots) get an API key following Fotocasa's Inmofactory guide and confirm the details with their Fotocasa business advisor; CRMs such as Witei, Inmovilla or Sooprema use that key. Listingrail gives you a key for Fotocasa and 21 other portals at once: enter your email on the home page and the key comes with 250 free listings.
How much does the Fotocasa API cost?
We found no published price for an official Fotocasa API. On Listingrail one listing returned costs one credit: 250 free every month, then $29 a month for 10,000 listings ($0.0029 each) down to $0.0012 on the largest plan. Searches that find nothing are free.
Where is the Fotocasa API documentation?
Fotocasa publishes no developer documentation for reading listings. Listingrail's documentation lists every request field and the Fotocasa location format. Listingrail API docs
Can I get Fotocasa listings in Python or JavaScript?
Yes. Send one POST request to /v1/listings/search with "source": "fotocasa" and a location; the examples on this page run as they are once you add your key. The Python guide goes further: CSV export, real output and daily alerts. How to scrape Fotocasa listings in Python
Which Fotocasa fields does the API return?
id, url, title, address, city, region, postal_code, country, lat, lng, price, currency, beds, baths, area, property_type, listed_at, photos, agent.phone, agent.company. Fields Fotocasa does not show a visitor come back as null, and every listing also carries the portal's own record in "raw".
Is it allowed to use Fotocasa data?
Listingrail reads what Fotocasa shows any visitor, at the moment you ask. How you use it is up to you: check Fotocasa's terms and the data-protection law that applies to you, especially before storing agent names or phone numbers.
Market samples
Get 250 free listingsRead the docsOther portalsPricingFotocasa MCP serverAll MCP portalsUK and Europe portalsPython guide
Fotocasa is a trademark of its owner. Listingrail is not affiliated with, endorsed by or sponsored by Fotocasa.