# Cheapest homes for sale in Spain

**Use case:** 

Spanish homes under 100,000 EUR, cheapest first. This example demonstrates a sort that actually works: Fotocasa silently ignores sort values it does not recognise and returns the default order, and we tested several plausible ones that do exactly that. Only verified sorts are offered here. The price ceiling is real too: maxPrice moves the national count to 164,917.

## Input

```json
{
  "location": "724,0,0,0,0,0,0,0,0",
  "transactionType": "sale",
  "propertyType": "home",
  "sortBy": "price",
  "sortDescending": false,
  "maxPrice": 100000,
  "maxItems": 250,
  "scrapeDetails": false,
  "includeAgencies": false,
  "respectRobotsTxt": false,
  "maxCacheAgeDays": 7,
  "maxConcurrency": 5,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

## Output

```json
{
  "id": {
    "label": "ID",
    "format": "integer"
  },
  "url": {
    "label": "URL",
    "format": "string"
  },
  "operation": {
    "label": "Operation",
    "format": "string"
  },
  "property_type": {
    "label": "Property type",
    "format": "string"
  },
  "price": {
    "label": "Price (EUR)",
    "format": "integer"
  },
  "currency": {
    "label": "Currency",
    "format": "string"
  },
  "surface_m2": {
    "label": "m²",
    "format": "integer"
  },
  "rooms": {
    "label": "Rooms",
    "format": "integer"
  },
  "bathrooms": {
    "label": "Bathrooms",
    "format": "integer"
  },
  "municipality": {
    "label": "Municipality",
    "format": "string"
  },
  "district": {
    "label": "District",
    "format": "string"
  },
  "neighborhood": {
    "label": "Neighborhood",
    "format": "string"
  },
  "agency_name": {
    "label": "Agency name",
    "format": "string"
  },
  "agency_phone": {
    "label": "Agency phone",
    "format": "string"
  },
  "published_at": {
    "label": "Published at",
    "format": "string"
  }
}
```

## About this Actor

This example demonstrates how to use [Fotocasa Scraper $0.95/1K — Spain Real Estate Data & Agencies](https://apify.com/oswaldocarabano/fotocasa-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/oswaldocarabano/fotocasa-scraper.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/oswaldocarabano/fotocasa-scraper.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`).
