# Walmart Product Detail Scraper (`good-apis/walmart-product`) Actor

- **URL**: https://apify.com/good-apis/walmart-product.md
- **Developed by:** [Danny](https://apify.com/good-apis) (community)
- **Categories:** E-commerce
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Walmart Product Detail Scraper

Give it a Walmart item id (or product URL) and get back the **full product detail** — title, brand, model, price (and was-price), currency, availability, seller, category path, average rating, review count, the full image gallery, and the complete specifications table — as one dataset row. No login, no proxies to configure, no browser to manage.

Leave the id blank and it details the top live result of a seed search, so a scheduled run never breaks on a delisted item.

**Pricing: $3.50 per 1,000 products** (pay per result). You are only charged for a product actually returned — no monthly rental.

### What you get

| Field | Description |
|---|---|
| `id` | Walmart item id (usItemId) |
| `title` | Product title |
| `brand` | Brand |
| `type` | Product type |
| `model_number` | Manufacturer model number, when present |
| `price` / `price_value` | Current price as shown / as a number |
| `was_price` | Strike-through / previous price, when on offer |
| `currency` | Currency code (e.g. `USD`) |
| `availability` | Availability (e.g. `IN_STOCK`) |
| `seller_name` / `seller_id` | Seller name and id |
| `category` | Full category path (e.g. `Electronics > TV & Home Theater > All TVs`) |
| `rating` / `review_count` | Average star rating / number of reviews |
| `num_images` / `images` | Image count and the gallery URLs |
| `num_specs` / `specifications` | Spec count and the full `{name: value}` specifications table |
| `description` / `long_description` | Short and long product descriptions |
| `url` | Canonical Walmart product URL |

### Input

| Field | Required | Description |
|---|---|---|
| `item_id` | ✓\* | Walmart item id (e.g. `470905078`). |
| `url` | ✓\* | Alternatively, a full Walmart product URL. |
| `seed_search` | | Used only when id/url are blank: details the top live result for this keyword. |

\*Provide `item_id`, `url`, or leave both blank to use `seed_search`.

```json
{ "item_id": "470905078" }
```

### Notes & limits

- Reflects the **US** Walmart catalog (residential US proxying is handled server-side).
- This is an unofficial scraper and is not affiliated with Walmart.

# Actor input Schema

## `item_id` (type: `string`):

The Walmart item id — the number at the end of an /ip/ URL, e.g. '470905078'. Leave blank to auto-pick the top result of the seed search.

## `url` (type: `string`):

Optional: a full Walmart product URL (e.g. 'https://www.walmart.com/ip/.../470905078') to use instead of an item id.

## `seed_search` (type: `string`):

Used only when item ID and URL are both blank: returns the detail of the TOP live result for this Walmart search keyword.

## Actor input object example

```json
{
  "seed_search": "coffee maker"
}
```

# Actor output Schema

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

All scraped items in the 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 = {
    "seed_search": "coffee maker"
};

// Run the Actor and wait for it to finish
const run = await client.actor("good-apis/walmart-product").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 = { "seed_search": "coffee maker" }

# Run the Actor and wait for it to finish
run = client.actor("good-apis/walmart-product").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "seed_search": "coffee maker"
}' |
apify call good-apis/walmart-product --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=good-apis/walmart-product",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/1q6hVIlXLQ2cwqHEu/builds/QZEWj1coj8RbpUrvL/openapi.json
