# Iherb Review Spider (`getdataforme/iherb-review-spider`) Actor

The iHerb Review Spider efficiently scrapes customer reviews from iHerb product pages, extracting ratings, comments, and timestamps for valuable insights into product sentiment....

- **URL**: https://apify.com/getdataforme/iherb-review-spider.md
- **Developed by:** [GetDataForMe](https://apify.com/getdataforme) (community)
- **Categories:** AI, Agents, E-commerce
- **Stats:** 7 total users, 0 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $9.00 / 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.

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

## Iherb Review Spider

### Introduction

The Iherb Review Spider is a powerful Apify Actor designed to scrape customer reviews from iHerb product pages efficiently and reliably. It extracts detailed review data, including ratings, comments, and timestamps, enabling users to gather valuable insights into product performance and customer sentiment. This tool is ideal for e-commerce analysis, market research, and competitive intelligence, providing high-quality data with minimal setup.

### Features

- **Comprehensive Review Extraction**: Captures full review details such as ratings, comments, reviewer names, and dates from iHerb product pages.
- **High Reliability**: Built with robust error handling to ensure consistent data scraping even from dynamic web pages.
- **Scalable Performance**: Handles multiple URLs concurrently, making it suitable for large-scale data collection.
- **Customizable Inputs**: Accepts a list of URLs for targeted scraping, allowing flexibility in data sources.
- **Structured Output**: Delivers clean, JSON-formatted data ready for analysis or export to CSV/Excel.
- **Apify Integration**: Seamlessly runs on the Apify platform with easy monitoring and result export.
- **Ethical Scraping**: Respects website terms and includes built-in delays to avoid overloading servers.

### Input Parameters

| Parameter | Type    | Required | Description                                                                 | Example |
|-----------|---------|----------|-----------------------------------------------------------------------------|---------|
| Urls      | array   | Yes      | A list of URLs pointing to iHerb product pages from which reviews will be scraped. Each URL must be a valid HTTP/HTTPS link. | \["https://np.iherb.com/pr/california-gold-nutrition-ashwagandha-450-mg-180-veggie-capsules/89863"] |

### Example Usage

To run the Iherb Review Spider, provide input in JSON format like this:

```json
{
  "Urls": [
    "https://np.iherb.com/pr/california-gold-nutrition-ashwagandha-450-mg-180-veggie-capsules/89863"
  ]
}
```

Example output (in JSON format):

```json
[
  {
    "productUrl": "https://np.iherb.com/pr/california-gold-nutrition-ashwagandha-450-mg-180-veggie-capsules/89863",
    "reviewerName": "John Doe",
    "rating": 5,
    "reviewDate": "2023-10-15",
    "reviewTitle": "Great product!",
    "reviewText": "This ashwagandha supplement has really helped with my stress levels. Highly recommend.",
    "verifiedPurchase": true,
    "helpfulVotes": 12
  },
  {
    "productUrl": "https://np.iherb.com/pr/california-gold-nutrition-ashwagandha-450-mg-180-veggie-capsules/89863",
    "reviewerName": "Jane Smith",
    "rating": 4,
    "reviewDate": "2023-09-22",
    "reviewTitle": "Effective but pricey",
    "reviewText": "Works well for anxiety, but the price is a bit high compared to alternatives.",
    "verifiedPurchase": true,
    "helpfulVotes": 8
  }
]
```

### Use Cases

- **Market Research and Analysis**: Analyze customer feedback to identify trends in product popularity and satisfaction.
- **Competitive Intelligence**: Compare reviews across similar products to gauge market positioning.
- **Price Monitoring**: Track review sentiments alongside pricing data for dynamic pricing strategies.
- **Content Aggregation**: Collect and aggregate reviews for content creation, such as blog posts or reports.
- **Academic Research**: Gather data for studies on consumer behavior in e-commerce.
- **Business Automation**: Automate the collection of review data for regular reporting and dashboards.

### Installation and Usage

1. Search for "Iherb Review Spider" in the Apify Store
2. Click "Try for free" or "Run"
3. Configure input parameters
4. Click "Start" to begin extraction
5. Monitor progress in the log
6. Export results in your preferred format (JSON, CSV, Excel)

### Output Format

The output is an array of JSON objects, each representing a single review. Key fields include:

- `productUrl`: The URL of the product page.
- `reviewerName`: Name of the reviewer.
- `rating`: Numerical rating (e.g., 1-5).
- `reviewDate`: Date of the review in YYYY-MM-DD format.
- `reviewTitle`: Title of the review.
- `reviewText`: Full text of the review.
- `verifiedPurchase`: Boolean indicating if the purchase was verified.
- `helpfulVotes`: Number of helpful votes received.

This structured format ensures easy parsing and integration with data analysis tools.

### Support

For custom/simplified outputs or bug reports, please contact:

- Email: support@getdataforme.com
- Subject line: "custom support"
- Contact form: https://getdataforme.com/contact/

We're here to help you get the most out of this Actor!

***

# Actor input Schema

## `Urls` (type: `array`):

The urls for the spider.

## Actor input object example

```json
{
  "Urls": [
    "https://np.iherb.com/pr/california-gold-nutrition-ashwagandha-450-mg-180-veggie-capsules/89863"
  ]
}
```

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("getdataforme/iherb-review-spider").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("getdataforme/iherb-review-spider").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 '{}' |
apify call getdataforme/iherb-review-spider --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=getdataforme/iherb-review-spider",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/2cA4vHQq7MeNPHj12/builds/vGgmRMVlfgcRAform/openapi.json
