# Pharmacy & Beauty Prices: CVS, Walgreens, Ulta & Sephora (`moggedhq/pharmacy-beauty-prices-scraper`) Actor

Compare CVS, Walgreens, Ulta and Sephora pharmacy, drugstore and beauty product prices: sale and regular prices, signed-out rewards, coupon dates when supplied, sizes and stock signals. Online prices; ZIP stores for CVS, Walgreens and Ulta. $0.004 per product: 1,000 cost $4. No login.

- **URL**: https://apify.com/moggedhq/pharmacy-beauty-prices-scraper.md
- **Developed by:** [mogged](https://apify.com/moggedhq) (community)
- **Categories:** E-commerce, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.20 / 1,000 products

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## Pharmacy & Beauty Prices: CVS, Walgreens, Ulta & Sephora

For brands, retail analysts and comparison services monitoring US pharmacy and beauty products. Collect public online prices from CVS, Walgreens, Ulta and Sephora in one run, using the same fields across all four retailers. Keep regular prices, sale prices, conditional offers, selected sizes and supplied stock signals together.

**$0.004 per delivered product observation.** A job returning 1,000 products costs $4 at base pricing, plus the $0.00005 minimum Actor start charge. Bronze, Silver and Gold discounts apply. No retailer login, exported account cookies or retailer API credentials are required.

### What you get

Each product row identifies its retailer, product and store context. CVS returns advertised online/pickup prices with selected-store inventory. Walgreens returns online prices with supported catalog store-status signals. Ulta returns online prices and a separate pickup signal when a store is selected. Sephora returns online catalog prices and variants; its numeric catalog codes are retained separately from verified stock.

The first form example searches moisturizer across all four. Its cloud test on 15 November 2026 delivered **34 priced observations in 33.740 seconds**, with 34 distinct delivery keys and 34 Product charges: CVS 10, Walgreens 4 relevant suggestions, Ulta 10 and Sephora 10. A requested cap is a maximum, so a smaller relevant result set is valid. See SUMMARY for coverage and free explanatory notes. Two corrected cloud runs each delivered 1,100 unique priced observations, exactly 1,100 Product charges and complete coverage.

| Field | Meaning |
| --- | --- |
| `verdict` | Readable product, price and availability summary. |
| `retailer`, `retailerKey` | Source name and stable bundle key. |
| `country`, `currency` | US and USD. |
| `storeId`, `storeName` | Selected source store context, or null for online-only results. |
| `location` | Requested ZIP when the retailer resolved it. |
| `productId`, `sku` | Source product and selected variant identifiers. |
| `gtin` | Explicit source barcode with a valid format/check digit; incomplete source identifiers stay in sourceIdentifiers. |
| `title`, `brand`, `size` | Supplied product name, brand and selected package label. |
| `price`, `regularPrice`, `onSale` | Current advertised amount, source regular amount and sale flag. |
| `promoText`, `promoType` | Supplied promotion wording and type. |
| `promoStart`, `promoEnd` | Main promotion dates only when supplied. |
| `memberPrice`, `memberProgram` | Explicit member amount and named program, when supplied. |
| `unitPrice`, `unitOfMeasure` | Source price per unit and corresponding unit. |
| `inStock`, `stockLevel` | Supported availability signal and quantity, when established. |
| `rating`, `reviewCount` | Aggregate rating and number of reviews. |
| `category`, `url`, `imageUrl` | Supplied category and product/image links. |
| `scrapedAt`, `priceScope` | Observation timestamp and price channel. |
| `searchTerm` | Requested keyword associated with the discovery job, if applicable. |
| `offers`, `isDeal` | Conditional offers and combined deal flag. |
| `recordType` | PRODUCT for observations; NOTE for free explanations. |

Retailer extras retain useful detail. CVS includes explicit UPCs, aisle information, store quantities, ExtraBucks and coupon conditions. Walgreens includes package multipliers, myWalgreens reward text, coupons and source inventory status. Ulta includes shades, nested variants, public gift and purchase conditions, and pickup scope. Sephora includes selected-SKU variants, sale/list/value distinctions and raw catalog availability codes. Missing data stays null.

### Start in three steps

1. Choose retailers and enter product keywords, URLs or source identifiers.
2. Choose ZIPs or exact store selections and set per-retailer and total caps.
3. Run, inspect SUMMARY, then export observations or the sorted comparison JSON.

The form example assigns ZIP 10001 to CVS, Walgreens and Ulta. Sephora uses its online catalog. All retailers can run together; requests remain sequential within each retailer. A global cap is shared between retailers collecting concurrently, so a smaller total cap can be filled by whichever source returns first. Use separate single-retailer jobs when you need a guaranteed allocation below the combined requested caps.

### Inputs

| Input | Behavior |
| --- | --- |
| `retailers` | Array containing cvs, walgreens, ulta and sephora. Omitted selects all four. Unknown selections generate free notes. |
| `searchTerms` | Keywords used for every selected retailer unless overridden. |
| `categoryUrls` | Public category, brand or supported sale URLs, routed by hostname. |
| `startUrls` | Public product, category or search links, routed to their retailer. URL objects with a url field are accepted by normalization where the platform permits them. |
| `productIds` | Source identifiers for a single selected retailer. For a bundle, place IDs in retailerInputs. |
| `postalCodes`, `locations` | US ZIP lists; both are combined. Exact stores take precedence. |
| `storeIds` | Exact source store numbers when one retailer is selected. Preserve leading zeros. |
| `retailerInputs` | Retailer-specific selector object described below. |
| `maxItemsPerRetailer` | Maximum observations per retailer, default 10. |
| `maxItems` | Shared maximum observations, default 40. |
| `maxItemsPerSearch` | Additional per-source/store cap; omitted uses the per-retailer cap up to 1,000. |
| `dealsOnly` | Keep supplied sales and conditional offers. |
| `includeDetails` | Optional descriptions, ingredients and other available metadata; no extra product charge. |
| `proxyConfiguration` | Automatic datacenter routing with US residential fallback; explicit buyer settings are retained. |

A retailerInputs entry overrides the corresponding common selector. An explicit empty array clears it for that retailer. Other selectors remain common. For example, postalCodes and locations are separate selector names and their resulting arrays are combined. To clear both, set both arrays empty.

```json
{
  "searchTerms": ["moisturizer"],
  "retailerInputs": {
    "cvs": {"postalCodes": ["10001"]},
    "walgreens": {"postalCodes": ["10001"]},
    "ulta": {"postalCodes": ["10001"]},
    "sephora": {"postalCodes": [], "locations": []}
  },
  "maxItemsPerRetailer": 10,
  "maxItems": 40
}
```

Exact product/store monitoring avoids mixing retailers' identifier systems:

```json
{
  "retailers": ["walgreens", "sephora"],
  "retailerInputs": {
    "walgreens": {"productIds": ["300425969"], "storeIds": ["15350"]},
    "sephora": {"productIds": ["P427419"]}
  },
  "maxItemsPerRetailer": 1,
  "maxItems": 2
}
```

A category-only example uses the same family names:

```json
{
  "retailers": ["ulta", "sephora"],
  "categoryUrls": [
    "https://www.ulta.com/shop/makeup/eyes/mascara",
    "https://www.sephora.com/shop/skincare"
  ],
  "maxItemsPerRetailer": 50,
  "maxItems": 100
}
```

### Compare prices correctly

The overview dataset view shows price, regular price, promotion, member price, unit price, stock and store together. The deals view emphasizes offer wording and dates. The separate **COMPARISON JSON** output groups rows by searchTerm and sorts numeric prices cheapest first within each group. It is a browsing aid, not an assertion that all products in a keyword search are identical.

Match exact sizes and variants before calculating a price difference. Use verified GTINs where available; a source product number is never a barcode. Keep conditional rewards separate from cash prices. An ExtraBucks offer, coupon, gift or subscription saving is not automatically deducted from price. Ulta variant price ranges are not substituted for the selected SKU's price. Sephora value prices are not relabeled as previous selling prices.

Real 15 November prefill observation:

```json
{
  "retailer": "Ulta Beauty",
  "storeId": "1638",
  "productId": "pimprod2007113",
  "sku": "2551163",
  "title": "Natural Moisturizing Factors + Hyaluronic Acid Daily Moisturizer",
  "price": 12.5,
  "priceScope": "ONLINE",
  "searchTerm": "moisturizer"
}
```

### Pricing and spending controls

One Product charge applies to one distinct delivered retailer/product/store observation. CVS distinguishes selected SKUs; the other routes retain their product-group semantics and selected variant fields. The same observation found through overlapping selectors within one run is delivered and charged once. A product at another store is a separate observation. Each fresh scheduled snapshot is a new observation.

| Delivered observations | Base | Bronze | Silver | Gold |
| --- | --- | --- | --- | --- |
| 20 | $0.08 | $0.076 | $0.072 | $0.064 |
| 100 | $0.40 | $0.38 | $0.36 | $0.32 |
| 1,000 | $4.00 | $3.80 | $3.60 | $3.20 |

Add the minimum $0.00005 Actor start charge. Platinum and Diamond use the Gold result price. There is no default charge for every dataset row and no details surcharge. Notes, duplicates, summaries and rows without a price or dated promotion have no Product charge. The Actor checks remaining spending capacity before delivery and stops cleanly when another observation is unaffordable.

### Monitor prices every day

Save a task with exact stores and known products or stable categories. In Apify Console, create a schedule for the task, select your frequency and timezone, and connect a finished-run webhook to your workflow. No retailer account is needed.

Store each dataset with its run ID and timestamp. Join snapshots by retailer, store and product, including the selected SKU when variant-level comparisons matter. Keep priceScope, size, currency and offer conditions in the join. Do not replace a missing observation with an old price without marking it as old. SUMMARY exposes per-retailer failures so a temporary source gap can be distinguished from a genuine price change.

Read the dataset from Make, Zapier, n8n, Google Sheets or your database integration. SUMMARY gives delivered products, rows per retailer, deals, free failures, duplicate exclusions and spending-limit status. Full per-retailer summaries retain resolved stores and source outcomes. DEALS and COMPARISON are free JSON exports; large exports link to numbered parts.

### API and automation

Use your own Apify token:

```bash
curl -X POST \
  'https://api.apify.com/v2/acts/moggedhq~pharmacy-beauty-prices-scraper/runs' \
  -H 'Authorization: Bearer YOUR_APIFY_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{"retailers":["sephora"],"searchTerms":["lipstick"],"maxItems":20,"maxItemsPerRetailer":20}'
```

```python
from apify_client import ApifyClient
client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("moggedhq/pharmacy-beauty-prices-scraper").call(
    run_input={"retailers": ["sephora"], "searchTerms": ["lipstick"],
               "maxItems": 20, "maxItemsPerRetailer": 20}
)
rows = list(client.dataset(run["defaultDatasetId"]).iterate_items())
```

```javascript
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('moggedhq/pharmacy-beauty-prices-scraper').call({
  retailers: ['ulta'], searchTerms: ['mascara'],
  maxItemsPerRetailer: 20, maxItems: 20
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
```

### Use with AI agents (MCP)

Connect your agent to https://mcp.apify.com and ask for pharmacy prices, CVS/Walgreens prices, beauty product prices or drugstore prices. Supply retailers, keywords, exact stores or supported ZIPs, and the product cap. Ask the agent to inspect SUMMARY, retain nulls and compare equivalent sizes. For recurring baskets, provide product URLs rather than relying on changing keyword rankings.

### Limits

Prices are public online or advertised pickup prices, not independently verified physical shelf prices. Taxes, checkout shipping, personalized account offers and basket eligibility are outside coverage. Member prices and promotion dates remain null when the source omits them. No historical backfill is supplied.

Walgreens keyword collection returns up to seven relevant suggestions per term; full keyword pagination is unavailable. Use supported category and sale URLs for larger collections. Conservative relevance filtering can omit synonyms. Quantities and pickup status without source confirmation stay null.

Sephora cannot resolve ZIPs on the supported route. ZIP-only selection returns a free note without substituting another store. Exact recognized store IDs provide catalog context, but numeric catalog codes do not establish fulfillment stock, pickup or quantities. Sephora barcodes, unit prices, member checkout prices and dated conditional offers are absent where unsupported. Its deals filter can match another nested variant; inspect the selected onSale flag and variant prices.

A source may return no active coupons, refuse optional metadata or temporarily block a route. These outcomes appear in notes and coverage records. Anonymous visitor retries and durable delivery improve recovery but cannot guarantee uninterrupted access to an external retailer. No login, CAPTCHA solving or account cookies are used.

### FAQ

**Can I run one retailer?** Yes. Select only its key in retailers; the same output contract applies.

**Does a ZIP change the price to a shelf price?** No. It establishes supported store context and stock; priceScope remains explicit.

**Are coupons deducted?** No. Their wording, dates and purchase requirements remain separate.

**Why did I get fewer rows than my cap?** The source returned fewer matches, filters removed rows, or SUMMARY reports a source or spending limit.

**Does rebooting create duplicates?** Saved delivery keys and charge receipts are reconciled before work resumes. Ambiguous billing evidence stops further charging.

**What happens with bad input?** Parseable unsupported selections produce free notes. The platform can reject schema-invalid input before starting a run.

**Can I get every variant as a separate row?** CVS can emit distinct priced SKUs. Other routes preserve their documented product-group row semantics and include selected or nested variant information where available.

# Actor input Schema

## `retailers` (type: `array`):

Choose cvs, walgreens, ulta and sephora. Unknown selections produce free notes.

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

Search each selected retailer. Walgreens returns up to seven relevant suggestions per term.

## `categoryUrls` (type: `array`):

Public category, sale or brand URLs. Automatically routed by retailer hostname.

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

Public HTTPS URLs; each is sent only to its retailer.

## `productIds` (type: `array`):

Use with exactly one retailer; for several retailers use retailerInputs. IDs are never treated as barcodes.

## `postalCodes` (type: `array`):

Nearest store for CVS, Walgreens and Ulta. Sephora cannot resolve ZIPs and produces a free note without substituting a store.

## `locations` (type: `array`):

Same as postalCodes. Both lists are combined.

## `storeIds` (type: `array`):

Use with one retailer. Multiple retailers have different ID systems; use retailerInputs for exact selections.

## `retailerInputs` (type: `object`):

Object keyed by cvs, walgreens, ulta or sephora. Supports searchTerms, startUrls, categoryUrls, productIds, postalCodes, locations and storeIds. A selector here overrides that common selector.

## `maxItemsPerRetailer` (type: `integer`):

Maximum delivered product/store rows for each retailer.

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

Global row cap across all retailers, processed in selected order.

## `maxItemsPerSearch` (type: `integer`):

Additional family cap per source/store. A missing value uses maxItemsPerRetailer.

## `dealsOnly` (type: `boolean`):

Keep supplied sales and conditional offers; coupons are never deducted.

## `includeDetails` (type: `boolean`):

Collect optional descriptions and ingredients when supported. No extra product fee.

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

Automatic default tries datacenter then US residential. Explicit disable, groups, country and custom proxies are respected.

## Actor input object example

```json
{
  "retailers": [
    "cvs",
    "walgreens",
    "ulta",
    "sephora"
  ],
  "searchTerms": [
    "moisturizer"
  ],
  "retailerInputs": {
    "cvs": {
      "postalCodes": [
        "10001"
      ]
    },
    "walgreens": {
      "postalCodes": [
        "10001"
      ]
    },
    "ulta": {
      "postalCodes": [
        "10001"
      ]
    }
  },
  "maxItemsPerRetailer": 10,
  "maxItems": 40,
  "dealsOnly": false,
  "includeDetails": false,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `products` (type: `string`):

No description

## `summary` (type: `string`):

No description

## `comparison` (type: `string`):

No description

## `deals` (type: `string`):

No description

## `fullData` (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 = {
    "retailers": [
        "cvs",
        "walgreens",
        "ulta",
        "sephora"
    ],
    "searchTerms": [
        "moisturizer"
    ],
    "retailerInputs": {
        "cvs": {
            "postalCodes": [
                "10001"
            ]
        },
        "walgreens": {
            "postalCodes": [
                "10001"
            ]
        },
        "ulta": {
            "postalCodes": [
                "10001"
            ]
        }
    },
    "maxItemsPerRetailer": 10,
    "maxItems": 40
};

// Run the Actor and wait for it to finish
const run = await client.actor("moggedhq/pharmacy-beauty-prices-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 = {
    "retailers": [
        "cvs",
        "walgreens",
        "ulta",
        "sephora",
    ],
    "searchTerms": ["moisturizer"],
    "retailerInputs": {
        "cvs": { "postalCodes": ["10001"] },
        "walgreens": { "postalCodes": ["10001"] },
        "ulta": { "postalCodes": ["10001"] },
    },
    "maxItemsPerRetailer": 10,
    "maxItems": 40,
}

# Run the Actor and wait for it to finish
run = client.actor("moggedhq/pharmacy-beauty-prices-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 '{
  "retailers": [
    "cvs",
    "walgreens",
    "ulta",
    "sephora"
  ],
  "searchTerms": [
    "moisturizer"
  ],
  "retailerInputs": {
    "cvs": {
      "postalCodes": [
        "10001"
      ]
    },
    "walgreens": {
      "postalCodes": [
        "10001"
      ]
    },
    "ulta": {
      "postalCodes": [
        "10001"
      ]
    }
  },
  "maxItemsPerRetailer": 10,
  "maxItems": 40
}' |
apify call moggedhq/pharmacy-beauty-prices-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,moggedhq/pharmacy-beauty-prices-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/aTzwBFaJAapPj8OlZ/builds/PKB6qe6NnWRffUEnV/openapi.json
