# Sam's Club Product Scraper (`crawlerbros/samsclub-product-scraper`) Actor

Scrape Sam's Club wholesale products - search by keyword, browse by category, or enrich specific product URLs. Extracts prices, ratings, availability, descriptions, specs, and images.

- **URL**: https://apify.com/crawlerbros/samsclub-product-scraper.md
- **Developed by:** [Crawler Bros](https://apify.com/crawlerbros) (community)
- **Categories:** Automation, E-commerce, Integrations
- **Stats:** 1 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 results

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/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

## Sam's Club Product Scraper

Extract wholesale product data from [Sam's Club](https://www.samsclub.com) — the membership warehouse club owned by Walmart. Search by keyword, browse by category, or enrich a list of product URLs to get prices, ratings, availability, descriptions, specifications, and images.

### What does this scraper do?

- **Keyword search** — find products by name, brand, or description
- **Category browsing** — explore Electronics, Appliances, Groceries, Clothing, and more
- **Product URL enrichment** — fetch complete details for a list of Sam's Club product links
- Extracts: name, price, original price, savings, member pricing, stock status, ratings, reviews, specifications, feature bullets, images, and more
- Supports sorting by relevance, price, rating, or best-selling
- Supports price and rating filters

### Input

| Field | Type | Description | Default |
|---|---|---|---|
| `mode` | select | `search`, `byCategory`, or `byProductUrls` | `search` |
| `searchQuery` | string | Keyword to search (mode=search) | `laptop` |
| `category` | select | Product category (mode=byCategory) | `electronics` |
| `sortBy` | select | Sort order: relevance, price-asc, price-desc, top-rated, bestselling | `relevance` |
| `minPrice` | integer | Minimum price filter ($) | — |
| `maxPrice` | integer | Maximum price filter ($) | — |
| `minRating` | number | Minimum average rating (0.0–5.0) | — |
| `startUrls` | list | Product URLs to enrich (mode=byProductUrls) | — |
| `maxItems` | integer | Maximum products to return (1–5000) | `50` |
| `clubId` | string | Sam's Club store ID for pricing (default: 6372 = Dallas, TX) | `6372` |

#### Available categories

| Value | Label |
|---|---|
| `electronics` | Electronics |
| `appliances` | Appliances |
| `groceries` | Groceries & Food |
| `clothing` | Clothing & Shoes |
| `sporting-goods` | Sports & Outdoors |
| `home` | Home & Garden |
| `toys` | Toys & Baby |
| `health` | Health & Beauty |
| `auto` | Auto & Tires |
| `all` | All Categories |

#### Example input (search)

```json
{
  "mode": "search",
  "searchQuery": "laptop",
  "sortBy": "price-asc",
  "maxPrice": 800,
  "minRating": 4.0,
  "maxItems": 50
}
````

#### Example input (byProductUrls)

```json
{
  "mode": "byProductUrls",
  "startUrls": [
    "https://www.samsclub.com/ip/HP-Laptop/13576272587",
    "https://www.samsclub.com/ip/Samsung-TV/15234957453"
  ]
}
```

### Output

Each record contains:

| Field | Type | Description |
|---|---|---|
| `productId` | string | Sam's Club internal product ID |
| `name` | string | Full product name |
| `url` | string | Product page URL |
| `imageUrl` | string | Primary product image URL |
| `images` | array | All product image URLs |
| `price` | number | Current selling price (USD) |
| `originalPrice` | number | Original/was price before discount |
| `memberPrice` | number | Member price (same as price for Sam's Club) |
| `savings` | number | Dollar savings amount |
| `inStock` | boolean | Whether the product is currently in stock |
| `membershipRequired` | boolean | Always `true` — Sam's Club is membership-only |
| `itemNumber` | string | Sam's Club item number (usItemId) |
| `brand` | string | Product brand name |
| `category` | string | Product category/type |
| `rating` | number | Average customer rating (0–5) |
| `reviewCount` | integer | Number of customer reviews |
| `description` | string | Product description text |
| `specifications` | object | Key-value technical specifications (detail pages) |
| `features` | array | Bullet-point product features |
| `onlineOnly` | boolean | True if the product is only available online |
| `clubId` | string | Sam's Club store ID used for pricing |
| `recordType` | string | Always `"samsClubProduct"` |
| `scrapedAt` | string | ISO 8601 UTC timestamp of when the record was scraped |

#### Example output record

```json
{
  "productId": "3VU6BX9X6KQ1",
  "name": "ASUS Vivobook 17X Laptop - 17.3\" FHD Display - Intel Core i9-13900H - 16GB RAM - 1TB SSD",
  "url": "https://www.samsclub.com/ip/ASUS-Vivobook-17X/13576272587?classType=REGULAR",
  "imageUrl": "https://i5.samsclubimages.com/asr/4731cb28-173f-4de0-83b4-3928fa27634c.jpeg",
  "images": ["https://i5.samsclubimages.com/asr/4731cb28-173f-4de0-83b4-3928fa27634c.jpeg"],
  "price": 999.0,
  "memberPrice": 999.0,
  "inStock": true,
  "membershipRequired": true,
  "itemNumber": "13576272587",
  "brand": "ASUS Vivobook",
  "category": "Laptop Computers",
  "rating": 4.4,
  "reviewCount": 46,
  "description": "The ASUS Vivobook 17X is equipped with Intel Core i9-13900H...",
  "specifications": {
    "Processor": "Intel Core i9-13900H",
    "RAM": "16GB DDR4",
    "Storage": "1TB PCIe SSD"
  },
  "features": [
    "Intel Core i9-13900H Processor",
    "16GB DDR4 RAM",
    "1TB PCIe G3 SSD"
  ],
  "onlineOnly": true,
  "clubId": "6372",
  "recordType": "samsClubProduct",
  "scrapedAt": "2026-05-15T12:00:00+00:00"
}
```

### Frequently Asked Questions

**Do I need a Sam's Club membership to use this scraper?**
No. The scraper accesses Sam's Club's public website and does not require a membership account or login. However, note that all prices shown on Sam's Club are member prices — a Sam's Club membership is required to actually purchase items.

**How many products can I scrape?**
The scraper supports up to 5,000 products per run. Sam's Club search results typically return 45–50 products per page. The scraper automatically paginates through all available pages up to your `maxItems` limit.

**Why are some products missing a price?**
Some items display a "See price in cart" or "Sign in to see price" message. These prices are intentionally hidden by Sam's Club and cannot be extracted without a logged-in session. Those products will appear without a price field.

**Can I filter by price range?**
Yes. Set `minPrice` and/or `maxPrice` (in whole dollars) to filter results. For example, `"minPrice": 200, "maxPrice": 800` returns only products priced between $200 and $800.

**What is the `clubId` field for?**
Sam's Club prices can vary by location. The `clubId` is the store number used for pricing lookups. The default (6372 = Dallas, TX) works for typical online prices. You can find your local club ID on the [Sam's Club Club Finder](https://www.samsclub.com/club).

**Does this scraper work for club-only (in-store) items?**
Yes. Items available in-store will have `"onlineOnly": false`. Items that are exclusively online will have `"onlineOnly": true`.

**Can I scrape product specifications?**
Yes, when using `mode=byProductUrls`. The scraper fetches the full product detail page which includes specifications like processor, RAM, storage, dimensions, etc. In `search` and `byCategory` modes, a shorter description and feature bullets are extracted from the search result data.

**How often does Sam's Club update its prices?**
Sam's Club prices, particularly Instant Savings, change weekly (Thursday to Wednesday). Re-run the scraper regularly if you need up-to-date pricing.

# Actor input Schema

## `mode` (type: `string`):

How to scrape: keyword search, category browse, or direct product URL enrichment.

## `searchQuery` (type: `string`):

Keyword to search for products on Sam's Club (mode=search).

## `category` (type: `string`):

Product category to browse (mode=byCategory).

## `sortBy` (type: `string`):

Sort order for search results.

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

Only return products at or above this price.

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

Only return products at or below this price.

## `minRating` (type: `number`):

Only return products with an average rating at or above this value (0.0–5.0).

## `startUrls` (type: `array`):

List of Sam's Club product page URLs to enrich (e.g. https://www.samsclub.com/ip/.../).

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

Maximum number of products to return.

## `clubId` (type: `string`):

Sam's Club store ID used for pricing (default 6372 = Dallas, TX). Find your club ID at samsclub.com/club.

## Actor input object example

```json
{
  "mode": "search",
  "searchQuery": "laptop",
  "category": "electronics",
  "sortBy": "relevance",
  "startUrls": [],
  "maxItems": 50,
  "clubId": "6372"
}
```

# Actor output Schema

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

Dataset containing all scraped Sam's Club product records.

# 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 = {
    "mode": "search",
    "searchQuery": "laptop",
    "category": "electronics",
    "sortBy": "relevance",
    "startUrls": [],
    "maxItems": 50,
    "clubId": "6372"
};

// Run the Actor and wait for it to finish
const run = await client.actor("crawlerbros/samsclub-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 = {
    "mode": "search",
    "searchQuery": "laptop",
    "category": "electronics",
    "sortBy": "relevance",
    "startUrls": [],
    "maxItems": 50,
    "clubId": "6372",
}

# Run the Actor and wait for it to finish
run = client.actor("crawlerbros/samsclub-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 '{
  "mode": "search",
  "searchQuery": "laptop",
  "category": "electronics",
  "sortBy": "relevance",
  "startUrls": [],
  "maxItems": 50,
  "clubId": "6372"
}' |
apify call crawlerbros/samsclub-product-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Sam's Club Product Scraper",
        "description": "Scrape Sam's Club wholesale products - search by keyword, browse by category, or enrich specific product URLs. Extracts prices, ratings, availability, descriptions, specs, and images.",
        "version": "1.0",
        "x-build-id": "SYf2toTuI6QrY9vNZ"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/crawlerbros~samsclub-product-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-crawlerbros-samsclub-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/crawlerbros~samsclub-product-scraper/runs": {
            "post": {
                "operationId": "runs-sync-crawlerbros-samsclub-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/crawlerbros~samsclub-product-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-crawlerbros-samsclub-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": [
                    "mode"
                ],
                "properties": {
                    "mode": {
                        "title": "Mode",
                        "enum": [
                            "search",
                            "byCategory",
                            "byProductUrls"
                        ],
                        "type": "string",
                        "description": "How to scrape: keyword search, category browse, or direct product URL enrichment.",
                        "default": "search"
                    },
                    "searchQuery": {
                        "title": "Search query",
                        "type": "string",
                        "description": "Keyword to search for products on Sam's Club (mode=search).",
                        "default": "laptop"
                    },
                    "category": {
                        "title": "Category",
                        "enum": [
                            "electronics",
                            "appliances",
                            "groceries",
                            "clothing",
                            "sporting-goods",
                            "home",
                            "toys",
                            "health",
                            "auto",
                            "all"
                        ],
                        "type": "string",
                        "description": "Product category to browse (mode=byCategory).",
                        "default": "electronics"
                    },
                    "sortBy": {
                        "title": "Sort by",
                        "enum": [
                            "relevance",
                            "price-asc",
                            "price-desc",
                            "top-rated",
                            "bestselling"
                        ],
                        "type": "string",
                        "description": "Sort order for search results.",
                        "default": "relevance"
                    },
                    "minPrice": {
                        "title": "Minimum price ($)",
                        "minimum": 0,
                        "maximum": 100000,
                        "type": "integer",
                        "description": "Only return products at or above this price."
                    },
                    "maxPrice": {
                        "title": "Maximum price ($)",
                        "minimum": 0,
                        "maximum": 100000,
                        "type": "integer",
                        "description": "Only return products at or below this price."
                    },
                    "minRating": {
                        "title": "Minimum rating",
                        "minimum": 0,
                        "maximum": 5,
                        "type": "number",
                        "description": "Only return products with an average rating at or above this value (0.0–5.0)."
                    },
                    "startUrls": {
                        "title": "Product URLs (mode=byProductUrls)",
                        "type": "array",
                        "description": "List of Sam's Club product page URLs to enrich (e.g. https://www.samsclub.com/ip/.../).",
                        "default": [],
                        "items": {
                            "type": "string"
                        }
                    },
                    "maxItems": {
                        "title": "Max items",
                        "minimum": 1,
                        "maximum": 5000,
                        "type": "integer",
                        "description": "Maximum number of products to return.",
                        "default": 50
                    },
                    "clubId": {
                        "title": "Club ID",
                        "type": "string",
                        "description": "Sam's Club store ID used for pricing (default 6372 = Dallas, TX). Find your club ID at samsclub.com/club.",
                        "default": "6372"
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
