# Walgreens Scraper: Prices, myWalgreens Deals & Stock (`vant47/walgreens-scraper`) Actor

Get Walgreens online prices, myWalgreens deals, BOGO, coupons, unit prices, UPCs and stock by ZIP or store. Monitor health, beauty and household categories, sale lists, product IDs or keyword suggestions. $0.002 per product + $0.0005 start. No login. Online prices may differ in store.

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

## Pricing

from $1.60 / 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

## Walgreens Scraper: Prices, myWalgreens Deals & Stock

For retail price analysts, brands, comparison services and assortment teams monitoring Walgreens products, online prices, promotions and store availability. Collect regular and sale prices, BOGO terms, myWalgreens rewards, digital coupon text, unit prices, UPCs, package sizes and ratings in a consistent retail dataset. About **$0.002 per delivered product at one store**: **1,000 observations cost $2.00**, plus the small **$0.0005 Actor start charge**. No Walgreens login or retailer API key is required.

Choose ZIP codes for nearby stores or exact store numbers for a repeatable monitored basket. Use product IDs, product links, category links, sale lists or keyword suggestions. Product rows use the same core field names as the US retail family, so your database can combine retailers without a separate price table for each one.

### Understand the price and store fields

`price` is the published **online single-item price**. `storeId` identifies the store selected for availability. `priceScope` is `online`, and `storePrice` remains null. Walgreens itself displays a notice that online and in-store prices and inventory may differ. Keep that distinction in your comparisons and exports.

A multi-buy promotion can show both a basket offer and the price for one item. For example, a real Walgreens Big Roll listing showed `10/$8.00 or 1/$0.99`. The single-item `price` is **$0.99**; the full offer stays in `promoText` and `saleText`. The Actor does not divide a bundle total and pretend it is the price available to someone buying one item.

myWalgreens cash rewards remain in `rewardsText` and dated `offers`. Earning rewards on a qualifying purchase does not reduce `price` or create a numeric `memberPrice`. Employee pricing is excluded. A digital coupon stays separate from the product price because clipping, minimum quantities, membership, eligible products and redemption rules may apply.

### What you get

Each billable row has `recordType: "PRODUCT"`. A readable `verdict` comes first, followed by the shared retail fields. Missing values remain null. Identifiers are strings, preserving leading zeros.

| Field | Meaning |
| --- | --- |
| `verdict` | Product, online single-item price, selected-store status and store number. |
| `retailer`, `country`, `currency` | Walgreens, US and USD. |
| `storeId`, `storeName`, `location` | Verified Walgreens store and the ZIP you supplied. Exact-store selection has a null requested ZIP. |
| `productId`, `sku`, `gtin` | Retail product identifier, selected SKU and published GTIN. |
| `title`, `brand`, `size` | Product name, explicit brand and supplied package-size label. |
| `price`, `regularPrice`, `onSale` | Published online item price, regular single-item price and sale flag. |
| `promoText`, `promoType` | Main BOGO, multi-buy or other promotion wording and type. |
| `promoStart`, `promoEnd` | Dates attached to that specific main offer, when supplied. |
| `memberPrice`, `memberProgram` | Explicit numeric membership price when supplied, and the loyalty program. Rewards do not become a member price. |
| `unitPrice`, `unitOfMeasure` | Published unit price and its unit, such as sheet, oz or ea. Missing-value sentinels become null. |
| `inStock`, `stockLevel` | Selected-store availability when explicitly supplied, and a quantity only when verified for that store and article. |
| `rating`, `reviewCount` | Published aggregate product rating and review count. |
| `category`, `url`, `imageUrl` | Product category, product page and image. |
| `scrapedAt` | UTC observation timestamp. |

The Walgreens fields follow the common schema:

| Field | Meaning |
| --- | --- |
| `storeNumber`, `inStoreStock` | Walgreens store number and the explicit local availability signal. |
| `pickupAvailable`, `pickupEligible` | Verified pickup availability when present, and a separate eligibility flag. Eligibility alone does not prove local stock. |
| `rewardsText`, `couponText` | Cash-rewards wording and product-linked digital coupon text. |
| `offers` | Published promotion type, title, conditions, dates and link. Rewards and BOGO offers remain separate entries. |
| `couponAvailable`, `onlineRedemption` | Published coupon flag and public redemption information. |
| `couponDetails`, `rebateText` | Product-linked coupon ID and eligibility description, plus published sitewide code/rebate wording. |
| `priceScope`, `storePrice`, `storePricing` | Price scope, the separate shelf-price field and the source's store-pricing flag. |
| `saleText`, `priceRequiresMembership` | Full multi-buy or sale wording and an explicit membership-price flag. |
| `articleId`, `upc` | Walgreens article number and the UPC supplied by the source. |
| `storeInventoryStatus`, `shippingStockStatus` | Separate selected-store and online shipping status messages. |
| `storeAddress`, `storeDistance` | Public store-location evidence and supplied distance from a ZIP lookup. |
| `sourceUrl`, `stockSourceUrl` | Public source used for the product and for separately verified store status. |
| `isDeal` | Sale, BOGO, coupon, multi-buy or rewards flag. |
| `details` | Optional description, ingredient/nutrition groups, warnings and benefit-program flags. |

The **Product prices** dataset view puts title, price, regular price, promotion, member price, unit price, stock and store beside one another. **Deals and rewards** emphasizes offers and coupon text. The free `DEALS` output contains qualifying product rows without another product charge. Larger DEALS exports use an index of smaller part keys in the same key-value store.

Every run saves `SUMMARY` with products, stores, deals found, duplicate exclusions, source outcomes, free failures and spending-limit status. Explanatory rows have `recordType: "NOTE"` and no product charge. Use the summary to distinguish a completed empty query from an unavailable source.

### Start in three steps

1. Enter ZIP codes or exact store numbers.
2. Choose product IDs, product links, category/sale links or keyword suggestions. Set your row limits.
3. Start the run, inspect SUMMARY and export JSON, CSV or Excel.

The form combines a vitamins suggestion query with a Vitamin D category near ZIP 60614 and a 20-row limit. For a category-only or product-only job, clear the other source fields. Explicit source lists are useful when creating repeatable tasks through the API.

### Inputs and examples

| Input | Example and behavior |
| --- | --- |
| `searchTerms` | `["vitamins", "shampoo"]`. Returns up to seven public suggestions per term and selected store. Suggestions must contain the requested terms in their title, brand, product type or identifier. |
| `startUrls` | Public Walgreens category, sale, clearance, search or product links. Category and sale collection supports pagination. |
| `productIds` | `["300425969", "prod6148394"]`. Walgreens product IDs, not UPC barcodes. |
| `locations` | `["60614", "10001"]`. Selects the nearest returned store per US ZIP; ZIP+4 is accepted. |
| `storeIds` | `["15350", "15196"]`. Exact verified store numbers, taking precedence over ZIPs. |
| `maxItemsPerSearch` | Maximum unique rows per source at each store. Default 20; maximum 1,000. |
| `maxItems` | Global product/store row cap. Default 20; maximum 10,000. |
| `dealsOnly` | Keep products with a sale, multi-buy, BOGO, coupon or rewards offer. |
| `includeDetails` | Add ingredients, nutrition, descriptions and warnings. No extra product fee. |
| `proxyConfiguration` | Default datacenter pool first, then fresh US residential retries after refusals. Custom proxy settings are accepted. |

Exact stores make comparisons stable across scheduled runs. With empty locations and store IDs, the Actor asks the website for its signed-out default store and verifies that store. It records the resolved store in SUMMARY. Two ZIPs resolving to the same store produce one product observation for that store within the run.

A category at two stores:

```json
{
  "startUrls": ["https://www.walgreens.com/store/c/productlist/N=20000944"],
  "storeIds": ["15350", "15196"],
  "maxItemsPerSearch": 50,
  "maxItems": 100
}
```

A known product basket:

```json
{
  "productIds": ["300425969", "300452904"],
  "locations": ["60614", "10001"],
  "includeDetails": true,
  "maxItems": 4
}
```

A sale-monitoring job:

```json
{
  "startUrls": ["https://www.walgreens.com/store/store/save/sale.jsp"],
  "locations": ["90210"],
  "dealsOnly": true,
  "maxItemsPerSearch": 100,
  "maxItems": 100
}
```

A keyword suggestion query can use `searchTerms: ["milk", "coffee"]`. For broader coverage, paste the corresponding category link. A row cap controls output, not the number of matching products the source is guaranteed to have.

### Real output example

Selected fields from a live cloud observation on 4 November 2026:

```json
{
  "retailer": "Walgreens",
  "country": "US",
  "currency": "USD",
  "storeId": "15350",
  "location": "60614",
  "productId": "300425969",
  "title": "Walgreens Vitamin D3 125 mcg Softgels (100 days)",
  "brand": "Walgreens",
  "price": 11.99,
  "regularPrice": 11.99,
  "priceScope": "online",
  "storePrice": null,
  "memberPrice": null,
  "unitPrice": 0.12,
  "unitOfMeasure": "ea",
  "promoText": "Buy 1, Get 1 FREE",
  "rewardsText": "Earn $10 rewards on $30+ spent on select Walgreens brands*"
}
```

The rewards offer in the public product response ran from **1 November through 7 November 2026**. Its date range belongs to the rewards entry in `offers`. The separate BOGO had no published dates in that response, so its main `promoStart` and `promoEnd` remain null.

### Observed in live runs

On 4 November 2026, two cloud jobs each delivered **1,100 unique product/store observations**, covering ten ZIP codes and vitamins, sale products, beauty and baby categories. Both completed with **zero final source failures**. The second job was deliberately rebooted after saving its first product and before charging it; it finished with **1,100 distinct rows and exactly 1,100 Product charges**.

Ten online prices were compared with the rendered Walgreens page for store 15350. All ten matched, including single-item prices inside multi-buy offers, a regular-to-sale price change, BOGO wording and coupon text. A separate 20-product category observation and the 20-product form example also completed successfully.

### Pricing and spending limits

One product at two stores is two observations. Overlapping terms, categories and product IDs at the same store are deduplicated within a run. A new scheduled run creates a fresh observation and charges for the products it delivers again.

| Product/store observations | Base | Bronze | Silver | Gold |
| --- | ---: | ---: | ---: | ---: |
| 20 | $0.04 | $0.038 | $0.036 | $0.032 |
| 100 | $0.20 | $0.19 | $0.18 | $0.16 |
| 1,000 | $2.00 | $1.90 | $1.80 | $1.60 |
| 10,000 | $20.00 | $19.00 | $18.00 | $16.00 |

Add the minimum $0.0005 start charge. The base price is $0.002 per product; Bronze is $0.0019 (5% off), Silver $0.0018 (10% off) and Gold $0.0016 (20% off). There is no additional default dataset-row charge or details event. Notes, empty results, retries, duplicate exclusions, summaries and failed requests have no product charge.

Set Apify's maximum total charge to control spending. The Actor checks capacity before delivery and stops cleanly when another product cannot be charged. Delivered rows, acknowledged charge counts and page progress survive a restart. The summary reports whether the spending limit stopped the job.

### Monitor prices every day

Save a task with exact store IDs and a stable list of product IDs or category URLs. In Apify Console, create a schedule, select the task, choose the schedule and timezone, and connect a completed-run webhook to your database or workflow.

Join observations on `retailer + storeId + productId`. Keep `scrapedAt` as the observation time. Store UPC and GTIN values as text in spreadsheets. Compare online prices with online prices, and retain coupon conditions and rewards requirements when calculating promotion coverage.

Make, Zapier, n8n and Google Sheets workflows can read the dataset and SUMMARY. Check `freeFailures`, `outcomes` and `spendingLimitReached` before treating a snapshot as complete. Keep missing observations visible in your history instead of substituting an earlier price.

### API and automation

Use your own Apify token. The run response provides the dataset and key-value-store IDs:

```bash
curl -X POST \
  'https://api.apify.com/v2/acts/vant47~walgreens-scraper/runs' \
  -H 'Authorization: Bearer YOUR_APIFY_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{"productIds":["300425969"],"storeIds":["15350"],"maxItems":1}'
```

```python
from apify_client import ApifyClient
client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("vant47/walgreens-scraper").call(
    run_input={
        "startUrls": ["https://www.walgreens.com/store/c/productlist/N=20000944"],
        "storeIds": ["15350"],
        "maxItems": 20,
    }
)
rows = list(client.dataset(run["defaultDatasetId"]).iterate_items())
summary = client.key_value_store(run["defaultKeyValueStoreId"]).get_record("SUMMARY")
```

```javascript
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('vant47/walgreens-scraper').call({
  searchTerms: ['shampoo'], locations: ['10001'], maxItems: 7
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
```

### Use with AI agents (MCP)

Connect your agent to `https://mcp.apify.com`. Ask it for Walgreens online prices, myWalgreens offers, coupon conditions and availability near a ZIP or at exact store numbers. Supply your terms, category URLs or product IDs and a row cap. Ask the agent to preserve nulls, distinguish online prices from shelf prices, and inspect SUMMARY after the run. Category URLs are the appropriate source for a large assortment snapshot.

### Limits

- Prices are published online prices. Verified physical shelf prices and personalized checkout totals are unavailable; `storePrice` remains null.
- Keyword search returns up to seven live suggestions per term. A conservative term check excludes unrelated fuzzy suggestions, so some synonyms and spelling corrections can be omitted. Full keyword-search pagination and image-only flyer extraction are unavailable. Categories, sale lists and exact product IDs provide broader monitoring routes.
- The direct quantity endpoint requires a browser visitor session on this source. This HTTP Actor leaves `stockLevel` and pickup availability without store-specific confirmation null. Catalog store status is retained only when explicitly supplied for the selected store. Exact-product status can remain null if its category does not return the product.
- Coupons are not clipped or redeemed. Cash rewards are not subtracted from price. Offers may require membership, quantities, eligible combinations or minimum spending. Missing offer dates remain null.
- No login, account cookies, prescription records, private customer data, CAPTCHA solving or historical backfill is used. Ingredients and warnings are product metadata, not personalized medical advice.
- Category pagination has a 50-page safety limit per source. The retailer can change pages, refuse requests or remove products. Free notes and SUMMARY expose unavailable data rather than filling it with guesses.
- Stock is a retailer availability signal and can change after collection. Product descriptions and package labels can also change. Use a store's checkout and shelf information for purchasing decisions.

### FAQ

**Can I choose a specific Walgreens store?** Yes. Use `storeIds`, or use US ZIP codes in `locations` to resolve nearby stores. Every product identifies its resolved store.

**Do two ZIP codes always mean two stores?** No. If they resolve to the same store, duplicate product observations are delivered and charged once within that run.

**Can I compare hundreds of products?** Use category links, sale links or known product IDs and raise both limits as needed. Keyword suggestions are capped by the retailer's public suggestion service.

**Why can a deal have a null member price?** A rewards or BOGO offer can be valuable without publishing a numeric membership price for one item. Its wording and conditions remain in the output.

**Why are some fields null?** The source did not provide a value that could be verified for that product, offer or selected store. Nulls are preserved for accurate downstream comparisons.

**Does includeDetails cost extra?** It has no separate product fee. It includes published ingredient, nutrition and warning metadata when available.

**What happens with invalid input?** Parseable invalid selections produce a free explanatory note and summary. Apify can reject schema-invalid input before a run starts. Neither path creates a product charge.

**How do I monitor changes?** Save each run's dataset in your database and compare stable product/store keys with the observation timestamp. Use the summary to detect incomplete coverage before issuing alerts.

# Actor input Schema

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

Live product suggestions, up to seven per term, such as vitamins, shampoo or milk. Use categories for paginated collection.

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

Public Walgreens category, product or sale links. Categories and sale lists support pagination.

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

Exact numeric or prod-prefixed Walgreens IDs, such as 300425969 or prod6148394. These are not UPCs.

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

Nearest Walgreens store per US ZIP code. Online prices remain online prices; stock belongs to the selected store.

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

Verified exact store numbers, such as 15350 or 15196. Takes precedence over ZIPs.

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

Unique product/store rows. About $0.002 each; 1,000 rows cost $2.00 plus the $0.0005 start charge. Search suggestions can return fewer than your cap.

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

Unique product/store rows. About $0.002 each; 1,000 rows cost $2.00 plus the $0.0005 start charge. Search suggestions can return fewer than your cap.

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

Keep sales, BOGO, coupons and rewards. Preserve qualifying quantities and conditions; coupons are never automatically deducted.

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

Add published ingredients, nutrition and warnings. Dated offers and prices are collected without an extra event fee.

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

Default datacenter pool first, with fresh US residential retries only after refusals. Custom proxy settings are accepted.

## Actor input object example

```json
{
  "searchTerms": [
    "vitamins"
  ],
  "startUrls": [
    "https://www.walgreens.com/store/c/productlist/N=361633"
  ],
  "locations": [
    "60614"
  ],
  "maxItemsPerSearch": 20,
  "maxItems": 20,
  "dealsOnly": false,
  "includeDetails": false,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

No description

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

No description

## `deals` (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 = {
    "searchTerms": [
        "vitamins"
    ],
    "startUrls": [
        "https://www.walgreens.com/store/c/productlist/N=361633"
    ],
    "locations": [
        "60614"
    ],
    "maxItemsPerSearch": 20,
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("vant47/walgreens-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 = {
    "searchTerms": ["vitamins"],
    "startUrls": ["https://www.walgreens.com/store/c/productlist/N=361633"],
    "locations": ["60614"],
    "maxItemsPerSearch": 20,
    "maxItems": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("vant47/walgreens-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 '{
  "searchTerms": [
    "vitamins"
  ],
  "startUrls": [
    "https://www.walgreens.com/store/c/productlist/N=361633"
  ],
  "locations": [
    "60614"
  ],
  "maxItemsPerSearch": 20,
  "maxItems": 20
}' |
apify call vant47/walgreens-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,vant47/walgreens-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/n3iFOqUqsVvmXKt4B/builds/6DCTMVqCh0ElwGBxi/openapi.json
