# Vitacost Scraper (`lexis-solutions/vitacost-scraper`) Actor

Vitacost.com scraper for health, vitamins, and supplements e‑commerce: extract product prices, ingredients, reviews, and availability from Vitacost categories and search pages into structured JSON for SEO, BI, and catalog monitoring.

- **URL**: https://apify.com/lexis-solutions/vitacost-scraper.md
- **Developed by:** [Lexis Solutions](https://apify.com/lexis-solutions) (community)
- **Categories:** E-commerce, AI, Agents
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$35.00/month + usage

To use this Actor, you pay a monthly rental fee to the developer. The rent is subtracted from your prepaid usage every month after the free trial period. You also pay for the Apify platform usage, which gets cheaper the higher Apify subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#rental-actors

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Vitacost Scraper

![banner](https://i.imgur.com/WscujWP.png)

Vitacost is an online health and wellness retailer selling vitamins, supplements, natural foods, and personal care products. The site supports search and category browsing with filters and detailed product pages. Scraping can collect price, brand, package size, ingredient lists, attributes, and availability signals.

### Introduction

The Vitacost scraper starts from search/category URLs, follows listing pages, and extracts product detail records such as productId, title, brand, price, availability, nutrition facts, and review statistics.

### Use Cases

- **Market research**: Track product pricing, assortment, and brand distribution across categories.
- **Catalog monitoring**: Watch product metadata changes over time.
- **Review analytics**: Collect rating value, review count, and distribution data for sentiment/quality tracking.
- **Data pipelines**: Feed BI tools, dashboards, and internal warehousing.

### Input

Provide the following fields:

- `startUrls` (array, required): Vitacost search/category/detail URLs.
- `maxItems` (integer, optional): Maximum number of products to extract per original start URL.
- `proxyConfiguration` (object, optional): Apify proxy settings.

Notes:

- Search and category URLs are paginated automatically.
- `maxItems` is enforced per original start URL.
- Counter increases only when an item is successfully pushed to dataset.
- Using a US-based proxy is highly recommended to reduce frequent blocking on Vitacost.

### Input Examples

**1) Start URLs**

```json
{
  "startUrls": [
    {
      "url": "https://www.vitacost.com/chips"
    },
    {
      "url": "https://www.vitacost.com/productsearch.aspx?ss=1&t=protein%20bars&mp=1"
    }
  ],
  "maxItems": 10,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": ["RESIDENTIAL"],
    "apifyProxyCountry": "US"
  }
}
```

### Output

Each dataset item contains fields like:

```json
{
  "url": "https://www.vitacost.com/vitacost-vitamin-d3-mini-gels",
  "productId": "53447",
  "title": "Vitacost Vitamin D3 Mini Gels -- 125 mcg (5000 IU) - 365 Softgels",
  "brand": "Vitacost Brand",
  "sku": "NSI7371",
  "price": 9.99,
  "currency": "USD",
  "availability": "in_stock",
  "category": "Vitamins",
  "breadcrumbs": ["Home", "Supplements", "Vitamins"],
  "weight": 0.5,
  "locale": "en_US",
  "quantity": 10,
  "variations": [],
  "description": "Product description...",
  "nutritionFacts": [],
  "ingredients": "Ingredients text...",
  "ratingValue": 4.83,
  "reviewCount": 739,
  "featuredReviewCount": 0,
  "ratingDistribution": [
    { "ratingValue": 5, "count": 666 },
    { "ratingValue": 4, "count": 52 }
  ],
  "recommendedCount": 480,
  "notRecommendedCount": 11,
  "helpfulVoteCount": 769,
  "notHelpfulVoteCount": 215,
  "firstReviewAt": "2010-01-30T23:42:33.000+00:00",
  "lastReviewAt": "2026-02-28T08:29:35.000+00:00",
  "reviewsPreview": []
}
```

The scraper stops for each original start URL when `maxItems` is reached or when no more listing items are found.

### Why use the Vitacost Scraper?

- **Focused**: Built specifically for Vitacost listing and product flows.
- **Structured output**: Ready-to-use JSON records for automation and analytics.
- **Review intelligence**: Includes Bazaarvoice-based rating/review statistics.
- **Per-URL limits**: `maxItems` is enforced per original start URL.
- **Apify-native**: Works with Apify datasets, request queue, and proxy config.

### FAQ

- **How many products can it extract?**\
  Controlled by `maxItems` per original start URL.

- **Do I need proxies?**\
  Proxies are recommended, especially for bigger runs and better stability.

- **Does it scrape reviews too?**\
  It collects review statistics and preview entries via Bazaarvoice data.

- **What if Vitacost changes page structure?**\
  The actor may require selector or parsing updates.

### Need to scrape other e-commerce platforms?

Check out our other scrapers:

- [Napaonline](https://apify.com/lexis-solutions/napaonline-scraper).
- [Macy's](https://apify.com/lexis-solutions/macys-scraper).
- [Shopbop](https://apify.com/lexis-solutions/shopbop-scraper).
- [Wayfair](https://apify.com/lexis-solutions/wayfair-v2-scraper).
- [Notino](https://apify.com/lexis-solutions/notino-scraper).
- [Bath & Body Works](https://apify.com/lexis-solutions/bath-and-body-works).
- [Michaels](https://apify.com/lexis-solutions/michaels-scraper).
- [Otto](https://apify.com/lexis-solutions/otto-de-scraper).
- [Alibaba](https://apify.com/lexis-solutions/alibaba-scraper).

***

**Need help or want a custom solution?**

Lexis Solutions is a certified Apify Partner. We can help with custom data extraction projects.

Contact us over [Email](mailto:scraping@lexis.solutions) or [LinkedIn](https://www.linkedin.com/company/lexis-solutions).

### Support Our Work

If you're happy with our work and scrapers, you're welcome to leave us a company review [here](https://apify.com/partners/find/lexis-solutions/review) and leave a review for the scrapers you're subscribed to.

### Image Credit

Image credit: [vitacost.com](https://www.vitacost.com/).

# Actor input Schema

## `startUrls` (type: `array`):

URLs to start with.

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

Maximum number of items per original URL.

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

Your proxy configuration from Apify.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.vitacost.com/chips"
    }
  ],
  "maxItems": 10,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "startUrls": [
        {
            "url": "https://www.vitacost.com/chips"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("lexis-solutions/vitacost-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "startUrls": [{ "url": "https://www.vitacost.com/chips" }] }

# Run the Actor and wait for it to finish
run = client.actor("lexis-solutions/vitacost-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "startUrls": [
    {
      "url": "https://www.vitacost.com/chips"
    }
  ]
}' |
apify call lexis-solutions/vitacost-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,lexis-solutions/vitacost-scraper"
        }
    }
}

```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/V6M27h3451JAq3VaZ/builds/y25N3YHj7prunTnd2/openapi.json
