# Shopify Reviews Scraper (`mighty_monk/shopify-reviews-scraper`) Actor

Pull customer reviews from Shopify product pages for competitor VOC research and ad creative mining. Supports Judge.me, Loox, Stamped, Yotpo, Shopify Product Reviews, and Okendo when detectable.

- **URL**: https://apify.com/mighty\_monk/shopify-reviews-scraper.md
- **Developed by:** [Harsh](https://apify.com/mighty_monk) (community)
- **Categories:** E-commerce, AI
- **Stats:** 15 total users, 13 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 review scrapeds

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — 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

### What does Shopify Reviews Scraper do?

**Shopify Reviews Scraper** pulls **customer reviews** from public Shopify product pages for competitor **voice-of-customer (VOC)** research and **ad creative mining**. Point it at one or more product URLs and get structured ratings, titles, bodies, authors, dates, and verified flags — plus product summaries.

Built with **TypeScript** and **Crawlee CheerioCrawler**. When a common review widget is detected, the Actor prefers public JSON/widget endpoints (with HTML/DOM fallbacks):

| Widget | Source value |
| ------ | ------------ |
| Judge.me | `judgeme` |
| Loox | `loox` |
| Stamped | `stamped` |
| Yotpo | `yotpo` |
| Shopify Product Reviews (SPR) | `shopify_spr` |
| Okendo | `okendo` |
| Schema.org / generic DOM | `schema_org` / `generic_dom` |

### Why use it?

- **Ad copy mining** — harvest real 5-star phrases and objections for DTC creatives
- **Competitor VOC** — compare rating distributions and review volume across stores
- **Product research** — export clean review text for NLP / sentiment pipelines
- **Batch product URLs** — concurrency, rate limiting, retries, and Apify Proxy

### How to use

1. Open the Actor in Apify Console and click **Try for free**
2. Paste one or more Shopify product URLs, e.g. `https://example-store.com/products/some-product`
3. Set **Max reviews per product**, optional **min/max rating**, and enable **Apify Proxy**
4. Click **Start** — download JSON/CSV/Excel from the dataset, or `REVIEWS.csv` / `SUMMARY.md` from key-value storage

### Input

| Field                   | Type     | Default | Description                                      |
| ----------------------- | -------- | ------- | ------------------------------------------------ |
| `productUrls`           | string\[] | —       | Shopify `/products/{handle}` URLs (required)     |
| `maxReviewsPerProduct`  | integer  | `100`   | Cap reviews collected per product                |
| `minRating`             | integer  | `1`     | Minimum star rating (1–5)                        |
| `maxRating`             | integer  | `5`     | Maximum star rating (1–5)                        |
| `maxConcurrency`        | integer  | `3`     | Parallel requests                                |
| `maxRequestRetries`     | integer  | `3`     | HTTP retries                                     |
| `requestDelayMs`        | integer  | `500`   | Used to derive requests/minute rate limit        |
| `proxyConfiguration`    | object   | Proxy on| Apify Proxy settings                             |

Example:

```json
{
    "productUrls": [
        "https://example-store.com/products/some-product"
    ],
    "maxReviewsPerProduct": 100,
    "maxConcurrency": 3,
    "maxRequestRetries": 3,
    "requestDelayMs": 500,
    "proxyConfiguration": { "useApifyProxy": true },
    "minRating": 1,
    "maxRating": 5
}
```

### Output

The dataset contains **review** rows and **product** summary rows (`type` field).

#### Review item

| Field           | Description                          |
| --------------- | ------------------------------------ |
| `productUrl`    | Source product URL                   |
| `productTitle`  | Product title when detected          |
| `productId`     | Shopify product id when detected     |
| `reviewId`      | Stable id (deduped)                  |
| `rating`        | Stars 1–5                            |
| `title`         | Review title                         |
| `body`          | Review text                          |
| `author`        | Reviewer display name                |
| `date`          | ISO date when parseable              |
| `verified`      | Verified buyer flag when available   |
| `source`        | Widget / extraction method           |

#### Product summary

| Field            | Description                              |
| ---------------- | ---------------------------------------- |
| `productUrl`     | Product URL                              |
| `productTitle`   | Title                                    |
| `productId`      | Shopify id                               |
| `handle`         | Product handle                           |
| `reviewSource`   | Detected widget                          |
| `averageRating`  | From Schema.org or scraped sample        |
| `totalReviews`   | Reported count when available            |
| `reviewsScraped` | Count stored for this product in the run |

Example review:

```json
{
    "type": "review",
    "productUrl": "https://example-store.com/products/some-product",
    "productTitle": "Some Product",
    "productId": "7234567890123",
    "reviewId": "judgeme-1001",
    "rating": 5,
    "title": "Worth every penny",
    "body": "Soft fabric, true to size, and arrived faster than expected.",
    "author": "Alex M.",
    "date": "2026-06-12T14:22:00.000Z",
    "verified": true,
    "source": "judgeme",
    "scrapedAt": "2026-07-13T12:00:00.000Z"
}
```

#### Key-value exports

| Key           | Description                                      |
| ------------- | ------------------------------------------------ |
| `REVIEWS.csv` | All review rows as CSV                           |
| `SUMMARY.md`  | Markdown run report (VOC samples + distributions)|
| `OUTPUT`      | JSON run totals                                  |

### Features

- Multi-widget detection (Judge.me, Loox, Stamped, Yotpo, SPR, Okendo)
- Public widget JSON endpoints when available + HTML/DOM + Schema.org fallbacks
- Pagination until `maxReviewsPerProduct`
- Min/max rating filters
- Deduplication by `reviewId`
- Dataset: one review per row + product summary
- Retries, rate limit, concurrency, Apify Proxy

### Pricing

Pay-per-event: **$0.002 per review** dataset item (plus a small actor-start fee). Product summary rows are also dataset items.

### Limitations

- Review apps that load **only** after heavy client-side JavaScript may return fewer reviews without a public widget API
- Private authenticated review APIs are **not** used
- Always respect store terms of service and robots policies; use moderate concurrency

### Development

```bash
cd factory/shopify-reviews-scraper
npm install
npm test
npm run build
apify run -p
```

### License

Apache-2.0

# Actor input Schema

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

Shopify product page URLs (e.g. https://example-store.com/products/some-product).

## `maxReviewsPerProduct` (type: `integer`):

Maximum number of reviews to collect for each product URL.

## `minRating` (type: `integer`):

Only include reviews with star rating greater than or equal to this value (1–5).

## `maxRating` (type: `integer`):

Only include reviews with star rating less than or equal to this value (1–5).

## `maxConcurrency` (type: `integer`):

Maximum parallel HTTP requests. Keep moderate to reduce rate-limiting.

## `maxRequestRetries` (type: `integer`):

How many times to retry a failed HTTP request before giving up.

## `requestDelayMs` (type: `integer`):

Approximate delay between requests via maxRequestsPerMinute (60000 / delay).

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

Apify Proxy settings. Recommended for production runs against live stores.

## Actor input object example

```json
{
  "productUrls": [
    "https://example-store.com/products/some-product"
  ],
  "maxReviewsPerProduct": 100,
  "minRating": 1,
  "maxRating": 5,
  "maxConcurrency": 3,
  "maxRequestRetries": 3,
  "requestDelayMs": 500,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `dataset` (type: `string`):

No description

## `reviewsCsv` (type: `string`):

No description

## `summaryMd` (type: `string`):

No description

## `output` (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://example-store.com/products/some-product"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("mighty_monk/shopify-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://example-store.com/products/some-product"] }

# Run the Actor and wait for it to finish
run = client.actor("mighty_monk/shopify-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://example-store.com/products/some-product"
  ]
}' |
apify call mighty_monk/shopify-reviews-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/mg1IdABmyYOm3cWG5/builds/RALnF62S2eg3WKFxb/openapi.json
