Logo van Iherb Product Data

Iherb Product Data

Community
scavio-ai
iherb-product-data

iHerb-productgegevens-API: zoek op iherb.com op trefwoord of merk met prijs, adviesprijs, korting, beoordeling, aantal reviews, voorraad en recente verkopen. Bekijk één product met UPC, prijs per portie, supplementinformatie, ingrediënten, varianten en bestsellerposities. Controleer de prijs en voorraad van maximaal 50 producten in één verzoek en bekijk het reviewoverzicht met het sterrenoverzicht en de beste positieve en kritische review. Amerikaanse winkel, USD. 4 endpoints, elk 2 credits.

Overzicht

Uitgeverscavio-ai
Repositoryskills
Skillnaamiherb-product-data
Sterren
67
Forks
0
Meegeleverde bestanden
Alleen instructies
LicentieMIT
Links
  • Instructies in Markdown

    Het model laadt het bestand SKILL.md alleen als dat nodig is. Dat kost dus alleen tokens als een verzoek daadwerkelijk bij de skill past.

  • Werkt met elk LLM

    AI-skills bestaan uit instructies in gewone Markdown, niet uit aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • Compleet zonder extra bestanden

    Alles wat het model nodig heeft, staat in de instructies — geen extra bestanden om te synchroniseren.

  • Open source

    Gepubliceerd door scavio-ai op GitHub. Bekijk de bronbestanden voordat je de skill installeert.

Installatie

Installeer de AI-skill Iherb Product Data in TypingMind om deze met elk LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map. De app leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/scavio-ai/skills/tree/main/skills/iherb-product-data
  4. Schakel de skill in voor elke chat waarin je de skill wilt kunnen gebruiken.
Plug-ins → Skills → Skill toevoegen → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/scavio-ai/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/skills/iherb-product-data .claude/skills/iherb-product-data
Start Claude Code na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Iherb Product Data in voor een chat naar keuze in TypingMind en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek bij de skill past, laadt het model zelf de volledige instructies. Je hoeft de skill nooit handmatig aan te roepen. Pas als het model de skill daadwerkelijk gebruikt, kost dat tokens.

Het model laadt Iherb Product Data automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Iherb Product Data niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

iHerb Product Data API - Search, Prices, Supplement Facts, Ratings

Search iHerb (supplements, vitamins, sports nutrition, beauty, grocery) by keyword, optionally narrowed to one brand, with price, list price, discount, rating, review count, stock, badges and recent sales, 48 products per page. Read one product with UPC, part number, price per serving, supplement facts, description, suggested use, ingredients, warnings, every variant and its best-seller rankings. Check price and stock for up to 50 products in one call, and read a product's review summary: average rating, star histogram, review counts per language, and the top positive and top critical review. All endpoints return structured JSON from the US store in US dollars.

When to trigger

Use this skill when the user asks to:

  • Find supplements, vitamins or other products on iHerb by keyword or brand
  • Check an iHerb product's price, list price, discount or price per serving
  • Read a supplement's facts panel, ingredients, suggested use or warnings
  • Look up an iHerb product's UPC, part number, variants or best-seller rank
  • Monitor iHerb prices and stock across a list of products
  • Summarize what reviewers think of an iHerb product (star histogram, top positive and critical review)
  • Compare iHerb prices with Amazon, Walmart or other retailers

Setup

Get a free API key at scavio.dev (50 free credits to get started, no card required):

bash
export SCAVIO_API_KEY=sk_live_your_key

If you do not have a key yet

An agent running this skill without SCAVIO_API_KEY set will get 401 on every call below. The whole path from nothing to a working key is self-serve:

  1. Sign up at dashboard.scavio.dev - email or Google, no card required.
  2. A key is created for the account automatically at signup. It is on the dashboard under API Keys, ready to copy.
  3. A new account starts with 50 credits. Every endpoint in this skill costs 2 credits.

When the balance runs out the API answers 402 with a JSON body carrying billing_url. Topping up needs no code change - the same key keeps working.

Every request is a POST with a JSON body and:

Authorization: Bearer $SCAVIO_API_KEY

Endpoints

Base URL: https://api.scavio.dev. All iHerb endpoints cost 2 credits.

EndpointCreditsWhat it returns
POST /api/v1/iherb/search248 products per page: product id, part number, name, brand and brand code, URL, image, price, list price, original price and discount percent when discounted, rating, review count, in-stock flag, badges ("Quality Pick", "Best seller", "iHerb Brands", "New"), recent sales ("30K+ sold in 30 days"), category, sponsored flag. Total results, total pages and brand filters (brand code, name, match count)
POST /api/v1/iherb/product2One product by id or URL: name, brand, part number, UPC, price, list price, discount, price per serving or unit, stock status, discontinued and coming-soon flags, quantity limit, expiration date, first-available date, package quantity, weight and dimensions, rating, review count, breadcrumbs, best-seller rankings by category, badges, variants (size, potency, flavor) with product ids, supplement facts, description, suggested use, ingredients, warnings, images
POST /api/v1/iherb/prices2Price, list price, discount, in-stock flag, rating and review count for up to 50 products in one call, one row per id in request order; unknown ids listed in not_found
POST /api/v1/iherb/reviews2Review summary for one product: average rating, review count, star histogram (count and percent per star), review counts per language, and the full top positive and top critical review

Workflow

  1. Find products: call /iherb/search with query. Each row has a product_id and a brand_code. To stay within one brand, repeat with brand_code (from a row or from brand_filters).
  2. One product in full: call /iherb/product with the product_id (or the iherb.com url) for supplement facts, ingredients, variants and rankings. Search and product take 6-20 seconds; give them a 60-second timeout.
  3. Watch many products: call /iherb/prices with up to 50 product_ids. One call (2 credits) re-checks price and stock for the whole list, so do not loop /product for monitoring.
  4. What reviewers say: call /iherb/reviews with the product_id for the star histogram and the top positive and critical review.

Parameters

Search (/search)

ParameterTypeDefaultDescription
querystringrequiredKeywords (1-200 chars)
pageinteger11-based page (1-500), 48 results per page
sortstringiHerb's featured orderrelevance, best_selling, rating, price_asc, price_desc, newest, percent_off (highest discount first) or review_count
brand_codestring-Only this brand, by iHerb brand code (CGN for California Gold Nutrition, NOW for NOW Foods): a row's brand_code or a brand_filters entry

Product (/product)

ParameterTypeDefaultDescription
product_idstringone ofiHerb product id, the number at the end of an iherb.com /pr/ URL ("70316")
urlstringone ofAn iherb.com product URL. Data is always the US store's, whatever the URL's country

Prices (/prices)

ParameterTypeDefaultDescription
product_idsstring[]required1-50 iHerb product ids. Duplicates are answered once

Reviews (/reviews)

ParameterTypeDefaultDescription
product_idstringone ofiHerb product id
urlstringone ofAn iherb.com product URL

Examples

bash
curl -X POST https://api.scavio.dev/api/v1/iherb/prices \
  -H "Authorization: Bearer $SCAVIO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"product_ids": ["70316", "77548", "10421", "124745", "10056", "113543", "77549", "101967", "148171"]}'

Captured response (nine vitamin D products, two rows shown):

json
{
  "data": {
    "currency": "USD",
    "count": 9,
    "not_found": [],
    "products": [
      {
        "product_id": "70316",
        "found": true,
        "name": "Vitamin D3, 125 mcg (5,000 IU), 90 Fish Gelatin Softgels",
        "url": "https://www.iherb.com/pr/california-gold-nutrition-vitamin-d3-125-mcg-5-000-iu-90-fish-gelatin-softgels/70316",
        "part_number": "CGN-01065",
        "brand": "California Gold Nutrition",
        "brand_code": "CGN",
        "is_iherb_brand": true,
        "price": 6.07,
        "list_price": 6.07,
        "discount_percent": 0,
        "discount_type": 0,
        "discount_message": null,
        "is_in_cart_discount": false,
        "in_stock": true,
        "is_available_to_purchase": true,
        "status_code": 0,
        "rating": 4.8,
        "review_count": 324874
      },
      {
        "product_id": "10421",
        "found": true,
        "name": "Vitamin D-3, High Potency, 125 mcg (5,000 IU), 120 Softgels",
        "url": "https://www.iherb.com/pr/now-foods-vitamin-d-3-high-potency-125-mcg-5-000-iu-120-softgels/10421",
        "part_number": "NOW-00372",
        "brand": "NOW Foods",
        "brand_code": "NOW",
        "is_iherb_brand": false,
        "price": 5.45,
        "list_price": 5.45,
        "discount_percent": 0,
        "discount_type": 0,
        "discount_message": null,
        "is_in_cart_discount": false,
        "in_stock": true,
        "is_available_to_purchase": true,
        "status_code": 0,
        "rating": 4.9,
        "review_count": 277474
      }
    ]
  },
  "response_time": 1592,
  "credits_used": 2
}

A captured /reviews response for {"product_id": "70316"} (languages trimmed to three; this product has no top critical review):

json
{
  "product_id": "70316",
  "average_rating": 4.8,
  "review_count": 324874,
  "rating_histogram": {
    "five": { "count": 286910, "percent": 88 },
    "four": { "count": 28200, "percent": 9 },
    "three": { "count": 7470, "percent": 2 },
    "two": { "count": 1319, "percent": 0 },
    "one": { "count": 975, "percent": 0 }
  },
  "languages": [
    { "language_code": "en-US", "language": "English", "count": 54113 },
    { "language_code": "ru-RU", "language": "Russian", "count": 149203 },
    { "language_code": "ko-KR", "language": "Korean", "count": 23618 }
  ],
  "top_positive_review": {
    "review_id": "f5830fcc-de50-4fbe-b645-42751a3ad46c",
    "rating": 5,
    "title": "Excellent!",
    "text": "I'm so glad I found these Vitamin D3 softgels! I was feeling really run down and depleted, but after just a few days of taking these, I feel so much better. ...",
    "author": "iHerb customer",
    "author_country": "Spain",
    "country_code": "ES",
    "language_code": "en-US",
    "posted_at": "2022-08-20T16:08:13.958Z",
    "verified_purchase": true,
    "helpful_yes": 112,
    "helpful_no": 0,
    "images": []
  },
  "top_critical_review": null
}
python
import requests

BASE = "https://api.scavio.dev"
# Your key from https://scavio.dev. Load it from your environment or secret
# store in real code - keep it out of source control.
API_KEY = "sk_your_key_here"
HEADERS = {"Authorization": f"Bearer {API_KEY}"}

def iherb(endpoint, body):
    # search and product take 6-20 seconds; a generous timeout keeps them from failing early.
    r = requests.post(f"{BASE}/api/v1/iherb/{endpoint}", headers=HEADERS, json=body, timeout=120)
    r.raise_for_status()
    return r.json()["data"]

# 1. Best-selling vitamin D from one brand (2 credits)
rows = iherb("search", {"query": "vitamin d", "brand_code": "CGN", "sort": "best_selling"})["products"]
for p in rows[:5]:
    print(p["name"][:60], p["price"], p["rating"], p["review_count"], p["recent_sales"])

# 2. Re-check price and stock for up to 50 ids in one call (2 credits)
ids = [p["product_id"] for p in rows[:50]]
watch = iherb("prices", {"product_ids": ids})
for p in watch["products"]:
    if p["found"]:
        print(p["product_id"], p["price"], "list", p["list_price"], "in stock" if p["in_stock"] else "out of stock")

# 3. One product in full and its review summary (2 credits each)
item = iherb("product", {"product_id": rows[0]["product_id"]})
print(item["upc"], item["price_per_unit"], item["supplement_facts"]["serving_size"])
summary = iherb("reviews", {"product_id": rows[0]["product_id"]})
print(summary["average_rating"], summary["rating_histogram"]["one"])

Response shapes

Every response uses the envelope { data, response_time, fetched_at, credits_used, credits_remaining }. Nothing is cached; fetched_at is when iHerb answered.

  • search - query, page, sort, brand_code, total_results, total_pages, count, brand_filters[] {brand_code, name, count}, products[] (position, product_id, part_number, name, brand, brand_code, url, image, price, list_price, original_price, discount_percent, discount_type, rating, review_count, in_stock, inventory_status, is_discontinued, is_trial, sponsored, badges[], recent_sales, category).
  • product - product_id, name, brand, brand_code, brand_url, part_number, upc, url, price, list_price, currency, discount_percent, discount_amount, price_per_unit {text, amount, unit}, discounted_price_per_unit {text, amount, unit}, availability, in_stock, stock_status, is_available_to_purchase, is_discontinued, is_coming_soon, recent_sales, quantity_limit, expiration_date, first_available, package_quantity, shipping_weight, dimensions, weight, rating, review_count, category, breadcrumbs[] {name, url}, is_iherb_brand, badges[], rankings[] {rank, category, url}, variants[] {attribute, options[] {value, product_id, url, price, selected, in_stock}}, supplement_facts {serving_size, servings_per_container, nutrients[] {name, amount, daily_value}, notes[]}, description, suggested_use, ingredients, warnings, images[].
  • prices - currency, count, not_found[], products[] (product_id, found, name, url, part_number, brand, brand_code, is_iherb_brand, price, list_price, discount_percent, discount_type, discount_message, is_in_cart_discount, in_stock, is_available_to_purchase, status_code, rating, review_count). An unknown id is { product_id, found: false }.
  • reviews - product_id, average_rating, review_count, rating_histogram {five, four, three, two, one: {count, percent}}, languages[] {language_code, language, count}, top_positive_review and top_critical_review (each null or {review_id, rating, title, text, author, author_country, country_code, language_code, posted_at, verified_purchase, helpful_yes, helpful_no, images[]}).

Guardrails

  • Online only: iHerb has no stores, so there is no store locator, store price or store stock. in_stock is the online stock flag.
  • Every answer is the US store in US dollars (6.07 is $6.07), even for a URL from another iHerb country site. Never quote it as another country's price.
  • price is what the product sells for now and list_price the regular price; they are equal when not discounted. discount_percent is the site's own figure. discount_type, inventory_status and status_code are iHerb's raw codes whose meaning is not published; do not interpret them.
  • /reviews is a SUMMARY, not a review list: the star histogram, counts per language, and at most one top positive and one top critical review. Either top review can be null. There is no endpoint to page through all reviews; never claim to have read them.
  • Histogram percent values are whole numbers as iHerb rounds them, so they need not sum to 100.
  • /prices takes up to 50 ids per call and keeps request order. An unknown id is not an error: its row has found: false and it is listed in not_found. Use it for monitoring instead of repeated /product calls.
  • On /product, a variant option's price can be null; get that variant's price from /prices with its product_id.
  • Search rows can be sponsored: true; say so when ranking results. A page past the last returns an empty products list.
  • Never fabricate prices, stock, supplement facts or reviews. Only return what the API returned, with the product url.

Failure handling

  • 400 means a missing or invalid parameter (no query, an unknown sort, a brand_code that is not 2-10 letters or digits, page outside 1-500, neither product_id nor url, a non-numeric id, or more than 50 product_ids).
  • 401 means the API key is invalid or missing. Check SCAVIO_API_KEY.
  • 402 means the balance is out of credits. The body carries billing_url.
  • 404 on /product or /reviews means no such product; use the number at the end of an iherb.com /pr/ URL. 404 on /search means no listing for that query and brand_code. Not charged.
  • 429 means rate or usage limit exceeded. Wait before retrying. See rate limits.
  • 502 or 503 means iHerb is temporarily unavailable. It is not charged; retry after a few seconds. Search and product are slow (6-20 seconds), so allow a minute per call before treating it as failed.

SDKs

bash
pip install scavio==0.33.0
npm install scavio@0.33.0
js
import { Scavio } from "scavio";

// reads SCAVIO_API_KEY; search and product can take 20 seconds, so raise the 30s default timeout
const scavio = new Scavio({ timeout: 60_000 });
const { data: found } = await scavio.iherb.search({ query: "vitamin d", sort: "best_selling" });
const ids = found.products.slice(0, 50).map((p) => p.product_id);
const prices = await scavio.iherb.prices({ product_ids: ids });
const item = await scavio.iherb.product({ product_id: ids[0] });
const summary = await scavio.iherb.reviews({ product_id: ids[0] });

MCP: the Scavio MCP server exposes all 4 endpoints as tools (search_iherb, get_iherb_product, get_iherb_prices, get_iherb_reviews). iHerb is opt-in: add iherb to SCAVIO_PLATFORMS.

json
{
  "mcpServers": {
    "scavio": {
      "command": "npx",
      "args": ["-y", "@scavio/mcp-server@0.31.0"],
      "env": {
        "SCAVIO_API_KEY": "sk_live_your_key",
        "SCAVIO_PLATFORMS": "default,iherb"
      }
    }
  }
}

Docs

Full reference per endpoint: search, product, prices, reviews. Overview: iHerb API.

Veelgestelde vragen

Wat doet de AI-skill Iherb Product Data?

iHerb-productgegevens-API: zoek op iherb.com op trefwoord of merk met prijs, adviesprijs, korting, beoordeling, aantal reviews, voorraad en recente verkopen. Bekijk één product met UPC, prijs per portie, supplementinformatie, ingrediënten, varianten en bestsellerposities. Controleer de prijs en voorraad van maximaal 50 producten in één verzoek en bekijk het reviewoverzicht met het sterrenoverzicht en de beste positieve en kritische review. Amerikaanse winkel, USD. 4 endpoints, elk 2 credits.

Waarom Iherb Product Data gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Iherb Product Data bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model. Ook als je midden in een chat van model wisselt, blijft de skill werken. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek af te sluiten. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik Iherb Product Data in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/scavio-ai/skills/tree/main/skills/iherb-product-data. TypingMind leest het bestand SKILL.md en installeert het als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Iherb Product Data gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met Iherb Product Data gebruiken?

Zoveel als je wilt. Je kunt Iherb Product Data gebruiken met elk model dat skills ondersteunt, zoals GPT, Claude, Gemini, Grok, DeepSeek, Mistral of Llama. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill Iherb Product Data gratis?

Ja. Deze skill is door scavio-ai op GitHub gepubliceerd onder de licentie MIT. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. De skill volgt het open Agent Skills-formaat: het bestand SKILL.md bevat de naam en beschrijving van de skill. Daarnaast kan de skill scripts, sjablonen of referentiebestanden bevatten die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Bekijk alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇