# Vivanuncios Mexico Real Estate Listings & Agent Contact Scraper (`scrapers_lat/vivanuncios-mexico-scraper`) Actor

Scrape Vivanuncios Mexico property listings: price in MXN and USD, operation (venta/renta), property type, bedrooms, bathrooms, area m2, price per m2, colonia, city, state, coordinates, plus advertiser/agency name and agent phone. Export to JSON, CSV or Excel.

- **URL**: https://apify.com/scrapers\_lat/vivanuncios-mexico-scraper.md
- **Developed by:** [Scrapers Lat](https://apify.com/scrapers_lat) (community)
- **Categories:** Real estate, Lead generation, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $17.00 / 1,000 results

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Vivanuncios Mexico Real Estate Listings & Agent Contact Scraper

> Extract real estate listings from Vivanuncios, one of Mexico's largest classifieds portals, with prices, sizes, locations, coordinates and agent contacts.

**📥 [Input](https://apify.com/scrapers_lat/vivanuncios-mexico-scraper/input-schema) · 📤 [Output](https://apify.com/scrapers_lat/vivanuncios-mexico-scraper/output-schema) · 💰 [Pricing](https://apify.com/scrapers_lat/vivanuncios-mexico-scraper/pricing) · ▶️ [Examples](https://apify.com/scrapers_lat/vivanuncios-mexico-scraper/examples)**

![Apify](https://img.shields.io/badge/Platform-Apify-1CE1CE?logo=apify\&logoColor=white)
![Coverage](https://img.shields.io/badge/Coverage-Mexico-blue)
![Maintained](https://img.shields.io/badge/Maintained-Yes-brightgreen)
![Output](https://img.shields.io/badge/Output-JSON%20%7C%20CSV%20%7C%20Excel-orange)

<table><tr>
<td align="center"><strong>Mexico</strong><br>nationwide</td>
<td align="center"><strong>Price + m2 + GPS</strong><br>valuation-ready</td>
<td align="center"><strong>JSON / CSV / Excel</strong><br>output formats</td>
</tr></table>

<br>

### What you get

Every listing is returned as a flat, spreadsheet-friendly record. Core fields on every run:

- **Price** — numeric `priceAmount` plus `priceCurrency` (MXN or USD)
- **Operation** — `venta` (sale) or `renta` (rent)
- **Property** — `propertyType`, `bedrooms`, `bathrooms`, `parkingSpaces`, `totalAreaM2`
- **Valuation** — `pricePerM2`, computed automatically for instant comparables
- **Location** — `colonia`, `city`, `state` plus the full `location` string
- **Links** — `listingUrl`, `listingId`, primary `imageUrl`

Enable **Scrape detail pages** to add lead and valuation data on every record: `latitude`/`longitude`, advertiser and `agencyName`, agent `phone` and `whatsapp` when public, `description`, `amenities`, the full image gallery, publication date and property age.

You are never charged for failed or empty runs, only for real listing records.

### Who is it for

| Use case | Who benefits |
|---|---|
| Building a Mexico property price dataset | Real estate analysts and data teams |
| Generating agency and agent lead lists | Proptech and CRM vendors |
| Monitoring competitor listings and pricing | Brokers and developers |
| Feeding valuation and comparable models | Appraisers and mortgage lenders |
| Tracking supply by colonia and city | Investors and market researchers |

### How to use it

1. Go to vivanuncios.com.mx and apply any filters you want (operation, property type, location, price).
2. Copy the resulting search URL, for example `https://www.vivanuncios.com.mx/s-departamentos-en-venta/v1c1294p1`.
3. Paste one or more URLs into **Search URLs** (each runs as its own search), set **Max Listings**, and optionally turn on **Scrape detail pages**.
4. Run it and export the results to JSON, CSV or Excel, or pull them through the API.

### Frequently Asked Questions

**Which areas and property types does the scraper cover?**
All of Mexico. Any Vivanuncios search URL works: departments, houses, land, offices, commercial locales and new developments, for both sale (venta) and rent (renta).

**How many listings can I collect in one run?**
You set the limit with Max Listings. The scraper paginates through results 30 listings per page, so you can collect from a handful to tens of thousands across your search URLs.

**Why is the price empty on some listings?**
New-development cards advertise a starting "desde" range rather than a single per-unit price, so price and currency are intentionally left empty on those to avoid a misleading number. Standard listings always include a numeric price.

**What extra data do I get from detail pages?**
When you enable Scrape detail pages, each listing is opened to add the advertiser and agency name, agent phone and WhatsApp when public, GPS coordinates, the full description, every gallery photo and the amenities list. Leave it off for faster, listing-level only runs.

**What makes this a complete Vivanuncios dataset?**
Beyond price, size, beds and baths, every record carries parking spaces, a ready computed price per square metre for instant comparables, and clean colonia/city/state fields. Detail runs add agency and agent contacts for lead generation plus coordinates for mapping and valuation.

### Export, API and AI agents (x402 + MCP)

Export the scraped data to **JSON, CSV or Excel**, pull it as a **dataset** through the Apify **API**, or wire it into your app with **no code**. This web scraper and data extractor also works for bulk data extraction and scheduled runs.

For AI agents: this Actor is available on **x402**, Apify's agentic payment standard built with Coinbase. An AI agent can discover, pay for and run it on its own with a funded wallet and a single HTTP request: no account, no subscription, no API key and no human in the loop. It also runs as an **MCP** tool inside Claude, Cursor and other AI clients out of the box. Learn more about [x402 agentic payments on Apify](https://docs.apify.com/platform/integrations/x402).

### Related scrapers

Need data from the same space? Here are other scrapers we build and maintain:

- [Inmuebles24 Mexico Real Estate Listings Scraper](https://apify.com/scrapers_lat/inmuebles24-scraper): Scrape Inmuebles24 Mexico property listings with price, size, location, agent phone and coordinates.
- [Lamudi Mexico Real Estate Listings Scraper](https://apify.com/scrapers_lat/lamudi-scraper): Scrape Lamudi Mexico property listings with prices, sizes and agent contacts.
- [Seminuevos Mexico Used Car Listings Scraper](https://apify.com/scrapers_lat/seminuevos-scraper): Scrape used car listings and prices from Seminuevos Mexico.
- [Properati Real Estate Listings Scraper](https://apify.com/scrapers_lat/properati-scraper): Scrape Properati real estate listings across Latin America.
- [MercadoLibre Product & Price Scraper](https://apify.com/scrapers_lat/mercadolibre-scraper): Extract products, prices and seller data from MercadoLibre across LATAM.

### More scrapers at scrapers.lat

This actor is built and maintained by [scrapers.lat](https://scrapers.lat), where we publish scrapers for Latin American and US public platforms: real estate, jobs, e-commerce, company registries and government data. Browse the full catalog, see live sample output for each one, or ask us for a custom scraper at [scrapers.lat](https://scrapers.lat).

***

> This actor is an independent tool and has no affiliation with Vivanuncios. It only accesses data that is publicly available on the platform. Use it in accordance with Vivanuncios's terms of service.

# Actor input Schema

## `searchUrls` (type: `array`):

One or more Vivanuncios Mexico search results URLs. Apply any filters on vivanuncios.com.mx (operation, property type, location, price) and paste each resulting URL, for example https://www.vivanuncios.com.mx/s-departamentos-en-venta/v1c1294p1 or https://www.vivanuncios.com.mx/s-venta-inmuebles/coahuila/v1c1097l1006p1

## `maxListings` (type: `integer`):

Maximum number of real estate listings to collect across all search URLs.

## `withDetails` (type: `boolean`):

When enabled, each listing's detail page is fetched to add the advertiser/agency name, agent phone, WhatsApp, GPS coordinates, description, full image gallery and amenities. Slower but far richer for lead generation and valuation.

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

Optional. Only keep listings priced at or above this amount (in the listing's own currency, MXN or USD). Listings with no published price are always kept.

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

Optional. Only keep listings priced at or below this amount (in the listing's own currency, MXN or USD). Listings with no published price are always kept.

## Actor input object example

```json
{
  "searchUrls": [
    "https://www.vivanuncios.com.mx/s-departamentos-en-venta/v1c1294p1"
  ],
  "maxListings": 10,
  "withDetails": false
}
```

# 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 = {
    "searchUrls": [
        "https://www.vivanuncios.com.mx/s-departamentos-en-venta/v1c1294p1"
    ],
    "maxListings": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapers_lat/vivanuncios-mexico-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 = {
    "searchUrls": ["https://www.vivanuncios.com.mx/s-departamentos-en-venta/v1c1294p1"],
    "maxListings": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("scrapers_lat/vivanuncios-mexico-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 '{
  "searchUrls": [
    "https://www.vivanuncios.com.mx/s-departamentos-en-venta/v1c1294p1"
  ],
  "maxListings": 10
}' |
apify call scrapers_lat/vivanuncios-mexico-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,scrapers_lat/vivanuncios-mexico-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/LhwmNMZQTRS68mGCX/builds/PdxD504Xh8XM9eHhN/openapi.json
