# Mercado Libre Best Sellers & Deals Scraper (MX, AR, CO, CL) (`gangary/mercado-libre-best-sellers-scraper`) Actor

Scrapes Mercado Libre "Más Vendidos" best-seller rankings per category and the daily "Ofertas" deals in Mexico, Argentina, Colombia, Chile, Peru and Uruguay. Returns ranked products with price, discount, seller, shipping and sales data.

- **URL**: https://apify.com/gangary/mercado-libre-best-sellers-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-best-sellers-scraper](https://api.apify.com/v2/key-value-stores/OyVv4PDUM8I4otx0e/records/mercado-libre-best-sellers-scraper.png)

## Mercado Libre Best Sellers & Deals Scraper (MX, AR, CO, CL, PE, UY) | $1.5/1K

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

Scrape Mercado Libre's **"Más Vendidos" best-seller rankings** per category and the **"Ofertas" daily deals** pages in **Mexico, Argentina, Colombia, Chile, Peru and Uruguay**, and get every product back as structured data: **rank, price, crossed-out price, discount %, installments, seller, official-store flag, rating, units sold, shipping flags** and more.

- **6 countries**, one per run: `MX`, `AR`, `CO`, `CL`, `PE`, `UY`. Proxy and language follow the country.
- **Up to 50 categories in one run**, one best-seller ranking each (top 20 per category, which is everything the ranking page shows). No categories? It scrapes 5 popular top-level categories.
- **Up to 20 pages of daily deals** (~50 items per page), deduplicated by item ID.
- **Up to 1,000 products per run**, each with its `position` in the ranking or deals page.

**En español:** extrae el ranking de **Más Vendidos** de Mercado Libre por categoría y las **Ofertas del día** en México, Argentina, Colombia, Chile, Perú y Uruguay: posición, precio, precio tachado, descuento, cuotas, vendedor, tienda oficial, calificación y vendidos, en una tabla lista para Excel. Hasta 50 categorías y 1.000 productos por ejecución, con proxy residencial del país incluido. Ideal para encontrar productos ganadores, estudiar el mercado y seguir tendencias. Cuesta US$1,50 por 1.000 productos más US$0,02 por ejecución; las páginas bloqueadas no se cobran.

### What you get

One row per product, real output from a Mexico best-sellers run:

```json
{
  "position": 1,
  "itemId": "MLM3456172556",
  "productId": "MLM39962085",
  "title": "Xiaomi Auriculares inalámbricos Redmi Buds 6 Play Negro, cancelación de Ruido, Ligeros, Reproducción 36h, Reducción ruido IA, Bluetooth 5.4",
  "url": "https://www.mercadolibre.com.mx/xiaomi-auriculares-inalambricos-redmi-buds-6-play-negro-cancelacion-de-ruido-ligeros-reproduccion-36h-reduccion-ruido-ia-bluetooth-54/p/MLM39962085",
  "price": 253,
  "originalPrice": 598,
  "discountPct": 57,
  "currency": "MXN",
  "installments": null,
  "freeShipping": true,
  "isFull": false,
  "sellerName": "Xiaomi",
  "isOfficialStore": true,
  "rating": 4.8,
  "soldText": "+100mil vendidos",
  "soldQuantity": null,
  "isAd": false,
  "categoryId": null,
  "domainId": null,
  "thumbnail": "https://http2.mlstatic.com/D_NQ_NP_715678-MLU78765136521_082024-O.webp",
  "country": "MX",
  "mode": "best-sellers",
  "rankingCategoryId": "MLM1051",
  "scrapedAt": "2026-11-21T06:17:01.404Z"
}
```

| Field | Meaning |
|---|---|
| `country` / `mode` | Country site and `best-sellers` (Más Vendidos ranking) or `deals` (Ofertas) |
| `rankingCategoryId` / `position` | Ranking category scraped and where the product ranked in it |
| `price` / `originalPrice` / `discountPct` / `currency` | Current price, crossed-out price, discount % and local currency (MXN, ARS, COP, CLP, PEN, UYU) |
| `installments` | Installment plan as shown on the card (e.g. "6 cuotas sin interés") |
| `sellerName` / `isOfficialStore` | Seller and whether it's an official store |
| `rating` / `soldText` | Star rating and units sold, when the card displays them |
| `freeShipping` / `isFull` | Free shipping and Fulfillment (FULL) flags |
| `url` / `itemId` / `productId` | Product link and IDs — join with the search and reviews actors |
| `error` | Set only on failed pages — those rows are **not charged** |

### Use cases

- **Find winning products:** see what sells most in each category and country right now, with price, seller and units sold.
- **Cross-border research:** run the same category in Mexico, Colombia and Chile and compare the top 20, prices and official stores.
- **Arbitrage:** compare the daily deals (`originalPrice` vs `price`, `discountPct`) against your own cost or other channels.
- **Weekly trend radar:** schedule the same categories every week and track who enters, climbs or drops in the ranking.

### How to use it

1. Pick a **Country** (`MX`, `AR`, `CO`, `CL`, `PE` or `UY`).
2. Pick a **Mode**: *Best sellers* scrapes the "Más Vendidos" ranking (one page per category, ~20 items each); *Daily deals* scrapes the "Ofertas" pages with pagination.
3. In best-sellers mode, list **Category IDs**: the full ID of that country (`MLM1055` Mexico, `MLA1055` Argentina, `MCO1055` Colombia, `MLC1055` Chile, `MPE1055` Peru, `MLU1055` Uruguay), just the number (`1055`, the actor adds the country prefix) or a `.../mas-vendidos/...` link. Leave empty for 5 popular top-level categories (`1051` phones, `1648` computers, `1000` electronics, `1574` home, `1276` sports).
4. Set **Max items** (default 100, up to 1,000 per run) — the total delivered across all categories/pages.

| Input | Type | Default | Notes |
|---|---|---|---|
| `country` | `MX`, `AR`, `CO`, `CL`, `PE`, `UY` | `MX` | For Brazil use the Mercado Livre Best Sellers actor below |
| `mode` | `best-sellers` or `deals` | `best-sellers` | `deals` always uses the general "Ofertas" page |
| `categoryIds` | array of strings | — (empty = 5 popular categories) | Up to 50 per run; IDs of another country, invalid codes and duplicates are dropped (and listed in the log). Ignored in deals mode |
| `maxItems` | integer | 100 | 1 to 1,000, total across all categories/pages |

### Pricing

Pay per event: a small start fee opens the residential session in the chosen country, then a flat fee per **listing delivered**. Blocked pages, failures and invalid categories are **never charged**, and every run respects the `maxTotalChargeUsd` budget you set on Apify.

| Scenario | Approximate cost |
|---|---|
| 100 listings (1 run) | ~US$ 0.17 |
| 1,000 listings (1 run) | ~US$ 1.52 |
| 10,000 listings (10 runs) | ~US$ 15.20 |

**Run cost limit.** Every category 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 categories that do not exist in that country, or a long streak of blocked pages), it stops opening new categories: the ones not opened come back as rows with `error: "run-cost-limit"` and are **not charged**. The first category always runs and normal runs are not affected.

### Run it from code

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

**cURL** (waits for the run and returns the items):

```bash
curl -X POST "https://api.apify.com/v2/acts/gangary~mercado-libre-best-sellers-scraper/run-sync-get-dataset-items" \
  -H "Authorization: Bearer <YOUR_APIFY_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"country": "MX", "mode": "best-sellers", "categoryIds": ["MLM1055"], "maxItems": 100}'
```

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

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("gangary~mercado-libre-best-sellers-scraper").call(
    run_input={"country": "CO", "categoryIds": ["1051", "1648"], "maxItems": 100}
)
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item.get("position"), item.get("price"), 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-best-sellers-scraper').call({
    country: 'AR',
    mode: 'deals',
    maxItems: 200,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items.length, items[0]);
```

### Integrations

Everything below is built into Apify, no extra setup on our side:

- **[Schedules](https://docs.apify.com/platform/schedules):** run the same categories every day or week to follow the ranking over time.
- **[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 rows to Google Sheets, a database, Slack or your product-research board.
- **Exports:** JSON, CSV, Excel, XML or HTML from the dataset, or straight from the API.

### Use with AI agents (MCP)

Apify runs a hosted MCP server, so Claude, Cursor, VS Code and other MCP clients can call this actor as a tool. Add this server URL to your client (it signs in with OAuth on first use, or send `Authorization: Bearer <YOUR_APIFY_TOKEN>`):

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

Then ask in plain words, e.g. *"Get today's Mercado Libre Mexico best sellers in electronics and list the 10 with the biggest discount."* Setup details: **[Apify MCP server docs](https://docs.apify.com/platform/integrations/mcp)**.

### FAQ

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

**Why do some pages 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 page is abandoned with an error row and you are not charged for it.

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

**Where do I find a category ID?**
Open the "Más vendidos" page of a category on Mercado Libre: the code at the end of the link (`MLM1055`, `MLA1648`…) is the ID. You can also paste just the number.

**Why does the general "Más vendidos" page not work?**
In the Spanish-speaking sites the general page is a landing without a ranking; the ranking lives on each category page. That is why the actor always scrapes categories (5 popular ones when you give none).

**A category came back with `no-data`. Why?**
Not every category number exists in every country. Rows with an error are free; try the category ID shown on that country's site.

**Why only 20 products per category?**
The "Más vendidos" page itself shows the top 20 per category. For more products, add more categories (up to 50 per run).

**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. You can also cap any run with **Max total charge** on Apify.

### Honest limitations

- One country per run; for several countries, start one run each (or schedule them).
- Best sellers = the **top 20 per category** — that's everything Mercado Libre's ranking page shows.
- Deals mode follows up to 20 pages per run; items are deduplicated by item ID across pages.
- Ratings, sold counts and installments appear only when the product card displays them.

### Changelog

- **2026-11-21:** first release — Mexico, Argentina, Colombia, Chile, Peru and Uruguay.

### From the same maker

- **[Mercado Libre Scraper — Mexico, Argentina, Colombia, Chile](https://apify.com/gangary/mercado-libre-search-scraper)** — search by keyword and get every listing with prices and sales data.
- **[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.
- **[Mercado Livre Best Sellers (Brazil)](https://apify.com/gangary/mercado-livre-best-sellers-scraper)** — the same rankings and deals for Mercado Livre Brazil.

***

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 best sellers, más vendidos mercado libre, mercado libre scraper, ofertas mercado libre, productos más vendidos méxico, mercado libre argentina, mercado libre colombia, mercado libre chile, mercado libre perú, mercado libre uruguay, winning products latam, market research latin america.*

# Actor input Schema

## `country` (type: `string`):

Mercado Libre country site to scrape. The proxy and language follow the country. For Brazil use the Mercado Livre Best Sellers actor from the same maker.

## `mode` (type: `string`):

best-sellers scrapes the "Más Vendidos" ranking (one page per category, ~20 items each); deals scrapes the "Ofertas" pages with pagination (~50 items per page).

## `categoryIds` (type: `array`):

Category IDs, one per line: the full ID of the chosen country (MLM1055 for Mexico, MLA1055 Argentina, MCO1055 Colombia, MLC1055 Chile, MPE1055 Peru, MLU1055 Uruguay), just the number (1055), or a .../mas-vendidos/... link. One ranking is scraped per category. Leave empty for 5 popular top-level categories. Ignored in deals mode.

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

Maximum number of listings to deliver in total across all categories/pages.

## Actor input object example

```json
{
  "country": "MX",
  "mode": "best-sellers",
  "categoryIds": [
    "1051",
    "1648"
  ],
  "maxItems": 100
}
```

# 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 = {
    "categoryIds": [
        "1051",
        "1648"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("gangary/mercado-libre-best-sellers-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 = { "categoryIds": [
        "1051",
        "1648",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("gangary/mercado-libre-best-sellers-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 '{
  "categoryIds": [
    "1051",
    "1648"
  ]
}' |
apify call gangary/mercado-libre-best-sellers-scraper --silent --output-dataset

```

## MCP server setup

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