# iHerb Product Scraper | Prices, Reviews & Q\&A (`datascraperes/iherb-catalog-scraper`) Actor

Extract iHerb products by keyword, category or product ID. Get prices, discounts, stock, ingredients and supplement facts, with optional variants, review samples and customer Q\&A in each product row. Choose country, language and currency, then export JSON, CSV or Excel.

- **URL**: https://apify.com/datascraperes/iherb-catalog-scraper.md
- **Developed by:** [DataScraperES](https://apify.com/datascraperes) (community)
- **Features:** Limited permissions
- **Stats:** 4 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.50 / 1,000 product delivereds

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

Scrape public iHerb products, prices and stock by keyword, category or product ID across country stores. Every product can be enriched with descriptions, supplement facts, variants, review distributions, customer reviews with photos and Q\&A. **One row per unique product**, ready for pricing analysis, catalog monitoring or competitor research.

### What this Actor does

The Actor reads iHerb's public catalog data for the store you choose (country, language and currency) and writes one dataset item per product. It paginates search and category results, removes duplicates, and can enrich each product with:

- current price, list price, price per unit and stock status;
- images, package quantity, weight, dimensions and expiration date;
- description, ingredients, suggested use, supplement facts and product warnings;
- category breadcrumbs and specification values;
- size, potency and form variants with their own product IDs and prices;
- rating distribution and review counts by language;
- individual reviews with author country, photos and helpful votes;
- customer questions with their top answers.

Results contain structured product data for the selected store.

### Use cases

- Track supplement prices and stock across countries before a purchase or a repricing decision.
- Build a review corpus with ratings, languages and photos for sentiment or quality analysis.
- Compare product variants and package sizes for the same formula.
- Monitor category or keyword rankings and new arrivals without opening every product page.
- Feed product, price and review data into BI tools or AI agents.

### How to use

1. Open the Actor in Apify Console.
2. Enter search keywords and choose **Maximum products**. The initial example collects just 2 products.
3. Keep the default US / English / USD store, or open the optional sections to use categories or product IDs, enable extra data, or change the store.
4. Click **Start** and open the Dataset when the run finishes.

### Input

Start with **Search for products** and **Maximum products**. The remaining fields are grouped into **Other ways to find products**, **Extra product data** and **Store and sorting**. Variants, reviews and questions are off in the initial example; enable them when needed.

Direct product IDs require `includeDetails: true`. Provide at least one source: `searchQueries`, `categoryNames` or `productIds`. Duplicates are removed and `maxItems` caps the total number of unique products.

| Field | Type | Default | Purpose |
|---|---|---|---|
| `searchQueries` | array | – | Keywords such as `vitamin c`. Up to 50 per run. |
| `categoryNames` | array | – | Category URL names from `iherb.com/c/<name>`, such as `magnesium`. |
| `productIds` | array | – | Direct product IDs (the number at the end of a product URL). |
| `maxItems` | integer | 50 | Total unique products to deliver (1–5000). |
| `country` | string | `US` | Store country that defines prices and stock. |
| `language` | string | `en-US` | Product language. |
| `currency` | string | `USD` | Currency that matches the store. |
| `sort` | enum | `featured` | Result order, including price, rating and newest. |
| `includeDetails` | boolean | `true` | Enrich each product with description, facts and stock. |
| `includeVariants` | boolean | `false` | Add size, potency and form variants. |
| `includeReviews` | boolean | `false` | Add rating distribution and reviews. |
| `maxReviewsPerProduct` | integer | 20 | Reviews per product (0–200), read in pages of 20. |
| `reviewsWithPhotosOnly` | boolean | `false` | Keep only reviews with customer photos. |
| `includeQuestions` | boolean | `false` | Add customer questions and top answers. |
| `maxQuestionsPerProduct` | integer | 10 | Questions per product (0–100). |

```json
{
  "searchQueries": [
    "vitamin c"
  ],
  "maxItems": 2
}
```

Reviews are optional and billed separately through `review-result`: one event per unique review saved inside a product row. Product and review limits apply independently. Check the Pricing tab for the applicable review rate before enabling reviews.

Complete example with every available option:

```json
{
  "searchQueries": [
    "vitamin c"
  ],
  "maxItems": 2,
  "categoryNames": [],
  "productIds": [],
  "includeDetails": true,
  "includeVariants": false,
  "includeReviews": false,
  "maxReviewsPerProduct": 2,
  "reviewsWithPhotosOnly": false,
  "includeQuestions": false,
  "maxQuestionsPerProduct": 2,
  "country": "US",
  "language": "en-US",
  "currency": "USD",
  "sort": "featured"
}
```

Price, language and stock come from the selected store. Use a matching combination such as `DE` + `de-DE` + `EUR` or `JP` + `ja-JP` + `JPY`.

### Output

Results are stored in the default Dataset, one row per unique product, plus a `RUN_SUMMARY` record in the key-value store with counts, applied settings and any per-target errors.

```json
{
  "recordType": "product",
  "source": "search",
  "query": "vitamin c",
  "country": "US",
  "language": "en-US",
  "currency": "USD",
  "warnings": [],
  "productId": 61864,
  "name": "Gold C®, USP Grade Vitamin C, 1,000 mg, 60 Veggie Capsules",
  "brand": "California Gold Nutrition",
  "brandCode": "CGN",
  "partNumber": "CGN-00931",
  "url": "https://www.iherb.com/pr/california-gold-nutrition-gold-c-usp-grade-vitamin-c-1-000-mg-60-veggie-capsules/61864",
  "price": "$6.42",
  "priceValue": 6.42,
  "listPrice": "$6.42",
  "listPriceValue": 6.42,
  "retailPrice": "",
  "pricePerUnit": "$0.11/serving",
  "rating": 4.8,
  "reviewCount": 389497,
  "inStock": true,
  "stockStatus": "In stock",
  "stockLeft": null,
  "isDiscontinued": false,
  "isComingSoon": false,
  "packageQuantity": "60 count",
  "weight": "0.2 lb",
  "dimensions": "3.8 x 2.05 x 2.05 in",
  "expirationDate": "12/2027",
  "imageUrl": "https://s3.images-iherb.com/cgn/cgn00931/l/383.jpg",
  "images": [
    "https://s3.images-iherb.com/cgn/cgn00931/l/383.jpg",
    "https://s3.images-iherb.com/cgn/cgn00931/l/388.jpg",
    "https://s3.images-iherb.com/cgn/cgn00931/l/258.jpg",
    "https://s3.images-iherb.com/cgn/cgn00931/l/239.jpg",
    "https://s3.images-iherb.com/cgn/cgn00931/l/240.jpg",
    "https://s3.images-iherb.com/cgn/cgn00931/l/259.jpg",
    "https://s3.images-iherb.com/cgn/cgn00931/l/260.jpg",
    "https://s3.images-iherb.com/cgn/cgn00931/l/261.jpg"
  ],
  "categories": [
    "California Gold Nutrition",
    "Brands A-Z",
    "Ascorbic Acid",
    "Vitamin C",
    "Vitamins",
    "Supplements",
    "Categories",
    "Common Cold & Flu",
    "Health Topics"
  ],
  "specs": null,
  "description": "California Gold Nutrition Gold C®, 1000 mg\nFeaturing USP-Grade Vitamin C\nHelps Support Immune Health and Overall Wellness*\nSuitable for Vegetarians\nFormulated without Gluten, GMOs, or Soy\nProduced in a 3rd Party Audited cGMP Registered (Certified) Facility\n100% Gold Guarantee\n\nVitamin C is a well-known essential vitamin that you must get from your daily diet, as your body is unable to produce it. California Gold Nutrition Gold C® contains a powerful dose of this vitamin, helping to ensure you get your recommended daily amount in one easy step.\nBenefits of Gold C® Vitamin C\nOur Gold C® is formulated with high quality vitamin C that is triple quality tested to ensure that it meets or exceeds strict quality standards. Taking a daily vitamin C supplement, like Gold C®, may provide numerous health benefits, as this nutrient is known for its antioxidant properties. It has even been shown to help regenerate other antioxidants within the body.* In addition, vitamin C plays an important role in immune function, which may help to further promote overall wellness.*\nCalifornia Gold Nutrition Gold C® features USP Grade vitamin C (as ascorbic acid) in veggie capsules. This supplement is suitable for vegetarians and formulated without gluten, GMOs, or soy.\nThird-Party Tested\nOur products undergo quality testing where they are evaluated by an independent ISO-certified lab using scientifically-validated test methods to ensure authenticity, purity, and potency of ingredients. For added transparency, we make the results available to you in our iTested Verified Reports so you can see for yourself.\n\niTested Report",
  "ingredients": "Main Ingredients\nVitamin C (as Ascorbic Acid)\nOther Ingredients\nModified Cellulose (Hypromellose Veggie Capsule) and Magnesium Stearate.\nNot manufactured with milk, eggs, fish, crustacean shellfish, tree nuts, peanuts, wheat, soy, sesame, or gluten. Produced in an FDA-registered, third-party audited, and cGMP-compliant facility that may process other products that contain these allergens or ingredients.",
  "suggestedUse": "Take 1 capsule daily, with or without food. Best when taken as directed by a qualified healthcare professional.",
  "productWarnings": "Keep out of the reach of children. Consult with a licensed physician, pharmacist, naturopath or other qualified healthcare professional prior to taking dietary supplements.\nSealed for your protection. Do not use if seal is missing or broken. Store in a cool, dry place. Protect from heat, light, and moisture.\nAroma, color, and consistency may vary. Color shift is normal and cannot be avoided.",
  "supplementFacts": "Supplement Facts\nServing Size: 1 Capsule\nServings Per Container: 60\n\nAmount Per Serving%Daily Value\nVitamin C (as Ascorbic Acid)1,000 mg1,111%",
  "detailLoaded": true,
  "discountPercentage": "20",
  "promoCode": "OCT26DAILY",
  "scrapedAt": "2026-11-03T17:22:15.907449+00:00"
}
```

Dataset rows can be exported to JSON, CSV, Excel and XML. The Dataset includes a **Products** table view with the main price, rating and stock columns.

### Pricing

The billing contract is pay per event: **one `product-result` event per unique product successfully stored in the Dataset**, plus **one `review-result` event per unique review stored inside that product** when reviews are enabled. Details, variants, rating summaries and Q\&A are included in the product price. Empty results and duplicate reviews do not create review charges. Check the Actor's **Pricing** tab for current prices and availability before starting.

| Apify plan | Price per product | Equivalent per 1,000 products |
|---|---:|---:|
| FREE | $0.002 | $2.00 |
| BRONZE | $0.0018 | $1.80 |
| SILVER | $0.0016 | $1.60 |
| GOLD | $0.0015 | $1.50 |
| PLATINUM | $0.0015 | $1.50 |
| DIAMOND | $0.0015 | $1.50 |

Optional individual reviews have the following additional price:

| Apify plan | Price per review | Equivalent per 1,000 reviews |
|---|---:|---:|
| FREE | $0.0005 | $0.50 |
| BRONZE | $0.00045 | $0.45 |
| SILVER | $0.0004 | $0.40 |
| GOLD | $0.000375 | $0.375 |
| PLATINUM | $0.000375 | $0.375 |
| DIAMOND | $0.000375 | $0.375 |

Prices are in USD and include the run's platform usage. Product and review events are added together. For example, 5 products containing 1,000 reviews cost $0.51 on FREE. You pay for the actual number delivered; you do not need to collect 1,000. There is no additional startup fee.

The spending limit covers both events. When it permits a product but fewer reviews than requested, the Actor saves that product with the reviews that fit and reports an incomplete run. `maxItems` limits products; `maxReviewsPerProduct` limits reviews for each product.

### Related Actors

| Actor | Best for |
|---|---|
| [Wayfair Scraper | Product Specs, Prices & Stock](https://apify.com/datascraperes/wayfair-scraper) | Home-goods product specs, prices and stock. |
| [Woolworths Product Scraper | Prices & Nutrition](https://apify.com/datascraperes/woolworths-products-scraper) | Grocery prices with nutrition data. |
| [Tokopedia Products, Shops & Reviews Scraper](https://apify.com/datascraperes/tokopedia-product-intelligence) | Marketplace product and review intelligence. |
| [Shopify Products Scraper | Prices & Variants](https://apify.com/datascraperes/shopify-products-scraper) | Store-level products with variant pricing. |

### Limits and data quality

- Only public catalog data is read. No account, cart, order or personalized price is collected.
- Search returns up to 48 products per page. The Actor paginates until `maxItems` is reached or the source is exhausted.
- Reviews are returned in pages of 20; `maxReviewsPerProduct` is the hard cap.
- Prices, promotions and stock change frequently. A product may be out of stock or discontinued between runs.
- Availability and country restrictions depend on the selected store and product. Missing requested details are reported as warnings and an incomplete run.
- Optional fields are omitted or `null` when iHerb does not publish them for a product; row-level problems appear in `warnings`.
- Incorrect input, including unknown monetary currency codes, is reported as a warning with fields to correct. The run ends normally, with `status: "input_needs_correction"` and `complete: false` in `RUN_SUMMARY`. Use an active ISO 4217 currency that matches the selected store. No product rows or product events are created for invalid input or unavailable IDs.
- Unavailable IDs do not consume `maxItems`. The Actor continues with remaining IDs and source targets when access and time permit. Confirmed valid products remain available and are counted once; the summary preserves unavailable-target warnings after a restart. Correct the indicated IDs or selected country before trying again.
- If iHerb data remains unavailable or collection reaches its time budget, the Actor ends normally with `status: "partial"` and `complete: false` in `RUN_SUMMARY`. Confirmed products remain available; this is not a complete extraction.
- Unreadable recovery records or unresolved delivery and billing effects are reported separately as failed collection. The Actor preserves existing results rather than guessing their state.
- A product that cannot fit safely in the output is skipped with a warning and is not charged. Optional source fields with invalid data are reported as warnings; inspect `RUN_SUMMARY.complete` before using the run as a complete catalog.

### Frequently asked questions

#### Why is the price different from the website?

The price belongs to the store selected with `country`, `language` and `currency`. A different country store shows a different price and currency.

#### Can I collect products only, without opening each product page?

For keyword or category searches, set `includeDetails` to `false` to deliver listing data (name, price, rating, stock, image) with fewer requests and faster runs.

#### How many reviews can I get per product?

Up to 200 with `maxReviewsPerProduct`. iHerb serves them in pages of 20. Set `reviewsWithPhotosOnly` to keep only reviews that include customer photos.

#### Does it collect reviewer personal data?

It collects the public review text, rating, country and the public display name or nickname shown by iHerb. It does not sign in, access profiles or collect private account data.

#### What happens if a product ID does not exist?

No empty product row is saved. The log warns you to check `productIds` and `country`, and other products continue. The run ends normally with `input_needs_correction` and `complete: false` in `RUN_SUMMARY`.

### Responsible use

You are responsible for using the data lawfully and in line with iHerb's terms, applicable privacy rules and local regulations. The Actor reads publicly available catalog and review content only. Do not use it to build profiles of individual reviewers or to republish content without permission.

### Support

Open an issue in the Actor's **Issues** tab with the input, run ID and a short description of what you expected. Reproducible reports are answered first.

[GitHub: Python, JavaScript and CSV integration examples](https://github.com/datacrawler-edu/iherb-product-data-api)

# Actor input Schema

## `searchQueries` (type: `array`):

Enter one keyword or phrase per line, for example vitamin c or magnesium glycinate. To collect a category or specific products instead, use Other ways to find products below.

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

Total number of unique products to deliver across all sources.

## `categoryNames` (type: `array`):

iHerb category URL names taken from https://www.iherb.com/c/<name>, for example "vitamin-c", "magnesium" or "collagen".

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

Optional iHerb product IDs (the number at the end of a product URL). They are collected directly without a search.

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

Open each product record to add description, ingredients, supplement facts, warnings, images, stock, specs and categories. Turn off for faster, lighter listing data.

## `includeVariants` (type: `boolean`):

Add the available size, potency and form variants with their own product IDs, prices and stock.

## `includeReviews` (type: `boolean`):

Add the rating distribution, review language breakdown and individual reviews. Each unique review saved is billed separately; check the Pricing tab before enabling.

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

Reviews collected per product when reviews are enabled. Reviews are read in pages of 20.

## `reviewsWithPhotosOnly` (type: `boolean`):

Keep only reviews that include customer photos.

## `includeQuestions` (type: `boolean`):

Add customer questions with their top answers for every product.

## `maxQuestionsPerProduct` (type: `integer`):

Questions collected per product when questions are enabled.

## `country` (type: `string`):

Two-letter iHerb store country used for prices and stock, for example US, GB, DE, FR, ES, JP, CA or AU.

## `language` (type: `string`):

Product language such as en-US, de-DE, fr-FR, es-ES or ja-JP.

## `currency` (type: `string`):

Active monetary ISO 4217 currency code that matches the store, for example USD, EUR, GBP or JPY. Unknown codes are reported as input warnings without collecting or charging products.

## `sort` (type: `string`):

Order applied to search and category results.

## Actor input object example

```json
{
  "searchQueries": [
    "vitamin c"
  ],
  "maxItems": 2,
  "categoryNames": [],
  "productIds": [],
  "includeDetails": true,
  "includeVariants": false,
  "includeReviews": false,
  "maxReviewsPerProduct": 2,
  "reviewsWithPhotosOnly": false,
  "includeQuestions": false,
  "maxQuestionsPerProduct": 2,
  "country": "US",
  "language": "en-US",
  "currency": "USD",
  "sort": "featured"
}
```

# Actor output Schema

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

No description

## `runSummary` (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 = {
    "searchQueries": [
        "vitamin c"
    ],
    "maxItems": 2,
    "categoryNames": [],
    "productIds": [],
    "includeDetails": true,
    "includeVariants": false,
    "includeReviews": false,
    "maxReviewsPerProduct": 2,
    "reviewsWithPhotosOnly": false,
    "includeQuestions": false,
    "maxQuestionsPerProduct": 2,
    "country": "US",
    "language": "en-US",
    "currency": "USD",
    "sort": "featured"
};

// Run the Actor and wait for it to finish
const run = await client.actor("datascraperes/iherb-catalog-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 = {
    "searchQueries": ["vitamin c"],
    "maxItems": 2,
    "categoryNames": [],
    "productIds": [],
    "includeDetails": True,
    "includeVariants": False,
    "includeReviews": False,
    "maxReviewsPerProduct": 2,
    "reviewsWithPhotosOnly": False,
    "includeQuestions": False,
    "maxQuestionsPerProduct": 2,
    "country": "US",
    "language": "en-US",
    "currency": "USD",
    "sort": "featured",
}

# Run the Actor and wait for it to finish
run = client.actor("datascraperes/iherb-catalog-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 '{
  "searchQueries": [
    "vitamin c"
  ],
  "maxItems": 2,
  "categoryNames": [],
  "productIds": [],
  "includeDetails": true,
  "includeVariants": false,
  "includeReviews": false,
  "maxReviewsPerProduct": 2,
  "reviewsWithPhotosOnly": false,
  "includeQuestions": false,
  "maxQuestionsPerProduct": 2,
  "country": "US",
  "language": "en-US",
  "currency": "USD",
  "sort": "featured"
}' |
apify call datascraperes/iherb-catalog-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,datascraperes/iherb-catalog-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/e4Lc1RxKq4JSh604X/builds/xsKUIbh8d3WyP8yTs/openapi.json
