# Walmart Product Search Scraper (`alpha-scraper/walmart-product-search-scraper`) Actor

\[ 1k / 1$ ] Walmart product scraper: find products by keyword through Walmart's robots-allowed product sitemaps, then enrich each hit from its product page with price, availability, seller, specs, variants, UPC, ratings and reviews. Optional USD price filter.

- **URL**: https://apify.com/alpha-scraper/walmart-product-search-scraper.md
- **Developed by:** [Alpha Scraper](https://apify.com/alpha-scraper) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event + usage

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
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

### Walmart Product Search Scraper

Walmart Product Search Scraper is an Apify Actor that collects e-commerce data from Walmart and returns it as clean, structured records.
Optional USD price filter.
Instead of copying Walmart pages by hand, you enter your keywords, choose a few options, and receive one JSON record for every product listing that Walmart returns.

**Who is it for?** price-monitoring and repricing teams; e-commerce analysts and category managers; dropshipping and marketplace sellers.
**What problem does it solve?** Collecting online information by hand is slow and hard to repeat. Walmart Product Search Scraper returns the same documented Walmart fields every time, ready for spreadsheets, databases and dashboards.
**What data do you get?** 100 documented Walmart fields per record, exported as JSON, CSV, Excel, XML, HTML or RSS.
**What is the easiest way to start?** Open the Actor on Apify, keep the pre-filled input, lower `maxItems`, and press Start.

> **📌 Walmart Product Search Scraper at a glance**
>
> - **Platform:** Walmart
> - **Category:** e-commerce
> - **Input fields:** 8 · **Output fields:** 100
> - **Listed price:** $1.00 per 1,000 results

### ✨ Walmart Product Search Scraper Key Features

Walmart Product Search Scraper turns Walmart product listings into structured data with a short list of inputs and a documented output.
Here is what Walmart Product Search Scraper offers:

- **Keyword input:** the Actor accepts one or many entries in `queries` and processes each entry on its own.
- **Result limit:** `maxItems` caps the Walmart records per run, so test runs of Walmart Product Search Scraper stay small and costs predictable.
- **Structured output:** 100 documented Walmart fields in a consistent JSON structure.
- **Export anywhere:** download the collected data as JSON, CSV, Excel, XML, HTML or RSS, or read the dataset through the Apify API.
- **Run summary:** a `RUN_SUMMARY` record and the status message report counts and the first problem of every run of Walmart Product Search Scraper.
- **Max Sitemap Files To Scan** (`maxShards`): Raise it for rare keywords, lower it for faster runs.
- **Minimum Price (USD)** (`minPrice`): Only products priced at least this many US dollars.
- **Maximum Price (USD)** (`maxPrice`): Only products priced at most this many US dollars.

> **💡 Why use the Actor?**
>
> - You work with documented Walmart fields instead of raw pages.
> - You can repeat the same Walmart job on a schedule and compare results over time.
> - You can start small with Walmart Product Search Scraper, check the output, and scale up when you are happy.

### 🔍 What Data Can Walmart Product Search Scraper Extract?

Each record describes one product listing found on Walmart.
The schema documents 100 fields: 63 core fields that appear in almost every record, 12 common fields and 25 conditional fields that appear only when Walmart provides the value or the matching option is on.

- `name`: Product name
- `brand`: Brand
- `usItemId`: Item ID
- `productId`: Product ID
- `url`: Product URL
- `canonicalUrl`: Canonical URL
- `slugTitle`: Title from address
- `imageUrl`: Main image

The Output section below lists more Walmart fields with their types and shows a real sample record collected by the Actor.

### ⚙️ How Walmart Product Search Scraper Works

The workflow of Walmart Product Search Scraper is intentionally simple, and Walmart Product Search Scraper needs no code:

1. You provide a JSON input or fill the Console form; missing options use their documented defaults.
2. For every entry in `queries`, the Actor requests results from the source site, page after page, until it has `maxItems` records or Walmart has no more matches.
3. With `fetchDetails` on, Walmart Product Search Scraper also opens each record's detail page and adds the extra fields.
4. Each record is cleaned and mapped to the documented fields; values that Walmart does not provide are left out instead of guessed.
5. Records are saved to the default dataset in small batches, and a `RUN_SUMMARY` record closes the run of Walmart Product Search Scraper.

### 🚀 How to Use Walmart Product Search Scraper

You can run the Actor in a few minutes. Follow these steps in the Apify Console:

1. Open the page of Walmart Product Search Scraper on Apify and select the **Input** tab.
2. Enter your Walmart keywords in **Product Keywords** (`queries`).
3. Set **Max Items Per Keyword** (`maxItems`) to a small number such as 20 for the first run.
4. Press **Start**, then open the **Output** tab to browse the Walmart dataset and use **Export** to download it.
5. Save the input as a **Task** and add a **Schedule** to repeat Walmart Product Search Scraper runs.

A quick start input for the Actor:

```json
{
  "queries": ["laptop"],
  "maxItems": 20
}
```

With this input, Walmart Product Search Scraper searches the source site for the keywords shown and returns at most `maxItems` records.

### 🛒 How to Scrape Walmart product listings with Walmart Product Search Scraper

To scrape Walmart product listings, add your keywords to `queries`, set `maxItems`, and start Walmart Product Search Scraper. Each keyword is processed separately, so ten keywords produce ten Walmart searches that share one dataset.

#### 📁 Can You Export Walmart Data to CSV, Excel or JSON?

Yes. Every run of the Actor stores its Walmart records in a dataset that you can download as JSON, CSV, Excel, XML, HTML or RSS from the Console or through the API.

#### ⏰ Can You Schedule Walmart Product Search Scraper to Monitor Walmart?

Yes. Save your input as a Task, attach a Schedule, and compare the Walmart dataset of every run.

### 📥 Walmart Product Search Scraper Input

This table lists every input field of Walmart Product Search Scraper, taken from the Actor's input schema. The form is pre-filled with a working example.

#### 🧾 Walmart Product Search Scraper Input Fields

|Field|Type|Default|Purpose|
|---|---|---|---|
|`queries`|array|\["laptop"]|One or more product keywords (for example 'laptop' or 'air fryer').|
|`maxItems`|integer|15|Maximum number of products to return per keyword.|
|`maxShards`|integer|3|Raise it for rare keywords, lower it for faster runs.|
|`minPrice`|number|-|Only products priced at least this many US dollars.|
|`maxPrice`|number|-|Only products priced at most this many US dollars.|
|`fetchDetails`|boolean|true|Each record's 'detailStatus' tells you what happened.|
|`detailLimit`|integer|0|Only the first N returned products get the detail step; the remaining ones keep their search data…|
|`maxReviews`|integer|10|Maximum number of customer reviews (the first page Walmart shows on the product page) copied per…|

#### 📝 Walmart Product Search Scraper Input Examples

These are valid inputs for Walmart Product Search Scraper. Copy one into the JSON editor of the input form, or send it through the API.

#### 🧪 Example 1: Minimal input

The smallest useful input: your Walmart keywords and a result limit. Every other option keeps its default.

```json
{
  "queries": ["laptop"],
  "maxItems": 20
}
```

#### 🧪 Example 2: Typical input with the documented defaults

Every option that has a documented default, shown with that default value so you can see the full shape of the input.

```json
{
  "queries": ["laptop"],
  "maxItems": 20,
  "maxShards": 3,
  "fetchDetails": true,
  "detailLimit": 0,
  "maxReviews": 10
}
```

#### 🧪 Example 3: Fetch Product Details set to false

Changes `fetchDetails` and keeps the other defaults.

```json
{
  "queries": ["laptop"],
  "maxItems": 20,
  "maxShards": 3,
  "fetchDetails": false,
  "detailLimit": 0,
  "maxReviews": 10
}
```

#### 🧪 Example 4: Max Products To Enrich set to 2

Changes `detailLimit` and keeps the other defaults.

```json
{
  "queries": ["laptop"],
  "maxItems": 20,
  "maxShards": 3,
  "fetchDetails": true,
  "detailLimit": 2,
  "maxReviews": 10
}
```

### 📤 Walmart Product Search Scraper Output

The Actor stores one record per product listing in the default dataset of the run. The table shows the most common of the 100 documented source fields.

#### 📋 Walmart Product Search Scraper Output Fields

|Field|Type|Description|
|---|---|---|
|`name`|string|Product name from the product page.|
|`brand`|string|Brand name listed on the product page; it can be a generic placeholder for…|
|`usItemId`|string|Walmart's numeric item ID taken from the product address, stored as text.|
|`productId`|string|Walmart's alphanumeric product ID of the item, taken from the product page.|
|`url`|string|Product URL|
|`canonicalUrl`|string|Official address of the product page as declared on the page.|
|`slugTitle`|string|Product title rebuilt from the words in the product address.|
|`imageUrl`|string|Address of the first product image.|
|`availability`|string|Availability code from the page, such as `IN_STOCK` or `OUT_OF_STOCK`.|
|`availabilityText`|string|Availability as displayed to shoppers, for example in stock or out of stock.|
|`isOutOfStock`|boolean|True when the availability code says the item is out of stock.|
|`showAddToCart`|boolean|True when the page offers an Add to cart button for the item.|

#### 🧬 Walmart Product Search Scraper Sample Output

This record comes from a real run of Walmart Product Search Scraper. Long texts and lists are shortened, only common fields are shown, and contact details, personal names, usernames and profile links are hidden.

```json
{
  "usItemId": "19675571534",
  "url": "https://www.walmart.com/ip/FOR-Cpu-Cooling-Fan-For-e-hines-E732-E732G-E732Z-E732ZG-DC-Bru…",
  "slugTitle": "FOR Cpu Cooling Fan For e hines E732 E732G E732Z E732ZG DC Brushless Laptop Cooler Radiat…",
  "productId": "40HIJVT8IOC0",
  "name": "FOR Cpu Cooling Fan For e hines E732 E732G E732Z E732ZG DC Brushless Laptop Cooler Radiat…",
  "brand": "NOBRAND",
  "canonicalUrl": "https://www.walmart.com/ip/FOR-Cpu-Cooling-Fan-For-e-hines-E732-E732G-E732Z-E732ZG-DC-Bru…",
  "availability": "IN_STOCK",
  "availabilityText": "In stock",
  "isOutOfStock": false,
  "showAddToCart": true,
  "orderLimit": 100,
  "orderMinLimit": 1,
  "imageUrl": "https://i5.walmartimages.com/seo/FOR-Cpu-Cooling-Fan-For-e-hines-E732-E732G-E732Z-E732ZG-…"
}
```

**Sample record 2**

```json
{
  "usItemId": "13669209728",
  "url": "https://www.walmart.com/ip/USB-Type-C-to-USB-B-2-0-Printer-Cable-Scanner-Laptop-F7W2-D0O5…",
  "slugTitle": "USB Type C to USB B 2 0 Printer Cable Scanner Laptop F7W2 D0O5 U5E3",
  "productId": "33MCRRDPL7V4",
  "name": "USB Type-C to USB B 2.0 Printer Cable Scanner Laptop; F7W2 D0O5 U5E3",
  "brand": "UOYOTT",
  "canonicalUrl": "https://www.walmart.com/ip/USB-Type-C-to-USB-B-2-0-Printer-Cable-Scanner-Laptop-F7W2-D0O5…",
  "availability": "IN_STOCK",
  "availabilityText": "In stock",
  "isOutOfStock": false,
  "showAddToCart": true,
  "orderLimit": 499,
  "orderMinLimit": 1,
  "imageUrl": "https://i5.walmartimages.com/seo/USB-Type-C-to-USB-B-2-0-Printer-Cable-Scanner-Laptop-F7W…"
}
```

**Sample record 3**

```json
{
  "usItemId": "21316121774",
  "url": "https://www.walmart.com/ip/Laptop-Notebook-Charger-forAcer-Hipro-19V-3-42AAdapter-with-Po…",
  "slugTitle": "Laptop Notebook Charger forAcer Hipro 19V 3 42AAdapter with Power Cord HP A0652R3B",
  "productId": "1YUL6XIRCR41",
  "name": "Laptop Notebook Charger forAcer Hipro 19V 3.42AAdapter with Power Cord (HP-A0652R3B)",
  "brand": "K-Mains",
  "canonicalUrl": "https://www.walmart.com/ip/Laptop-Notebook-Charger-forAcer-Hipro-19V-3-42AAdapter-with-Po…",
  "availability": "IN_STOCK",
  "availabilityText": "In stock",
  "isOutOfStock": false,
  "showAddToCart": true,
  "orderLimit": 300,
  "orderMinLimit": 1,
  "imageUrl": "https://i5.walmartimages.com/seo/Laptop-Notebook-Charger-forAcer-Hipro-19V-3-42AAdapter-w…"
}
```

### 🎯 Walmart Product Search Scraper Use Cases

People use the Actor when they need repeatable, structured e-commerce data from Walmart. Typical applications:

- Monitor prices, discounts and stock signals for a keyword over time
- Compare assortments, brands and categories between competitors
- Build product feeds for comparison sites and internal dashboards
- Track new arrivals and best-selling items for merchandising decisions
- Collect ratings and review counts to judge product demand
- Feed BI tools and spreadsheets with structured catalogue data

Every one of these tasks starts from the same Walmart records that Walmart Product Search Scraper stores in the dataset.

### 💰 Walmart Product Search Scraper Pricing

The Actor description lists the price of Walmart Product Search Scraper as **$1.00 per 1,000 results**.
The table shows what that rate means for typical run sizes.

|Results|Cost at the listed rate|
|---|---|
|100|$0.10|
|1,000|$1.00|
|10,000|$10.00|
|100,000|$100.00|

- Check the **Pricing** tab on the Actor page for the current terms; your Apify plan and platform usage may also apply.
- Test with a small `maxItems` value before a large run.

### 💻 Run Walmart Product Search Scraper with the Apify API

You can start the Actor from code and read the Walmart records from the dataset.

#### 🌐 Run Walmart Product Search Scraper with cURL

```bash
curl -X POST "https://api.apify.com/v2/acts/ACTOR_ID/run-sync-get-dataset-items" \
  -H "Authorization: Bearer $APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"queries": ["laptop"], "maxItems": 20}'
```

### 🔗 Integrations and Automation

Walmart Product Search Scraper works with schedules, webhooks, the Apify API and many integrations.

#### 🔌 Connect the Actor to n8n

- Use the Apify node to run the Actor and read its Walmart dataset in an n8n workflow.
- Add a Split In Batches or Loop step to process the Walmart records one by one.
- Use an HTTP Request node with the collected dataset API if you prefer to control query parameters yourself.
- Once a run succeeds, the Walmart data is ready to use in n8n.

### 🧭 Example Workflows with Walmart Product Search Scraper

These workflows show how teams combine Walmart Product Search Scraper with schedules, storage and analysis tools.

#### 🧭 Competitor tracking

1. List the Walmart keywords that describe your competitors' offers.
2. Run Walmart Product Search Scraper on a schedule and store every Walmart dataset.
3. Load the datasets into one table with a run-date column.
4. Chart changes in the Walmart fields that matter to you.
5. Review the chart in a weekly meeting.

### 🛠️ Tips and Best Practices

Follow these tips to get clean data from the Actor faster:

- Start every new search with a small `maxItems` value so you can check the output and the cost before a big run.
- Change one input option at a time and compare the datasets; this makes it clear which option produced which effect.
- Save good inputs as Apify Tasks and give them descriptive names such as the keyword and the market.
- Use a schedule for monitoring jobs, and keep each run small so that Walmart results arrive quickly.
- Treat every field except the identifiers as optional in your downstream code.
- Keep the raw JSON of important runs; it is the most complete representation of each record.
- Review `maxShards` (Max Sitemap Files To Scan) before large runs: Raise it for rare keywords, lower it for faster runs.
- Review `minPrice` (Minimum Price (USD)) before large runs: Only products priced at least this many US dollars.

### 🗂️ Apify Platform Topics for Walmart Product Search Scraper

These notes cover Apify features that you meet while running Walmart Product Search Scraper.

#### 📌 Monitoring over time

- Run the same Task on a schedule and keep every collected dataset.
- Merge datasets with a `run_date` column and chart the Walmart fields that matter to you.
- Alert yourself when the number of Walmart records suddenly changes.

### ⚖️ Legal and Responsible Use

Walmart Product Search Scraper is meant for publicly available information, and you are responsible for how you use the Walmart data. This is general information, not legal advice.

- Read and follow the terms of service and the published crawler rules of Walmart before you run large jobs.
- Collect only the product listings and fields you need from the source site, and use them for a legitimate purpose.
- Treat names, handles and contact details as personal data where privacy laws such as GDPR or CCPA apply.
- Respect copyright and database rights when you republish Walmart content, and honour removal requests.

### ❓ Frequently Asked Questions about Walmart Product Search Scraper

Answers to common questions about the Actor and about collecting Walmart data.

#### ❓ How do I run Walmart Product Search Scraper?

Open the Actor page on Apify, fill in the input form, and press Start.
The same run can be started from the Apify API, the Apify CLI, a schedule, or an integration, using the identical JSON input shown in the Input section.
Walmart Product Search Scraper saves every record to the run's default dataset, where you can preview and download it.

#### ❓ Do I need an Apify account to use the Actor?

Yes. Walmart Product Search Scraper runs on the Apify platform, so you need an Apify account to start it from the Console or the API.
A free account is enough to try the Actor on a small input; check your plan for the monthly credits it includes.

#### ❓ Can I run the Actor through the API?

Yes. Every Apify Actor can be started with the Apify API or one of the official clients for JavaScript and Python.
The API section of this page shows a copy-paste example that sends the same JSON input as the Console form.

#### ❓ How do I schedule Walmart Product Search Scraper to run every day or every week?

Save your input as an Apify Task, then add a Schedule with a cron expression to that Task.
Each scheduled run creates a new dataset, so you can compare today's Walmart results with yesterday's.

#### ❓ Which formats can I export the results in?

Apify datasets can be downloaded as JSON, JSONL, CSV, Excel, XML, HTML table and RSS.
Nested lists and objects are kept intact in JSON; for CSV or Excel choose the Walmart fields you need or flatten nested fields in the export options.

#### ❓ Can I use Walmart Product Search Scraper to monitor my own listings or pages on Walmart?

Yes, as long as your search keywords or filters find them. Compare each run with the previous one to see changes.

#### ❓ Does the Actor need a Walmart account or password?

The input form lists every setting the Actor accepts, and there is no field for a Walmart username or password.
No field for a key, token or any other credential exists in the input.

#### ❓ What does `clean=true` do?

It leaves out empty records and hidden fields from the Walmart dataset items response.

### ⚡ Quick Answers about Walmart Product Search Scraper

Short answers and terms for Walmart Product Search Scraper users.

- **Does Walmart Product Search Scraper ask for my Walmart username or password?** No, it works with what Walmart shows publicly.
- **What does the Actor return?** Structured JSON records with the source fields documented in the Output section.
- **Can I skip records?** Yes, use `offset` in the Walmart dataset API.
- **How large can the Walmart dataset be?** As large as `maxItems` allows within your plan and run timeout.
- **Is there a free way to test it?** Yes, run a small input with a low `maxItems` value on your Apify plan credits.

### 🤝 Support

Need help with Walmart Product Search Scraper or want a new field? Use the **Issues** tab on the Actor page and include the run link and your input.

- contact me by email : alphascraper69@gmail.com

# Actor input Schema

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

One or more product keywords (for example 'laptop' or 'air fryer'). A product matches when ALL your words occur in its URL name (a word also matches its longer forms: laptop matches laptops). Every keyword is searched on its own and gets its own 'Max Items Per Keyword'.

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

Maximum number of products to return per keyword. Walmart's own search page is disallowed for robots, so the Actor matches your words against Walmart's public product sitemaps; it reads the next sitemap file only when the previous one is used up. When a price filter is set, only products that pass the filter count towards this limit.

## `maxShards` (type: `integer`):

How many of Walmart's product sitemap files are scanned for matches (each file is about 2.7 MB compressed and lists 50,000 product URLs). Raise it for rare keywords, lower it for faster runs. Products come back in sitemap order, not by relevance, and the sample is whatever those files contain.

## `minPrice` (type: `number`):

Only products priced at least this many US dollars. The price comes from the product page, so this filter needs 'Fetch Product Details' on; products without a price (details off, beyond 'Max Products To Enrich' or blocked) are dropped while a price filter is set. Leave empty for no minimum.

## `maxPrice` (type: `number`):

Only products priced at most this many US dollars. Needs 'Fetch Product Details' on (the price comes from the product page); products without a price are dropped while a price filter is set. Leave empty for no maximum.

## `fetchDetails` (type: `boolean`):

Open every product's own page (one request per product; every URL is checked against Walmart's robots.txt) to add the price (with was-price and unit price), availability, condition, seller, shipping promise, return policy, warranty, image gallery, specifications, descriptions, variants, category path, UPC, rating and rating breakdown and the first customer reviews. Without it you only get product URL, name taken from the URL and sitemap date, and no price. If Walmart serves its 'Robot or human?' challenge the Actor records it and stops fetching details for the run. Each record's 'detailStatus' tells you what happened.

## `detailLimit` (type: `integer`):

Only the first N returned products get the detail step; the remaining ones keep their search data only and 'detailStatus' says 'skipped: detailLimit=N'. Use 0 to enrich every returned item. Used only while 'Fetch Product Details' is on. Products beyond the limit have no price and are dropped when a price filter is set.

## `maxReviews` (type: `integer`):

Maximum number of customer reviews (the first page Walmart shows on the product page) copied per product. Use 0 for no reviews. Used only while 'Fetch Product Details' is on.

## Actor input object example

```json
{
  "queries": [
    "laptop"
  ],
  "maxItems": 15,
  "maxShards": 3,
  "fetchDetails": true,
  "detailLimit": 0,
  "maxReviews": 10
}
```

# Actor output Schema

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

Structured records extracted by Walmart Product Search Scraper and stored in the run's default dataset.

# 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": [
        "laptop"
    ],
    "maxItems": 15,
    "maxShards": 3
};

// Run the Actor and wait for it to finish
const run = await client.actor("alpha-scraper/walmart-product-search-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": ["laptop"],
    "maxItems": 15,
    "maxShards": 3,
}

# Run the Actor and wait for it to finish
run = client.actor("alpha-scraper/walmart-product-search-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": [
    "laptop"
  ],
  "maxItems": 15,
  "maxShards": 3
}' |
apify call alpha-scraper/walmart-product-search-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,alpha-scraper/walmart-product-search-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/UwM8Kb0VMJpATpJAd/builds/3VSCMlzQIjVI9cSES/openapi.json
