# Walmart Central America (`datasaurus/walmart-central-america`) Actor

Collect product listings from Walmart Costa Rica, Guatemala, El Salvador, Honduras and Nicaragua.

- **URL**: https://apify.com/datasaurus/walmart-central-america.md
- **Developed by:** [datasaurus](https://apify.com/datasaurus) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 91.3% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 product listings

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

## Walmart Central America Products Scraper

Collect and compare product assortment, prices, and availability across Walmart's Costa Rica, Guatemala, El Salvador, Honduras, and Nicaragua online stores. Use keyword searches for product research and price monitoring, or supply category and product URLs to focus collection.

### Input

- `country`: `CR`, `GT`, `SV`, `HN`, or `NI`. Selects the storefront used for `searchQueries`; defaults to Costa Rica (`CR`). Each `startUrl` uses its own domain to select a country.
- `searchQueries`: Search terms. Each term is run as a separate search in addition to `startUrls`.
- `startUrls`: Storefront search, category, or product URLs from one of the five supported countries. URL filters and sort order are passed to the catalog query where the storefront supplies them.
- `maxResults`: Maximum unique products delivered per search or category source; defaults to 10, minimum 1, maximum 10000. A direct product URL returns at most one product. Products already delivered from another source are not emitted twice.

Provide at least one search query or URL. When a run includes several sources, `maxResults` applies separately to each source.
Each run accepts up to 50 search queries and 100 start URLs. Inputs are additive, and duplicate products are emitted only once across the run.

Supported URL types are Walmart search pages (`/search?q=...` or `/search?ft=...`), category pages, and product pages ending in `/p` or `/p/{productId}`. Supported domains are `walmart.co.cr`, `walmart.com.gt`, `walmart.com.sv`, `walmart.com.hn`, and `walmart.com.ni`; country is inferred from each URL. Keyword searches use the selected `country`. Search queries and URLs can be mixed in one run.

Input is validated before any catalog request. If the input is empty or includes an unsupported URL, the run completes without scraping and records.

Search in a selected country:

```json
{
  "country": "CR",
  "searchQueries": ["arroz"],
  "maxResults": 10
}
```

Use a category or product URL directly:

```json
{
  "startUrls": [
    {"url": "https://www.walmart.co.cr/abarrotes/arroz-frijol-y-semillas/arroz"},
    {"url": "https://www.walmart.co.cr/arroz-indiana-99-grano-entero-4000-g/p"}
  ],
  "maxResults": 10
}
```

Country codes and storefronts:

| Code | Storefront | Currency |
| --- | --- | --- |
| CR | [walmart.co.cr](https://www.walmart.co.cr/) | CRC |
| GT | [walmart.com.gt](https://www.walmart.com.gt/) | GTQ |
| SV | [walmart.com.sv](https://www.walmart.com.sv/) | USD |
| HN | [walmart.com.hn](https://www.walmart.com.hn/) | HNL |
| NI | [walmart.com.ni](https://www.walmart.com.ni/) | NIO |

### Output

Each dataset row retains useful VTEX catalog fields and adds normalized product fields. Common fields include `productId`, `title`, `normalizedBrand`, `currentPrice`, `wasPrice`, `savings`, `priceWithoutDiscount`, `currency`, `inStock`, `availableQuantity`, `seller`, `normalizedUpc`, `productReferenceCode`, `imageUrl`, `imageUrls`, `marketplace`, `country`, `productUrl`, and `sourceUrl`.

`variants` contains SKU IDs, UPC/EAN, reference IDs, unit information, and images. `offers` contains seller and SKU identifiers, current and prior prices, availability, quantity, price validity, taxes, promotions, rewards, and installment options. `variantPriceMin` and `variantPriceMax` summarize in stock prices from the default seller offers. `productDetails` contains the available description and category paths and IDs. Catalog search results do not provide customer review or rating data; `ratingValue` and `reviewCount` are null. Signed checkout price tokens and internal catalog allowlists are omitted from output.

Here is a more detailed excerpt from a saved Costa Rica category run. It shows the normalized product fields alongside nested variant and seller-offer data (prices and stock can change):

```json
{
  "productId": "4015752",
  "productName": "Arroz Indiana 99% grano entero - 4 kg",
  "title": "Arroz Indiana 99% grano entero - 4 kg",
  "productTitle": "Arroz Indiana 99% grano entero - 4000 g",
  "normalizedBrand": "INDIANA",
  "brand": "INDIANA",
  "brandId": 70678855,
  "productReference": "000000000070436058-UN",
  "categoryId": "495",
  "description": "Arroz entero Indiana 99% grano entero seleccionado de alta calidad, ideal para acompañar tus comidas. Su textura y sabor convierten cada plato en una experiencia culinaria inolvidable. Presentación de 4000 g.",
  "categories": [
    "/Abarrotes/Arroz, Frijol y Semillas/Arroz/",
    "/Abarrotes/Arroz, Frijol y Semillas/",
    "/Abarrotes/"
  ],
  "currentPrice": 2960.0,
  "wasPrice": null,
  "priceWithoutDiscount": 2960.0,
  "fullSellingPrice": 2960.0,
  "currency": "CRC",
  "inStock": true,
  "availabilityStatus": "IN_STOCK",
  "availableQuantity": 99999,
  "ratingValue": null,
  "reviewCount": null,
  "seller": "Walmart Cr",
  "normalizedUpc": "7441074152395",
  "ean": "7441074152395",
  "measurementUnit": "un",
  "unitMultiplier": 1.0,
  "productReferenceCode": "000000000070436058-UN",
  "imageUrl": "https://walmartcr.vteximg.com.br/arquivos/ids/575010/Arroz-Indiana-99-Grano-Entero-4000gr-1-32951.jpg?v=638469564207500000",
  "country": "Costa Rica",
  "marketplace": "CR",
  "variantCount": 1,
  "offerCount": 1,
  "variantPriceSource": "catalogOffers",
  "variantPriceMin": 2960.0,
  "variantPriceMax": 2960.0,
  "productUrl": "https://www.walmart.co.cr/arroz-indiana-99-grano-entero-4000-g/p",
  "sourceUrl": "https://www.walmart.co.cr/abarrotes/arroz-frijol-y-semillas/arroz",
  "variants": [
    {
      "skuId": "231",
      "title": "Arroz Indiana 99% grano entero - 4 kg",
      "ean": "7441074152395",
      "referenceId": [
        {
          "Key": "RefId",
          "Value": "000000000070436058-UN"
        }
      ],
      "measurementUnit": "un",
      "unitMultiplier": 1.0,
      "isKit": false,
      "imageUrls": [
        "https://walmartcr.vteximg.com.br/arquivos/ids/575010/Arroz-Indiana-99-Grano-Entero-4000gr-1-32951.jpg?v=638469564207500000"
      ]
    }
  ],
  "offers": [
    {
      "skuId": "231",
      "sellerId": "1",
      "seller": "Walmart Cr",
      "sellerDefault": true,
      "currentPrice": 2960.0,
      "wasPrice": 2960.0,
      "priceWithoutDiscount": 2960.0,
      "fullSellingPrice": 2960.0,
      "currency": "CRC",
      "inStock": true,
      "availableQuantity": 99999,
      "priceValidUntil": "2027-11-01T22:45:51Z",
      "tax": 0.0,
      "rewardValue": 0.0,
      "promotionHighlights": [],
      "promotionTeasers": [],
      "installments": [
        {
          "Value": 2960.0,
          "InterestRate": 0.0,
          "TotalValuePlusInterestRate": 2960.0,
          "NumberOfInstallments": 1,
          "PaymentSystemName": "Visa",
          "Name": "Visa à vista"
        }
      ]
    }
  ],
  "productDetails": {
    "description": "Arroz entero Indiana 99% grano entero seleccionado de alta calidad, ideal para acompañar tus comidas. Su textura y sabor convierten cada plato en una experiencia culinaria inolvidable. Presentación de 4000 g.",
    "categoryPaths": [
      "/Abarrotes/Arroz, Frijol y Semillas/Arroz/",
      "/Abarrotes/Arroz, Frijol y Semillas/",
      "/Abarrotes/"
    ],
    "categoryIds": ["/11/92/495/", "/11/92/", "/11/"]
  },
  "Fabricante": ["Walmart México y Centroamerica"],
  "Medida de peso": ["4000 g"],
  "País de Origen - Ensamblaje": ["Costa Rica"],
  "Producto sujeto a expiración?": ["Si"],
  "Tamaño (Gramaje, Volumen)": ["4 kg"],
  "Tipo de envase o empaque": ["Empaque plástico"],
  "Artículo Vegano": ["Si"],
  "allSpecificationsGroups": ["Abarrotes"],
  "scrapedAt": "2026-11-01T22:48:04.555462Z"
}
```

This excerpt selects representative values from the saved row; full `imageUrls`, variant image lists, and installment choices may contain additional entries. The row also retains source catalog fields such as `items`, brand and cluster metadata, and the original specification fields shown above.

The dataset provides **Products**, **Prices and variants**, and **Catalog details** views over the same product rows. Seller offers and SKU variants remain nested in each row. `RUN_SUMMARY` in the key-value store reports per-source counts, page counts, status and stop reason, plus request counts, response encodings, downloaded and decoded bytes, session reuse/replacement, and proxy-route attempts. Its run-level status is `SUCCEEDED`, `PARTIAL` (a source failed or exhausted its bounded page budget), `CHARGE_LIMIT`, `ABORTED`, or `INPUT_ERROR`. A source stopped by `maxResults` is reported as `CAPPED` and is an expected completion.

Source statuses include `COMPLETE` (source exhausted), `CAPPED` (the per-source product limit was reached), `DEDUPLICATED` (all found products had already been emitted), `PARTIAL` (a recoverable request failure or bounded page budget stopped collection), `NOT_FOUND` (a direct product URL returned no product), `CHARGE_LIMIT` (the run's event spending limit stopped collection), and `ABORTED` (the run was stopped while collecting that source). Run-level `INPUT_ERROR` means input validation failed before catalog requests. A search with no matches completes with zero records and is shown as `COMPLETE`.

Prices and stock depend on each storefront's catalog and may not represent inventory for a particular store or delivery location. `availableQuantity` is the storefront's reported quantity and may be a capped or placeholder value. Review product URLs and the run summary before using results for a specific locality. Category URLs are matched to the storefront's current VTEX category tree; unknown category paths are reported as partial instead of silently returning an unrelated product set.

### Pricing

This Actor is available as a public pay-per-event Actor. Its live event rates are:

- **Actor start:** $0.005 per run at 1 GB memory.
- **Search or category product:** $0.001 per delivered product row.
- **Direct product URL:** $0.003 per delivered product row.

For example, one search returning 100 new rows incurs $0.105 in event charges ($0.005 start plus $0.10 for rows). A direct product URL incurs $0.008 in event charges when it returns one product.

### AI agents and integrations

Connect chat clients such as **Claude and ChatGPT** to Apify through the [Apify MCP server](https://docs.apify.com/integrations/mcp) to discover and run eligible Actors from a conversation. Walmart product data can also be used in agents built with frameworks such as OpenAI Agents SDK and LangChain; see Apify's [AI integration guides](https://docs.apify.com/integrations/ai).

Structured records let agents work with product names, brands, prices, currencies, availability, sellers, and country storefronts.

Example requests you can ask Claude:

> Search the Walmart Costa Rica store for rice and return product names, prices in CRC, and stock status.

> Compare these products across the supported Walmart Central America countries, showing each country's price, currency, seller, and product URL.

#### Official integration guides

- [AI integrations](https://docs.apify.com/integrations/ai) — connect Apify data collection with AI applications and agent frameworks.
- [Apify MCP server](https://docs.apify.com/integrations/mcp) — setup, authentication and Actor eligibility requirements.
- [n8n integration](https://docs.apify.com/integrations/n8n) — run Actors and retrieve their results in n8n workflows.

# Actor input Schema

## `country` (type: `string`):

Country used to create search URLs from searchQueries. Each startUrl uses the country identified by its Walmart domain.

## `searchQueries` (type: `array`):

Search terms to query separately on the selected country storefront, up to 50 queries. Search queries and startUrls are additive.

## `startUrls` (type: `array`):

Add up to 100 Walmart search, category or product URLs from Costa Rica, Guatemala, El Salvador, Honduras or Nicaragua. Results are additive with searchQueries; a direct product URL returns at most one product.

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

Maximum unique products collected from each search or category URL. A product URL returns at most one product. Must be at least 1.

## Actor input object example

```json
{
  "country": "CR",
  "searchQueries": [],
  "startUrls": [
    {
      "url": "https://www.walmart.co.cr/search?q=arroz"
    }
  ],
  "maxResults": 10
}
```

# Actor output Schema

## `dataset` (type: `string`):

No description

## `summary` (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 = {
    "startUrls": [
        {
            "url": "https://www.walmart.co.cr/search?q=arroz"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("datasaurus/walmart-central-america").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 = { "startUrls": [{ "url": "https://www.walmart.co.cr/search?q=arroz" }] }

# Run the Actor and wait for it to finish
run = client.actor("datasaurus/walmart-central-america").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 '{
  "startUrls": [
    {
      "url": "https://www.walmart.co.cr/search?q=arroz"
    }
  ]
}' |
apify call datasaurus/walmart-central-america --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,datasaurus/walmart-central-america"
        }
    }
}
```

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/1n0pydR9xNaI77WuI/builds/lAggu0CJhfzSSe0UU/openapi.json
