# Sam's Club Scraper: Club Prices, Instant Savings & Stock (`moggedhq/sams-club-scraper`) Actor

Get Sam's Club prices, Instant Savings dates and in-club stock by ZIP or club ID. Monitor coffee, groceries and electronics with item numbers, unit prices, ratings, pickup and online prices. $0.004 per product plus $0.003 per nonempty run; 1,000 cost about $4. No login.

- **URL**: https://apify.com/moggedhq/sams-club-scraper.md
- **Developed by:** [mogged](https://apify.com/moggedhq) (community)
- **Categories:** E-commerce, Automation
- **Features:** Limited permissions
- **Stats:** 1 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.20 / 1,000 products

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## Sam's Club Scraper: Club Prices, Instant Savings & Stock

For retail price analysts, brands and comparison services monitoring Sam's Club products at chosen US clubs. Get club pickup prices, separate online prices, published savings, pickup availability, stock bands and product metadata. About **$0.004 per delivered product**, plus **$0.003 once on the first delivered product**: 20 products cost about **$0.083**, and 1,000 products cost about **$4**, plus the small Actor start charge. No login.

Use the same core inputs and retail columns as the Costco scraper. A basket can contain keywords, category links, product links or numeric product IDs. Select exact club numbers or resolve the nearest club from a US ZIP code. Each delivered product is identified by the club actually returned by the source.

Cloud checks cover 32 input combinations across eight ZIP codes, including search, categories, known products and savings. Ten independent live-page comparisons matched the selected club, prices, stock, unit prices, barcodes and promotion wording. The default coffee run returned 20 priced products in 50.071 seconds, omitting six products without a club price or dated promotion.

### What you get

| Data | Fields | Interpretation |
| --- | --- | --- |
| Product identity | `productId`, `sku`, `itemNumber`, `title`, `brand` | Product ID is the number in a public `/ip/` URL. SKU is the source catalog key. A separately published shelf item number is retained when present. |
| Club pickup price | `price`, `clubPrice`, `regularPrice`, `priceScope`, `clubPriceVerified` | A physical pickup-price channel for the verified selected club. A missing club price stays null. |
| Online comparison | `onlinePrice`, `onlineStockStatus`, `shippingLocation` | Shipping-channel observations remain separate from club prices. The source shipping location is retained. |
| Instant Savings | `onSale`, `promoType`, `promoText`, `promoStart`, `promoEnd`, `promoEndText`, `promotions` | Published promotion text and dates. A date without a published year is kept as text. |
| Membership offer | `memberPrice`, `memberProgram` | A separate publicly reported membership offer, when the source supplies one. Standard club prices may themselves require membership. |
| Unit price | `unitPrice`, `unitOfMeasure`, `unitPriceText` | The source unit price, normalized to dollars. For example, 2.0 cents per square foot becomes 0.02. |
| Club stock | `inStock`, `clubStockStatus`, `clubStockLevel` | Explicit pickup inventory for the selected club. Unknown stock remains null. |
| Pickup | `pickupAvailable`, `pickupTime`, `aisle`, `orderLimit` | Availability, source pickup time, published aisle and order limit. An order limit is not a shelf count. |
| Shipping | `onlineStockStatus`, `shippingArrives` | Public shipping status and date for the location returned by the source. |
| Reviews | `rating`, `reviewCount` | Aggregate product rating and review count. Individual reviews are not collected. |
| Optional details | `details`, `gtin`, `category`, `size` | Description, specifications and explicitly published metadata where available. |
| Location evidence | `storeId`, `clubId`, `storeName`, `location`, `requestedLocations`, `sourceClubId`, `storeAddress` | Resolved club, requested ZIPs and the club identified in the product response. |
| Traceability | `url`, `imageUrl`, `sourceUrl`, `scrapedAt` | Public product link, image, data source and observation timestamp. |

**Read `priceScope` before comparing prices.** With a club or ZIP selection, `price` is the selected club's pickup-channel price or null. `onlinePrice` is a separate shipping-channel price. With no location inputs, the row uses online scope and has no selected club ID. A shipping price never fills an absent club price.

### Choose a monitoring basket

Known product IDs are useful for a repeatable price and stock watchlist. Keep the IDs from a successful discovery run, then schedule that basket against the same club numbers. This avoids changes in the order and membership of keyword results.

Keywords and native category pages discover products from the website's default visitor assortment. Every discovered product is then checked independently at each requested club. This gives selected-club observations for those products, rather than promising a complete inventory of everything sold in a club.

The global `maxItems` limit counts delivered product-and-club rows. One product checked at three clubs can produce three rows. A product repeated in two keywords, a product link and an ID list is delivered and charged once for the same club.

### Start a run

1. Enter a keyword such as `coffee`, a public category link, product links or product IDs.
2. Enter US ZIP codes in `locations`, or exact club numbers in `storeIds`.
3. Set a product limit, start the Actor, then export the Product prices dataset view.

A basket at the Elgin club:

```json
{
  "productIds": ["15390012477", "13607613117"],
  "clubIds": ["4942"],
  "maxItems": 20
}
```

Keyword discovery with Dallas club selection:

```json
{
  "searchTerms": ["coffee"],
  "locations": ["75231"],
  "maxItemsPerSearch": 20,
  "maxItems": 20
}
```

A public category:

```json
{
  "startUrls": ["https://www.samsclub.com/browse/grocery/1444"],
  "postalCodes": ["60123"],
  "maxItemsPerSearch": 100,
  "maxItems": 100
}
```

Published savings:

```json
{
  "startUrls": ["https://www.samsclub.com/browse/16050279"],
  "clubIds": ["6372"],
  "dealsOnly": true,
  "maxItemsPerSearch": 100,
  "maxItems": 100
}
```

To monitor online prices, supply product IDs or keywords and omit location and club inputs.

### Inputs

| Input | Type | Default | Meaning |
| --- | --- | --- | --- |
| `searchTerms` | array of strings | `coffee` when no source is supplied | Product keywords. The site determines matching and order. |
| `startUrls` | array | empty | Public product, search, category or savings links on samsclub.com. |
| `productIds` | array of strings | empty | Numeric IDs from the end of `/ip/` URLs, up to 20,000 supplied values. These are not barcodes. |
| `locations` | array of strings | empty | Five-digit US ZIP codes. Selects the nearest club returned by the public locator. |
| `storeIds` | array of strings | empty | Exact numeric Sam's Club numbers. These take priority over nearest-club selection. |
| `postalCodes` | array of strings | empty | An alternative name for `locations`. Unique values from both names are combined. |
| `clubIds` | array of strings | empty | An alternative name for `storeIds`. Unique values from both names are combined. |
| `maxItemsPerSearch` | integer | 20 | Delivered rows per discovery source and club, up to 10,000. |
| `maxItems` | integer | 20 | Global product-and-club row limit, up to 20,000. |
| `dealsOnly` | boolean | false | Keep products with a published price reduction or Instant Savings. Cash rewards alone do not become a price reduction. |
| `includeDetails` | boolean | false | Include public description and specification data. No extra product charge. |
| `proxyConfiguration` | object | automatic | Default datacenter route first, with alternate direct and US residential routes when required. Explicit buyer settings are respected. |

When several ZIP codes resolve to one club, that club's product is delivered once. `requestedLocations` retains all supplied ZIPs for that club. With exact club IDs, ZIPs remain request context; they do not silently replace the requested clubs.

An explicit proxy disable, custom proxy, country or proxy group remains your choice. The documented automatic platform default permits fallback. The Actor does not change explicit proxy settings into residential access.

### Output example

A real observation at Elgin club 4942 on 11 November 2026, with some metadata omitted:

```json
{
  "retailer": "Sam's Club",
  "country": "US",
  "currency": "USD",
  "storeId": "4942",
  "storeName": "Elgin Sam's Club",
  "location": "60123",
  "productId": "15390012477",
  "gtin": "078742235035",
  "title": "Member's Mark Select & Tear 2-Ply Paper Towel 15 rolls, 150 sheets/roll",
  "price": 20.93,
  "onlinePrice": 20.93,
  "priceScope": "club pickup",
  "clubPriceVerified": true,
  "inStock": true,
  "clubStockLevel": "8+",
  "stockLevel": null,
  "unitPrice": 0.02,
  "unitOfMeasure": "sq ft",
  "sourceClubId": "4942",
  "recordType": "PRODUCT"
}
```

Product IDs, source SKUs and shelf item numbers have separate meanings. `gtin` is populated only from an explicit source UPC or GTIN with a valid format and check digit. Leading zeros are retained. A numeric product ID never becomes a barcode because it happens to have a valid checksum.

### Monitor prices every day

Save a successful input as an Apify task and attach it to an Apify schedule. Each run produces a dataset and observation timestamps. Retain those observations in your own database to build a history; the Actor reports current data rather than a historical price series.

Use `(retailer, storeId, productId)` as the key for club observations. Compare `clubPrice` and `onlinePrice` separately. A null price or stock value means the source did not report that observation, so it should not trigger an out-of-stock alert by itself.

Read the `SUMMARY` key-value record after each scheduled run. It reports delivered products, resolved clubs, deals, duplicate exclusions, free failures, spending-limit status and source outcomes. A keyword with no matches is reported as no matches. A source request that could not be read is reported separately.

Interrupted runs resume from their saved dataset and progress. Saved products and acknowledged charges are reconciled before further delivery. The same product at one club is not charged again simply because the Actor restarts.

### Price and spending limits

| Delivered product-and-club rows | List price including one run setup |
| --- | --- |
| 1 | $0.007 |
| 20 | $0.083 |
| 100 | $0.403 |
| 1,000 | $4.003 |

The examples include one $0.003 run setup. Bronze receives 5% off the product price, Silver 10%, and Gold and higher 20%; the setup remains $0.003 on every plan. The standard platform start charge is $0.00005 per memory unit, with the platform minimum. The Pricing tab is authoritative for the plan running the Actor.

Failed requests, empty matches, notes, retries and duplicate products have no product charge. Products without a numeric price in the requested scope or a published dated promotion are omitted without a product charge. An online price alone does not qualify a selected-club row. `SUMMARY.unpricedExclusions` counts these omissions; they do not consume the delivered-product limit. A dated promotion can retain a null price when the source omits it.

A $0.003 run setup is charged only with the first delivered product, once per run. Empty matches and runs without a delivered product have no setup charge. `runSetupFeeUsd` identifies the first product carrying this fee.

Both `maxItems` and Apify's maximum total charge apply. The Actor checks affordability before saving a billable row and stops when the next product cannot be charged. `SUMMARY.spendingLimitReached` records that outcome. Optional details use the same Product charge.

### API use

Start a run asynchronously and read the returned dataset after completion:

```bash
curl -X POST 'https://api.apify.com/v2/acts/moggedhq~sams-club-scraper/runs' \
  -H "Authorization: Bearer $APIFY_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{"productIds":["15390012477"],"clubIds":["4942"],"maxItems":20}'
```

Python:

```python
from apify_client import ApifyClient
import os

client = ApifyClient(os.environ['APIFY_TOKEN'])
run = client.actor('moggedhq/sams-club-scraper').call(run_input={
    'productIds': ['15390012477'],
    'clubIds': ['4942'],
    'maxItems': 20,
})
for row in client.dataset(run['defaultDatasetId']).iterate_items():
    if row.get('recordType') == 'PRODUCT':
        print(row['productId'], row['price'], row['onlinePrice'], row['inStock'])
```

JavaScript:

```javascript
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('moggedhq/sams-club-scraper').call({
  productIds: ['15390012477'], clubIds: ['4942'], maxItems: 20,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items.filter(row => row.recordType === 'PRODUCT'));
```

Dataset views provide price columns, promotion columns and full product records. The `DEALS` key-value record contains only delivered deal rows; a large export provides a part index. Free notes use `recordType: NOTE`, so filter `recordType` when loading numeric tables. `SUMMARY` provides coverage and source outcomes.

Use an Apify completion webhook to move completed results into your database or spreadsheet. Keep the source timestamp and club ID with every exported observation. Retaining each run's dataset ID makes a later audit easier.

### Use with AI agents (MCP)

Expose `moggedhq/sams-club-scraper` through https://mcp.apify.com and ask the agent to read the input schema first. For example: check product 15390012477 at Elgin club 4942, show club pickup and online prices separately, include pickup stock, limit to 20 rows, and report missing values as unknown.

The same family columns can be stacked with Costco and other US retail datasets. Keep retailer and store identifiers in the comparison key, and preserve fulfillment scope when comparing prices.

### Limits

This is an independent data tool.

- US public Sam's Club data only. Other country storefronts, checkout, account offers and membership credentials are outside the input scope.
- Use native `/browse/` category grids. Content-only `/cp/` landing pages may return a free unsupported-source note.
- Keyword and category discovery use the source's default visitor assortment. Selected-club checks apply to the products found there; this is not a complete shelf inventory or a guarantee that every product sold at a club appears in discovery.
- `regularPrice` is the source strikethrough/reference price. For major appliances it can represent a supplier suggested retail price.
- Club price means the public physical pickup channel returned for the selected club. It is not an independently audited shelf tag, checkout total or purchase guarantee.
- ZIP inputs resolve clubs. Shipping observations use the source's returned location, usually the club ZIP; they are not a custom delivery quote for every requested ZIP.
- The site can omit club price, stock, barcode, promotion dates, member offers or optional details. Missing values stay null. A product without a price in the requested scope or a dated promotion is omitted and has no Product or setup charge. This tool does not return stock-only rows. Standard public club prices can still require a membership to buy.
- Stock is an online signal. The source commonly caps a quantity at eight, so `8+` is a band and `stockLevel` stays null. Inventory, pickup windows and order limits can change after observation.
- Unit prices are published source values; during savings they can follow the reference price.
- Cash rewards and financing messages are retained when published, but do not by themselves become a reduced product price. Promotion end text without a published year stays text rather than an invented date.
- A source refusal can skip a product or discovery page. Read `SUMMARY.freeFailures` and its notes before treating a run as a complete monitoring basket.

### FAQ

#### Do I need a Sam's Club membership or login?

No login is needed to run the Actor. It reads public signed-out data and does not accept account cookies. A membership may still be required to purchase a product at the displayed price.

#### Can I check a club outside my own area?

Yes. Supply its numeric club ID. The Actor verifies the club and accepts a club product observation only when the source identifies that requested club.

#### Why is price null while onlinePrice has a value?

The source reported no physical pickup price for the selected club. A row with a published dated promotion can retain a null club price; otherwise it is omitted without a Product charge. A separate online price never fills the club price.

#### Does 8+ mean exactly eight units are on the shelf?

No. It is the website's capped quantity signal. A low-stock flag and lower reported quantities are retained, but these remain online inventory observations.

#### Why can the same product cost something different online?

Shipping and physical pickup are separate source channels. Compare the appropriate column for the channel your analysis needs.

#### Can I request only current savings?

Yes. Set `dealsOnly` to true, optionally using a public savings category. Only delivered matches receive a product charge.

#### Are UPCs and product IDs interchangeable?

No. Use the numeric ID from a product URL in `productIds`. The Actor exports a UPC or GTIN only when the source explicitly publishes one and it passes validation.

#### How do I get a repeatable basket?

Discover products once, save their IDs, then schedule those IDs against fixed club numbers. Keep the datasets to build price and stock history.

Sam's Club prices, sams club scraper, club pickup stock and published Instant Savings for scheduled retail monitoring.

# Actor input Schema

## `searchTerms` (type: `array`):

Product keywords, for example coffee or paper towels. Discover products from the default visitor assortment, then verify each at your selected clubs.

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

Public samsclub.com product, category, search or savings URLs. No account links.

## `productIds` (type: `array`):

Numeric item IDs from the end of a Sam's Club /ip/ product URL. These are not barcodes.

## `locations` (type: `array`):

US ZIP codes. Combined with postalCodes. Exact club IDs take priority over nearest-club selection.

## `storeIds` (type: `array`):

Exact Sam's Club numbers. Combined with clubIds. Each requested club must be verified in the source response.

## `maxItemsPerSearch` (type: `integer`):

Maximum product rows per keyword, linked savings page or category source at each club. Product ID lists use the global maxItems limit.

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

Global product row limit across selected clubs. $0.004 per delivered product plus $0.003 once on the first delivered product; 20 products cost about $0.083 plus the small platform start charge.

## `dealsOnly` (type: `boolean`):

Keep products carrying a current Instant Savings promotion or a published reduced price.

## `includeDetails` (type: `boolean`):

Add product-page description, specifications and explicitly published UPC/GTIN when available. No extra fee.

## `proxyConfiguration` (type: `object`):

Automatic: account-default datacenter first, direct HTTP where datacenter refuses, then US residential retry. Explicit proxy settings are respected.

## `postalCodes` (type: `array`):

Same purpose as locations. If both are supplied, unique ZIP codes from both are used.

## `clubIds` (type: `array`):

Same purpose as storeIds. If both are supplied, unique club IDs from both are used; exact IDs take priority over nearest-club selection.

## Actor input object example

```json
{
  "searchTerms": [
    "coffee"
  ],
  "locations": [
    "75231"
  ],
  "maxItemsPerSearch": 20,
  "maxItems": 20,
  "dealsOnly": false,
  "includeDetails": false,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

No description

## `dealsView` (type: `string`):

No description

## `dealsOnly` (type: `string`):

No description

## `summary` (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 = {
    "searchTerms": [
        "coffee"
    ],
    "locations": [
        "75231"
    ],
    "maxItemsPerSearch": 20,
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("moggedhq/sams-club-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 = {
    "searchTerms": ["coffee"],
    "locations": ["75231"],
    "maxItemsPerSearch": 20,
    "maxItems": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("moggedhq/sams-club-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 '{
  "searchTerms": [
    "coffee"
  ],
  "locations": [
    "75231"
  ],
  "maxItemsPerSearch": 20,
  "maxItems": 20
}' |
apify call moggedhq/sams-club-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,moggedhq/sams-club-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/x4jphDPIdrMoCfgTM/builds/8yEiI7tYjBFmVWd0S/openapi.json
