# Sam S Club Reviews Scraper (`kawsar/sam-s-club-reviews-scraper`) Actor

Sam's Club reviews scraper that collects product ratings and review text from samsclub.com, so e-commerce analysts and brand managers can monitor shopper sentiment without manual work.

- **URL**: https://apify.com/kawsar/sam-s-club-reviews-scraper.md
- **Developed by:** [Kawsar](https://apify.com/kawsar) (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 $3.99 / 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.
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 Reviews Scraper: Collect Product Reviews and Ratings from Samsclub.com

Sam's Club Reviews Scraper pulls customer reviews and star ratings from any Sam's Club product page. Provide one or more product review URLs and get back each review's rating, title, body text, reviewer name, submission date, verified purchase status, and helpful vote count. Pagination runs automatically, so you get the full review history without any manual effort.

### Use cases

- **Product research**: read what shoppers say about a product before adding it to your catalog or inventory
- **Sentiment analysis**: pipe review text into NLP pipelines to classify tone and surface recurring issues
- **Brand monitoring**: track new reviews on your products and spot rating changes before they compound
- **Competitor analysis**: compare customer satisfaction scores across competing products on Sam's Club
- **E-commerce analytics**: measure how review volume and average ratings shift over time

### Input

| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| `productUrl` | string | - | Sam's Club product reviews URL (single product) |
| `productUrls` | array | - | List of Sam's Club product review URLs for batch runs |
| `maxItems` | integer | 100 | Maximum total reviews to collect across all products |
| `requestTimeoutSecs` | integer | 30 | Per-request timeout in seconds |

#### Example input

```json
{
    "productUrl": "https://www.samsclub.com/reviews/product/15389952544?entryPoint=viewAllReviewsTop",
    "maxItems": 200,
    "requestTimeoutSecs": 30
}
````

Batch example:

```json
{
    "productUrls": [
        "https://www.samsclub.com/reviews/product/15389952544?entryPoint=viewAllReviewsTop",
        "https://www.samsclub.com/reviews/product/prod1234567"
    ],
    "maxItems": 500
}
```

### Output

Each record in the dataset is one review. Here is what a typical result looks like:

```json
{
    "productId": "15389952544",
    "productUrl": "https://www.samsclub.com/reviews/product/15389952544",
    "reviewId": "bv-12345678",
    "rating": 5,
    "reviewTitle": "Great value for the price",
    "reviewBody": "Really happy with this purchase. Fast delivery and exactly as described.",
    "reviewerName": "MemberShopper2024",
    "reviewDate": "2024-11-15T00:00:00.000Z",
    "verifiedPurchase": true,
    "helpfulVotes": 12,
    "totalFeedbackCount": 14,
    "overallRating": 4.6,
    "totalReviews": 847,
    "ratingDistribution": {"5": 612, "4": 143, "3": 58, "2": 21, "1": 13},
    "scrapedAt": "2025-01-15T10:23:45.123456+00:00",
    "error": null
}
```

| Field | Type | Description |
|-------|------|-------------|
| `productId` | string | Sam's Club product identifier |
| `productUrl` | string | Full product reviews page URL |
| `reviewId` | string | Unique review identifier |
| `rating` | number | Star rating from the reviewer (1 to 5) |
| `reviewTitle` | string | Review headline |
| `reviewBody` | string | Full review text |
| `reviewerName` | string | Reviewer display name |
| `reviewDate` | string | Review submission date |
| `verifiedPurchase` | boolean | Whether the reviewer purchased the product |
| `helpfulVotes` | integer | Number of helpful votes |
| `totalFeedbackCount` | integer | Total feedback interactions |
| `overallRating` | number | Product average star rating |
| `totalReviews` | integer | Total reviews for this product on Sam's Club |
| `ratingDistribution` | object | Review count per star level, e.g. `{"5": 612, "4": 143}` |
| `scrapedAt` | string | ISO 8601 timestamp of when data was collected |
| `error` | string | Error message if the request failed; null on success |

### How it works

1. Reads one or more Sam's Club product review URLs from the input
2. Fetches each page through built-in bypass infrastructure that handles bot detection
3. Extracts review data from embedded JavaScript (Next.js or Bazaarvoice JSON) when present
4. Falls back to HTML parsing if no embedded JSON is found
5. Follows pagination automatically until the review limit is reached
6. Stores each review as an individual record in the dataset

### URL format

The actor accepts Sam's Club product review URLs in this format:

```
https://www.samsclub.com/reviews/product/{productId}
https://www.samsclub.com/reviews/product/{productId}?entryPoint=viewAllReviewsTop
```

You can also paste a regular product page URL. The actor extracts the product ID and builds the correct reviews URL automatically.

### FAQ

**How many reviews can I collect per run?**
Up to 1,000 reviews. Set `maxItems` to control the total.

**Can I scrape multiple products in one run?**
Yes. Add all URLs to the `productUrls` list. The actor processes them in sequence and stops once `maxItems` is reached across all products.

**What happens if a product page fails?**
The actor logs the error and writes a record with an `error` field for that product, then continues with the remaining URLs.

**Does the actor collect the overall product rating too?**
Yes. Each review record includes `overallRating`, `totalReviews`, and `ratingDistribution` pulled from the same page.

### Integrations

Connect Sam's Club Reviews Scraper with other apps using [Apify integrations](https://apify.com/integrations). Works with Make, Zapier, Slack, Google Sheets, Google Drive, and more. Use [webhooks](https://docs.apify.com/integrations/webhooks) to trigger downstream actions whenever the actor finishes a run.

# Actor input Schema

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

List of Sam's Club product review URLs to scrape in one run. One URL per line.

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

Maximum number of reviews to collect per product URL. Each URL is scraped independently up to this limit.

## `requestTimeoutSecs` (type: `integer`):

Per-request timeout in seconds. Increase to 90-120 if runs time out on later pages.

## Actor input object example

```json
{
  "productUrls": [
    "https://www.samsclub.com/reviews/product/15389952544?entryPoint=viewAllReviewsTop",
    "https://www.samsclub.com/reviews/product/prod1234567"
  ],
  "maxItems": 100,
  "requestTimeoutSecs": 60
}
```

# 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.samsclub.com/reviews/product/15389952544?entryPoint=viewAllReviewsTop"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("kawsar/sam-s-club-reviews-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.samsclub.com/reviews/product/15389952544?entryPoint=viewAllReviewsTop"] }

# Run the Actor and wait for it to finish
run = client.actor("kawsar/sam-s-club-reviews-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 '{
  "productUrls": [
    "https://www.samsclub.com/reviews/product/15389952544?entryPoint=viewAllReviewsTop"
  ]
}' |
apify call kawsar/sam-s-club-reviews-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=kawsar/sam-s-club-reviews-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Sam S Club Reviews Scraper",
        "description": "Sam's Club reviews scraper that collects product ratings and review text from samsclub.com, so e-commerce analysts and brand managers can monitor shopper sentiment without manual work.",
        "version": "0.0",
        "x-build-id": "pj5E3lvSyAiO9r7aM"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/kawsar~sam-s-club-reviews-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-kawsar-sam-s-club-reviews-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/kawsar~sam-s-club-reviews-scraper/runs": {
            "post": {
                "operationId": "runs-sync-kawsar-sam-s-club-reviews-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/kawsar~sam-s-club-reviews-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-kawsar-sam-s-club-reviews-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",
                "properties": {
                    "productUrls": {
                        "title": "Product URLs (batch)",
                        "type": "array",
                        "description": "List of Sam's Club product review URLs to scrape in one run. One URL per line.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "maxItems": {
                        "title": "Max reviews per product",
                        "minimum": 1,
                        "maximum": 1000,
                        "type": "integer",
                        "description": "Maximum number of reviews to collect per product URL. Each URL is scraped independently up to this limit.",
                        "default": 100
                    },
                    "requestTimeoutSecs": {
                        "title": "Request timeout (seconds)",
                        "minimum": 10,
                        "maximum": 180,
                        "type": "integer",
                        "description": "Per-request timeout in seconds. Increase to 90-120 if runs time out on later pages.",
                        "default": 60
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
