# Metro Peru Scraper - Prices, Discounts & Stock (`youthful_colleague/metro-peru-scraper`) Actor

Scrape supermarket prices in soles, discounts, stock and EAN barcodes from metro.pe (Peru). Search by keyword or barcode in abarrotes, lacteos, limpieza, frutas y verduras and more. No browser, no login. Pay per product.

- **URL**: https://apify.com/youthful_colleague/metro-peru-scraper.md
- **Developed by:** [José S](https://apify.com/youthful_colleague) (community)
- **Categories:** E-commerce
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.10 / 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.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## Metro Peru Scraper - Prices, Discounts & Stock

Collect **supermarket prices from metro.pe**, the online store of the Metro hypermarkets and supermarkets in Peru. Every matching product comes with its price in soles, regular price, discount, stock status, EAN barcode, brand and category. Metro is a mass-market chain, so its prices are a good reference for what most Peruvian households pay.

En español: scraper de Metro Perú para extraer **precios Metro**, ofertas y disponibilidad en abarrotes, lácteos, limpieza, frutas y verduras, por palabra o código de barras.

### Example: evaporated milk

Evaporated milk is a staple in Peru, and a search for "leche evaporada" on 15-nov-2026 returned Gloria (single cans and 6-packs), Bella Holandesa and the Cuisine & Co private label, with discounts between 8% and 25%:

| Product | Price (PEN) | Regular | Discount |
|---|---|---|---|
| Pack x6 Leche Evaporada Gloria Entera | 22.90 | 24.90 | 8% |
| Leche Evaporada Bella Holandesa Lata 405g | 3.50 | 4.70 | 25.5% |
| Leche Evaporada Entera Gloria Lata 390g | 4.20 | 4.20 | 0% |
| Leche Evaporada Entera Cuisine & Co Lata 410g | 4.10 | 4.10 | 0% |

### Main sections

Abarrotes, Lácteos, Frutas y Verduras, Carnes, Aves y Pescados, Embutidos y Fiambres, Congelados, Aguas y Bebidas, Cervezas, Vinos y Licores, Panadería y Pastelería, Desayuno, Limpieza, Higiene, Salud y Belleza, Niños y Bebés, Mascotas, Electrohogar, Tecnología, Hogar y Bazar, Libros y Librería and La Juguetería.

Search terms that work: "leche evaporada", "azucar rubia", "arroz", "aceite vegetal", "detergente", "papel higienico".

### Use cases

- **Household basket and inflation tracking in Peru** with mass-market prices.
- **Private label vs. brand analysis**: compare Cuisine & Co products with national brands like Gloria in the same category.
- **Trade marketing**: check which of your SKUs are on promotion and at what depth.
- **Retail comparisons** with [Plaza Vea](https://apify.com/youthful_colleague/plaza-vea-scraper) and the premium chain [Wong](https://apify.com/youthful_colleague/wong-peru-scraper).

### Input example

```json
{
    "searchTerms": ["leche evaporada", "azucar rubia", "detergente"],
    "eans": ["7751271032834"],
    "maxResultsPerQuery": 30,
    "maxItems": 200,
    "onlyAvailable": true
}
```

### Output example

```json
{
    "store": "metro-pe",
    "storeName": "Metro Peru",
    "country": "PE",
    "currency": "PEN",
    "currencyGuessed": false,
    "productId": "995052",
    "skuId": "39233661",
    "name": "Pack x6 Leche Evaporada Gloria Entera",
    "brand": "Gloria",
    "ean": "7751271034128",
    "price": 22.9,
    "listPrice": 24.9,
    "discountPct": 8,
    "isAvailable": true,
    "sellerName": "CENCOSUD RETAIL PERU S.A.",
    "sellerCount": 1,
    "measurementUnit": "un",
    "unitMultiplier": 1,
    "category": "Lácteos > Leches > Leches Evaporadas, en polvo y Mezclas Lácteas",
    "url": "https://www.metro.pe/pack-x6-leche-evaporada-gloria-entera-2-2/p",
    "imageUrl": "https://metroio.vteximg.com.br/arquivos/ids/596134/975696-1.jpg?v=638880609891700000",
    "matchedBy": "searchTerm",
    "query": "leche evaporada",
    "scrapedAt": "2026-11-15T00:24:28.317Z"
}
```

### Pricing

**$1.50 per 1,000 products** on the Free and Bronze plans ($0.0015 per row), lower on Silver and Gold, plus the $0.00005 Apify start fee per run. Usage is included. A 50-product basket every day costs about $2.25 a month.

### Technical notes

- No browser and no login: the Actor uses the public catalog that metro.pe shows on its pages.
- Spaces in search terms are encoded the way the store expects, so multi-word searches like "leche evaporada" work.
- At least 1 second between requests and 60 requests per minute at most.
- Stops at your item or cost limit, removes duplicates before charging and writes a `RUN_SUMMARY`.

### Related scrapers

- [LatAm Supermarket & Pharmacy Price Scraper](https://apify.com/youthful_colleague/latam-supermarket-prices): Metro, Wong and Plaza Vea together with stores in four more countries.

### Disclaimer

Not affiliated with, endorsed by or sponsored by Metro, Cencosud or any related company. The name is used only to identify the public website the data comes from. Only public product data is collected; you are responsible for using it according to the website's terms and the law.

Need help? Open an issue on the **Issues** tab.

# Actor input Schema

## `searchTerms` (type: `array`):

Keywords to search in Metro, in the store's language, for example "leche evaporada", "azucar rubia" or "detergente". Each term is searched separately.

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

Optional. Barcodes (8 to 14 digits) to look up in Metro. Use it to track the exact same product over time or to match it with other stores.

## `maxResultsPerQuery` (type: `integer`):

How many products to collect for each search term (or barcode) in each store. The store API allows up to 2,550.

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

Hard cap for the whole run. The run stops when it is reached, so you never pay for more than this.

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

Order in which the store returns products. Useful with a low product limit, for example to get only the biggest discounts.

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

Skip products the store shows as unavailable.

## `deduplicate` (type: `boolean`):

If the same product appears for two search terms in the same store, keep it only once (you are charged once).

## `includeDescription` (type: `boolean`):

Add the store's product description as plain text (up to 2,000 characters). Makes the dataset larger.

## `maxRequestsPerMinute` (type: `integer`):

Speed limit for the run, to stay polite with Metro. Each request returns up to 50 products, with at least 1 second between requests.

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

Usually not needed. Turn it on only if Metro blocks requests from your region.

## Actor input object example

```json
{
  "searchTerms": [
    "leche evaporada"
  ],
  "maxResultsPerQuery": 10,
  "maxItems": 1000,
  "sort": "relevance",
  "onlyAvailable": false,
  "deduplicate": true,
  "includeDescription": false,
  "maxRequestsPerMinute": 60,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

One row per Metro product SKU, with price, list price, discount, stock and EAN.

## `runSummary` (type: `string`):

Products found, requests made and any errors.

# 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 = {
    "searchTerms": [
        "leche evaporada"
    ],
    "maxResultsPerQuery": 10,
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("youthful_colleague/metro-peru-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 = {
    "searchTerms": ["leche evaporada"],
    "maxResultsPerQuery": 10,
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("youthful_colleague/metro-peru-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 '{
  "searchTerms": [
    "leche evaporada"
  ],
  "maxResultsPerQuery": 10,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call youthful_colleague/metro-peru-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,youthful_colleague/metro-peru-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/HTgGriilW4idkYjNa/builds/PXtKnDwfH21vzYbcz/openapi.json
