Логотип Iherb Product Data

Iherb Product Data

Спільнота
scavio-ai
iherb-product-data

API даних про товари iHerb: шукайте на iherb.com за ключовим словом або брендом, переглядаючи ціну, звичайну ціну, знижку, оцінку, кількість відгуків, наявність і нещодавні продажі; переглядайте інформацію про окремий товар із UPC, ціною за порцію, даними про харчову цінність добавки, інгредієнтами, варіантами й рейтингами бестселерів; перевіряйте ціни та наявність до 50 товарів за один запит; переглядайте зведення відгуків із гістограмою оцінок і найкращим позитивним та критичним відгуком. Магазин США, USD. 4 кінцеві точки, по 2 кредити за кожну.

Огляд

Видавецьscavio-ai
Репозиторійskills
Назва навичкиiherb-product-data
Зірки
67
Форки
0
Файли в пакеті
Лише інструкції
ЛіцензіяMIT
Посилання
  • Інструкції у форматі Markdown

    Файл SKILL.md, який модель завантажує за потреби, тож токени витрачаються лише тоді, коли запит справді відповідає навичці.

  • Працює з будь-якою LLM

    Навички ШІ — це звичайний Markdown, а не код для певного постачальника, тому вони працюють із GPT, Claude, Gemini, Grok або локальною моделлю.

  • Усе необхідне — в інструкціях

    Усе потрібне моделі міститься в інструкціях — жодних додаткових файлів для синхронізації.

  • Відкритий вихідний код

    Видавець на GitHub: scavio-ai. Перед установленням перегляньте вихідні файли навички.

Встановлення

Установіть навичку ШІ Iherb Product Data у TypingMind, щоб використовувати її з будь-якою LLM, або додайте її до іншого агента, що читає SKILL.md.

1

Встановити в TypingMind

TypingMind встановлює навичку безпосередньо з її папки на GitHub — читає SKILL.md, збирає файли ресурсів у пакет і зберігає результат локально.

  1. Відкрийте застосунок і перейдіть до розділу «Плагіни» → «Навички».
  2. Виберіть «Встановити з GitHub».
  3. Вставте наведений нижче URL папки навички та підтвердьте встановлення.
    https://github.com/scavio-ai/skills/tree/main/skills/iherb-product-data
  4. Увімкніть навичку в кожному чаті, де хочете її використовувати.
Плагіни → Навички → Додати навичку → За URL GitHub, потім вставте URL папки й натисніть «Продовжити».
2

Встановити в іншому агенті

Будь-який агент, що підтримує формат Agent Skills, може використовувати цю навичку — скопіюйте папку до каталогу навичок цього агента.

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
Після копіювання перезапустіть Claude Code, щоб завантажити нову навичку.

Використовуйте навичку в TypingMind

Увімкніть навичку Iherb Product Data в будь-якому чаті TypingMind, і далі модель усе зробить сама. Назва й опис навички містяться в системному промпті, а щойно надходить відповідний запит, модель самостійно завантажує повні інструкції — вам не потрібно викликати навичку вручну, і до фактичного використання вона не витрачає токенів.

Модель самостійно завантажує навичку Iherb Product Data, щойно надходить відповідний запит.

Працює з будь-якою моделлю ШІ

Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для певного постачальника, тому навичка Iherb Product Data не прив’язана до моделі, для якої її створено. Установіть її один раз у TypingMind і використовуйте з GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama або локальною моделлю, яку ви запускаєте самостійно, — усе з вашими власними ключами API.

  • Завантажується лише за потреби

    Системний промпт містить лише назву й опис. Інструкції завантажуються за першого відповідного запиту, тож поки навичка не потрібна, токени на її інструкції не витрачаються.

  • Змінюйте моделі під час чату

    Оскільки навичка — це інструкції, а не код, зміна моделі не порушує її роботу: наступна модель читає той самий файл SKILL.md.

Інструкції навички

Це вміст файлу SKILL.md, який завантажує модель. Прочитайте його перед установленням — навичка містить інструкції, яких дотримуватиметься ваша модель.

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.

Поширені запитання

Що робить навичка ШІ Iherb Product Data?

API даних про товари iHerb: шукайте на iherb.com за ключовим словом або брендом, переглядаючи ціну, звичайну ціну, знижку, оцінку, кількість відгуків, наявність і нещодавні продажі; переглядайте інформацію про окремий товар із UPC, ціною за порцію, даними про харчову цінність добавки, інгредієнтами, варіантами й рейтингами бестселерів; перевіряйте ціни та наявність до 50 товарів за один запит; переглядайте зведення відгуків із гістограмою оцінок і найкращим позитивним та критичним відгуком. Магазин США, USD. 4 кінцеві точки, по 2 кредити за кожну.

Навіщо використовувати Iherb Product Data у TypingMind?

Тому що ви встановлюєте її один раз і використовуєте з будь-якою моделлю. Iherb Product Data — це звичайний Markdown, а не код для конкретного постачальника, тому та сама навичка працює з GPT-5, Claude, Gemini, Grok або локальною моделлю. Ви можете змінити модель навіть посеред чату, і навичка продовжить працювати. TypingMind використовує ваші власні ключі API, тож ви платите безпосередньо постачальникам замість передплати за кожне місце користувача, а ваші навички й чати залишаються у вашому сховищі.

Як встановити Iherb Product Data у TypingMind?

Відкрийте в TypingMind Плагіни → Навички → Встановити з GitHub і вставте https://github.com/scavio-ai/skills/tree/main/skills/iherb-product-data. TypingMind прочитає файл SKILL.md і встановить навичку, яку можна вмикати окремо для кожного чату.

Які моделі ШІ можуть використовувати Iherb Product Data?

Будь-яка модель, яку ви підключите в TypingMind. Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для конкретного постачальника, тому GPT, Claude, Gemini, Grok і локальні моделі можуть завантажувати цю навичку, коли запит їй відповідає.

Зі скількома моделями ШІ можна використовувати Iherb Product Data?

Зі скількома забажаєте. У TypingMind ви можете використовувати Iherb Product Data із будь-якою моделлю, яка підтримує навички, зокрема з GPT, Claude, Gemini, Grok, DeepSeek, Mistral чи Llama. Для цього ви використовуєте власні ключі API.

Чи безкоштовна навичка ШІ Iherb Product Data?

Так. На GitHub цю навичку публікує scavio-ai за ліцензією MIT. Ви платите лише своєму постачальнику ШІ за використані токени.

Що таке навички ШІ?

Навичка ШІ — це набір інструкцій для повторного використання, який навчає модель ШІ виконувати одне конкретне завдання. Він відповідає відкритому формату Agent Skills: файл SKILL.md із назвою та описом, а також скрипти, шаблони чи довідкові файли, які можуть знадобитися моделі. Модель читає інструкції лише тоді, коли ваш запит відповідає навичці, тому встановлена навичка нічого не коштує, доки її не використано.

Чим навички ШІ відрізняються від плагінів або серверів MCP?

Плагін або сервер MCP надає моделі нові інструменти, які вона може викликати, — код, який десь виконується й повертає результат. Натомість навичка ШІ дає моделі знання й пояснює порядок дій: як підійти до завдання, яких кроків дотримуватися та яким має бути якісний результат. Навички — це звичайний Markdown, тож їм не потрібні ні сервер, ні ключ API, ні середовище виконання, і вони працюють із будь-якою моделлю.

Усі

Створіть власний робочий простір зі ШІ вже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇