# Mercadolibre Deals Scraper (`spider.engine/mercadolibre-deals-scraper`) Actor

This scraper is a powerful tool designed to extract valuable data from MercadoLibre's e-commerce platform. It specializes in gathering information about deals and promotions across various countries, including Argentina, Brazil, Chile, Colombia, Ecuador, Mexico, Peru, Uruguay, and Venezuela.

- **URL**: https://apify.com/spider.engine/mercadolibre-deals-scraper.md
- **Developed by:** [Spider Engine](https://apify.com/spider.engine) (community)
- **Categories:** E-commerce, Automation
- **Stats:** 40 total users, 1 monthly users, 100.0% runs succeeded, 3 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

## 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 Deals Scraper - Apify ReadMe

***

##### What does MercadoLibre Deals Scraper do?

The **MercadoLibre Deals Scraper** is a powerful tool designed specifically to extract data from the "Ofertas" (Deals) pages of MercadoLibre websites across multiple countries. Whether you're looking for daily deals, lightning promotions, or discounted products, this scraper enables you to efficiently gather information about products, sellers, and discounts.

Here is the list of supported countries/domains:

- **Argentina**: <https://www.mercadolibre.com.ar/ofertas>
- **Brasil**: <https://www.mercadolivre.com.br/ofertas>
- **Chile**: <https://www.mercadolibre.cl/ofertas>
- **Colombia**: <https://www.mercadolibre.com.co/ofertas>
- **Ecuador**: <https://www.mercadolibre.com.ec/ofertas>
- **México**: <https://www.mercadolibre.com.mx/ofertas>
- **Perú**: <https://www.mercadolibre.com.pe/ofertas>
- **Uruguay**: <https://www.mercadolibre.com.uy/ofertas>
- **Venezuela**: <https://www.mercadolibre.com.ve/ofertas>

***

##### Why scrape MercadoLibre deals?

MercadoLibre is one of the largest e-commerce platforms in Latin America, hosting a vast number of deals and discounts across various categories. The **MercadoLibre Deals Scraper** can be used for numerous purposes, such as:

- **Deal Aggregation**: Gather the best deals from multiple countries and showcase them on your platform.
- **Market Insights**: Analyze discounts, pricing trends, and promotional campaigns to make informed business decisions.
- **Price Monitoring**: Track deals over time to identify trends and spot recurring promotions.
- **Competitor Analysis**: Understand how sellers are pricing their products during promotions.
- **Consumer Savings**: Build tools to notify users of the best ongoing deals across MercadoLibre platforms.

***

##### Key Features

- **Multi-Country Support**: Scrape deals from supported MercadoLibre domains across Latin America.
- **Flexible Export Formats**: Download results in **JSON**, **CSV**, or **HTML** formats for easy integration into your workflows.
- **Promotion Filtering**: Target specific promotion types, such as "Deal of the Day" or "Lightning Deals."
- **Customizable Pagination**: Scrape deals by specific pages or fetch all available results.
- **Structured Output**: Receive data in a well-structured format, including product titles, sellers, discounts, and URLs.

***

##### Example Output

Here is a sample of the data you can expect from the scraper:

```json
{
    "image": "https://http2.mlstatic.com/D_Q_NP_2X_910190-MLV81702988462_012025-AB.webp",
    "title": "Laptop Dell Chromebook 11 Celeron N2840 4gb 16gb 64gb Bagc",
    "seller": "Bagcomputer",
    "officialSeller": true,
    "previousPrice": {
        "original": "US$120",
        "number": null
    },
    "currentPrice": {
        "original": "US$90",
        "number": null
    },
    "discount": {
        "formatted": "25% OFF",
        "value": 25
    },
    "fees": null,
    "shipping": true,
    "link": "https://articulo.mercadolibre.com.ve/MLV-713176828-laptop-dell-chromebook-11-celeron-n2840-4gb-16gb-64gb-bagc-_JM#polycard_client=offers&deal_print_id=30ccbc9f-441b-4d4f-9395-81e61ce78c7b&position=1",
    "currentUrl": "https://www.mercadolibre.com.ve/ofertas?page=1"
}
```

***

##### How much will it cost?

The scraper is highly efficient and cost-effective. On average:

- **$0.16 per 1000 requests**
- A default session would extract all the items from about 20 pages, leading to collect about **1,000 results** across 20 requests with an average duration of 243 seconds.

Based on previous test:

| Scraper (Country) | Duration (seconds) | Usage ($) |
|-------------------|--------------------|-----------|
| cl                | 260                | 0.125     |
| co                | 233                | 0.112     |
| ec                | 182                | 0.089     |
| mx                | 202                | 0.099     |
| uy                | 300                | 0.142     |
| pe                | 180                | 0.088     |
| ve                | 235                | 0.113     |
| ar                | 371                | 0.174     |
| br                | 225                | 0.109     |

***

##### How to scrape MercadoLibre deals

1. **Select the Country**: Choose the MercadoLibre domain you'd like to scrape from the supported countries (Required).
2. **Define the Strategy**: Decide whether to scrape all results or focus on specific pages (Required).
3. **Filter by Promotion Type**: Narrow down deals to "Deal of the Day" or "Lightning Deals" (Optional).
4. **Set Max Results per Page**: Specify how many items to scrape per page. Default: 20, max: 1,000 (Optional).
5. **Export Results**: Select the desired output format: JSON, CSV, or HTML (Optional).

***

##### Input Configuration

Below is the input schema for configuring the scraper:

```json
{
    "strategy": "all",
    "country": "mx",
    "maxResultsPerPage": 20,
    "exportFormat": "JSON",
    "page": 1,
    "promotionType": "deal_of_the_day",
    "limitPage": 10
}
```

# Actor input Schema

## `maxResultsPerPage` (type: `integer`):

Maximum number of item results per page

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

Select the country

## `exportFormat` (type: `string`):

Format of the exported dataset.

## `page` (type: `integer`):

Page number to filter

## `promotionType` (type: `string`):

Promotion type

## `strategy` (type: `string`):

Strategy for scraping

## `limitPage` (type: `integer`):

Limit Page number to scrape

## `proxy` (type: `object`):

Select proxies to be used by your crawler.

## Actor input object example

```json
{
  "maxResultsPerPage": 100,
  "country": "ar",
  "exportFormat": "JSON",
  "page": 1,
  "strategy": "all",
  "limitPage": 10,
  "proxy": {
    "useApifyProxy": true
  }
}
```

# 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 = {
    "country": "ar",
    "strategy": "all",
    "proxy": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("spider.engine/mercadolibre-deals-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 = {
    "country": "ar",
    "strategy": "all",
    "proxy": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("spider.engine/mercadolibre-deals-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 '{
  "country": "ar",
  "strategy": "all",
  "proxy": {
    "useApifyProxy": true
  }
}' |
apify call spider.engine/mercadolibre-deals-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,spider.engine/mercadolibre-deals-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/9CKs7x2oLhUNqdEL9/builds/WhHioOkbvf1EBXvvE/openapi.json
