# US Supplements & Nutrition Price Comparator (6 Stores) (`lonwabo/us-supplement-price-comparator`) Actor

Live multi-store price comparator across Amazon, Walmart, Target, Bodybuilding.com, iHerb, and Myprotein. Weight & serving normalization (lbs, kg, grams, capsules), price spread analytics, and direct purchase links.

- **URL**: https://apify.com/lonwabo/us-supplement-price-comparator.md
- **Developed by:** [Lonwabo Mfundisi](https://apify.com/lonwabo) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $9.90 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/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

## US Supplements & Sports Nutrition Price Comparator (6 Stores)

Search, compare, and track supplement prices simultaneously across America's 6 leading nutrition and health retailers: **Amazon Supplements**, **Walmart Health**, **Target Wellness**, **Bodybuilding.com**, **iHerb**, and **Myprotein US**.

Whether you are an athlete optimizing your monthly protein and creatine expenses, a fitness enthusiast tracking pre-workout flash discounts, a wellness brand researcher, or an online arbitrage merchant finding lucrative retail gaps, this actor extracts live pricing, brands, sizes (5 lbs, 500g, 60 capsules), and calculates the exact price spread with direct checkout purchase links.

***

### 🏬 6 Supported Nutrition Retailers

| Store | Website | Focus / Best For |
|---|---|---|
| **Amazon Supplements** | `amazon.com` | High-volume reviews, Prime 2-day delivery, massive brand catalog |
| **Walmart Health** | `walmart.com` | Everyday low price baseline for mass-market powders and vitamins |
| **Target Wellness** | `target.com` | Clean nutrition, plant-based proteins, greens & trusted vitamins |
| **Bodybuilding.com** | `bodybuilding.com` | Elite sports nutrition, performance pre-workouts & legacy brands |
| **iHerb** | `iherb.com` | #1 global supplements marketplace, nootropics & specialty herbs |
| **Myprotein US** | `us.myprotein.com` | High-volume direct-to-consumer sports nutrition, whey & creatine |

***

### 📊 Dual Dataset Views: Overview & Side-by-Side Store Pricing Matrix

This actor includes two dedicated dataset tabs in the Apify Console:

#### 1. 📋 Supplement Price Comparison Overview

Focuses on the winning deal, total dollar savings, product thumbnail, and primary buying decision:

- **Product Thumbnail (`productImage`):** High-resolution product image.
- **Product Name (`matchedProductTitle`) & Brand (`brand`):** Standardized supplement title.
- **Size / Servings (`weightOrCount`):** Normalized size (e.g. `5 lb`, `500g`, `60 capsules`).
- **Best Price (`bestPrice`) & Cheapest Store (`cheapestStore`):** The absolute lowest price active across all 6 stores.
- **Potential Savings (`priceSpread`) & Spread % (`priceSpreadPercent`):** Dollar savings between highest and lowest retailer.
- **Buy Best Deal (`bestDealUrl`):** One-click direct link to checkout at the cheapest store.

#### 2. 🏪 Side-by-Side Store Pricing Matrix (`storeMatrix`)

A dense horizontal pricing matrix comparing every store head-to-head in real time:

- **`amazonPrice`:** Live Amazon US Prime / marketplace price.
- **`walmartPrice`:** Live Walmart retail price.
- **`targetPrice`:** Live Target price.
- **`bodybuildingPrice`:** Live Bodybuilding.com price.
- **`iherbPrice`:** Live iHerb USD price.
- **`myproteinPrice`:** Live Myprotein US price.
- **`dealVerdict`:** Actionable arbitrage verdict (e.g. *MASSIVE ARBITRAGE (38% SAVINGS)*).

***

### ✨ Key Features

- **Multi-Store Concurrent Queries:** Scrapes all 6 stores in parallel for maximum speed and up-to-date pricing.
- **Weight & Serving Normalization:** Accurately distinguishes between `5 lb` vs `2 lb` tubs or `60 ct` vs `120 ct` bottles to prevent mismatched price comparisons.
- **Arbitrage & Price Spread Analytics:** Automatically calculates `lowestPrice`, `highestPrice`, `priceSpread` ($ savings), `priceSpreadPercent`, and generates deal verdicts.
- **Column / Field Deselection (`includeFields`):** Toggle optional columns on or off before running to keep your CSV/Excel datasets clean and lightweight. Core comparison fields are permanently preserved.
- **Min/Max Price Filter (`minPrice` / `maxPrice`):** Eliminate sample sachets, shaker cups, or massive wholesale pallets by setting custom USD price bounds.
- **Individual Store Columns:** Clean horizontal columns along with direct purchase URLs and stock status.

***

### 🎯 Search Engine Optimization (SEO) & Search Intent

This actor is specifically engineered for high-intent search workflows:

- **Supplement Price Comparison API:** Compare sports nutrition prices across US retailers programmatically.
- **Creatine & Whey Protein Deal Finder:** Track live price drops for Optimum Nutrition, Dymatize, Ghost, and Rule 1.
- **Supplement Arbitrage Scanner:** Detect high-margin price gaps between Walmart/Target clearances and Amazon FBA resale values.
- **iHerb vs Amazon Price Checker:** Verify if specialty health supplements are cheaper on iHerb or Amazon.
- **Monthly Subscription Optimizer:** Check where your monthly pre-workout or multivitamin is cheapest before recurring autoship charges.

***

### 🖥️ Interactive HTML Comparison Report (`report.html`)

In addition to exporting the structured Dataset in **JSON, CSV, Excel, or built-in HTML table (`format=html`)**, every run generates a standalone, self-contained **Interactive HTML Comparison Report (`report.html`)** directly inside the Apify Console **Output** tab (and via a shareable Key-Value Store link):

- **Horizontal View & Store Tabs** — Switch seamlessly between **Best Deals Cards**, **Side-by-Side Matrix**, and **6 dedicated individual store tabs** (**Amazon**, **Walmart**, **Target**, **Bodybuilding.com**, **iHerb**, **Myprotein US**), each displaying live matched item counts.
- **Deep-Linkable Tabs (`#tab=...`)** — Every tab updates the URL hash (e.g. `#tab=matrix`) so you can bookmark or share a specific merchant view directly.
- **Aligned Deal Cards & Specs** — Product thumbnails, uniform spec & brand badges, green cheapest-store highlights, spread savings pills, and clickable **View Best Deal** buttons.
- **Live Controls, Full Screen & Instant Exports** — Keyword search, multi-column sort (`Biggest Savings ($)`, `Lowest Price ($)`, `Highest Spread %`, `Most Stores Matched`), `2+ Stores Only` toggle, plus one-click **Download CSV**, **Download JSON**, **Print / PDF Quote**, and **Full Screen (`⛶`)** buttons.

![US Supplements & Nutrition Price Comparison Report — Interactive HTML View](https://api.apify.com/v2/key-value-stores/44gjIna4ipGc3tD78/records/us-supplement-price-comparator-v1.png?signature=YlOMVVT3ZYT78fFZk27v)

#### ⏰ Automated Schedules & Email / Slack Alerts (Apify Integrations)

Want daily or weekly price updates delivered automatically? Instead of storing credentials inside the Actor, use Apify's built-in **Schedules** and **Integrations**:

1. Save your preferred search terms and store toggles as a **Task**, then set a recurring **Schedule** (e.g., daily at 8:00 AM or every Monday morning).
2. Open the Actor/Task **Integrations** tab in Apify Console and connect **Send Email (`apify/send-mail`)**, **Slack (`apify/slack-alert`)**, **Google Sheets**, **Make**, **Zapier**, or a **Webhook** triggered on `Run succeeded`.
3. Include `{{links.apiDefaultKeyValueStoreUrl}}/records/report.html` or `{{links.apiDefaultDatasetUrl}}/items?format=csv` in your alert payload to receive the live HTML report or spreadsheet automatically after every scheduled run.

***

### 📥 Input Parameters

| Parameter | Type | Default | Description |
|---|---|---|---|
| `searchTerms` | Array of Strings | `["Optimum Nutrition Gold Standard Whey 5 lb", ...]` | Supplement names, brands, or ingredients to search. |
| `stores` | Array of Strings | `["amazon", "walmart", "target", "bodybuilding", "iherb", "myprotein"]` | Select which stores to query. |
| `maxItemsPerStore` | Integer | `5` | Maximum candidate results to inspect per store. |
| `minPrice` | Integer | `5` | Ignore items priced lower than this threshold (in USD). |
| `maxPrice` | Integer | `300` | Ignore items priced higher than this threshold (in USD). |
| `onlyMultiStoreMatches` | Boolean | `false` | When enabled, only outputs supplements found in 2 or more stores. |
| `includeFields` | Array of Strings | `["productImage", "brand", "weightOrCount", "storeColumns", "dealVerdict"]` | Select optional columns to output. Core fields are always included. |
| `proxyConfiguration` | Object | `{ "useApifyProxy": true, "apifyProxyGroups": ["RESIDENTIAL"] }` | Apify proxy configuration (RESIDENTIAL recommended). |

***

### 📤 Sample Output

```json
{
  "productName": "Optimum Nutrition Gold Standard 100% Whey Protein Powder, Double Rich Chocolate, 5 lb",
  "matchedProductTitle": "Optimum Nutrition Gold Standard 100% Whey Protein Powder, Double Rich Chocolate, 5 lb",
  "brand": "Optimum Nutrition",
  "weightOrCount": "5 lb",
  "productImage": "https://m.media-amazon.com/images/I/7162zT2B1PL._AC_SL1500_.jpg",
  "bestPrice": 67.99,
  "lowestPrice": 67.99,
  "highestPrice": 85.99,
  "priceSpread": 18.00,
  "priceSpreadPercent": 21,
  "cheapestStore": "Walmart Health",
  "lowestStore": "Walmart Health",
  "highestStore": "Bodybuilding.com",
  "storeCount": 4,
  "dealVerdict": "GREAT DEAL (21% SAVINGS)",
  "currency": "USD",
  "bestDealUrl": "https://www.walmart.com/ip/Optimum-Nutrition-Gold-Standard-100-Whey-Protein-Powder-Double-Rich-Chocolate-5-lb/123456",
  "amazonPrice": 74.99,
  "amazonUrl": "https://www.amazon.com/dp/B000QSNZ5K",
  "amazonStatus": "In Stock",
  "walmartPrice": 67.99,
  "walmartUrl": "https://www.walmart.com/ip/Optimum-Nutrition-Gold-Standard-100-Whey-Protein-Powder-Double-Rich-Chocolate-5-lb/123456",
  "walmartStatus": "In Stock",
  "targetPrice": 72.99,
  "targetUrl": "https://www.target.com/p/-/A-12345678",
  "targetStatus": "In Stock",
  "bodybuildingPrice": 85.99,
  "bodybuildingUrl": "https://shop.bodybuilding.com/products/optimum-gold-standard-100-whey-5lb",
  "bodybuildingStatus": "In Stock",
  "iherbPrice": null,
  "iherbUrl": null,
  "iherbStatus": "Not Found",
  "myproteinPrice": null,
  "myproteinUrl": null,
  "myproteinStatus": "Not Found",
  "searchTerm": "Optimum Nutrition Gold Standard Whey 5 lb",
  "lastUpdated": "2026-11-11T15:00:00.000Z"
}
```

***

### 🎛️ Standardized Store Toggles, Filter Guards & Per-Store Tabs

This Actor includes unified comparison controls matching our full suite:

#### Individual Store Toggles (`ON` / `OFF`)

Turn any retailer on or off directly from the input form without editing JSON arrays:

- **Amazon** (`includeAmazon`): Include Amazon US — Prime delivery & sports nutrition.
- **Walmart** (`includeWalmart`): Include Walmart Health & Wellness.
- **Target** (`includeTarget`): Include Target Wellness & vitamins.
- **Bodybuilding.com** (`includeBodybuilding`): Include Bodybuilding.com — sports nutrition specialist.
- **iHerb** (`includeIherb`): Include iHerb — global vitamins & supplements.
- **Myprotein US** (`includeMyprotein`): Include Myprotein US — direct-to-consumer nutrition.

#### Smart Filter & Sort Controls

- **`excludeAccessories` (Default: `true`):** Filters out cases, stands, chargers, cables, skins, and adapters when searching for main hardware/products.
- **`inStockOnly` (Default: `true`):** Excludes out-of-stock offers so only purchasable listings are compared.
- **`onlyMultiStoreMatches` (Default: `false`):** Toggle ON to isolate products matched across 2 or more stores.
- **`sortBy`:** Sort results by **Biggest Savings ($)** (`priceSpreadDesc`), **Lowest Price ($)** (`bestPriceAsc`), **Most Stores Matched** (`storesComparedDesc`), or **Highest Discount %** (`savingsPercentDesc`).
- **`minSimilarityScore`:** Fine-tune fuzzy cross-store matching sensitivity (`0.2` – `0.9`).

#### 📊 Dataset Views (9 Organized Tabs)

| Tab Name | What You See |
| :--- | :--- |
| **Best Deals Overview** | Winning prices, brand/category specs, spreads, deal verdicts & best deal links |
| **Side-by-Side Store Matrix** | Parallel pricing and direct links across all 6 retailers side-by-side |
| **Amazon** | Dedicated tab with Amazon image, title, price, list price, discount %, rating, reviews, stock & link |
| **Walmart** | Dedicated tab with Walmart image, title, price, list price, discount %, rating, reviews, stock & link |
| **Target** | Dedicated tab with Target image, title, price, list price, discount %, rating, reviews, stock & link |
| **Bodybuilding.com** | Dedicated tab with Bodybuilding.com image, title, price, list price, discount %, rating, reviews, stock & link |
| **iHerb** | Dedicated tab with iHerb image, title, price, list price, discount %, rating, reviews, stock & link |
| **Myprotein US** | Dedicated tab with Myprotein US image, title, price, list price, discount %, rating, reviews, stock & link |
| **All Fields** | Complete raw dataset payload including nested offers for JSON/CSV/Excel export |

***

### 🔗 Related Price Comparators & Scrapers

Explore the complete multi-store price intelligence and retail arbitrage suite from [Lonwabo Mfundisi](https://apify.com/lonwabo):

- [US Book Price Comparator (6 Bookstores) ↗](https://apify.com/lonwabo/us-book-price-comparator) — Multi-store book prices, ISBN matching, and remainder arbitrage across Amazon, B\&N, Bookshop, ThriftBooks, AbeBooks, and BookOutlet.
- [US Pet Supplies & Food Price Comparator ↗](https://apify.com/lonwabo/us-pet-price-comparator) — Multi-store pet food and meds price finder across PetSmart, Chewy, Petco, Target, Walmart, and Amazon.
- [US Beauty & Cosmetics Price Comparator ↗](https://apify.com/lonwabo/us-beauty-price-comparator) — Cosmetics and skincare price comparison across Sephora, Ulta, Target, Walmart, and Amazon.
- [US Beauty Deal Alert Bot ↗](https://apify.com/lonwabo/us-beauty-deal-alert-bot) — Automated deal finder and discount monitor for luxury and drugstore cosmetics.
- [US Retail Price Comparator ↗](https://apify.com/lonwabo/us-retail-price-comparator) — Real-time price tracking across Amazon, Walmart, Target, Best Buy, Home Depot, and eBay.
- [US Hardware & Tool Price Comparator ↗](https://apify.com/lonwabo/us-hardware-price-comparator) — Compare tools and DIY supplies across Home Depot, Lowe's, Menards, Ace Hardware, Northern Tool, and Harbor Freight.
- [US Outdoor Gear Price Comparator ↗](https://apify.com/lonwabo/us-outdoor-gear-comparator) — Live price monitoring across REI, Backcountry, Moosejaw, Bass Pro Shops, Cabela's, and Patagonia.
- [US Arbitrage Deal Finder & Price Comparator ↗](https://apify.com/lonwabo/us-arbitrage-price-comparator) — Cross-market online arbitrage scanner detecting high-margin price discrepancies.

# Actor input Schema

## `searchTerms` (type: `array`):

List of supplement brands, protein powders, vitamins, or ingredients to compare across stores (e.g. 'Optimum Nutrition Gold Standard Whey 5 lb', 'Creatine Monohydrate Powder', 'Ghost Legend Pre Workout', 'Collagen Peptides Unflavored').

## `includeAmazon` (type: `boolean`):

Include Amazon US — Prime delivery & sports nutrition.

## `includeWalmart` (type: `boolean`):

Include Walmart Health & Wellness.

## `includeTarget` (type: `boolean`):

Include Target Wellness & vitamins.

## `includeBodybuilding` (type: `boolean`):

Include Bodybuilding.com — sports nutrition specialist.

## `includeIherb` (type: `boolean`):

Include iHerb — global vitamins & supplements.

## `includeMyprotein` (type: `boolean`):

Include Myprotein US — direct-to-consumer nutrition.

## `maxItemsPerStore` (type: `integer`):

Maximum candidate search results to inspect per store for each search term.

## `minPrice` (type: `integer`):

Ignore items priced lower than this threshold (useful to filter out single sample packets or shaker cups).

## `maxPrice` (type: `integer`):

Ignore items priced higher than this threshold.

## `excludeAccessories` (type: `boolean`):

Automatically filters out stands, chargers, cases, covers, skins, and cables when searching for main hardware/products.

## `inStockOnly` (type: `boolean`):

Only include store offers currently available in stock.

## `onlyMultiStoreMatches` (type: `boolean`):

When enabled, only outputs supplements that were found in 2 or more stores for direct price comparison.

## `sortBy` (type: `string`):

Choose how the comparison dataset is ordered.

## `includeFields` (type: `array`):

Deselect optional dense fields to keep dataset lightweight. Core comparison fields (Product Name, Best Price, Lowest Store, Potential Savings, Best Deal URL) are permanently included and cannot be removed.

## `minSimilarityScore` (type: `number`):

Similarity score (0.2 to 0.9) required to match products across different stores. Default 0.60 is calibrated for this category.

## `proxyConfiguration` (type: `object`):

Select Apify Proxy (RESIDENTIAL recommended for maximum reliability across protected nutrition stores).

## Actor input object example

```json
{
  "searchTerms": [
    "Optimum Nutrition Gold Standard Whey 5 lb",
    "Creatine Monohydrate Powder 500g",
    "Ghost Legend Pre Workout"
  ],
  "includeAmazon": true,
  "includeWalmart": true,
  "includeTarget": true,
  "includeBodybuilding": true,
  "includeIherb": true,
  "includeMyprotein": true,
  "maxItemsPerStore": 5,
  "minPrice": 5,
  "maxPrice": 300,
  "excludeAccessories": true,
  "inStockOnly": true,
  "onlyMultiStoreMatches": false,
  "sortBy": "priceSpreadDesc",
  "includeFields": [
    "productImage",
    "brand",
    "weightOrCount",
    "storeColumns",
    "dealVerdict"
  ],
  "minSimilarityScore": 0.6,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

## `htmlReport` (type: `string`):

Interactive side-by-side comparison cards, store tabs, matrix view, search/sort controls, Full Screen toggle, and CSV/JSON/Print export.

## `results` (type: `string`):

Structured dataset containing matched multi-store prices, spreads, store columns, stock status, and direct buy links.

# 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 = {
    "searchTerms": [
        "Optimum Nutrition Gold Standard Whey 5 lb",
        "Creatine Monohydrate Powder 500g",
        "Ghost Legend Pre Workout"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("lonwabo/us-supplement-price-comparator").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 = { "searchTerms": [
        "Optimum Nutrition Gold Standard Whey 5 lb",
        "Creatine Monohydrate Powder 500g",
        "Ghost Legend Pre Workout",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("lonwabo/us-supplement-price-comparator").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 '{
  "searchTerms": [
    "Optimum Nutrition Gold Standard Whey 5 lb",
    "Creatine Monohydrate Powder 500g",
    "Ghost Legend Pre Workout"
  ]
}' |
apify call lonwabo/us-supplement-price-comparator --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,lonwabo/us-supplement-price-comparator"
        }
    }
}
```

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/3iphbVE19KNSkBGCg/builds/whjEAFOrWF8xI6gFh/openapi.json
