Walmart Data Extractor avatar
Walmart Data Extractor
Try for free

3 days trial then $30.00/month - No credit card required now

View all Actors
Walmart Data Extractor

Walmart Data Extractor

epctex/walmart-scraper
Try for free

3 days trial then $30.00/month - No credit card required now

Access a vast array of product data from Walmart with our Walmart Scraper. Extract images, brand details, prices, variations, and more. Customize your search with filters, categories, and lists to gather the information you need.

The code examples below show how to run the Actor and get its results. To run the code, you need to have an Apify account. Replace <YOUR_API_TOKEN> in the code with your API token, which you can find under Settings > Integrations in Apify Console. Learn mode

Node.js

Python

curl

1import { ApifyClient } from 'apify-client';
2
3// Initialize the ApifyClient with your Apify API token
4const client = new ApifyClient({
5    token: '<YOUR_API_TOKEN>',
6});
7
8// Prepare Actor input
9const input = {
10    "startUrls": [
11        {
12            "url": "https://www.walmart.com/browse/auto-tires/brake-pads/91083_1074765_9038935_4582920"
13        },
14        {
15            "url": "https://www.walmart.com/browse/home/"
16        },
17        {
18            "url": "https://www.walmart.com/search?grid=true&query=Mixed+Bouquets"
19        },
20        {
21            "url": "https://www.walmart.com/ip/Mainstays-Blue-Sunflower-Mix-Bouquet/155345382"
22        }
23    ],
24    "maxItems": 50,
25    "endPage": 1,
26    "extendOutputFunction": ($) => {
27        const result = {};
28        // Uncomment to add a title to the output
29        // result.title = $('title').text().trim();
30    
31        return result;
32    },
33    "outputFilterFunction": (object) => ({...object}),
34    "proxy": {
35        "useApifyProxy": true
36    }
37};
38
39(async () => {
40    // Run the Actor and wait for it to finish
41    const run = await client.actor("epctex/walmart-scraper").call(input);
42
43    // Fetch and print Actor results from the run's dataset (if any)
44    console.log('Results from dataset');
45    const { items } = await client.dataset(run.defaultDatasetId).listItems();
46    items.forEach((item) => {
47        console.dir(item);
48    });
49})();
Developer
Maintained by Community
Actor metrics
  • 31 monthly users
  • 99.6% runs succeeded
  • 0.2 days response time
  • Created in Apr 2021
  • Modified about 6 hours ago
Categories