# MercadoLibre Scraper (`steadyscrape/mercadolibre-scraper`) Actor

MercadoLibre and Mercado Livre products by search, search link or product link in 8 countries (AR, BR, MX, CL, PE, UY, EC, VE): price, discount, installments, shipping, rating; optionally sold count, stock, variants, seller reputation, specs.

- **URL**: https://apify.com/steadyscrape/mercadolibre-scraper.md
- **Developed by:** [Steady Scrape](https://apify.com/steadyscrape) (community)
- **Categories:** E-commerce, Lead generation, Automation
- **Stats:** 3 total users, 2 monthly users, 40.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 products

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

## MercadoLibre Scraper — Mercado Livre, Argentina, Mexico and six more countries

Scrape **MercadoLibre and Mercado Livre** products by **search**, **search link** or **product link**, on eight sites:
Argentina, Brazil, Mexico, Chile, Peru, Uruguay, Ecuador and Venezuela. Every result comes with its
**price**, **original price and discount**, **installments**, **shipping** (free, FULL, international), **rating**
and number of ratings, brand and link. Turn on **product details** to also get each product's **sold count**,
**units in stock**, **condition**, every **variant** (colors, sizes, memory…) with what is out of stock, the
**seller with its MercadoLíder level and sales**, shipping promises, **every specification**, the **description**,
all photos and the category path.

No login, no API key, no browser to configure: paste what you would type in MercadoLibre's search box, or the links
you already have.

### What you can use it for

- **Price monitoring and competitor tracking** across MercadoLibre countries: run the same searches on a schedule
  and compare prices, discounts and installments.
- **Market research**: how many sellers offer a product, at what prices, with which shipping, and which ones sell
  the most (sold counts and seller sales with product details).
- **Catalog and assortment analysis**: every variant, specification and category of the products you follow.
- **Lead lists of sellers**: official stores and MercadoLíder sellers of a category.

### Input

| Field | What it does |
|---|---|
| **Searches** | Words as you would type them on MercadoLibre: `auriculares bluetooth`, `iphone 15`, `tênis nike`. |
| **Country** | The site the searches run on: AR, BR, MX, CL, PE, UY, EC or VE. Links carry their own country. |
| **Sort** / **Condition** | Most relevant, lowest or highest price; any, new or used — for the searches above. |
| **Search links** | Any MercadoLibre search link, with every filter it carries (price range, brand, shipping, category…). Set the filters on the site and paste the address bar. |
| **Product links** | Classic links (`articulo.mercadolibre.com.ar/MLA-…`, `produto.mercadolivre.com.br/MLB-…`), catalog links (`…/p/MLA45765721`), seller-product links (`…/up/MLAU…`) or a bare item id (`MLA2815639876`). Always read with their details. |
| **Include product details** | Read each search result's own page too (one extra page per product, priced as a product with details). |
| **Max products per search** | Stop each search after this many products (default 100; 0 = every page MercadoLibre shows, about 2,000). Checked before any request. |

```json
{
    "searches": ["auriculares bluetooth"],
    "country": "AR",
    "sort": "price_asc",
    "condition": "new",
    "maxItemsPerSearch": 200,
    "includeDetails": true
}
```

### Output

One row per product. Example (with details, shortened):

```json
{
    "status": "ok",
    "site": "AR",
    "input": "zapatillas",
    "position": 2,
    "itemId": "MLA2815639876",
    "productId": null,
    "userProductId": null,
    "url": "https://articulo.mercadolibre.com.ar/MLA-2815639876-zapatillas-skate-oversize-clasicas-livianas-_JM",
    "title": "Zapatillas Skate Oversize Clasicas Livianas",
    "price": 49554.62,
    "originalPrice": 71999,
    "discountPercent": 31,
    "currency": "ARS",
    "installments": "Cuota promocionada en 6 cuotas de $ 9.645,81",
    "shipping": "Llega gratis mañana",
    "freeShipping": true,
    "fulfilledByMercadoLibre": true,
    "rating": 4.5,
    "reviewCount": 377,
    "brand": "Vurt",
    "details": {
        "condition": "Nuevo",
        "soldText": "+1000 vendidos",
        "soldQuantity": 1000,
        "stockText": "(+25 disponibles)",
        "availableQuantity": 25,
        "seller": { "name": "VURT", "officialStore": false, "level": "MercadoLíder Platinum", "salesText": "+5 mil ventas", "sales": 5000 },
        "variations": [{ "name": "Talle", "selected": null, "options": [{ "label": "35 AR", "id": null, "selected": false, "available": true }] }],
        "specs": [{ "name": "Marca", "value": "Vurt" }, { "name": "Modelo", "value": "Skate" }],
        "description": "¡SOMOS VURT!\nFábrica nacional…",
        "images": ["https://http2.mlstatic.com/D_NQ_NP_…-F.jpg"],
        "categories": ["Ropa y Accesorios", "Calzado", "Zapatillas", "Zapatillas Skate"]
    }
}
```

| Field | Meaning |
|---|---|
| `itemId` / `productId` / `userProductId` | The item for sale (`MLA…`), the catalog product it is sold under (`/p/MLA…`) and the seller's product grouping its variants (`/up/MLAU…`). |
| `price`, `originalPrice`, `discountPercent`, `currency` | As MercadoLibre shows them; Brazil's cards show the Pix price. Ecuador and Venezuela price in USD. |
| `installments`, `shipping`, `freeShipping`, `fulfilledByMercadoLibre`, `internationalFrom` | Payment and delivery as the result shows them. |
| `rating`, `reviewCount` | Average stars and how many ratings they average. |
| `brand`, `label`, `variationsText`, `coupon` | What the card shows under the title, its highlight ("MÁS VENDIDO"), "Available in 3 colors", and a coupon. |
| `details.soldQuantity`, `details.availableQuantity` | Lower bounds as MercadoLibre gives them ("+1000 vendidos" is 1000, "+25 disponibles" is 25). |
| `details.seller` | Name, store link, official store, MercadoLíder level and sales. |
| `details.variations` | Every picker with its options, the chosen one, and `available: false` for what is out of stock. |

A search or link that gives no product returns **one free row** with `status` (`no_results`, `not_found`, `blocked`,
`unreadable` or `invalid`) and the `reason`, so you always know what happened to each line of your input.

### Pricing

Pay per result, nothing per run:

- **US$0.001 per product** from a search (**US$1 per 1,000**).
- **US$0.003 per product with details** (its own page read), and for every product link.
- Free: searches without results, links that do not exist, pages MercadoLibre would not serve, invalid input.

Set a maximum cost per run in Apify and the Actor stops before reading anything it could not charge.

### Limits and good to know

- MercadoLibre serves **about 2,000 results per search** (42 pages of 48). For a larger market, split it into
  narrower searches, price ranges or categories with search links.
- The counts MercadoLibre shows are rounded: "+9.999 resultados", "+5 mil vendidos". The Actor gives the number and
  the text as written.
- A category's landing page shows only featured products; to get all of a category, search inside it and paste that
  link.
- Prices are those shown to a visitor of that country, without a logged-in account or a delivery address.
- **Colombia is not available**: mercadolibre.com.co answers a JavaScript bot challenge to every visit, and this Actor
  does not solve challenges. A Colombian link returns a free `invalid` row saying so.

### Is it legal?

The Actor reads public product pages, the same a visitor sees without logging in, and no personal data beyond what a
seller publishes for its store. Check MercadoLibre's terms and your local law for your use, especially before
republishing content.

# Actor input Schema

## `searches` (type: `array`):

What you would type in MercadoLibre's search box: <code>auriculares bluetooth</code>, <code>iphone 15</code>, <code>tênis nike</code>. Each one is searched on the site of the country below.

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

Search links and product links carry their own country.

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

Order of the searches above. Search links keep their own.

## `condition` (type: `string`):

Filter of the searches above. Search links keep their own filters.

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

MercadoLibre search links from any of the eight countries, with every filter and sort they carry (price range, brand, shipping, condition, category): set them on the site, then paste the address bar here, e.g. <code>https://listado.mercadolibre.com.ar/zapatillas_OrderId_PRICE_NoIndex_True</code>. A category's landing page (no search words) shows only its featured products: search inside the category instead.

## `productUrls` (type: `array`):

Products from any of the eight countries: classic links (<code>https://articulo.mercadolibre.com.ar/MLA-2815639876-…</code>, <code>produto.mercadolivre.com.br/MLB-…</code>), catalog links (<code>…/p/MLA45765721</code>), seller-product links (<code>…/up/MLAU3760687791</code>) or a bare item id (<code>MLA2815639876</code>). Each one is read from its own page, with all its details.

## `includeDetails` (type: `boolean`):

Read each search result's own page too: how many sold, how many in stock, condition, every variant (colors, sizes…) with what is out of stock, the seller with its MercadoLíder level and sales, shipping promises, every specification, the description, all photos and the category path. One extra page per product, and the price of a product with details.

## `maxItemsPerSearch` (type: `integer`):

Stop each search or search link after this many products. 0 reads every page MercadoLibre shows, up to about 2,000 products per search (48 per page): split a larger market into narrower searches or price ranges. Checked before any request, so nothing past it is read or charged.

## Actor input object example

```json
{
  "searches": [
    "auriculares bluetooth"
  ],
  "country": "AR",
  "sort": "relevance",
  "condition": "any",
  "searchUrls": [],
  "productUrls": [],
  "includeDetails": false,
  "maxItemsPerSearch": 20
}
```

# Actor output Schema

## `products` (type: `string`):

No description

## `summary` (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 = {
    "searches": [
        "auriculares bluetooth"
    ],
    "searchUrls": [],
    "productUrls": [],
    "maxItemsPerSearch": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("steadyscrape/mercadolibre-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 = {
    "searches": ["auriculares bluetooth"],
    "searchUrls": [],
    "productUrls": [],
    "maxItemsPerSearch": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("steadyscrape/mercadolibre-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 '{
  "searches": [
    "auriculares bluetooth"
  ],
  "searchUrls": [],
  "productUrls": [],
  "maxItemsPerSearch": 20
}' |
apify call steadyscrape/mercadolibre-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,steadyscrape/mercadolibre-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/DsFCMWRCcQwAd2DxO/builds/oW3lvgbdCIO975ObP/openapi.json
