# Underpriced 2-bedroom flats in Valencia

**Use case:** 

-bedroom flats for sale in Valencia priced well below comparable flats in the same district (deal score 80+), each with an estimated monthly rent and gross yield.

## Input

```json
{
  "cities": [
    "valencia"
  ],
  "mode": "scoreListings",
  "bedrooms": [
    "2"
  ],
  "areaMin": 15,
  "areaMax": 250,
  "minScore": 80,
  "maxScoredListings": 1000,
  "maxListingsPerSide": 0,
  "minSaleSample": 15,
  "minRentSample": 10,
  "onlyNewOrChanged": false,
  "watchlistName": "default",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "ES"
  }
}
```

## Output

```json
{
  "dealScore": {
    "label": "Deal score",
    "format": "number"
  },
  "discountVsMedianPct": {
    "label": "Below median (%)",
    "format": "number"
  },
  "pricePerM2Eur": {
    "label": "Price per m² (EUR)",
    "format": "number"
  },
  "city": {
    "label": "City",
    "format": "string"
  },
  "district": {
    "label": "District",
    "format": "string"
  },
  "bedrooms": {
    "label": "Bedrooms",
    "format": "integer"
  },
  "areaM2": {
    "label": "Area (m²)",
    "format": "number"
  },
  "priceEur": {
    "label": "Price (EUR)",
    "format": "integer"
  },
  "estimatedRentMonthlyEur": {
    "label": "Estimated rent (EUR/month)",
    "format": "number"
  },
  "grossYieldPct": {
    "label": "Gross yield (%)",
    "format": "number"
  },
  "url": {
    "label": "Listing URL",
    "format": "string"
  },
  "flags": {
    "label": "Flags",
    "format": "array"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The Habitaclia Scraper with Rental Yield & Deal Score – Spain Actor is ready to run with the inputs already set for "Underpriced 2-bedroom flats in Valencia". [Sign up or log in](https://console.apify.com/create-task-from-example/JvyrGcRVzxSjFr3ZS) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Underpriced 2-bedroom flats in Valencia" task

The Habitaclia Scraper with Rental Yield & Deal Score – Spain Actor will start running based on the input automatically. You can also change all the input fields, like cities, what to return, and more, to match your specific use case.

### 3. Receive the "Underpriced 2-bedroom flats in Valencia" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as deal score, below median (%), price per m² (eur), and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Underpriced 2-bedroom flats in Valencia" task via API](https://apify.com/data-nest/habitaclia-rental-yield.md).

## FAQ

### What does this task return?

Flats with 2 bedrooms for sale in Valencia priced well below comparable flats in the same district (deal score 80+), each with an estimated monthly rent and gross yield.

### What is the deal score?

A 0–100 score comparing a flat's price per m² with flats with the same bedroom count in its district. 50 = the median; higher = cheaper. With too few listings in the district it compares across the city.

### How much does a run cost?

You pay $0.001 for each flat returned (Free plan price; lower on paid plans). Flats below the minimum score are not returned and not charged.

### Why can a flat be so cheap?

Often for a reason: it may need renovation, be in a weaker part of the district or be priced for a quick sale. Check the flags field and the listing itself before you act.

### What does the Valencia market look like?

In our run on 27 November 2026 the city-wide gross yield was 7.12% (median sale price 3,406 EUR/m², median rent 20.2 EUR/m² per month), the highest of the 11 cities we cover. Temporary rentals (25% of rent listings) are kept out of the rent medians.

### Can I change the city or the number of bedrooms?

Yes. Edit the input: choose any of the 11 cities, other bedroom counts or another minimum score. The task only stores a ready-made input.

## About this Actor

This example demonstrates how to use [Habitaclia Scraper with Rental Yield & Deal Score – Spain](https://apify.com/data-nest/habitaclia-rental-yield.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/data-nest/habitaclia-rental-yield.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

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 full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/data-nest/habitaclia-rental-yield.md

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`).
