# Mercado Libre Scraper - All Countries (15 LatAm sites) (`gangary/mercado-libre-scraper`) Actor

Search Mercado Libre and Mercado Livre in 15 countries at once (Mexico, Brazil, Argentina, Colombia, Chile, Peru, Uruguay, Ecuador, Central America and more): price, discount, seller, sold, shipping. Same query across countries in one run.

- **URL**: https://apify.com/gangary/mercado-libre-scraper.md
- **Developed by:** [Gangary](https://apify.com/gangary) (community)
- **Categories:** E-commerce, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.50 / 1,000 listing scrapeds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

![mercado-libre-scraper](https://api.apify.com/v2/key-value-stores/OyVv4PDUM8I4otx0e/records/mercado-libre-scraper.png)

## Mercado Libre Scraper - All Countries (15 sites) | $1.5/1K

**US$1.50 per 1,000 listings + US$0.02 per run. Residential proxies of every country and retries are included; blocked pages are never charged.**

Search **Mercado Libre and Mercado Livre in 15 countries from one actor** and get every listing back as structured data: **price, crossed-out price, discount %, installments, seller, official-store flag, rating, units sold, shipping flags, sponsored flag** and more, in each country's currency.

- **15 country sites:** Mexico, Brazil, Argentina, Colombia, Chile, Peru, Uruguay, Ecuador, Bolivia, Paraguay, Costa Rica, Dominican Republic, Guatemala, Nicaragua and Panama.
- **Several countries in one run:** every search term runs in every country you pick, each with a residential IP of that country, so you can compare the same product across Latin America in one dataset.
- **Up to 20 queries per run and up to 1,000 listings per query and country**, in the order Mercado Libre ranks them (`position`).
- **Sponsored ads flagged (`isAd: true`) or removed** with one checkbox.

| Country | Site | Currency |
|---|---|---|
| `MX` Mexico (default) | mercadolibre.com.mx | MXN |
| `BR` Brazil | mercadolivre.com.br | BRL |
| `AR` Argentina | mercadolibre.com.ar | ARS (some USD) |
| `CO` Colombia | mercadolibre.com.co | COP |
| `CL` Chile | mercadolibre.cl | CLP |
| `PE` Peru | mercadolibre.com.pe | PEN |
| `UY` Uruguay | mercadolibre.com.uy | UYU / USD |
| `EC` Ecuador | mercadolibre.com.ec | USD |
| `BO` Bolivia | mercadolibre.com.bo | BOB |
| `PY` Paraguay | mercadolibre.com.py | PYG |
| `CR` Costa Rica | mercadolibre.co.cr | CRC |
| `DO` Dominican Republic | mercadolibre.com.do | DOP |
| `GT` Guatemala | mercadolibre.com.gt | GTQ |
| `NI` Nicaragua | mercadolibre.com.ni | NIO |
| `PA` Panama | mercadolibre.com.pa | USD |

**En español:** busca en **Mercado Libre de 15 países a la vez** (México, Brasil, Argentina, Colombia, Chile, Perú, Uruguay, Ecuador, Bolivia, Paraguay, Costa Rica, República Dominicana, Guatemala, Nicaragua y Panamá) y recibe precio, precio tachado, descuento, cuotas, vendedor, tienda oficial, calificación, vendidos y envío en una tabla lista para Excel. La misma búsqueda en varios países en una sola ejecución, con proxy residencial de cada país incluido. Cuesta US$1,50 por 1.000 publicaciones más US$0,02 por ejecución; las páginas bloqueadas no se cobran.

**Em português:** busca no Mercado Livre e no Mercado Libre de 15 países numa execução só, com proxy residencial de cada país incluído. US$1,50 por 1.000 anúncios + US$0,02 por execução.

### What you get

One row per listing. Real output from a "celular" search on Mercado Libre Ecuador:

```json
{
  "position": 2,
  "itemId": "MEC838150126",
  "productId": null,
  "title": "Apple iPhone 18 Pro 256gb 12gb Burgundy",
  "url": "https://articulo.mercadolibre.com.ec/MEC-838150126",
  "price": 1529,
  "originalPrice": 2253,
  "discountPct": 32,
  "currency": "USD",
  "installments": "12 cuotas de US$ 127,48 sin interés",
  "freeShipping": true,
  "isFull": false,
  "sellerName": "Mundotek",
  "isOfficialStore": true,
  "rating": null,
  "soldText": null,
  "soldQuantity": null,
  "isAd": true,
  "categoryId": "MEC1055",
  "domainId": "MEC-CELLPHONES",
  "thumbnail": "https://http2.mlstatic.com/D_NQ_NP_957592-MEC116768811982_092026-O.webp",
  "country": "EC",
  "query": "celular",
  "scrapedAt": "2026-11-21T06:54:18.186Z"
}
```

| Field | Meaning |
|---|---|
| `country` / `query` / `position` | The country site searched, the search term and where the listing ranked |
| `price` / `originalPrice` / `discountPct` / `currency` | Current price, crossed-out price, discount % and the listing's currency |
| `installments` | Installment plan as shown on the card |
| `sellerName` / `isOfficialStore` | Seller and whether it's an official store |
| `rating` / `soldText` / `soldQuantity` | Star rating and units sold, when the card displays them |
| `freeShipping` / `isFull` | Free shipping and Fulfillment (FULL) flags |
| `isAd` | `true` for sponsored placements — filter with **Include sponsored ads** |
| `url` / `itemId` / `productId` | Listing link and IDs |
| `error` | Set only on failed searches — those rows are **not charged** |

### Use cases

- **Cross-border price comparison:** the same product in 15 countries, one dataset, local currencies side by side.
- **Market entry research:** count sellers, official stores and sales for a term in the smaller markets (Central America, Bolivia, Paraguay, Ecuador) before you expand.
- **Competitor price monitoring:** schedule the same queries daily and track `price` and `discountPct` per `itemId`.
- **Ads vs organic:** keep `isAd` to measure how much of each country's first page is paid placement.

### How to use it

1. Pick one or more **Countries** (default Mexico).
2. Type search terms into **Search queries** exactly as a shopper would ("audifonos bluetooth", "celular") — up to 20 per run.
3. Set **Max items per query** (default 100, up to 1,000) — per query and per country. The actor follows the site's pagination until the limit or the last page.
4. Leave **Include sponsored ads** on to keep paid placements, or turn it off for organic results only.

| Input | Type | Default | Notes |
|---|---|---|---|
| `countries` | array of country codes | Mexico when empty | Any of the 15 codes above |
| `queries` | array of strings | — (required) | Up to 20 per run; duplicates are removed |
| `maxItemsPerQuery` | integer | 100 | 1 to 1,000, per query and per country |
| `includeAds` | boolean | `true` | `false` = organic results only |

A run with 3 countries and 2 queries makes 6 searches. Searches run country by country, with one residential session per country.

### Pricing

Pay per event: a small start fee per run, then a flat fee per **listing delivered**. Blocked pages and failed searches are **never charged**, and every run respects the `maxTotalChargeUsd` budget you set on Apify.

| Event | Price |
|---|---|
| Listing delivered | US$0.0015 |
| Run start | US$0.02 |

| Scenario | Approximate cost |
|---|---|
| 100 listings (1 query, 1 country) | ~US$ 0.17 |
| 1,000 listings (1 query × 1 country, or 2 queries × 5 countries × 100) | ~US$ 1.52 |
| 10,000 listings | ~US$ 15.02 |

**Run cost limit.** Every search costs at least one page load on a residential proxy. If a run keeps costing more than the results it delivers (for example dozens of searches that return almost nothing, or a long streak of blocked pages), it stops opening new searches: the ones not opened come back as rows with `error: "run-cost-limit"` and are **not charged**. The first search always runs and normal runs are not affected. Each new country opens its own residential session (one page load costs about the same as 15-25 listings), so a run with many countries and a very small **Max items per query** (under ~25) can hit this limit after a few countries: use at least 25-50 items per query when you pick many countries.

### Run it from code

Replace `<YOUR_APIFY_TOKEN>` with your token from **Apify Console → Settings → API & Integrations**.

**cURL:**

```bash
curl -X POST "https://api.apify.com/v2/acts/gangary~mercado-libre-scraper/run-sync-get-dataset-items" \
  -H "Authorization: Bearer <YOUR_APIFY_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"countries": ["MX", "CO", "CL"], "queries": ["audifonos bluetooth"], "maxItemsPerQuery": 50}'
```

**Python** (`pip install apify-client`):

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("gangary~mercado-libre-scraper").call(
    run_input={"countries": ["EC", "PE", "BO"], "queries": ["celular"], "maxItemsPerQuery": 100}
)
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["country"], item.get("price"), item.get("currency"), item.get("title"))
```

**Node.js** (`npm install apify-client`):

```js
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: '<YOUR_APIFY_TOKEN>' });
const run = await client.actor('gangary~mercado-libre-scraper').call({
    countries: ['BR', 'AR', 'UY', 'PY'],
    queries: ['air fryer'],
    maxItemsPerQuery: 100,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items.length, items[0]);
```

The synchronous endpoint waits up to 300 seconds; for runs with many countries and queries, start the run asynchronously and read the dataset when it finishes.

### Integrations

- **[Schedules](https://docs.apify.com/platform/schedules):** run the same queries daily for price tracking.
- **[Webhooks](https://docs.apify.com/platform/integrations/webhooks):** get a call to your own endpoint when a run finishes.
- **[Make](https://docs.apify.com/platform/integrations/make), [n8n](https://docs.apify.com/platform/integrations/n8n) and [Zapier](https://docs.apify.com/platform/integrations/zapier):** send each run's listings to Google Sheets, a database or your repricing tool.
- **Exports:** JSON, CSV, Excel, XML or HTML from the dataset, or straight from the API.

### Use with AI agents (MCP)

Add this server URL to Claude, Cursor, VS Code or any MCP client (OAuth on first use, or `Authorization: Bearer <YOUR_APIFY_TOKEN>`):

```
https://mcp.apify.com?tools=gangary/mercado-libre-scraper
```

Then ask, e.g. *"Compare the price of the iPhone 16 on Mercado Libre in Mexico, Colombia, Chile and Ecuador."* Setup details: **[Apify MCP server docs](https://docs.apify.com/platform/integrations/mcp)**.

### FAQ

**Is scraping Mercado Libre legal?**
The actor reads publicly listed search results — no login, no paywall bypass, and no personal data beyond the public store/seller name already shown on every listing card.

**Which Mercado Libre countries are missing?**
Honduras, El Salvador and Venezuela. In our cloud tests on 21/11/2026 Mercado Libre sent most sessions from those countries to an account-verification wall, so they are left out instead of charging you for blocked pages.

**Why do some searches come back `blocked`?**
Mercado Libre runs aggressive anti-bot protection. When a session gets blocked, the actor drops it, opens a fresh residential IP in the same country and tries the same page again, with up to 3 sessions per page. If it still fails, the search stops there with an error row (`blocked`, or `blocked-partial` when earlier pages worked) and that page is not charged.

**Is proxy included?**
Yes — residential proxies of every country are included in the per-listing price. Nothing to configure.

**How many results can I get per search term?**
Up to 1,000 per query and country per run. Mercado Libre itself stops serving results after ~2,000 per search term. Small markets often have only a few dozen results for a term.

**Why are `rating`, `soldQuantity` or `installments` empty on some rows?**
They are filled only when the listing card shows them, which varies by country.

**What does a run with no results cost?**
Only the US$0.02 start fee. Listings are charged one by one as they are delivered, and error rows are free.

### Honest limitations

- Data comes from the search result cards; for the full product page and reviews use the Product & Reviews actor below.
- Honduras, El Salvador and Venezuela are not supported (see FAQ).
- Up to 20 queries per run and 1,000 listings per query and country.

### Changelog

- **2026-11-22:** first release — 15 countries.

### From the same maker

- **[Mercado Libre Best Sellers Scraper](https://apify.com/gangary/mercado-libre-best-sellers-scraper)** — "Más Vendidos" rankings and daily deals in MX, AR, CO, CL, PE and UY.
- **[Mercado Libre Real Estate Scraper](https://apify.com/gangary/mercado-libre-real-estate-scraper)** — property listings from Mercado Libre Inmuebles and Portal Inmobiliario.
- **[MercadoLibre Product & Reviews Scraper](https://apify.com/gangary/mercado-libre-product-reviews-scraper)** — full product page data plus customer reviews for MX, AR, CO and CL.
- **[Mercado Libre Seller Scraper](https://apify.com/gangary/mercado-libre-seller-scraper)** — every listing of one seller or official store, past the 2,000-result limit.

***

If this actor helped you, a rating on its Store page helps others find it. Something broke or a field is missing? Open an issue on the actor's **Issues** tab.

*Keywords: mercado libre scraper, mercadolibre scraper all countries, mercado libre ecuador, mercado libre bolivia, mercado libre paraguay, mercado libre costa rica, mercado libre república dominicana, mercado libre guatemala, mercado libre panamá, mercado libre perú, mercado livre scraper, latin america price comparison, cross-border e-commerce research.*

# Actor input Schema

## `countries` (type: `array`):

One or more Mercado Libre country sites. Every search query runs in every country you pick, with a residential IP of that country and prices in the local currency. Empty = Mexico. The legacy `country` field (one code) is also accepted.

## `queries` (type: `array`):

Search terms exactly as a shopper would type them on Mercado Libre (e.g. "audifonos bluetooth"). Up to 20 queries per run.

## `maxItemsPerQuery` (type: `integer`):

Collect up to this many listings per query, following the site's pagination until the limit is reached or results end.

## `includeAds` (type: `boolean`):

Keep listings marked as paid ads (sponsored positions) in the results. Turn off to get organic results only.

## Actor input object example

```json
{
  "countries": [
    "MX",
    "AR",
    "CO"
  ],
  "queries": [
    "audifonos bluetooth"
  ],
  "maxItemsPerQuery": 100,
  "includeAds": true
}
```

# 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 = {
    "countries": [
        "MX",
        "AR",
        "CO"
    ],
    "queries": [
        "audifonos bluetooth"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("gangary/mercado-libre-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 = {
    "countries": [
        "MX",
        "AR",
        "CO",
    ],
    "queries": ["audifonos bluetooth"],
}

# Run the Actor and wait for it to finish
run = client.actor("gangary/mercado-libre-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 '{
  "countries": [
    "MX",
    "AR",
    "CO"
  ],
  "queries": [
    "audifonos bluetooth"
  ]
}' |
apify call gangary/mercado-libre-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,gangary/mercado-libre-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/hb1sBdbSVHhk6qyQa/builds/dByBM7dQONa1tUCjH/openapi.json
