# Bodega Aurrera Scraper - $2.00 / 1000 Products (`scrapeunblocker/bodega-aurrera-scraper`) Actor

Scrape Bodega Aurrera (Walmart de Mexico) groceries: search results or product pages with price in pesos, promotions and savings, availability, seller, rating, UPC, specifications, ingredients and images. $2.00 per 1000 products.

- **URL**: https://apify.com/scrapeunblocker/bodega-aurrera-scraper.md
- **Developed by:** [Scrapeunblocker](https://apify.com/scrapeunblocker) (community)
- **Features:** Limited permissions
- **Stats:** 3 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 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.

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

## Bodega Aurrera Scraper

Scrape **Bodega Aurrera** (bodegaaurrera.com.mx), Walmart de Mexico's discount supermarket, as clean JSON. Get **search results** or **product pages**: every product comes with the price in pesos, the **crossed-out price and savings** on a promotion, unit price, **rating and review count**, availability, seller (Bodega Aurrera or a marketplace seller), department and category path, badges, pickup / delivery labels and the image. Product pages add the **UPC**, order limit, rating breakdown, descriptions, **specifications**, **ingredients** and all images.

### Features

- **Search mode** - products for each search term, about 44 per results page, up to 132 per term, by relevance or price.
- **Product mode** - one product page per input (`products`: item id or `/ip/` link).
- **Promotions** - `wasPrice` and `savings` when a product is on sale.
- **Many inputs per run** - search terms or products in parallel.

### Use cases

- **Grocery price tracking in Mexico** - shelf prices and promotions for a basket of products.
- **Brand and assortment research** - which brands and sellers rank for a category keyword.
- **Product data enrichment** - UPCs, specifications, ingredients and images for a list of items.

### Input

| Field | Type | Default | Description |
|-------|------|---------|-------------|
| `mode` | string | `search` | `search` or `product`. |
| `queries` | array | `leche` | Search terms or Bodega Aurrera search links (search mode). |
| `products` | array | - | Item ids (`00750649502153`) or product links (product mode). |
| `sort` | string | `relevance` | `relevance`, `price_low`, `price_high`. |
| `maxResults` | integer | `44` | Products per search term (1-132). |
| `concurrency` | integer | `2` | Inputs processed at the same time (1-3). |

#### Example input

```json
{
  "mode": "search",
  "queries": ["detergente", "pañales"],
  "sort": "price_low",
  "maxResults": 44
}
```

### Output

One dataset item per product, with the input it came from. A search item:

```json
{
  "mode": "search",
  "input": "leche",
  "position": 2,
  "productId": "00750102054066",
  "name": "Producto Lácteo Combinado Nutri Entero Lacti-Pro Max 1 l",
  "brand": "Nutri",
  "url": "https://www.bodegaaurrera.com.mx/ip/Producto-Lacteo-Combinado-Nutri-Entero-Lacti-Pro-Max-1-l/00750102054066",
  "price": 19,
  "wasPrice": 27,
  "savings": 8.0,
  "currency": "MXN",
  "rating": 3.6,
  "reviewCount": 12,
  "availability": "IN_STOCK",
  "inStock": true,
  "seller": "Bodega Aurrera",
  "department": "Lácteos",
  "category": ["Lácteos", "Leche", "Leche Entera"],
  "badges": ["Rebaja"],
  "fulfillment": ["Recoge sin costo hoy"],
  "sponsored": false,
  "image": "https://i5-mx.walmartimages.com/asr/bd6ce6ac-9f7f-4ff4-b1bd-977ff913c964.ca18774ddd9f4af6a4d8361923980334.jpeg"
}
```

A product-mode item adds `upc`, `installments`, `orderLimit`, `ratingBreakdown`, `shortDescription`, `description`, `ingredients`, `specifications` (name / value), `fulfillmentOptions`, `store` and `images`.

Per search term, the `LISTINGS` record in the key-value store keeps the store the prices are for (`storeId`), `totalResults`, pages fetched and products collected.

### Pricing

**$2.00 per 1000 products** (pay per result). A search term or product that returns nothing (no match, an unknown product) is listed in the `ERRORS` record of the key-value store and is not charged.

### Notes

- Prices and availability are those of the store Bodega Aurrera assigns a new visitor; a store or postal code cannot be chosen.
- A search page or product usually takes a few seconds; a page that has to be rendered in a browser takes up to a minute.

Powered by [ScrapeUnblocker](https://www.scrapeunblocker.com).

# Actor input Schema

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

Search: products for each search term, about 44 per results page, up to Max products. Product: one product page each, with UPC, descriptions, specifications, ingredients and images.

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

Used when What to scrape = Search. What to search, e.g. leche, arroz, detergente. A Bodega Aurrera search link also works. One per line.

## `products` (type: `array`):

Used when What to scrape = Product. Bodega Aurrera item ids (00750649502153) or product links (https://www.bodegaaurrera.com.mx/ip/leche-great-value-entera-1-l/00750649502153). One per line.

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

Search mode: the order of the results.

## `maxResults` (type: `integer`):

Upper limit of products for each search term (1-132; about 44 per page).

## `concurrency` (type: `integer`):

How many search terms or products to process at the same time (1-3).

## Actor input object example

```json
{
  "mode": "search",
  "queries": [
    "leche"
  ],
  "sort": "relevance",
  "maxResults": 10,
  "concurrency": 2
}
```

# Actor output Schema

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

One item per product with the input it came from and, in search mode, its position

## `listings` (type: `string`):

Per search term: the store the prices are for, total results, pages fetched and products collected

## `errors` (type: `string`):

Inputs that returned no products (no match, unknown product, blocked), with the reason (not billed)

# 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"
    ],
    "maxResults": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapeunblocker/bodega-aurrera-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 = {
    "queries": ["leche"],
    "maxResults": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("scrapeunblocker/bodega-aurrera-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 '{
  "queries": [
    "leche"
  ],
  "maxResults": 10
}' |
apify call scrapeunblocker/bodega-aurrera-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,scrapeunblocker/bodega-aurrera-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/brOgpRN7f4cjjMhBq/builds/maDSAl3j2u0q3UTks/openapi.json
