# Mercado Livre & Mercado Libre Search Scraper: Prices & Sales (`siteacs/mercado-livre-search`) Actor

Scrape Mercado Livre (Brazil) and Mercado Libre (Mexico, Argentina, Colombia, Chile and 13 more) search results by keyword: price, Pix and card price, discount, installments, rating, units sold, sponsored ads, official store, free shipping and Full. For price monitoring and search rank tracking.

- **URL**: https://apify.com/siteacs/mercado-livre-search.md
- **Developed by:** [SiteAcs](https://apify.com/siteacs) (community)
- **Categories:** E-commerce, SEO tools, Marketing
- **Features:** Limited permissions
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

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 Livre & Mercado Libre Search Scraper

Search Mercado Livre (Brazil) or Mercado Libre (Mexico, Argentina, Colombia, Chile and 13 more country sites) by
keyword, and get each listing on the first result page as one row: position, item id, catalog product id, title,
price, Pix price and card price, original price, discount, installments, star rating, units sold, sponsored flag,
official store and its name, condition, free shipping, Full fulfilment, delivery line, category, image and link.

It reads the same search page a shopper sees, logged out. No Mercado Livre account, no API key, no login.

**Quick start.** Put one search per line in `keywords`, pick the `country` site, and run. This input returns about
120 listings from Brazil for about $0.13:

```json
{
  "keywords": ["fone bluetooth", "air fryer"],
  "country": "BR"
}
```

### What you can use it for

- **Price research and monitoring.** Run the same keywords on a schedule and follow price, original price, discount,
  Pix price and installments over time. Rows join on `itemId`.
- **Search rank tracking (SEO for Mercado Livre).** `position` counts every listing in page order;
  `organicPosition` skips the sponsored ones, so you see where your listing or a competitor's ranks for a keyword.
- **Competitor and assortment research.** Who sells on the first page for "air fryer" in Brazil, Mexico and Argentina:
  official stores, Full fulfilment, free shipping, sold counts and ratings, side by side.
- **Ad share.** `sponsored` marks the Patrocinado / Promocionado listings; the summary row counts organic and sponsored
  listings per search.

### Example row

Keyword "celular", Brazil:

```json
{
  "type": "result",
  "keyword": "celular",
  "country": "BR",
  "position": 1,
  "organicPosition": 1,
  "itemId": "MLB7701826550",
  "productId": "MLB63335606",
  "title": "Celular Samsung Galaxy A17 5G Com IA, 128gb, 4gb Ram, Câm De 50mp, Tela De 6.7\", Nfc, Ip54 - Preto",
  "price": 989.1,
  "originalPrice": 1855.71,
  "currency": "BRL",
  "discountPercent": 46,
  "priceNote": "no Pix",
  "couponPrice": null,
  "otherPaymentPrice": 1099,
  "installments": 10,
  "installmentAmount": 109.9,
  "installmentsInterestFree": true,
  "rating": 4.8,
  "soldQuantity": 50000,
  "sponsored": false,
  "officialStore": true,
  "sellerName": "123 Comprou",
  "condition": null,
  "freeShipping": true,
  "fulfillment": true,
  "shippingText": "Hoje | Grátis",
  "highlights": [],
  "categoryId": "MLB1055",
  "domainId": "MLB-CELLPHONES",
  "image": "https://http2.mlstatic.com/D_NQ_NP_2X_864503-MLA118251143201_092026-F.webp",
  "url": "https://www.mercadolivre.com.br/celular-samsung-galaxy-a17-5g-com-ia-128gb-4gb-ram-cam-de-50mp-tela-de-67-nfc-ip54-preto/p/MLB63335606"
}
```

Some fields are left out above: `installmentsText`, `variations`, `searchUrl` and `scrapedAt`; the Output tab lists
them all.

Each search ends with one free summary row: status (`ok`, `no_results`, `blocked`, `invalid_keyword`,
`invalid_url`...), listings saved, organic and sponsored counts, Mercado Livre's own result count for the search
(`totalResults`, all pages) and the category the search landed in.

### Input

| Field | What it does |
| --- | --- |
| `keywords` | Search terms, one per line, as shoppers type them: "fone bluetooth", "tênis masculino", "freidora de aire". |
| `searchUrls` | Plain search pages copied from your browser, such as `https://lista.mercadolivre.com.br/fone-bluetooth` or a search inside a category (`https://listado.mercadolibre.com.mx/celulares-telefonos/celulares-smartphones/celular`). The URL's site sets its country. |
| `country` | The country site the keywords run on: BR, MX, AR, CO, CL, PE, UY, VE, EC, BO, PY, CR, DO, GT, HN, NI, PA, SV. Default BR. |
| `maxResultsPerSearch` | Keep at most this many listings per search. 0 (default) keeps the whole first page. |
| `includeSponsored` | Keep sponsored listings (default) or drop them. Positions count them either way. |
| `maxConcurrency` | Searches in parallel (default 4). |
| `proxyConfiguration` | Apify residential proxy by default; see below. |
| `browserMode` | Load every search in the browser instead of over HTTP. Slower; for checks. |

### Price

**$0.003 per search plus $1.00 per 1,000 listings** (pay per event). The search event is charged once for each
search that returns listings; each listing row is $0.001. Summary rows are free, and so is everything that returns
no listings: a search with no results, a search that could not be read, a keyword with nothing to search and a URL
the actor does not open cost nothing. An item shown twice on one page (as an ad and in the organic results) is two
rows and two listings. No start fee. Residential proxy traffic is included. The maximum cost per run you set in Apify
is respected: the run stops when it is reached.

| Run | Charged | Cost |
| --- | --- | --- |
| 1 keyword, all results (about 55 listings) | 1 search + 55 listings | about $0.058 |
| 100 keywords, all results (about 5,500 listings) | 100 searches + 5,500 listings | about $5.80 |
| 100 keywords, `maxResultsPerSearch` 10 (1,000 listings) | 100 searches + 1,000 listings | $1.30 |

### Good to know

- **First result page only, about 48 to 60 listings per search, sponsored ones included.** Mercado Livre's
  robots.txt asks crawlers not to open the next pages (`_Desde_`, `_NoIndex_True`) or any filter or sort (price
  range, condition, shipping, `_OrderId_`...), and this actor follows it. For more listings, search more specific
  keywords ("air fryer 5 litros", "air fryer mondial"), which is also how shoppers search. A search URL carrying a
  filter, a sort or a page number gets a free `invalid_url` row saying why.
- **Results in about a minute, then fast.** A run of a few keywords takes 1 to 3 minutes; 50 keywords about 4 to 5.
  Mercado Livre answers unknown clients with a sign-in page, a proof-of-work page or a reCAPTCHA page. Each new proxy session first opens one search in a real browser (Firefox,
  through a residential IP in the searched country), which runs the site's own checks; the next searches on that
  session are read as plain pages, about 3 seconds each. A session that meets a wall is dropped and the search tried
  again on a new one (up to 4 times). CAPTCHAs are never solved.
- **Residential proxy is used.** Every Apify datacenter IP got the sign-in page in our test (120 of 120 browser
  loads), so an Apify proxy setting without the residential group is switched to residential (its traffic is in the
  price). With your own proxy URLs the run stops opening sessions after 6 walls in a row and ends the remaining
  searches as `blocked`, free of charge.
- **robots.txt is followed.** At the start of each run the actor reads each site's robots.txt and does not open a
  search it disallows for crawlers (for example keywords containing "merca", such as "supermercado", or starting
  with "MLB-"); such a search gets a free `invalid_keyword` or `invalid_url` row.
- **Prices are those a logged-out shopper sees.** In Brazil the main price is often the Pix price (`priceNote:
  "no Pix"`), and `otherPaymentPrice` is the price by card or other means ("ou R$ 1.099 em 10x"); `installments` and
  `installmentAmount` give the card offer. `couponPrice` is the price with the coupon the card shows.
- **Sold counts are Mercado Livre's rounded labels.** "+1000 vendidos" is `soldQuantity: 1000`; the label steps are
  25, 50, 100, 500, 1,000, 5,000, 10,000, 50,000 and up.
- **Seller names only where the card shows one**: official stores (`officialStore: true`), and the "Por X" line some
  listings carry, which is often a brand (RAY-BAN, CASIO) rather than the shop. The card carries no seller id; this
  actor does not open item or seller pages.
- **An item can show twice on a page**, once as an ad and once in the organic results. Both rows are kept, with
  `sponsored` telling them apart.
- **Order varies between visits.** Mercado Livre personalises and rotates results, ads most of all. Track ranks over
  several runs rather than one.

### FAQ

**Do I need a Mercado Livre account or my own proxies?** No. The default Apify residential proxy is used, and its
traffic is included in the price.

**Can I search Mexico, Argentina or Colombia?** Yes: pick the country site. Keywords in Spanish return Spanish titles
and prices in the local currency (MXN, ARS, COP...).

**Can I get more than the first page, or sort by price?** No: robots.txt disallows both for crawlers. Use more
specific keywords.

**Can I scrape item details, reviews or seller profiles?** Not with this actor: it reads search result pages only.
Buyer reviews and personal data are not collected.

### Related scrapers

- [Amazon Search Scraper](https://apify.com/siteacs/amazon-search): the same keyword search, ranks and prices on
  Amazon (amazon.com.br and amazon.com.mx included).
- [AliExpress Search Scraper](https://apify.com/siteacs/aliexpress-search): products, prices and sold counts on
  AliExpress, for the cross-border offer.
- [Google Autocomplete Suggestions](https://apify.com/siteacs/google-autocomplete-suggestions): keywords shoppers type,
  to feed this actor's `keywords`.

The data comes from public search pages. You are responsible for using it in line with Mercado Livre's terms and the
law where you work.

### Em português

Scraper de busca do Mercado Livre: anúncios da primeira página de resultados por palavra-chave, com preço, preço
original, desconto, preço no Pix e no cartão, parcelas sem juros, avaliação, quantidade vendida, anúncio patrocinado, loja oficial,
frete grátis, Full, categoria, imagem e link. Brasil e todos os países do Mercado Libre.

### En español

Scraper de búsqueda de Mercado Libre (MercadoLibre): publicaciones de la primera página de resultados por palabra clave, con precio,
precio original, descuento, cuotas sin interés, calificación, cantidad vendida, publicidad, tienda oficial, envío
gratis, Full, categoría, imagen y enlace. México, Argentina, Colombia, Chile, Perú y todos los países de Mercado Libre.

# Changelog

This Actor's version history is a separate document: https://apify.com/siteacs/mercado-livre-search/changelog.md

# Actor input Schema

## `keywords` (type: `array`):

Search terms, one per line, as a shopper types them into the Mercado Livre search box, in Portuguese or Spanish ("fone bluetooth", "air fryer", "zapatillas running"). Each keyword is searched on the country site picked below. Use Bulk edit to paste a long list. Duplicates are searched once.

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

Optional. Plain search result pages copied from the browser, such as https://lista.mercadolivre.com.br/fone-bluetooth or https://listado.mercadolibre.com.mx/celulares-telefonos/celulares-smartphones/celular (a search inside a category). The URL's site sets its country. URLs with filters, a sort or a page number (*OrderId*, *PriceRange*, *Desde*, \_NoIndex_True...) are not opened: Mercado Livre's robots.txt asks crawlers not to, so each gets a free summary row saying why.

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

The Mercado Livre / Mercado Libre site the keywords are searched on. Prices come in that country's currency (BRL, MXN, ARS...), and each search goes out from a residential IP in that country.

## `maxResultsPerSearch` (type: `integer`):

Keep at most this many listings of each search, in the site's order. 0 keeps the whole first result page (usually 48 to 60 listings, sponsored included). Only the first result page is read: Mercado Livre's robots.txt asks crawlers not to open the next pages. A lower number saves on listings, not on the search fee.

## `includeSponsored` (type: `boolean`):

Keep the sponsored (Patrocinado / Promocionado) listings, flagged with sponsored: true. Off: only organic listings are saved and charged; positions still count the sponsored ones.

## `maxConcurrency` (type: `integer`):

How many searches run in parallel. Each new proxy session opens one browser first (two at a time), so more parallel searches need more memory (4 GB covers the default 4).

## `proxyConfiguration` (type: `object`):

Apify residential proxy, with an IP in the searched country, is the route that works, and its traffic is included in the price. Mercado Livre answers Apify datacenter IPs with a sign-in wall, so an Apify proxy setting without the residential group is switched to residential. Your own proxy URLs are used as given; the run stops opening sessions after 6 walls in a row.

## `browserMode` (type: `boolean`):

Load every search in the browser instead of reading it over HTTP after the first one. Slower and uses more memory; for checking results against what a shopper's browser shows.

## Actor input object example

```json
{
  "keywords": [
    "fone bluetooth",
    "air fryer"
  ],
  "country": "BR",
  "maxResultsPerSearch": 0,
  "includeSponsored": true,
  "maxConcurrency": 4,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  },
  "browserMode": false
}
```

# Actor output Schema

## `overview` (type: `string`):

One item per listing on the first result page, in Mercado Livre's order: keyword, position, item id, title, price, discount, installments, rating, sold count, sponsored, official store, shipping and link, plus one summary item per search.

## `searches` (type: `string`):

Status, listing counts, currency and Mercado Livre's result count of each search (the summary items).

# 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 = {
    "keywords": [
        "fone bluetooth",
        "air fryer"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("siteacs/mercado-livre-search").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 = {
    "keywords": [
        "fone bluetooth",
        "air fryer",
    ],
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("siteacs/mercado-livre-search").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 '{
  "keywords": [
    "fone bluetooth",
    "air fryer"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call siteacs/mercado-livre-search --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,siteacs/mercado-livre-search"
        }
    }
}
```

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/rxd9wrD5JlIH0ULir/builds/uB7eaRwJaGA4peqh5/openapi.json
