# VTEX Scraper — Prices, EAN & Stock from Any VTEX Store (`fabrikit/vtex-scraper`) Actor

Scrape products from any VTEX store (Plaza Vea, Éxito, Farmacity, Pague Menos...): EAN, brand, category, price, list price, discount, installments, stock and seller. Keyword, category, full-catalog, URL and barcode modes. From US$2.00 per 1,000 products.

- **URL**: https://apify.com/fabrikit/vtex-scraper.md
- **Developed by:** [Fabrikit](https://apify.com/fabrikit) (community)
- **Categories:** E-commerce, Automation, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 product results

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

## VTEX Scraper — Prices, EAN & Stock from Any VTEX Store

Extract products, prices and stock from **any store built on VTEX**, the e-commerce platform behind most big supermarket, pharmacy and retail chains in Latin America. Give the Actor one or more store domains (`www.plazavea.com.pe`, `www.exito.com`, `www.farmacity.com`, `www.paguemenos.com.br`, ...) and get back clean, normalized rows: product and SKU ids, name, brand, full category path, **EAN/GTIN barcode**, reference code, URL, images, **price, list price and discount %**, installments, **availability and stock quantity**, seller and (optionally) the full specification table.

It talks to each store's own public catalog JSON API over plain HTTP: no browser, no login, no HTML parsing. That makes it fast (500 products in ~20 seconds) and cheap, and it keeps working when a store redesigns its website.

What you get:

- **One Actor for hundreds of stores.** Every VTEX store exposes the same catalog API, so the same input works on Peru, Colombia, Argentina, Brazil, Mexico and beyond. Mix stores from different countries in one run; each row carries the store's `country` and `currency`.
- **Automatic store check.** Each domain is tested first: is it VTEX, which API answers, does it redirect (`/io/` prefixes, renamed domains)? Stores that can't be used are skipped with a plain-English reason instead of silently returning nothing.
- **Six modes:** keyword search, category, full catalog, product URLs, EAN/barcode lookup and a free store check.
- **Past the API's 2,500-result wall.** VTEX stops paging at 2,550 results per query. The Actor walks the category tree and splits big categories and searches by price range, so full catalogs come out complete (a 1,365-product store returned 1,365 of 1,365).
- **Price-monitoring ready:** one row per SKU with stable `productId` + `skuId`, ISO `scrapedAt`, and an `ean` you can join across stores and chains.

### Stores verified from Apify's cloud (12 Oct 2026)

All 33 stores below returned products from Apify's datacenter IPs **without any proxy**:

| Country | Stores |
|---|---|
| Peru | Plaza Vea, Oechsle, Promart, Metro, Wong |
| Colombia | Éxito, Carulla, Jumbo Colombia, Olímpica, La Rebaja Virtual, Locatel |
| Argentina | Carrefour, Jumbo, Disco, Vea, Día Online, MásOnline, Farmacity, Farmaonline, Frávega, Easy, Cetrogar, Naldo |
| Brazil | Americanas, Pague Menos, Extrafarma, C\&A, Cobasi, Época Cosméticos, Savegnago, Zona Sul, Hortifruti |
| Mexico | Chedraui, Farmacias Similares |

Drogarias Pacheco and Atacadão (Brazil) also passed the store check from Apify's cloud. These are examples, not a whitelist: any VTEX storefront with an open catalog API works. Run the `check` mode to test a domain before scraping it.

### How to use it

1. Put one or more store domains in **Store domains**.
2. Pick **What to scrape** and fill the matching field: search terms, categories, product URLs or EANs.
3. Set **Max products** (and optionally **Max products per store** for multi-store runs) and press **Start**. Export the dataset as JSON, CSV or Excel, or send it to Google Sheets, a webhook, Make, Zapier or the Apify API.

#### Example: keyword search (the default input)

```json
{
    "domains": ["www.plazavea.com.pe"],
    "mode": "search",
    "searchTerms": ["leche"],
    "maxItems": 50
}
```

Search terms are sent to the store as typed, so use the store's language: `leche` in Spanish-speaking stores, `leite` in Brazilian ones.

#### Example: one category, every product

```json
{
    "domains": ["www.exito.com"],
    "mode": "category",
    "categories": ["/mercado"],
    "maxItems": 5000,
    "onlyAvailable": true
}
```

A category can be a URL (`https://www.plazavea.com.pe/lacteos-y-huevos/huevos`), a path (`/lacteos-y-huevos/leche` or `Lácteos y Huevos > Leche`), a category id (`846`) or an id path (`/845/846/`). Paths are matched against the store's own category tree.

#### Example: full catalog of a store

```json
{
    "domains": ["www.farmaciasdesimilares.com"],
    "mode": "catalog",
    "maxItems": 100000
}
```

#### Example: the same products across four countries

```json
{
    "domains": ["www.plazavea.com.pe", "www.jumbocolombia.com", "www.carrefour.com.ar", "www.paguemenos.com.br"],
    "mode": "search",
    "searchTerms": ["leche", "leite"],
    "maxItems": 100,
    "maxItemsPerStore": 25,
    "sort": "price_asc"
}
```

#### Example: price comparison by barcode

```json
{
    "domains": ["www.plazavea.com.pe", "www.metro.pe", "www.wong.pe"],
    "mode": "ean",
    "eans": ["7751271019545", "7751271021982"]
}
```

Only the SKU that carries each barcode is returned, one row per store where it's listed.

#### Example: specific product pages

```json
{
    "mode": "urls",
    "productUrls": [
        "https://www.plazavea.com.pe/leche-gloria-entera-uhtcon-vitamina-a-cy-d-caja-1l/p",
        "https://www.exito.com/bananos-x-5-124210755/p"
    ]
}
```

URLs from different stores can be mixed; `?skuId=123` restricts the result to that variant.

#### Input fields

| Field | Description |
|---|---|
| `domains` | VTEX store domains. Not needed in `urls` mode. |
| `mode` | `search`, `category`, `catalog`, `urls`, `ean` or `check`. |
| `searchTerms` | Keywords for `search` mode. Each term runs on every store. |
| `categories` | Category URLs, paths, ids or id paths for `category` mode. |
| `productUrls` | Product page URLs for `urls` mode. |
| `eans` | EAN/GTIN barcodes for `ean` mode. |
| `maxItems` | Total row cap for the run (default 50). |
| `maxItemsPerStore` | Row cap per store (0 = none). Keeps one big store from using the whole budget. |
| `sort` | `relevance`, `price_asc`, `price_desc`, `top_sales`, `newest`, `best_discount`, `name_asc`. |
| `oneRowPerSku` | On (default): one row per variant (size, color, pack). Off: one row per product. |
| `onlyAvailable` | Only SKUs that are in stock. Uses the store's own availability filter, so it's also faster. |
| `includeDetails` | Add the specification table and the plain-text description. |
| `salesChannel` | Advanced: VTEX trade policy id. Leave empty for website prices. |
| `autoResidentialProxy` | If a store blocks the default IPs, retry it through Apify residential proxy in its country (default on). |
| `proxyConfiguration` | Optional proxy. None is needed for the stores listed above. |

### Output

One row per SKU. Real example (Plaza Vea, 12 Oct 2026, `includeDetails` on, specification table shortened):

```json
{
    "store": "www.plazavea.com.pe",
    "vtexAccount": "plazavea",
    "country": "PE",
    "currency": "PEN",
    "productId": "3649",
    "skuId": "3533",
    "name": "Leche Entera UHT GLORIA Caja 946ml",
    "productName": "Leche Entera UHT GLORIA Caja 946ml",
    "skuName": "Leche Entera UHT GLORIA Caja 946ml",
    "variations": null,
    "brand": "GLORIA",
    "brandId": 59810,
    "categoryId": "854",
    "category": "Lácteos y Huevos > Leche > Leche Fresca y UHT Larga Vida",
    "categories": ["Lácteos y Huevos", "Leche", "Leche Fresca y UHT Larga Vida"],
    "ean": "7751271019545",
    "refId": "358217",
    "productReference": "358217",
    "url": "https://www.plazavea.com.pe/leche-gloria-entera-uhtcon-vitamina-a-cy-d-caja-1l/p",
    "image": "https://plazavea.vteximg.com.br/arquivos/ids/35081437/358217.jpg?v=639177600896330000",
    "images": ["https://plazavea.vteximg.com.br/arquivos/ids/35081437/358217.jpg?v=639177600896330000"],
    "price": 6.2,
    "listPrice": 6.2,
    "discountPercent": 0,
    "installmentCount": null,
    "installmentValue": null,
    "installmentInterestFree": null,
    "available": true,
    "stockQuantity": 529,
    "sellerId": "1",
    "sellerName": "Plaza Vea",
    "sellersCount": 1,
    "measurementUnit": "un",
    "unitMultiplier": 1,
    "releaseDate": "2026-06-22T00:00:00Z",
    "description": null,
    "specifications": {
        "Presentación/Empaque": "Caja",
        "Contenido Neto": "1L",
        "Denominación Contenido De Grasa": "Entera",
        "Libre De Lactosa": "No",
        "Calorías Por Porción": "142Kcal",
        "Tipo de envío": "Despacho a domicilio; Recojo en tienda"
    },
    "query": "search: leche",
    "source": "catalog-api",
    "scrapedAt": "2026-10-12T15:51:57.101Z"
}
```

| Field | Type | Description |
|---|---|---|
| `store` | string | Store host the row came from (after redirects, e.g. `www.tiendasjumbo.co` → `www.jumbocolombia.com`) |
| `vtexAccount` | string | null | The store's VTEX account name |
| `country` / `currency` | string | null | ISO country and currency from the store's own settings (`PE`/`PEN`, `BR`/`BRL`, ...) |
| `productId` / `skuId` | string | VTEX product and SKU ids, stable across runs |
| `name` | string | null | Full SKU name (product + variant) |
| `productName` / `skuName` | string | null | Product name and variant name |
| `variations` | object | null | Variant attributes, e.g. `{"Cor": "Marrom Escuro", "Tamanho": "P"}` |
| `brand` / `brandId` | string / number | null | Brand |
| `categoryId` | string | null | Leaf category id |
| `category` / `categories` | string / string\[] | null | Deepest category path, as text and as a list |
| `ean` | string | null | EAN/GTIN barcode of the SKU |
| `refId` / `productReference` | string | null | Store reference codes (SKU and product) |
| `url` | string | Product page (with `?skuId=` when the product has several variants) |
| `image` / `images` | string / string\[] | Main image and up to 10 images |
| `price` | number | null | Current selling price (`null` when out of stock with no price) |
| `listPrice` | number | null | Regular / "before" price |
| `discountPercent` | number | null | `(1 - price / listPrice) × 100`, one decimal |
| `installmentCount` / `installmentValue` / `installmentInterestFree` | number / number / boolean | null | Longest installment plan offered (interest-free preferred) |
| `available` | boolean | In stock with an active offer |
| `stockQuantity` | number | null | Units available as reported by the store (many stores cap or round this, e.g. 10000 or 99999) |
| `sellerId` / `sellerName` / `sellersCount` | string / string / number | Seller of the offer shown (the store's default seller when available) and how many sellers offer the SKU |
| `measurementUnit` / `unitMultiplier` | string / number | null | Selling unit, e.g. `kg` with multiplier `0.5` |
| `releaseDate` | string | null | Catalog release date |
| `description` | string | null | Plain-text description (`includeDetails`) |
| `specifications` | object | null | Specification table (`includeDetails`) |
| `query` | string | null | Which input produced the row (`search: leche`, `category: Mercado`, `ean: 7751271019545`) |
| `source` | string | `catalog-api` or `intelligent-search` |
| `scrapedAt` | string | ISO timestamp |

A `SUMMARY` record in the run's key-value store lists, per store, the detection result (catalog API / Intelligent Search, API base, catalog size, country, currency), the proxy used, items, requests and any errors.

### Pricing

Pay per result. You only pay for products that land in your dataset.

| Event | Price | When |
|---|---|---|
| `apify-actor-start` | US$0.00005 per run (per GB of memory, default 1 GB) | Once, when the run starts |
| `product-result` | US$2.00 per 1,000 rows (US$0.002 each) | Each row pushed to the dataset |

The `check` mode pushes no rows, so it only charges the start event. Examples: 50 products ≈ US$0.10, 10,000 products ≈ US$20. Platform usage is included.

### Blocking and proxies

Every store in the table above answered Apify's own IPs directly in our tests, so the default is **no proxy**. Some VTEX stores sit behind Cloudflare or Akamai rules; if a store answers 403 or an anti-bot page, the Actor switches that store (only that store) to Apify residential proxy in the store's country and keeps going. If the store still refuses (Carrefour Brasil blocked its catalog API even for residential IPs in our tests), the run tells you so in the log and in `SUMMARY` instead of returning an empty dataset, and the other stores in the run carry on.

### Limits

- **Some VTEX stores close their public catalog API.** Big Brazilian pharmacy and department-store chains often do. The store check reports these as "runs on VTEX, but its public catalog API is closed" and skips them.
- **2,550 results per query is a VTEX API limit.** The Actor splits bigger categories and searches by subcategory and price range. Out-of-stock products all share price 0, so a leaf category with more than 2,550 *out-of-stock* products can't be fully listed; in-stock products are always covered. Turn on `onlyAvailable` if you only need sellable items.
- **Prices are the public website prices** for an anonymous visitor, without a delivery address. Stores that price by region or by store branch may show different prices after login or address selection.
- **`stockQuantity` is what the store publishes.** Many stores cap or mask it (10000, 99999); use `available` for in-stock checks.
- Product search uses the store's own search engine, so results and ordering match the website, typos included.

### FAQ

**How do I know if a store runs on VTEX?** Run the Actor with `mode: check` and the domain. It reports whether the catalog API or Intelligent Search answered, the catalog size, country and currency. Image URLs on `vteximg.com.br` or `vtexassets.com` are another giveaway.

**Can I scrape a whole store?** Yes, with `mode: catalog`. Set `maxItems` high enough. Large chains have hundreds of thousands of SKUs (including marketplace sellers), so start with a category or `onlyAvailable: true`.

**Why are there fewer products than the store's reported total?** The reported total usually includes inactive and marketplace items that aren't shown on the site, and `onlyAvailable` drops out-of-stock SKUs. In our full-catalog test on a small store the Actor returned 1,365 of 1,365.

**Do I get one row per product or per size/color?** Per SKU (size, color, pack) by default, since each one has its own EAN, price and stock. Turn off `oneRowPerSku` for one row per product.

**Can I schedule it for daily price tracking?** Yes. Save an input as a task, schedule it, and diff on `store` + `skuId`.

**Is this legal?** The Actor reads public product catalog data (prices, descriptions, stock) that the stores publish for anonymous visitors. It doesn't log in, doesn't collect personal data, and only scrapes companies' product listings. You're responsible for how you use the data.

### Use cases

- **Price monitoring and competitive intelligence** for retailers, brands and distributors across Latin American supermarkets, pharmacies, electronics and home-improvement chains.
- **Cross-chain price comparison by EAN**, e.g. the same milk carton at three Peruvian chains.
- **Retail-execution and shelf analytics** for CPG brands: assortment, out-of-stocks, promotions and discount depth by category.
- **Market research and inflation tracking** with category-level price baskets by country.
- **Catalog enrichment**: EANs, brands, categories, images and specifications for product databases.

### En español

**VTEX Scraper** extrae productos y precios de cualquier tienda VTEX (Plaza Vea, Éxito, Carulla, Jumbo, Farmacity, Pague Menos y cientos más): nombre, marca, categoría, EAN, precio, precio de lista, % de descuento, cuotas, disponibilidad, stock y vendedor. Funciona con búsqueda por palabra clave, categoría, catálogo completo, URLs de producto y búsqueda por código de barras (EAN), y en una misma corrida puedes mezclar tiendas de Perú, Colombia, Argentina, Brasil y México. Cada tienda se verifica primero (¿es VTEX?, ¿qué API responde?) y, si no se puede usar, el Actor lo dice claramente. Precio: US$2,00 por cada 1.000 productos.

# Actor input Schema

## `domains` (type: `array`):

One or more VTEX store domains, e.g. `www.plazavea.com.pe`, `www.jumbocolombia.com`, `www.farmacity.com`, `www.paguemenos.com.br`. Every store is checked first (is it VTEX? which API answers?) and skipped with a clear message if it can't be used. Not needed in `urls` mode (the store is taken from each URL).

## `mode` (type: `string`):

`search`: keyword search. `category`: every product in the categories below. `catalog`: the whole store, walking its category tree. `urls`: specific product pages. `ean`: look up barcodes (great for comparing one product across stores). `check`: only test whether each domain is a usable VTEX store (no products, nothing charged).

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

Keywords for `search` mode, in the store's language (`leche` for Spanish-speaking stores, `leite` for Brazilian ones). Each term runs on every store. Up to 2,550 results per term are reachable directly; bigger result sets are split by price range automatically.

## `categories` (type: `array`):

For `category` mode. Any of: a category URL (`https://www.plazavea.com.pe/lacteos-y-huevos/leche`), a path (`/lacteos-y-huevos/leche` or `Lácteos y Huevos > Leche`), a category id (`846`) or an id path (`/845/846/`). Paths are matched against each store's own category tree, so the same path can run on several stores of one chain.

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

For `urls` mode. Product pages from any VTEX store, e.g. `https://www.plazavea.com.pe/leche-gloria-entera-uhtcon-vitamina-a-cy-d-caja-1l/p`. Add `?skuId=123` to get only that variant.

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

For `ean` mode. Barcodes to look up on every store in `domains`, e.g. `7751271019545`. Only the matching SKU is returned.

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

Stop after this many rows across all stores. One row = one SKU (or one product if "One row per SKU" is off).

## `maxItemsPerStore` (type: `integer`):

Cap per store, so one big store doesn't use the whole budget in multi-store runs. `0` = no per-store cap.

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

Order of search and category results (ignored once a large category is split by price range).

## `oneRowPerSku` (type: `boolean`):

On: every variant (size, color, pack) is its own row with its own EAN, price and stock. Off: one row per product (its first available SKU).

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

Drop SKUs that are out of stock or have no active offer.

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

Add the product's specification table (as an object) and its plain-text description. No extra requests, but rows get larger.

## `salesChannel` (type: `string`):

VTEX trade policy id (`sc` parameter). Leave empty to get the prices the public website shows.

## `autoResidentialProxy` (type: `boolean`):

If a store answers 403/anti-bot to the default IPs, retry that store through Apify RESIDENTIAL proxy in the store's country.

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

Most VTEX stores answer plain requests, so no proxy is used by default. The actor switches a store to residential proxy by itself if it gets blocked (see the option above).

## Actor input object example

```json
{
  "domains": [
    "www.plazavea.com.pe"
  ],
  "mode": "search",
  "searchTerms": [
    "leche"
  ],
  "maxItems": 50,
  "maxItemsPerStore": 0,
  "sort": "relevance",
  "oneRowPerSku": true,
  "onlyAvailable": false,
  "includeDetails": false,
  "autoResidentialProxy": true,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

All products collected during the run

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

Per-store detection result, endpoint used, item counts and 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 = {
    "domains": [
        "www.plazavea.com.pe"
    ],
    "searchTerms": [
        "leche"
    ],
    "maxItems": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("fabrikit/vtex-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 = {
    "domains": ["www.plazavea.com.pe"],
    "searchTerms": ["leche"],
    "maxItems": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("fabrikit/vtex-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 '{
  "domains": [
    "www.plazavea.com.pe"
  ],
  "searchTerms": [
    "leche"
  ],
  "maxItems": 50
}' |
apify call fabrikit/vtex-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,fabrikit/vtex-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/nc8BjfgIZwo4W0lVl/builds/6j7vPfw2h84iBJnUs/openapi.json
