ssh.autos

Catalog / Real estate

REAL ESTATE · SPAIN

Fotocasa: Spain Property Listings

Fotocasa API for Spanish real estate.

PER CALL · X402 / MPP From $0.02 per call 1 endpoint at api.ssh.autos. Pay in USDC, no account. See the endpoint
APIFY STORE Public actor Run it with your Apify account: bulk runs, schedules and exports. Open on Apify

About this data

Fotocasa API for Spanish real estate. Paste any fotocasa.es search URL or pick a location; get one clean record per home for sale or rent with price in EUR, m², bedrooms, bathrooms, address, photo and listing URL.

From the actor’s Apify Store listing. The per-call endpoint may return a bounded subset; its own description is below.

Buy per call over x402

One endpoint at api.ssh.autos. Each call is one JSON POST, paid in USDC with no account or API key, and answered in the same HTTP response.

POST /v1/es/fotocasa/listings

Live property listings from Fotocasa, one of Spain's largest real-estate portals, for a location slug (e.g. madrid-provincia, barcelona-capital, valencia-capital) and optional zone, for sale or rent: price in EUR, area in m2, rooms, bathrooms, address, property type, agency phone where shown, image and listing URL.

PRICE$0.02 per call, in USDC
RESULTUp to 30 per call
PAYMENTx402 or MPP · no account

First results page only, up to 30 listings per call; the residential proxy is included in the price.

Input

Send a JSON body to POST https://api.ssh.autos/v1/es/fotocasa/listings.

FieldTypeRequiredNotes
locationstringoptionalup to 80 characters; pattern ^[a-z0-9]+(-[a-z0-9]+)*$; default "madrid-provincia"
zonestringoptionalup to 80 characters; pattern ^[a-z0-9]+(-[a-z0-9]+)*$; default "todas-las-zonas"
operationstringoptionalone of sale, rental; default "sale"
sortTypestringoptionalone of scoring, publication, price-asc, price-desc; default "scoring"
maxResultsintegeroptional1–30; default 10

Returned fields

The answer is JSON: records, a list of up to 30, and summary, the run status and counts. Each record has these 19 fields; a field the source does not publish comes back null.

19 fields per record
FieldTypeNotes
idstringFotocasa numeric listing id from the URL (/es/comprar/vivienda/{location}/{slug}/{id}/d).
listingKeystringComposite unique key: source:id (e.g. fotocasa.es:190550668).
urlstringCanonical listing URL on www.fotocasa.es, tracking query parameters removed.
namestringListing card title.
pricenumberAdvertised price amount; for rentals the monthly amount ('/mes' dropped). Spanish formatting ('365.000 €' → 365000). Null for 'Precio a consultar'.
currencystringCurrency of price: always EUR on fotocasa.es. Null when the card shows no price.
areaM2numberBuilt area in m² from the card detail chips ('120 m²', '86 m² constr.').
roomsintegerBedrooms from the card chips ('3 hab.').
bedroomsintegerSame as rooms: fotocasa cards expose 'hab.' (bedrooms) only.
bathroomsintegerBathrooms from the card chips ('2 baños').
addressstringLocation line from the card (re-CardLocation dialect or <address>).
phonestringPublished listing phone for all client types, including private owners, preserving source formatting. Unavailable phones remain null.
imageUrlstringPrimary card image URL on the Fotocasa CDN.
operationstringRequested operation: 'sale' or 'rental'.
propertyTypestringSearched property type: 'viviendas' for form searches; a pasted search URL gives its own type (e.g. 'pisos', 'casas').
portalstringPortal slug the record came from ('fotocasa').
countrystringPortal country: ES.
sourcestringSource website hostname (www.fotocasa.es).
scrapedAtstringUTC ISO-8601 collection timestamp.

Example call

TERMINAL · $0.02 PER RUN
npx agentcash@latest fetch https://api.ssh.autos/v1/es/fotocasa/listings -m POST -b '{"location": "valencia-capital", "maxResults": 3}'

The example values come from the API spec or the actor’s own sample input. Running it is a paid call.

What is and isn’t charged

Free

  • Invalid input (422), busy (503), source failure (502), timeout (504) and calls whose client hung up are never charged.
  • Invalid input and source failures are not charged.

Prefer a subscription? Run it on Apify

This data source is a public actor on the Apify Store: Fotocasa Scraper: Spain Property Listings API. Run it with your Apify account and plan for larger, scheduled or exported runs; it may offer more input options than the per-call endpoint.

Open on Apify

How x402 payment works

  1. Your client sends the request. The API answers 402 Payment Required with the price and where to pay.
  2. The client pays from its own wallet: USDC on Base or Solana over x402, or over MPP on Tempo. No account, sign-up or API key.
  3. The client retries with the payment attached and gets the JSON answer in the same call. You are only charged for answers.

The AgentCash CLI in the example does all three steps for you and pays from your AgentCash wallet. Any x402 or MPP client works the same way.

Machine-readable: openapi.json · llms.txt

Some links to Apify are affiliate links. We may earn a commission if you sign up and become a paying customer.