# Walmart Product Scraper (`yasmany.casanova/walmart-product-scraper`) Actor

Extract full Walmart US product data by product ID: price, original price, discount, rating, reviews, seller, stock, fulfillment options, images, GTIN and specifications — as clean, structured JSON.

- **URL**: https://apify.com/yasmany.casanova/walmart-product-scraper.md
- **Developed by:** [Yasmany Grijalba Casanova](https://apify.com/yasmany.casanova) (community)
- **Categories:** E-commerce, Automation, Developer tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

from $50.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 a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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 Scraper

Get the **full details** of any Walmart product by its **product ID** — price, original price, discount, rating, reviews, seller, stock, fulfillment options (delivery / pickup / shipping), images, GTIN, and full specifications, as clean, structured JSON.

[![Apify Actor](https://img.shields.io/badge/Apify-Actor-blue?logo=apify)](https://apify.com)
[![Market](https://img.shields.io/badge/Market-United%20States-green)](https://www.walmart.com)

---

> ℹ️ **Zero configuration**
> Provide a Walmart product ID and run it — results are ready in seconds.

---

### Quick Start

```json
{
  "productId": "1205085375"
}
````

> **Tip**: The product ID is the numeric code at the end of any Walmart product URL — `walmart.com/ip/Karma-Probiotic-Water/1205085375` → `1205085375`.

***

### Features

| Feature | Description |
|---------|-------------|
| **Complete Product Data** | Price, discount, rating, reviews, seller, stock, GTIN, images |
| **Fulfillment Options** | Delivery, pickup, shipping availability and free-shipping flag |
| **Specifications** | Every spec key/value pair flattened and ready to use |
| **Full Structured Output** | Every detail in a clean, validated JSON record |

***

### Use Cases

- **E-commerce & Product Research** — Pull full catalog data for any product to enrich your own listings
- **Competitor Analysis** — Track a competitor's price, discount, seller, and stock over time
- **Price Monitoring** — Run periodically per product to detect price changes
- **Catalog Enrichment** — Fill product specs, GTIN, and imagery from a single product ID

***

### Input Parameters

| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| `productId` | string | — | Walmart numeric product ID (**required**) |

***

### Output Example

```json
[
  {
    "record_type": "product",
    "product_id": "1205085375",
    "sku": null,
    "gtin": "851424008468",
    "name": "Karma Probiotic Water, Watermelon Wild Berry, 18 fl. oz., 1 Count Bottle",
    "brand": "Karma Water",
    "url": "https://www.walmart.com/ip/Karma-Probiotic-Water-.../1205085375",
    "price": 1.96,
    "original_price": null,
    "discount_percentage": null,
    "currency": "USD",
    "rating": null,
    "review_count": null,
    "in_stock": true,
    "seller_name": "Walmart.com",
    "delivery_available": true,
    "pickup_available": true,
    "shipping_available": true,
    "free_shipping": false,
    "image_url": "https://i5.walmartimages.com/seo/Karma-Probiotic-Water-...jpeg",
    "images_count": 7,
    "variants_count": 1,
    "specifications": { "Flavor": "Watermelon Wild Berry", "Brand": "Karma Water", "Size": "18 OZ" },
    "additional_details": { "...": "complete product data" },
    "scraped_at": "2026-05-19T18:00:00.000Z"
  }
]
```

**Note**: `original_price` / `discount_percentage` are included only when the product is on sale. `rating` / `review_count` are `null` for products without reviews. `sku` is `null` when the source does not expose it.

***

### Data Fields

| Field | Type | Description |
|-------|------|-------------|
| `record_type` | string | Row type: `product` for a result, `not_found` when the ID has no listing |
| `product_id` | string | The Walmart product ID |
| `sku` | string | Product SKU, when exposed by the source |
| `gtin` | string | Global Trade Item Number (barcode) |
| `name` | string | Product name |
| `brand` | string | Brand (from specifications) |
| `url` | string | Direct product page URL |
| `price` | number | Current price |
| `original_price` | number | Price before discount, when on sale |
| `discount_percentage` | number | Discount percent, when on sale |
| `currency` | string | Price currency (USD) |
| `rating` | number | Average rating |
| `review_count` | number | Number of reviews |
| `in_stock` | boolean | Availability |
| `seller_name` | string | Seller |
| `delivery_available` / `pickup_available` / `shipping_available` | boolean | Fulfillment options |
| `free_shipping` | boolean | Free shipping flag |
| `image_url` / `images_count` | string / number | Main image and total image count |
| `variants_count` | number | Number of product variants |
| `specifications` | object | Flattened spec key/value pairs |
| `additional_details` | object | Complete structured product payload |
| `scraped_at` | string | ISO 8601 timestamp (UTC) |

***

### Integrations

Use the **API** tab on the Actor page to get ready-to-use code examples in **Python**, **JavaScript**, and **cURL**, generated with the correct parameters for immediate integration.

***

### FAQ

<details>
<summary><strong>What does a "not_found" result mean?</strong></summary>

The product ID does not have a listing on Walmart, or is not currently available. Verify the ID in the product URL (`walmart.com/ip/.../<ID>`).

</details>

<details>
<summary><strong>Why are some fields empty?</strong></summary>

Fields like discount, original price, rating, and reviews are only included when Walmart publishes them for that product. `sku` is `null` when the source does not expose it.

</details>

<details>
<summary><strong>Which marketplace does this cover?</strong></summary>

Walmart US (`walmart.com`), with prices in USD.

</details>

***

### Support

1. **Check the FAQ** above for common questions
2. **Test with the prefilled example** to confirm expected output
3. **Contact support** through [Apify](https://apify.com) for additional assistance

# Actor input Schema

## `productId` (type: `string`):

Walmart product ID — the numeric code in the product URL (walmart.com/ip/.../1205085375 -> 1205085375).

## Actor input object example

```json
{
  "productId": "1205085375"
}
```

# Actor output Schema

## `products` (type: `string`):

Walmart product details extracted by product ID (logically-ordered product fields + additional\_details with the full structured payload)

# 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 = {
    "productId": "1205085375"
};

// Run the Actor and wait for it to finish
const run = await client.actor("yasmany.casanova/walmart-product-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 = { "productId": "1205085375" }

# Run the Actor and wait for it to finish
run = client.actor("yasmany.casanova/walmart-product-scraper").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 '{
  "productId": "1205085375"
}' |
apify call yasmany.casanova/walmart-product-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Walmart Product Scraper",
        "description": "Extract full Walmart US product data by product ID: price, original price, discount, rating, reviews, seller, stock, fulfillment options, images, GTIN and specifications — as clean, structured JSON.",
        "version": "1.0",
        "x-build-id": "dqqE3pH48ebXHpZSD"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/yasmany.casanova~walmart-product-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-yasmany.casanova-walmart-product-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/yasmany.casanova~walmart-product-scraper/runs": {
            "post": {
                "operationId": "runs-sync-yasmany.casanova-walmart-product-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/yasmany.casanova~walmart-product-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-yasmany.casanova-walmart-product-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "productId"
                ],
                "properties": {
                    "productId": {
                        "title": "Product ID",
                        "type": "string",
                        "description": "Walmart product ID — the numeric code in the product URL (walmart.com/ip/.../1205085375 -> 1205085375)."
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
