# LatAm Supermarket & Pharmacy Prices (AR, MX, PE, CO) (`datasur-labs/latam-supermarket-prices`) Actor

Compare grocery and pharmacy prices across 11 Latin American retailers: Carrefour, Jumbo, Disco, Vea, ChangoMás, Farmacity, Chedraui, Wong, Plaza Vea, Metro, Olímpica. Search by keyword or EAN barcode; get price, real discount, promotions, stock and price per kg/litre.

- **URL**: https://apify.com/datasur-labs/latam-supermarket-prices.md
- **Developed by:** [Data Sur Labs](https://apify.com/datasur-labs) (community)
- **Categories:** E-commerce, AI
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 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

## LatAm Supermarket & Pharmacy Prices — unit-price comparison across 11 retailers

Search **Carrefour, Disco, Jumbo, Vea, ChangoMás, Farmacity (Argentina), Chedraui (Mexico), Wong, Plaza Vea, Metro (Peru) and Olímpica (Colombia)** by keyword or barcode (EAN) and get one clean table: price, real list price, discount %, promotions, stock, and **price per kg / litre** so you can compare pack sizes and stores.

### Who uses it

- **Brands & distributors**: monitor shelf price, promotions and out-of-stocks across chains.
- **Analysts & journalists**: track food inflation in Argentina, Mexico, Peru and Colombia with daily data.
- **Price-comparison apps and AI agents**: "cheapest 1 kg yerba mate in Buenos Aires today".

### Input (example)

```json
{ "queries": ["leche entera", "yerba mate 1 kg"], "eans": ["7792052098076"],
  "stores": ["carrefour-ar", "jumbo-ar", "vea-ar", "chedraui-mx"], "maxItemsPerQuery": 50, "sortBy": "unitPrice" }
```

Tip: EAN lookup compares the *exact same product* across chains.

### Output (one row per product/SKU)

`storeName, country, currency, name, brand, category, price, listPrice, discountPct, onPromotion, promotions[], available, ean, netContent, netUnit, unitPrice, unitPriceLabel (e.g. ARS/kg), url, imageUrl, query, scrapedAt`

```json
{"storeName":"Vea","name":"Leche Uat Entera Sachet X 1 L Cuisine & Co","currency":"ARS","price":1990,"listPrice":1990,"discountPct":0,"unitPrice":1990,"unitPriceLabel":"ARS/l","ean":"7792052098076","available":true}
```

A `SUMMARY` record lists the 3 cheapest products per search (same unit only).

### For AI agents (MCP / tool use)

- Tool purpose: *current retail grocery/pharmacy prices in AR, MX, PE, CO.*
- Required: `queries` (array of strings, Spanish product names) **or** `eans`. Optional `stores` (keys above).
- Prices are in **local currency**; never compare across currencies. Rows are grouped by query and currency and sorted by `unitPrice`.
- Cost is per returned row; keep `maxItemsPerQuery` small (10–30) for quick answers.

### Data quality

- Data come from each store's public product catalog (the same data shown to any visitor). No login, no personal data.
- Implausible list prices published by some chains are discarded; catalog unit typos (e.g. "500 Kg" yerba) are corrected.
- Prices may be the online price for the store's default region/branch.

### Pricing (pay per event)

- Run start: USD 0.005 · Product row: **USD 1.50 per 1,000 rows**.

### Limits / fair use

Requests are paced (0.4 s between pages). Please schedule daily or hourly, not every minute.

# Actor input Schema

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

Products to search, in the local language (e.g. 'leche entera', 'aceite girasol 1.5', 'yerba mate').

## `stores` (type: `array`):

Retailers to search.

## `eans` (type: `array`):

Exact barcode lookup across all selected stores. Best way to compare the same product.

## `customVtexDomains` (type: `array`):

Domains of other stores running VTEX, e.g. www.example.com.ar.

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

Max products returned per search term per store (50 per API page).

## `onlyAvailable` (type: `boolean`):

Skip out-of-stock SKUs.

## `onlyPromotions` (type: `boolean`):

Return only discounted products.

## `sortBy` (type: `string`):

Ordering of the final dataset.

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

Usually not needed.

## Actor input object example

```json
{
  "queries": [
    "leche entera",
    "yerba mate"
  ],
  "stores": [
    "carrefour-ar",
    "jumbo-ar",
    "chedraui-mx"
  ],
  "maxItemsPerQuery": 50,
  "onlyAvailable": true,
  "onlyPromotions": false,
  "sortBy": "unitPrice",
  "proxy": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `results` (type: `string`):

One row per product/SKU: price, list price, discount, promotions, stock, EAN and price per kg/litre.

## `summary` (type: `string`):

JSON summary: 3 cheapest products per search term (same unit only).

# 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 = {
    "queries": [
        "leche entera",
        "yerba mate"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("datasur-labs/latam-supermarket-prices").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 = { "queries": [
        "leche entera",
        "yerba mate",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("datasur-labs/latam-supermarket-prices").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 '{
  "queries": [
    "leche entera",
    "yerba mate"
  ]
}' |
apify call datasur-labs/latam-supermarket-prices --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,datasur-labs/latam-supermarket-prices"
        }
    }
}
```

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/iLAGzikg9gVOdeyY4/builds/keEHqOKqZwHiJnFYf/openapi.json
