# InfoCasas Peru Scraper - Peru Real Estate Listings (`normdata/infocasas-pe-scraper`) Actor

Track Lima and Arequipa home prices, spot new listings first and build realtor lead lists. Scrapes InfoCasas Peru sales and rentals: price in USD and soles, bedrooms, area, GPS, amenities, agency or owner with WhatsApp phone, photos. Filters: district, type, price, area, bedrooms, seller.

- **URL**: https://apify.com/normdata/infocasas-pe-scraper.md
- **Developed by:** [Norm Data](https://apify.com/normdata) (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 $14.00 / 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.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

![Norm Data](https://raw.githubusercontent.com/FabriAV/normdata/refs/heads/main/assets/banner_norm2.png)

## 🏠 InfoCasas Peru Scraper - Peru Real Estate Listings

**InfoCasas Peru Scraper** extracts **property listings from InfoCasas.com.pe**, a real estate portal in Peru, with over **45,000 listings**: houses, apartments, land, shops, offices, warehouses, hotels and more, for sale, for rent or as holiday rentals. For each listing you get the **price in USD or soles and price in USD, common expenses, bedrooms, bathrooms, garages, built and land area, condition, region, district, address, map point, amenities, agency or owner with WhatsApp phone** and all photos.

Narrow the search with **sale, rent or holiday rent, 12 property types, 30 regions and 150 districts (Miraflores, San Isidro, Surco, Cayma...), bedrooms, price in USD, area, bathrooms, garages, agency or private owner and phone only**, or paste any InfoCasas Peru link. Use it to **track Lima and Arequipa prices, spot new listings first or build agency lead lists with phones**.

> 👉 **Try it now:** press **Start**. The ready-made input gives you the 10 newest listings for sale in Miraflores, Lima in a few seconds.<br>
> 💰 **$0.02 per listing** on the Free plan (10 listings per run), from $0.018 on paid plans. [See pricing](#-pricing)

### ✨ Why this scraper?

> - **All of Peru**<br>
>   Every deal, property type, region and district, with no page limit: a search of 30,000 listings reads to the end.
>
> - **Seller phones**<br>
>   Agency or owner name, type, office address and WhatsApp phone in +51 format, ready for a CRM.
>
> - **Prices you can compare**<br>
>   Price as listed in USD or soles, plus the price in USD at the site's rate.
>
> - **Clean data**<br>
>   Description text without HTML, YouTube and 3D tour links made whole, barter and financing as true or false.
>
> - **Fast and easy**<br>
>   No proxy or login: 1,000 listings in under a minute. Or just paste InfoCasas search or listing links.
>
> - **Apify platform**<br>
>   Schedule daily runs, get only new listings, export to Excel or CSV, or connect Google Sheets, Zapier and Make.

### ⚖️ How it compares

| | **This scraper** | Other InfoCasas scrapers |
| --- | --- | --- |
| Built for Peru only: 150 districts, +51 phones, soles | ✅ | Generic multi-country fields |

### 🚀 How to scrape InfoCasas

1. Create a free Apify account.
2. Pick the deal, property types, places and filters, or keep the ready-made input.
3. Click **Start** and download the listings as Excel, CSV or JSON from the **Output** tab.

### 💰 Pricing

#### How much does it cost to scrape InfoCasas?

You pay a one-time **$0.003** per run, plus a price for each listing saved:

| Charged for | Free | Bronze | Silver | Gold+ |
| --- | --- | --- | --- | --- |
| **Listing**: one InfoCasas Peru listing | 0.02 | 0.018 | 0.016 | 0.014 |

Example: 1,000 listings cost about **$18** on Bronze. No proxy or compute costs on top.

### 📦 What data you get

| Field | Description |
| --- | --- |
| `imageUrl` | Main photo. |
| `id` | InfoCasas listing number. |
| `title` | Listing title. |
| `dealType` | `Sale`, `Rent` or `Seasonal rent`. |
| `propertyType` | House, Apartment, Land, Shop, Office, Farm... |
| `price`, `currency`, `priceUsd` | Price as the seller set it, its currency (USD or PEN) and the price in USD at the site's rate. Null when the seller hides it. |
| `commonExpenses`, `commonExpensesCurrency` | Monthly building fees (gastos comunes) and their currency. |
| `bedrooms`, `bathrooms`, `garages` | Bedrooms (0 = studio), bathrooms and garage spaces. |
| `areaM2`, `builtAreaM2`, `landAreaM2`, `terraceM2`, `hectares` | Main area, built area, land and terrace in m², and hectares for farms. |
| `floors` | Floors of the house or building. |
| `buildingYear`, `age`, `condition`, `orientation`, `disposition` | Year built, age band, condition, orientation and layout (front, back...). |
| `department`, `neighbourhood`, `address` | Region (Lima, Arequipa...), district and street address (when shown). |
| `latitude`, `longitude` | Map point. |
| `reference` | The agency's own reference code. |
| `description` | The seller's text, line breaks kept. |
| `sellerName`, `sellerType`, `sellerId`, `sellerPhone`, `sellerAddress` | Agency or owner name, type (Agency or Private), ID, WhatsApp phone (+51...) and office address. |
| `photosCount` | Photo count. |
| `hasWhatsapp`, `gatedCommunity`, `acceptsBarter`, `financing`, `petsAllowed`, `socialHousing` | Seller reachable on WhatsApp, gated community, accepts barter, bank financing, pets allowed, social housing. Null when the listing type has no such box. |
| `amenities` | Amenities (pool, barbecue, heating...). |
| `images` | All photos. |
| `url`, `sellerUrl`, `videoUrl`, `tour3dUrl` | Listing page, seller page with all their listings, video and 3D tour. |
| `createdAt`, `updatedAt` | When the listing was published and last updated. |
| `scrapedAt` | When this row was saved. |
| `error` | Only present when a row failed. The fields that loaded are still there. |

### ⚙️ Input

| Section | What it's for |
| --- | --- |
| **Maximum results** | Always first, caps the whole run. Empty means no limit. |
| **What to scrape** | Deal, property types, places and sort. |
| **Filters** | Bedrooms, minimum price (USD), maximum price (USD), minimum area (m²), maximum area (m²), minimum bathrooms, minimum garages, seller and with phone only. |
| **Monitoring** | Only new listings and monitor name. |
| **Links** | Links instead of the fields above. Filters are ignored with links. |

**Example: 2 and 3 bedroom apartments in Miraflores and San Isidro, $100,000 to $250,000, newest first:**

```json
{
  "dealType": "sale",
  "propertyTypes": ["apartments"],
  "cities": ["lima/miraflores", "lima/san-isidro"],
  "bedrooms": ["2", "3"],
  "minPrice": 100000,
  "maxPrice": 250000,
  "sort": "newest"
}
```

#### More input examples

**New rentals in Surco and Barranco from private owners with a phone, every day (schedule it):**

```json
{
  "dealType": "rent",
  "cities": ["lima/santiago-de-surco", "lima/barranco"],
  "sellerTypes": ["private"],
  "withPhoneOnly": true,
  "onlyNew": true,
  "monitorName": "pe-rent-owners"
}
```

**Beach houses for holiday rent in Punta Hermosa and Asia, largest first:**

```json
{
  "dealType": "seasonal",
  "propertyTypes": ["houses"],
  "cities": ["lima/punta-hermosa", "lima/asia"],
  "sort": "areaHigh"
}
```

**Links (filters are ignored):**

```json
{
  "startUrls": [
    { "url": "https://www.infocasas.com.pe/venta/departamentos/lima/miraflores" },
    { "url": "https://www.infocasas.com.pe/se-vende-departamento-miraflores/193636298" }
  ]
}
```

### 🔗 Related scrapers

> - [Private Property Scraper](https://apify.com/normdata/privateproperty-scraper): South Africa real estate.
> - [Casas y Terrenos Scraper](https://apify.com/normdata/casasyterrenos-scraper): Mexico real estate.
> - [InfoCasas Bolivia Scraper](https://apify.com/normdata/infocasas-bo-scraper): Bolivia real estate with phones.
> - [Bina.az Scraper](https://apify.com/normdata/bina-az-scraper): Azerbaijan real estate with phones.

### ❓ FAQ and troubleshooting

#### Is there an InfoCasas API? Do I need an API key?

> InfoCasas has no public data API for developers. This Actor works as an InfoCasas API alternative: it reads the public listings and gives you clean JSON, CSV or Excel, with no API key, no login and no code to maintain. You can also call it from your own code with the Apify API, or from an AI agent through MCP.

#### Why do I get only 10 listings?

> On the Apify free plan each run saves up to 10 results, so you can try it before paying. Any paid plan removes the limit.

#### Are seller phone numbers included?

> Yes, when the seller shows a WhatsApp number on InfoCasas: `sellerPhone` in +51 format. Tick **With phone only** to keep just those.

#### Which currency are prices in?

> `price` and `currency` are as the seller set them (USD or PEN). `priceUsd` uses the rate InfoCasas itself uses, so every row can be compared, and the price filter uses it too. Rent is per month; holiday rent as listed. `price` is empty when the seller hides it.

#### Is this an official InfoCasas tool?

> No. It is independent and not affiliated with InfoCasas. It reads only the listings InfoCasas publishes for buyers and renters. Use personal data in line with the law and do not send spam.

### 📧 Contact

Need a scraper for a different site, or found something wrong with this one? norm.data.scrapers@gmail.com

# Actor input Schema

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

Stop after this many listings in total. Leave empty for no limit. The Apify Free plan is always capped at 10.

## `dealType` (type: `string`):

For sale, for rent, holiday rent or all. Empty = for sale.

## `propertyTypes` (type: `array`):

Houses, apartments, land, shops, offices, farms and more. Empty = all types.

## `cities` (type: `array`):

Regions of Peru and their districts (Miraflores (Lima), Cayma (Arequipa)...). Empty = all of Peru.

## `sort` (type: `string`):

Order of results. Default: newest first.

## `bedrooms` (type: `array`):

Number of bedrooms (any of the chosen). Houses and apartments.

## `minPrice` (type: `integer`):

Only listings from this price in US dollars (prices in soles are compared at the site's rate). Rent: per month.

## `maxPrice` (type: `integer`):

Only listings up to this price in US dollars.

## `minArea` (type: `integer`):

Only listings from this area.

## `maxArea` (type: `integer`):

Only listings up to this area.

## `minBathrooms` (type: `integer`):

At least this many bathrooms.

## `minGarages` (type: `integer`):

At least this many garage spaces.

## `sellerTypes` (type: `array`):

Agencies or private owners only.

## `withPhoneOnly` (type: `boolean`):

Only listings with a seller phone (WhatsApp).

## `onlyNew` (type: `boolean`):

Skip listings saved by earlier runs with the same monitor name.

## `monitorName` (type: `string`):

Runs with the same name share their history. Use a different name for each schedule.

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

InfoCasas search pages with any of their filters (https://www.infocasas.com.pe/venta/departamentos/lima/miraflores) or listing pages (https://www.infocasas.com.pe/se-vende-departamento-miraflores/193636298).

## Actor input object example

```json
{
  "maxItems": 10,
  "dealType": "sale",
  "propertyTypes": [
    "apartments"
  ],
  "cities": [
    "lima/miraflores"
  ]
}
```

# 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 = {
    "maxItems": 10,
    "dealType": "sale",
    "propertyTypes": [
        "apartments"
    ],
    "cities": [
        "lima/miraflores"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("normdata/infocasas-pe-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 = {
    "maxItems": 10,
    "dealType": "sale",
    "propertyTypes": ["apartments"],
    "cities": ["lima/miraflores"],
}

# Run the Actor and wait for it to finish
run = client.actor("normdata/infocasas-pe-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 '{
  "maxItems": 10,
  "dealType": "sale",
  "propertyTypes": [
    "apartments"
  ],
  "cities": [
    "lima/miraflores"
  ]
}' |
apify call normdata/infocasas-pe-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,normdata/infocasas-pe-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/xIPlEbl2Gh4u3zcwu/builds/tgFyalCLYwtbDSW5F/openapi.json
