# Plaza Vea Peru Grocery Price Scraper (`scrapers_lat/plazavea-scraper`) Actor

Scrape Plaza Vea product prices from Peru's largest supermarket catalog. Extract name, brand, price and list price in soles (PEN), EAN barcode, stock, seller and category by keyword or category. Export to JSON, CSV or Excel.

- **URL**: https://apify.com/scrapers_lat/plazavea-scraper.md
- **Developed by:** [Scrapers Lat](https://apify.com/scrapers_lat) (community)
- **Categories:** E-commerce, Automation, Business
- **Features:** Limited permissions
- **Stats:** 7 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $6.15 / 1,000 results

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

[![Plaza Vea Scraper](https://scrapers.lat/banners/plazavea-scraper.png)](https://console.apify.com/actors/bJo2B3e0OX6EUvcpc/input)

## Plaza Vea Scraper

The most complete Plaza Vea scraper available. It returns every field the Plaza Vea (VTEX) catalog exposes per product offer, including price, list price, EAN, stock, installment plans, promo teasers, product clusters and full specifications, and gives you search, category and sort filters to target exactly the products you need.

Here is one real result, with every field the actor returns (long `installmentsTable`, `productClusters` and the HTML in `specifications` trimmed for readability; the actor returns the full values):

```json
{
  "name": "Arroz Extra COSTEÑO Bolsa 5Kg",
  "brand": "COSTEÑO",
  "category": "Abarrotes > Arroz > Arroz Extra",
  "categories": ["Abarrotes > Arroz > Arroz Extra", "Abarrotes > Arroz", "Abarrotes"],
  "productId": "836",
  "sku": "565",
  "ean": "7755139246890",
  "referenceId": "641425",
  "productReference": "641425",
  "price": 21.9,
  "listPrice": 25.9,
  "priceWithoutDiscount": 25.9,
  "sellingPrice": 21.9,
  "currency": "PEN",
  "availableQuantity": 498,
  "isAvailable": true,
  "seller": "Plaza Vea",
  "measurementUnit": "un",
  "unitMultiplier": 1,
  "rewardValue": 0,
  "tax": 0,
  "releaseDate": "2015-10-19T00:00:00Z",
  "priceValidUntil": "3000-01-02T05:00:00Z",
  "promoTeasers": ["Promo Oh-Pay", "TARJETA OH - PVEA"],
  "installmentsTable": [{"number": 1, "value": 21.9, "interestRate": 0, "total": 21.9, "paymentName": "Safetypay à vista"}]
}
```

The example above shows the first 25 of 33 fields.

### What it does

The actor queries the Plaza Vea (Peru) VTEX catalog by search term, department category or an advanced start URL, paginates the results, and writes one normalized record per product offer to the run's dataset. Each available SKU and seller is one record. Prices, list prices, discounts, stock, EAN, installment plans, promo teasers, product clusters and the full specification block are all captured. Missing source values are returned as `null`, never invented.

### Quickstart

Open the actor, paste this into the input, and press Run. It returns up to 10 products matching `arroz` (rice).

```json
{
  "maxProducts": 10,
  "searchTerm": "arroz",
  "categoryId": "",
  "sortOrder": ""
}
```

### Billing and limits

- **Pay per result.** You are charged per product offer returned (`result` event). See the [pricing tab](https://apify.com/scrapers_lat/plazavea-scraper/pricing) for the current per-result price.
- **No charge on failure.** If a run errors, the actor writes an item with a populated `error` field and does not charge for it. Empty runs cost nothing.
- **Spend cap respected.** Set `maxTotalChargeUsd` on the run; once reached, the actor stops emitting and charging further billable results.
- **Free Apify plans** are capped at 10 products per run. Upgrade for higher `maxProducts`.

### FAQ and troubleshooting

**A run returned 0 records. Why?**
The search term or category matched nothing, or the start URL had no results. Try a broader term, or clear `categoryId`. Zero-result runs are not charged.

**How do I browse a whole department?**
Leave `searchTerm` empty and set `categoryId` to the department you want, for example `814` for Meat, Poultry and Fish. Combine both to search within a department.

**Can I control the exact catalog query?**
Yes. Paste a full VTEX catalog search URL into `startUrl`. Its query parameters (`ft`, `fq`, `O`) are used as-is and take precedence.

**Is this an official Plaza Vea tool?**
No. This actor is independent and has no affiliation with Plaza Vea or Intercorp. It reads only data that is publicly available on the Plaza Vea catalog.

# Actor input Schema

## `maxProducts` (type: `integer`):

Maximum number of product offers to collect. Each available SKU and seller is one record. Optional.

## `searchTerm` (type: `string`):

Full-text query to search the Plaza Vea catalog (e.g. "arroz", "leche gloria", "televisor"). Maps to the VTEX ft parameter. Leave empty to use a Category or Start URL instead.

## `categoryId` (type: `string`):

Restrict results to one Plaza Vea department. Maps to the VTEX fq=C: filter. Combine with a Search Term to search within a department.

## `startUrl` (type: `string`):

Advanced. A full VTEX catalog search URL whose query string (ft, fq, O, etc.) is used as-is, e.g. https://www.plazavea.com.pe/api/catalog_system/pub/products/search?ft=cerveza\&O=OrderByPriceASC . When set, its parameters take precedence.

## `sortOrder` (type: `string`):

Order in which the catalog returns products. Maps to the VTEX O parameter.

## Actor input object example

```json
{
  "maxProducts": 10,
  "searchTerm": "arroz",
  "categoryId": "",
  "sortOrder": ""
}
```

# Actor output Schema

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

No description

# 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 = {
    "maxProducts": 10,
    "searchTerm": "arroz"
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapers_lat/plazavea-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 = {
    "maxProducts": 10,
    "searchTerm": "arroz",
}

# Run the Actor and wait for it to finish
run = client.actor("scrapers_lat/plazavea-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 '{
  "maxProducts": 10,
  "searchTerm": "arroz"
}' |
apify call scrapers_lat/plazavea-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,scrapers_lat/plazavea-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/bJo2B3e0OX6EUvcpc/builds/d4xyJ3SFnQL8dRzhX/openapi.json
