# Yaencontre Scraper — Spanish Property Listings (`memo23/yaencontre-scraper`) Actor

Scrape Yaencontre homes across Spain. Sale or rent: price, price per square metre, size, rooms, photos, address, coordinates, energy rating and the listing agency. Start from a city or paste a search link. One row per home, JSON or CSV. Flats, houses, land and commercial units.

- **URL**: https://apify.com/memo23/yaencontre-scraper.md
- **Developed by:** [Muhamed Didovic](https://apify.com/memo23) (community)
- **Categories:** Real estate, Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.70 / 1,000 listings

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Yaencontre Scraper — Spanish property listings

Turn a Spanish city, or a Yaencontre search you already filtered, into a dataset of homes. One row per listing: asking price, size, rooms, photos, address and the agency.

Sale and rent. Flats, houses, land, garages, offices, warehouses and commercial units.

![How the Yaencontre Scraper works](https://raw.githubusercontent.com/muhamed-didovic/muhamed-didovic.github.io/main/assets/how-it-works-yaencontre.png)

### Why Use This Scraper?

- Spain property rows you can filter, schedule and export.
- Price, price per m², area, rooms and bathrooms on every result.
- Address, coordinates and the photo set, not a title alone.
- Energy rating, listing dates and the agency street address when you open each listing.
- A city and a property type, or the Yaencontre page you are already looking at.
- JSON, CSV or Excel from the dataset. No Yaencontre account.

### Overview

Yaencontre lists homes and commercial property across Spain. This actor saves one listing per row, whether you start from a city or from a link.

With **Open each listing page** off, a row is the search card: price, size, rooms, a short description, photos, the address and the agency name. Turn it on and the same row also carries the full description, the energy certificate, when the listing was published, and the agency's street address.

The public listing shows whether a phone is offered. It does not show the number, so `phone` is empty and `phoneAvailable` records the flag.

### Supported Inputs

**A city.** `Madrid`, `Barcelona`, `Málaga`, `Valencia`. The actor builds the sale or rent search for the property type you pick. A district or a map search belongs in a pasted link, not in the city box.

**A search link.** The path is `/{sale or rent}/{property}/{place}`. Sale is `venta`, rent is `alquiler`.

| Type | Path segment | Example |
|---|---|---|
| Flats | `pisos` | `https://www.yaencontre.com/venta/pisos/madrid` |
| Houses | `casas` | `https://www.yaencontre.com/alquiler/casas/barcelona` |
| Land | `terrenos` | `https://www.yaencontre.com/venta/terrenos/madrid` |
| Commercial units | `locales` | `https://www.yaencontre.com/venta/locales/madrid` |
| Garages | `garajes` | `https://www.yaencontre.com/venta/garajes/madrid` |
| Warehouses | `naves` | `https://www.yaencontre.com/venta/naves/madrid` |
| Offices | `oficinas` | `https://www.yaencontre.com/venta/oficinas/valencia` |
| Buildings | `edificios` | `https://www.yaencontre.com/venta/edificios/madrid` |
| Storage | `trasteros` | `https://www.yaencontre.com/venta/trasteros/madrid` |

Filters already in the link are kept:

```text
https://www.yaencontre.com/venta/pisos/madrid
https://www.yaencontre.com/alquiler/casas/barcelona
https://www.yaencontre.com/venta/oficinas/valencia
https://www.yaencontre.com/venta/pisos/madrid/pag-2
```

**A single listing.**

```text
https://www.yaencontre.com/venta/piso/inmueble-38586-113090031
```

When **Yaencontre URLs** has at least one link, the city, sale/rent and property type fields are ignored.

**Not supported.** Logins, saved searches inside an account, and pages that are not a Yaencontre search or listing. Business-transfer paths that Yaencontre answers with a missing page are skipped.

#### Copy-pasteable start URLs

```json
{
  "startUrls": [
    { "url": "https://www.yaencontre.com/venta/pisos/madrid" },
    { "url": "https://www.yaencontre.com/alquiler/casas/barcelona" }
  ],
  "fetchDetails": true,
  "maxItems": 100
}
```

### Use Cases

| Who | What they pull |
|---|---|
| Buyers and relocating teams | Asking prices, size and photos for a city |
| Agents | Competing listings and the agency behind each one |
| Analysts | Price per m², energy rating and listing dates |
| Proptech | A repeatable feed of sale and rent inventory |
| Researchers | Commercial units, offices, land and garages alongside homes |

### How It Works

1. Choose a city, sale or rent, and a property type, or paste Yaencontre links.
2. Set how many listings to keep, and whether to open each listing page.
3. Run the actor. Search cards come back first. Listing pages add the longer fields.
4. Download the dataset as JSON, CSV or Excel, or call it on a schedule.

### Input Configuration

| Field | Type | Default | What it does |
|---|---|---|---|
| `location` | string | `Madrid` | City or town. Used only when no URLs are pasted. |
| `operation` | `sale` or `rent` | `sale` | Sale listings or rentals. |
| `propertyType` | enum | `flat` | `flat`, `house`, `land`, `premises`, `garage`, `warehouse`, `office`, `building`, `storage`. |
| `startUrls` | URL list | empty | Search pages or single listings. When set, the three fields above are ignored. |
| `fetchDetails` | boolean | `false` | Open each listing for the full description, energy certificate, dates and agency street address. |
| `maxItems` | integer | `100` | Stop after this many listings. Free plan runs stop at 100. |
| `proxy` | proxy | off | Leave empty. The default run works without a proxy setting. |

#### City search

```json
{
  "location": "Madrid",
  "operation": "sale",
  "propertyType": "flat",
  "fetchDetails": true,
  "maxItems": 50
}
```

#### Rent, search cards only

```json
{
  "location": "Barcelona",
  "operation": "rent",
  "propertyType": "house",
  "fetchDetails": false,
  "maxItems": 200
}
```

### Output Overview

Every row is one property. Search-card fields are always filled when Yaencontre shows them. Energy ratings, listing dates and `agencyAddress` are filled when **Open each listing page** is on and the listing has that information. `phone` stays empty.

### Output Samples

Madrid flat, sale, with the listing page opened, saved 17 Nov 2026.

```json
{
  "reference": "38586-113090031",
  "url": "https://www.yaencontre.com/venta/piso/inmueble-38586-113090031",
  "title": "Piso en San Andrés, Madrid",
  "description": "Luz, amplitud y máximo confort en la calle Dr. Martín Arévalo.",
  "operation": "sale",
  "propertyType": "flat",
  "price": 249900,
  "pricePerSqm": 3904.69,
  "areaSqm": 64,
  "rooms": 1,
  "bathrooms": 1,
  "address": "San Andrés, Villaverde, Madrid, Madrid (provincia)",
  "latitude": 40.3459875,
  "longitude": -3.7043339,
  "agencyName": "SERVICHECK Inmobiliaria",
  "agencyUrl": "https://www.yaencontre.com/inmobiliarias/servicheck-inmobiliaria-38586",
  "agencyAddress": "Av san diego 109, Madrid",
  "phoneAvailable": true,
  "whatsappAvailable": false,
  "phone": null,
  "energyConsumptionRating": "D",
  "energyConsumption": 128,
  "energyEmissionsRating": "D",
  "energyEmissions": 28,
  "createdAt": "2026-11-16T16:11:10.000Z",
  "updatedAt": "2026-11-16T16:50:08.000Z",
  "isNewConstruction": false,
  "status": "ACTIVE"
}
```

The description in the live row is the full listing text. It is shortened here. Photo URLs are in `images` and are omitted from this sample.

### Key Output Fields

**Price.** `price`, `pricePerSqm`.

**Home.** `title`, `areaSqm`, `rooms`, `bathrooms`, `characteristics`, `description`, `isNewConstruction`, `status`.

**Place.** `address`, `latitude`, `longitude`.

**Agency.** `agencyName`, `agencyUrl`, `agencyAddress`, `phoneAvailable`, `whatsappAvailable`. `phone` is always empty.

**Certificate and dates.** `energyConsumptionRating`, `energyConsumption`, `energyEmissionsRating`, `energyEmissions`, `createdAt`, `updatedAt`. Present when the listing page was opened and Yaencontre published them.

**Media and identity.** `images`, `reference`, `url`, `operation` (`sale` or `rent`), `propertyType`.

### FAQ

**Does it cover rent and sale?**
Yes. Set Sale or rent, or paste an `alquiler` or `venta` link.

**Which property types can I request by city?**
Flats, houses, land, commercial units, garages, warehouses, offices, buildings and storage rooms.

**Can I paste a search I already filtered on Yaencontre?**
Yes. Put it in Yaencontre URLs. The filters in that link are the ones that run. The city fields are not added on top.

**Why is the phone empty?**
The public listing shows a button when a phone exists. It does not print the number. `phoneAvailable` is that button. The number is not in the row.

**What do I lose if I leave Open each listing page off?**
The long description, energy certificate, listing dates and the agency street address. Price, size, rooms, photos, the card address and the agency name stay.

**Is there a cap?**
`maxItems` is the cap you set. On the free Apify plan the run stops at 100 listings.

### Support

Questions and bugs go on the [Issues tab](https://apify.com/memo23/yaencontre-scraper/issues) of this actor.

### Additional Services

Need a scheduled file for a set of cities, columns renamed for a CRM, or Yaencontre joined with another Spain portal? Open an issue and include a sample of the sheet you want.

### Explore More Scrapers

- [**Idealista Scraper**](https://apify.com/memo23/idealista-scraper) — Spain, Italy, Portugal and France listings
- [**Fotocasa Scraper**](https://apify.com/memo23/fotocasa-scraper) — Spain listings on Fotocasa

Full list at [apify.com/memo23](https://apify.com/memo23).

### 🤖 For AI Agents & LLM Apps

Compact reference for agents calling this actor through the Apify API (actor: `memo23/yaencontre-scraper`).

**Purpose:** Yaencontre property listings in Spain, sale or rent, one row per home.

**Minimal input:**

```json
{ "location": "Madrid", "operation": "sale", "propertyType": "flat", "fetchDetails": true, "maxItems": 20 }
```

**Output:** default dataset. Key fields: `url`, `title`, `price`, `pricePerSqm`, `areaSqm`, `rooms`, `bathrooms`, `address`, `latitude`, `longitude`, `agencyName`, `agencyAddress`, `energyConsumptionRating`, `images`.

**Limits:** `phone` is always null. `fetchDetails: false` skips the energy certificate, dates and agency street address. Free plan runs stop at 100 rows. Billed per saved listing, plus a small start fee.

### ⚠️ Disclaimer

This Actor is an independent tool and is not affiliated with, endorsed by, or sponsored by Idealista, S.A.U., the company named on yaencontre.com's own terms as operator of the site, or any of its subsidiaries. All trademarks mentioned are the property of their respective owners.

The scraper accesses only publicly available listing pages — no authenticated endpoints, paid features, or content behind the yaencontre.com login wall. Users are responsible for ensuring their use complies with yaencontre.com's Terms of Service, applicable data-protection law (GDPR, CCPA, etc.), and any contractual obligations of their own organization.

### SEO Keywords

Yaencontre scraper, yaencontre.com scraper, scrape Yaencontre, Yaencontre API, Apify Yaencontre, Spain property scraper, Spanish homes for sale, Madrid flats dataset, Barcelona rentals data, Spain real estate listings, asking price dataset, energy rating homes Spain, property lead generation Spain, agency listings Spain, Idealista alternative Spain, Fotocasa alternative, commercial property Spain, Spain housing market data

# Actor input Schema

## `location` (type: `string`):

City or town, for example Madrid, Barcelona or Málaga. For a district or a drawn map search, paste the page URL instead.

## `operation` (type: `string`):

Sale listings or long-term rentals.

## `propertyType` (type: `string`):

Kind of property to collect for the city above.

## `startUrls` (type: `array`):

Search page or single listing. Example search: https://www.yaencontre.com/venta/pisos/madrid. Example listing: https://www.yaencontre.com/venta/piso/inmueble-38586-113090031. When this list is set, the city fields are ignored.

## `fetchDetails` (type: `boolean`):

Off returns the search-card fields: price, size, rooms, photos, address and agency name. On also opens each listing for the full description, energy certificate, dates and the agency street address.

## `maxItems` (type: `integer`):

Stop after this many listings. Free plan runs stop at 100.

## `proxy` (type: `object`):

Residential proxies recommended. The default works out of the box.

## Actor input object example

```json
{
  "location": "Madrid",
  "operation": "sale",
  "propertyType": "flat",
  "startUrls": [],
  "fetchDetails": false,
  "maxItems": 50
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "location": "Madrid",
    "startUrls": [],
    "maxItems": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("memo23/yaencontre-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "location": "Madrid",
    "startUrls": [],
    "maxItems": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("memo23/yaencontre-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "location": "Madrid",
  "startUrls": [],
  "maxItems": 50
}' |
apify call memo23/yaencontre-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,memo23/yaencontre-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/QFU57iSqpOKx42XZX/builds/I6Ff4tbgIudbTfDZX/openapi.json
