# Madrid property market data

**Use case:** 

Homes for sale in Madrid city — 11,749, split across the 21 districts Fotocasa publishes. Madrid shows how this actor handles a large market: the search API stops returning new results after 11,760 per query, so the crawler splits by district instead of paginating. The 21 districts sum to precisely the 11,749 the parent declares. District on 90.2% of rows, n=3,184.

## Input

```json
{
  "location": "724,14,28,173,0,28079,0,0,0",
  "transactionType": "sale",
  "propertyType": "home",
  "sortBy": "relevance",
  "sortDescending": true,
  "maxItems": 300,
  "scrapeDetails": false,
  "includeAgencies": false,
  "respectRobotsTxt": false,
  "maxCacheAgeDays": 7,
  "maxConcurrency": 5,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

## Output

```json
{
  "id": {
    "label": "Id",
    "format": "integer"
  },
  "latitude": {
    "label": "Latitude",
    "format": "number"
  },
  "longitude": {
    "label": "Longitude",
    "format": "number"
  },
  "postal_code": {
    "label": "Postal code",
    "format": "string"
  },
  "location_text": {
    "label": "Location text",
    "format": "string"
  },
  "country": {
    "label": "Country",
    "format": "string"
  },
  "region": {
    "label": "Region",
    "format": "string"
  },
  "province": {
    "label": "Province",
    "format": "string"
  },
  "municipality": {
    "label": "Municipality",
    "format": "string"
  },
  "district": {
    "label": "District",
    "format": "string"
  },
  "neighborhood": {
    "label": "Neighborhood",
    "format": "string"
  },
  "region_id": {
    "label": "Region id",
    "format": "integer"
  },
  "province_id": {
    "label": "Province id",
    "format": "integer"
  },
  "municipality_id": {
    "label": "Municipality id",
    "format": "integer"
  },
  "district_id": {
    "label": "District id",
    "format": "integer"
  },
  "neighborhood_id": {
    "label": "Neighborhood id",
    "format": "integer"
  }
}
```

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