{
  "openapi": "3.0.1",
  "info": {
    "title": "iHerb Scraper: Products, Prices, Reviews & UPC (No Login)",
    "description": "Scrape iHerb products, prices in 60+ country shops, stock, ingredients, supplement facts, UPC and reviews by keyword, category, brand or link. No login.",
    "version": "0.1",
    "x-build-id": "eizZcs4OH6NCp6Nwi"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/cliqtomedia~iherb-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-cliqtomedia-iherb-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/cliqtomedia~iherb-scraper/runs": {
      "post": {
        "operationId": "runs-sync-cliqtomedia-iherb-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/cliqtomedia~iherb-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-cliqtomedia-iherb-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": {
          "searchQueries": {
            "title": "Search keywords",
            "type": "array",
            "description": "One iHerb search per line, for example vitamin d3 or magnesium glycinate. Each keyword returns up to \"Max products\" results in iHerb order. You can also paste an iHerb search link.",
            "items": {
              "type": "string"
            }
          },
          "productUrls": {
            "title": "Product links or IDs",
            "type": "array",
            "description": "iHerb product pages such as https://www.iherb.com/pr/california-gold-nutrition-vitamin-d3/70316, or just the number 70316. A product that iHerb no longer has gets a free not_found row.",
            "items": {
              "type": "string"
            }
          },
          "categoryUrls": {
            "title": "Category links",
            "type": "array",
            "description": "iHerb category pages such as https://www.iherb.com/c/vitamin-d, with their filters if you like.",
            "items": {
              "type": "string"
            }
          },
          "brands": {
            "title": "Brands",
            "type": "array",
            "description": "Whole iHerb brand catalogs: a brand link such as https://www.iherb.com/c/now-foods or just the slug now-foods.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Any iHerb links",
            "type": "array",
            "description": "Mixed iHerb links: products, searches, categories or brands. The Actor detects the kind of each link.",
            "items": {
              "type": "string"
            }
          },
          "useSitemap": {
            "title": "Whole catalog from the sitemap",
            "type": "boolean",
            "description": "Walk the public iHerb product sitemap and collect products up to \"Max products\". Use for a full catalog snapshot.",
            "default": false
          },
          "maxItems": {
            "title": "Max products",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "The run stops after this many products in total (rows of compare countries and reviews are extra). Default 100.",
            "default": 100
          },
          "maxItemsPerQuery": {
            "title": "Max products per keyword or category",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Limit each search, category or brand separately. 0 means only \"Max products\" applies.",
            "default": 0
          },
          "country": {
            "title": "Shop country",
            "enum": [
              "US",
              "CA",
              "GB",
              "DE",
              "FR",
              "IT",
              "ES",
              "NL",
              "BE",
              "AT",
              "IE",
              "PT",
              "FI",
              "GR",
              "SK",
              "SI",
              "LT",
              "LV",
              "EE",
              "HR",
              "CY",
              "LU",
              "MT",
              "PL",
              "CZ",
              "HU",
              "RO",
              "BG",
              "SE",
              "NO",
              "DK",
              "CH",
              "AU",
              "NZ",
              "JP",
              "KR",
              "CN",
              "HK",
              "TW",
              "SG",
              "MY",
              "TH",
              "ID",
              "PH",
              "VN",
              "IN",
              "IL",
              "SA",
              "AE",
              "KW",
              "QA",
              "BH",
              "OM",
              "MX",
              "BR",
              "CL",
              "CO",
              "PE",
              "KZ",
              "UA",
              "TR",
              "ZA",
              "EG"
            ],
            "type": "string",
            "description": "Prices, currency and availability are read for this iHerb country shop. Default US.",
            "default": "US"
          },
          "currency": {
            "title": "Currency",
            "type": "string",
            "description": "Three-letter code such as EUR. Empty means the usual currency of the shop country."
          },
          "language": {
            "title": "Language",
            "enum": [
              "en-US",
              "de-DE",
              "es-MX",
              "es-ES",
              "fr-FR",
              "it-IT",
              "ja-JP",
              "ko-KR",
              "pt-BR",
              "pt-PT",
              "ru-RU",
              "zh-CN",
              "zh-TW",
              "zh-HK",
              "ar-SA",
              "he-IL",
              "hi-IN",
              "th-TH",
              "id-ID",
              "ms-MY",
              "pl-PL",
              "nl-NL",
              "sv-SE",
              "no-NO",
              "da-DK",
              "fi-FI",
              "cs-CZ",
              "hu-HU",
              "ro-RO",
              "bg-BG",
              "el-GR",
              "hr-HR",
              "sk-SK",
              "sl-SI",
              "lt-LT",
              "lv-LV",
              "et-EE",
              "uk-UA",
              "kk-KZ",
              "az-AZ",
              "ka-GE",
              "hy-AM",
              "fa-IR",
              "bs-BA"
            ],
            "type": "string",
            "description": "Language of product texts and review translations. Default en-US.",
            "default": "en-US"
          },
          "compareCountries": {
            "title": "Compare prices in other countries",
            "type": "array",
            "description": "Up to 10 more country codes such as DE, GB, JP. Each product gets one more row per country with its local price and stock; a product not sold there gets a free status row.",
            "items": {
              "type": "string"
            }
          },
          "sortBy": {
            "title": "Sort search results by",
            "enum": [
              "relevance",
              "topRated",
              "bestSellers",
              "priceHighToLow",
              "priceLowToHigh",
              "onSale",
              "nameAZ",
              "newest",
              "mostReviews",
              "biggestDiscount"
            ],
            "type": "string",
            "description": "Order of search, category and brand results. A link with its own sort keeps it.",
            "default": "relevance"
          },
          "brandFilter": {
            "title": "Only these brands",
            "type": "array",
            "description": "Keep products whose brand name contains one of these, for example California Gold Nutrition.",
            "items": {
              "type": "string"
            }
          },
          "minPrice": {
            "title": "Minimum price",
            "minimum": 0,
            "type": "number",
            "description": "In the shop currency. Products without a price are left out when set."
          },
          "maxPrice": {
            "title": "Maximum price",
            "minimum": 0,
            "type": "number",
            "description": "In the shop currency. Products without a price are left out when set."
          },
          "minRating": {
            "title": "Minimum rating",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "From 0 to 5, for example 4.5. Products without a rating are left out when set."
          },
          "inStockOnly": {
            "title": "In stock only",
            "type": "boolean",
            "description": "Keep only products that can be bought now in the shop country.",
            "default": false
          },
          "onSaleOnly": {
            "title": "On sale only",
            "type": "boolean",
            "description": "Keep only products with a discount.",
            "default": false
          },
          "maxReviews": {
            "title": "Reviews per product",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "0 means no reviews. Each review is one row with rating, text, translation, author country and date.",
            "default": 0
          },
          "reviewsSort": {
            "title": "Review order",
            "enum": [
              "mostRelevant",
              "newest",
              "mostHelpful"
            ],
            "type": "string",
            "description": "Which reviews come first.",
            "default": "mostRelevant"
          },
          "reviewsRatings": {
            "title": "Only these star ratings",
            "type": "array",
            "description": "Numbers 1–5, for example 1 and 2 for complaints. Empty means all ratings.",
            "items": {
              "type": "string"
            }
          },
          "reviewsWithImagesOnly": {
            "title": "Reviews with photos only",
            "type": "boolean",
            "description": "Keep only reviews with customer photos.",
            "default": false
          },
          "reviewsLanguage": {
            "title": "Original review language",
            "type": "string",
            "description": "Keep only reviews first written in this language, for example en or de-DE. Empty means all languages."
          },
          "reviewsKeyword": {
            "title": "Reviews containing",
            "type": "string",
            "description": "Keep only reviews with this word, for example taste."
          },
          "includeReviewSummary": {
            "title": "Add star distribution",
            "type": "boolean",
            "description": "Adds counts of 1–5 star reviews to each product row.",
            "default": false
          },
          "includeQuestions": {
            "title": "Add questions and answers",
            "type": "boolean",
            "description": "Adds customer questions with their answers to each product row.",
            "default": false
          },
          "maxQuestions": {
            "title": "Questions per product",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Used with \"Add questions and answers\".",
            "default": 10
          },
          "includeUpc": {
            "title": "Add UPC barcode",
            "type": "boolean",
            "description": "Adds the UPC barcode when iHerb shows it for this exact product. One more request per product.",
            "default": false
          },
          "monitorChangesOnly": {
            "title": "Only new and changed products",
            "type": "boolean",
            "description": "Compares with the previous run of the same monitor name and saves only new products and changes of price or stock, with changeType and previousPrice. The first run saves everything.",
            "default": false
          },
          "monitorStateName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Keep a separate history per task, for example daily-vitamins. Letters, digits and dashes. Default: default."
          },
          "compact": {
            "title": "Short rows",
            "type": "boolean",
            "description": "Only price, stock, rating and link fields, without texts and ingredients.",
            "default": false
          },
          "maxConcurrency": {
            "title": "Parallel products",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many products are read at once. Default 5.",
            "default": 5
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Apify Proxy is on by default. Turn it off to connect directly. Residential proxy is not used: iHerb works with the default datacenter proxy.",
            "default": {
              "useApifyProxy": true
            }
          },
          "deliveryConnector": {
            "title": "Send results to (optional)",
            "type": "string",
            "description": "Your Slack, Notion or other MCP connector. After the run the Actor posts a short summary there. Connect services once in Apify Console → MCP connectors."
          },
          "deliveryTarget": {
            "title": "Notion page or channel (optional)",
            "type": "string",
            "description": "Where to post the summary: a Notion page link (each run is added on top of that page) or a Slack channel ID. Notion needs a page here; without it the summary is not sent and the run summary says why."
          }
        }
      },
      "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}