# Ultimate Walmart Scraper (`eneiromatos/ultimate-walmart-scraper`) Actor

This is the ultimate web scraping tool for extracting the most relevant data points from products on Walmart.com! Developed by an expert software developer, this powerful scraper is a fast and reliable tool for all your web scraping needs.

- **URL**: https://apify.com/eneiromatos/ultimate-walmart-scraper.md
- **Developed by:** [Eneiro Matos](https://apify.com/eneiromatos) (community)
- **Categories:** E-commerce
- **Security:** Limited permissions
- **Stats:** 164 total users, 3 monthly users, 100.0% runs succeeded, 2 bookmarks
- **User rating**: No ratings yet

## Pricing

from $25.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

## Ultimate Walmart Web Scraper

**Ultimate Walmart Web Scraper** is the ultimate web scraping and tool for extracting the most relevant data points from products on Walmart.com! Developed by an expert software developer, this powerful scraper is written in TypeScript, making it a fast and reliable tool for all your web scraping needs. With **Ultimate Walmart Web Scraper**, you can extract data from walmart website using a variety of inputs, including category URLs, brand URLs, search keywords, or specific product URLs. Whether you're an eCommerce entrepreneur, a data analyst, or just someone who loves collecting data, this is the tool you need to get the job done quickly and efficiently. So why wait? Register today and start scraping!

### Usage

The input for the scraper should contain the following fields:

- `productUrls`: An array of URLs for specific product pages to scrape.
- `listingUrls`: An array of URLs for category pages or brand pages to scrape (that contains listing of products and pagination).
- `keywords`: An array of search keywords to use when searching Walmart.com.
- `maxPrice`: The maximum price for products to scrape.
- `minPrice`: The minimum price for products to scrape.
- `startPageNumber`: The page number to start scraping from.
- `finalPageNumber`: The final page number to scrape.

Using `0` as value for `minPrice` and `maxPrice` indicates the scraper to collect products from all price ranges.

Using `0` as value for `startPageNumber` and `finalPageNumber` indicates the scraper to crawl all the page range.

### Output

The output includes the following fields for each product:

- `URL`: The URL of the product page.
- `idCodes`: An object containing the unique identifier codes of the product, including the `SKU` and `UPC`.
- `seller`: An object containing information about the seller and brand of the product, including the `brand`, `brandURL`, `seller`, and `sellerURL`.
- `title`: The title of the product.
- `media`: An object containing URLs for images and videos of the product, including the `main` image URL, `gallery` array of image URLs, and `videos` array of video objects, each with a `title` and `url` field.
- `pricing`: An object containing pricing information for the product, including the `salePrice`, `fullPrice`, and `currencySymbol`.
- `isAvailable`: A boolean indicating whether the product is currently available.
- `isGiftEligible`: A boolean indicating whether the product is eligible for gift-giving.
- `isUsed`: A boolean indicating whether the product is used.
- `rating`: An object containing rating information for the product and seller, including the `itemRating`, `itemReviews`, `sellerRating`, and `sellerReviews`.
- `orderLimits`: An object containing minimum and maximum order limits for the product, including the `min` and `max` fields.
- `category`: An object containing information about the category of the product, including the `fullPath` and `pathParts` array of category objects, each with a `name` and `url` field.
- `info`: An object containing additional information about the product, including the `shortDescription`, `longDescription`, and `specifications` array of objects, each with an `attribute` and `value` field.
- `variants`: An array containing information about different variants of the product, including objects with a `isCurrentVariant`, `url`, `SKU`, `isAvailable`, `pricing`, and `options` field. The `options` field contains an array of objects, each with an `attribute` and `value` field.

#### Output Sample

```json
{
    "URL": "https://www.walmart.com/ip/Alllist-Womens-Tops-Clearance-Under-10-White-Notch-Neck-Elbow-Length-Button-Graphic-T-Shirts-Womens-T-Shirts/5614608104?classType=VARIANT",
    "idCodes": {
        "SKU": "5614608104"
    },
    "seller": {
        "brand": "ALLLIST",
        "brandURL": "https://www.walmart.com/search?q=ALLLIST&facet=brand:ALLLIST",
        "seller": "ALLLIST FASHION",
        "sellerURL": "https://www.walmart.com/seller/101567556"
    },
    "title": "Alllist Womens Tops Under $10 White Notch Neck Elbow-Length Button Graphic T-Shirts Womens T Shirts",
    "media": {
        "main": "https://i5.walmartimages.com/seo/Alllist-Womens-Tops-Clearance-Under-10-White-Notch-Neck-Elbow-Length-Button-Graphic-T-Shirts-Womens-T-Shirts_42662385-8f59-442f-8252-27e3ad70bf7e.89f27e72d9c1b78fdfefda82481193b8.jpeg",
        "gallery": [
            "https://i5.walmartimages.com/asr/602fedcd-bda7-4624-929a-7a836c7ae661.2f2bf53d4a22b7e6aebe1c3b2d403f80.jpeg",
            "https://i5.walmartimages.com/asr/c724c6d5-9a1f-468a-b489-ebb8e91c3922.defb9347da772fde309dadf0c7bbed53.jpeg",
            "https://i5.walmartimages.com/asr/16bf564a-245d-4b6d-a82a-2cdf78e02940.746f85212071d2fd66128e4bec9aed64.jpeg",
            "https://i5.walmartimages.com/asr/20501fb8-20a0-4aec-b354-1208443bb0c4.7c228a273c359c199598a907d28d174a.jpeg"
        ]
    },
    "pricing": {
        "salePrice": 6.84,
        "fullPrice": 10.99,
        "currencySymbol": "USD"
    },
    "isAvailable": true,
    "isGiftEligible": false,
    "isUsed": false,
    "rating": {
        "itemRating": 5,
        "itemReviews": 5,
        "sellerRating": 3.6,
        "sellerReviews": 36
    },
    "orderLimits": {
        "min": 1,
        "max": 12
    },
    "category": {
        "fullPath": "Clothing > Womens Plus > Plus Size Tops > Plus Size Graphic Tees",
        "pathParts": [
            {
                "name": "Clothing",
                "url": "https://www.walmart.com/cp/clothing/5438"
            },
            {
                "name": "Womens Plus",
                "url": "https://www.walmart.com/cp/womens-plus/133195"
            },
            {
                "name": "Plus Size Tops",
                "url": "https://www.walmart.com/cp/plus-size-tops/1228775"
            },
            {
                "name": "Plus Size Graphic Tees",
                "url": "https://www.walmart.com/cp/plus-size-graphic-tees/6826971"
            }
        ]
    },
    "info": {
        "shortDescription": "<p>Crafted from luxuriously soft and slightly stretchy fabric, this matching top from ALLLIST is the epitome of comfort and style, making it an ideal choice to start the season off right.</p> <p>Occasion: Perfect for a variety of occasions including casual outings, cocktails, parties, daytime activities, dressy affairs, Easter celebrations, Mother's Day gatherings, formal events, holidays, nights out on the town, clubbing, vacations, work settings, weddings, anniversaries, back-to-school events, birthdays, and graduations.</p> <p>Style: Available in a wide array of styles including new arrivals, basics and multipacks, crop tops, blouses and tunics, tank tops and camisoles, t-shirts and graphic tees, wear-to-work tops, button-down shirts, polo shirts, workout tops, plus size tops, young adult tops, and maternity tops.</p> <p>This women's shirt is versatile enough for daily wear, outings, parties, work, and casual occasions. It also makes for a thoughtful gift for mothers, daughters, sisters, or wives.</p> <p>If you seek a soft, comfortable top of high quality and excellent value, ALLLIST is the perfect brand for you.</p>",
        "longDescription": "<ul>  <li>ALLLIST womens tops clearance under $10 White Notch Neck Elbow-Length Button Graphic T-Shirts womens t shirts</li>  <li>   <p><b>Size Chart：</b></p>   <p>Size:XL&nbsp;&nbsp;&nbsp;&nbsp;Size.:X-Large&nbsp;&nbsp;&nbsp;&nbsp;US:10&nbsp;&nbsp;&nbsp;&nbsp;UK:14&nbsp;&nbsp;&nbsp;&nbsp;EU:40&nbsp;&nbsp;&nbsp;&nbsp;Bust:114cm/44.88''&nbsp;&nbsp;&nbsp;&nbsp;Shoulder:45cm/17.72''&nbsp;&nbsp;&nbsp;&nbsp;Sleeve:26cm/10.24''&nbsp;&nbsp;&nbsp;&nbsp;Length:71cm/27.95''<br></p>   <p></p></li>  <li>Women's Fashion Printed Short Sleeves Blouse Round Neck Casual Tops Features: 1.It is made of materials, enought for your daily wearing. 2.Very cool to wear , very new to appearance. 3.Comfortable and pleasant, can wear personality at home or at work. 4.This lightweight, tops is perfect for those Comfortable days! 5.Keep improving in order to make your clothes more comfortable. Product Description: Season:Four Seasons Gender:Women Occasion:Home,Daily Material:Imitation cotton rack Style:Casual,Fashion Sleeve Length:Short Sleeve Collar:V-Neck :Fits ture to size Thickness:Standard How to wash:Hand wash Cold,Hang or Line Dry What you get:1PC Women Tops SizeSize.USUKEUBustShoulderSleeveLengthXLX-Large101440114cm/44.88''45cm/17.72''26cm/10.24''71cm/27.95''Size:XLSize.:X-LargeUS:10UK:14EU:40Bust:114cm/44.88''Shoulder:45cm/17.72''Sleeve:26cm/10.24''Length:71cm/27.95'' Size: XL Size.: X-Large US: 10 UK: 14 EU: 40 Bust: 114cm/44.88'' Shoulder: 45cm/17.72'' Sleeve: 26cm/10.24'' Length: 71cm/</li>  <li>\"our store contain multi style of women tops：Deals Get it today New Arrivals Basics &amp; Multipacks Crop Tops Blouses &amp; Tunics Tank Tops &amp; Camisoles T-Shirts &amp; Graphic Tees Wear to Work Tops Button Down Shirts Polo Shirts Workout Tops Plus Size Tops Young Adult Tops Maternity Tops</li>  <li>suitable for mutil occasion：Bridal Casual Cocktail &amp; Party Daytime Dressy Easter Mother's Day Formal Holiday Night Out Club Vacation Work Wedding Anniversary Back to School Birthday Graduation</li>  <li>we also provides lots of discount：womens tops clearance under $5 womens tops clearance womens tops clearance under $10 womens tops clearance under $5 long sleeves womens tops clearance under $5 plus size womens tops clearance under $5 plus size long sleeve womens tops clearance under $10 free shipping 3x womens tops clearance clothes womens tops clearance under $5 free shipping no freight shipping womens tops clearance under $10 size large</li> </ul>",
        "specifications": [
            {
                "attribute": "Gender",
                "value": "Female"
            },
            {
                "attribute": "Brand",
                "value": "ALLLIST"
            },
            {
                "attribute": "Clothing fit",
                "value": "Relaxed Fit"
            },
            {
                "attribute": "Clothing neck style",
                "value": "Notch Neck"
            },
            {
                "attribute": "Sleeve length style",
                "value": "Elbow-Length"
            },
            {
                "attribute": "Pattern",
                "value": "Graphic Prints"
            },
            {
                "attribute": "Fabric material name",
                "value": "Imitation cotton rack"
            },
            {
                "attribute": "T-shirt type",
                "value": "Notch Neck"
            },
            {
                "attribute": "Clothing occasion",
                "value": "Anniversary, Back-to-School, Birthday, Casual, Vacation, Wear-to-Work, Wedding, Work"
            },
            {
                "attribute": "Clothing style",
                "value": "Casual, Maternity"
            },
            {
                "attribute": "Clothing size group",
                "value": "Women's Plus"
            },
            {
                "attribute": "Top style",
                "value": "T-Shirts"
            },
            {
                "attribute": "Theme",
                "value": "Graphic"
            },
            {
                "attribute": "Fabric content",
                "value": "95% 95%Polyester,5%Spandex"
            },
            {
                "attribute": "Sleeve style",
                "value": "Notch Neck"
            },
            {
                "attribute": "Fabric care instructions",
                "value": "Machine Washable; Hand Wash"
            },
            {
                "attribute": "Fastener type",
                "value": "Button"
            },
            {
                "attribute": "Global brand license",
                "value": "ALLLIST"
            },
            {
                "attribute": "Color category",
                "value": "White"
            },
            {
                "attribute": "Age group",
                "value": "Adult, Teen, Child"
            }
        ]
    },
    "variants": [
        {
            "isCurrentVariant": true,
            "url": "https://www.walmart.com/ip/Alllist-Womens-Tops-Clearance-Under-10-White-Notch-Neck-Elbow-Length-Button-Graphic-T-Shirts-Womens-T-Shirts/5614608104",
            "SKU": "5614608104",
            "isAvailable": true,
            "pricing": {
                "salePrice": 6.84,
                "currencySymbol": "USD"
            },
            "options": [
                {
                    "attribute": "Color",
                    "value": "White"
                },
                {
                    "attribute": "Clothing Size",
                    "value": "XL"
                }
            ]
        },
        {
            "isCurrentVariant": false,
            "url": "https://www.walmart.com/ip/Alllist-Cute-Summer-Tops-for-Women-White-Notch-Neck-Button-Graphic-Elbow-Length-T-Shirts-Spring-Blouses/5490942125",
            "SKU": "5490942125",
            "isAvailable": true,
            "pricing": {
                "salePrice": 8.56,
                "currencySymbol": "USD"
            },
            "options": [
                {
                    "attribute": "Color",
                    "value": "White"
                },
                {
                    "attribute": "Clothing Size",
                    "value": "L"
                }
            ]
        },
        {
            "isCurrentVariant": false,
            "url": "https://www.walmart.com/ip/Alllist-White-Womens-Summer-Tops-Elbow-Length-Notch-Neck-Graphic-Button-T-Shirts-Blouses/5621222932",
            "SKU": "5621222932",
            "isAvailable": true,
            "pricing": {
                "salePrice": 8.93,
                "currencySymbol": "USD"
            },
            "options": [
                {
                    "attribute": "Color",
                    "value": "White"
                },
                {
                    "attribute": "Clothing Size",
                    "value": "XXL"
                }
            ]
        },
        {
            "isCurrentVariant": false,
            "url": "https://www.walmart.com/ip/Alllist-Women-Tops-White-Graphic-Elbow-Length-Button-Notch-Neck-T-Shirts-Womens-Shirts-Plus-Size/5629750565",
            "SKU": "5629750565",
            "isAvailable": true,
            "pricing": {
                "salePrice": 9.96,
                "currencySymbol": "USD"
            },
            "options": [
                {
                    "attribute": "Color",
                    "value": "White"
                },
                {
                    "attribute": "Clothing Size",
                    "value": "M"
                }
            ]
        },
        {
            "isCurrentVariant": false,
            "url": "https://www.walmart.com/ip/Alllist-Spring-Tops-White-Notch-Neck-Elbow-Length-Graphic-Button-T-Shirts-Womens-Blouses-Dressy-Casual/5633159220",
            "SKU": "5633159220",
            "isAvailable": true,
            "pricing": {
                "salePrice": 9.35,
                "currencySymbol": "USD"
            },
            "options": [
                {
                    "attribute": "Color",
                    "value": "White"
                },
                {
                    "attribute": "Clothing Size",
                    "value": "S"
                }
            ]
        }
    ]
}
```

### Note

Please report any error or let me know your suggestions to improve this software.

# Actor input Schema

## `productUrls` (type: `array`):

This is a list of product URLs.

## `listingUrls` (type: `array`):

This is a list of category URLs

## `keywords` (type: `array`):

This is a list of keyword to search products based on.

## `startPageNumber` (type: `integer`):

Page number to start scraping products.

## `finalPageNumber` (type: `integer`):

Page number to start scraping products.

## `minPrice` (type: `integer`):

Minimum price of scrapped products.

## `maxPrice` (type: `integer`):

Maximum price of scrapped products.

## Actor input object example

```json
{
  "productUrls": [
    "https://www.walmart.com/ip/Wantdo-Women-s-Plus-Size-Winter-Jacket-Quilted-Winter-Coat-Windproof-Puffer-Jacket-with-Detachable-Hood-Wine-Red-4XL/5268285135"
  ],
  "listingUrls": [
    "https://www.walmart.com/browse/clothing/womens-tops/5438_133162_2290732"
  ],
  "startPageNumber": 1,
  "finalPageNumber": 1,
  "minPrice": 0,
  "maxPrice": 0
}
```

# Actor output Schema

## `results` (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 = {
    "productUrls": [
        "https://www.walmart.com/ip/Wantdo-Women-s-Plus-Size-Winter-Jacket-Quilted-Winter-Coat-Windproof-Puffer-Jacket-with-Detachable-Hood-Wine-Red-4XL/5268285135"
    ],
    "listingUrls": [
        "https://www.walmart.com/browse/clothing/womens-tops/5438_133162_2290732"
    ],
    "startPageNumber": 1,
    "finalPageNumber": 1,
    "minPrice": 0,
    "maxPrice": 0
};

// Run the Actor and wait for it to finish
const run = await client.actor("eneiromatos/ultimate-walmart-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 = {
    "productUrls": ["https://www.walmart.com/ip/Wantdo-Women-s-Plus-Size-Winter-Jacket-Quilted-Winter-Coat-Windproof-Puffer-Jacket-with-Detachable-Hood-Wine-Red-4XL/5268285135"],
    "listingUrls": ["https://www.walmart.com/browse/clothing/womens-tops/5438_133162_2290732"],
    "startPageNumber": 1,
    "finalPageNumber": 1,
    "minPrice": 0,
    "maxPrice": 0,
}

# Run the Actor and wait for it to finish
run = client.actor("eneiromatos/ultimate-walmart-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 '{
  "productUrls": [
    "https://www.walmart.com/ip/Wantdo-Women-s-Plus-Size-Winter-Jacket-Quilted-Winter-Coat-Windproof-Puffer-Jacket-with-Detachable-Hood-Wine-Red-4XL/5268285135"
  ],
  "listingUrls": [
    "https://www.walmart.com/browse/clothing/womens-tops/5438_133162_2290732"
  ],
  "startPageNumber": 1,
  "finalPageNumber": 1,
  "minPrice": 0,
  "maxPrice": 0
}' |
apify call eneiromatos/ultimate-walmart-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,eneiromatos/ultimate-walmart-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/NUpaMBAuyUGwtttUo/builds/Zj4eqPNMAmMKFmi5c/openapi.json
