# Macy's Scraper: Sale & Clearance Prices, Coupon Codes (`vant47/macys-scraper`) Actor

Get Macy's regular, sale and clearance prices, coupon codes and dates, Star Rewards offers, sizes, colours, brand, UPCs, ratings and pickup stock. Search, categories or product links for daily price checks. National online prices. $0.004 per product plus $0.002 collection start. No login.

- **URL**: https://apify.com/vant47/macys-scraper.md
- **Developed by:** [fortbrand](https://apify.com/vant47) (community)
- **Categories:** E-commerce, Automation
- **Features:** Limited permissions
- **Stats:** 3 total users, 2 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

## Macy's Scraper: Sale Prices, Coupons & Store Stock

For retail price analysts, brands, comparison services and assortment teams monitoring Macy's products. Collect regular prices, sale and clearance prices, product-linked offers, sizes, colours, source-proven UPCs and online availability. About **$0.004 per delivered product/store row**, or **$0.08 for 20 rows**, plus **$0.002 per collection that delivers products** and the minimum **$0.00005 Actor start charge**. No Macy's account or retailer API key is required.

Search Macy's catalog, follow category links or monitor a known list of product Web IDs. Save each observation in the same family schema used by other retail price Actors, so your downstream table can keep one set of column names.

### Understand online prices and pickup stock

Macy's advertised web prices are national online prices. Every product row explicitly has `priceScope: "online"`, including rows associated with a selected store. A ZIP code does not turn the online price into a verified shelf price. Keep the scope column when combining this dataset with retailers that publish local store prices.

`inStock` describes the product's online availability. `pickupAvailable` is a separate signal from Macy's public pickup-filtered catalog for the selected store. A positive value means the product appeared in that selected pickup filter. A product that is absent from the sampled pickup result retains null, including an empty result. The catalog filter is not a product-level negative inventory record. Each non-null flag carries `pickupEvidence`, including the source URL, store ID and source match count.

A product-level pickup match can mean that at least one variant is available. It does not establish pickup for every size and colour. The Actor keeps per-variant pickup values null unless that specific variant is established by the source.

`price` is the lowest current advertised price when the product spans a range. `priceMax` supplies the upper end and `priceIsRange` makes that distinction explicit. `regularPrice` and `regularPriceMax` retain the source's reference-price range. Macy's reference prices are offering prices; they need not represent a previously completed sale.

Coupon conditions and Star Rewards offers remain separate from the advertised price. The Actor does not subtract a conditional code, turn points into a cash discount or calculate a personalized checkout total. A coupon exclusion is retained as a condition rather than treated as a discount.

### What you get

Each dataset product starts with a readable `verdict`, then the common retail fields. Unknown source values remain null.

| Field | Meaning |
| --- | --- |
| `retailer`, `country`, `currency` | Macy's, US and USD. |
| `storeId`, `storeName`, `location` | Verified directory store and requested ZIP, when selected. |
| `productId`, `sku` | Macy's product Web ID. These are product identifiers, not barcodes. |
| `gtin` | A source-labelled, checksum-valid UPC/GTIN when the product has one distinct verified value. Multiple variant barcodes stay in variants. |
| `title`, `brand`, `size` | Public product title, supplied brand and a single size when applicable. |
| `price`, `regularPrice`, `onSale` | Current advertised minimum, reference minimum and sale indicator. |
| `promoText`, `promoType` | Supplied sale, clearance, coupon or rewards text and its classification. |
| `promoStart`, `promoEnd` | Published promotion dates when the source provides them. |
| `memberPrice`, `memberProgram` | Explicit membership data. Rewards text does not create a member price. |
| `unitPrice`, `unitOfMeasure` | Source unit-price fields; null when Macy's does not provide them. |
| `inStock`, `stockLevel` | Online product availability and supplied quantity; quantities usually remain null. |
| `rating`, `reviewCount` | Aggregate rating and review count. |
| `category`, `url`, `imageUrl` | Public category context, canonical product page and product image. |
| `scrapedAt` | UTC observation timestamp. |

Macy's extras follow the common fields:

| Field | Meaning |
| --- | --- |
| `webId`, `upc` | Product Web ID and the same product-level verified barcode rule as gtin. |
| `salePrice`, `clearance`, `isDeal` | Explicit discounted price, clearance/Last Act classification and a deal flag that also recognizes BOGO and doorbuster badges. |
| `priceScope` | Always `online`. |
| `priceMax`, `regularPriceMax`, `priceIsRange` | Upper price bounds and range indicator. |
| `saleEndText` | Original source sale-end wording alongside the structured date. |
| `promoCode`, `promoTerms`, `promotions` | Supplied code, readable conditions and source promotion objects. |
| `starRewardsOffer` | Published Star Money or Star Rewards conditions. |
| `colors`, `sizes`, `variants` | Available option labels and variant records with SKU, UPC, colour, size, price and online availability when supplied. |
| `pickupAvailable`, `pickupEvidence` | Product-level store pickup signal and evidence. |
| `pickupUnavailableReason` | Explanation when store pickup remains unknown. |
| `storeAddress`, `storeUrl`, `requestedLocations` | Public store metadata and the ZIPs that resolved to it. |
| `storeMetadataFromCache`, `storeMetadataObservedAt` | Whether exact-store address metadata was reused and when it was observed. |
| `ratingAverage`, `details` | Rating alias and optional description, features and product type. |
| `detailsAvailable`, `sourceUrl` | Detail coverage flag and the public request supplying product data. |

The overview dataset view groups title, current price, reference price, promotion, member price, unit price, online stock, store and pickup. The deals view emphasizes sale and offer fields. `DEALS` in the key-value store contains the delivered deals or a dataset reference for larger exports.

Every run writes `SUMMARY`, including delivered products, resolved stores, deals, duplicates, source outcomes, free failures and spending-limit status. Product rows use `recordType: "PRODUCT"`. Free explanatory rows use `recordType: "NOTE"`. Filter by record type before calculating product totals.

### Start in three steps

1. Enter search terms, category/product links or numeric Web IDs.
2. Choose ZIP codes or exact store IDs if store context matters. Set the per-source and global limits.
3. Run, inspect SUMMARY, then export JSON, CSV or Excel from the dataset.

The form prefill requests 20 products for one search and ZIP. A cloud test on 10 November 2026 delivered 20 unique shoes observations with 20 settled product charges. It completed in 18.3 seconds. Source retries, variant counts and the selected inputs affect each run.

### Inputs and examples

| Input | Behavior |
| --- | --- |
| `searchTerms` | Native keyword searches, for example `["perfume", "towels"]`. |
| `startUrls` | Macy's product links with ID, category links with id, or featured/search links. |
| `categoryUrls` | Additional category links, merged with startUrls and deduplicated. |
| `productIds` | Numeric Web IDs, such as `["21552892"]`. |
| `locations` | US ZIP codes. Resolve the nearest Macy's store. Empty means online-only context. |
| `postalCodes` | Alias for locations. Both arrays are combined, with duplicates removed. |
| `storeIds` | Exact numeric store numbers. They take precedence over both ZIP inputs. |
| `maxItemsPerSearch` | New products per source and store; default 20, maximum 2,000. |
| `maxItems` | Global product/store row cap; default 20, maximum 10,000. |
| `dealsOnly` | Keep explicit sales, clearance, BOGO, doorbusters and product-linked coupon/rewards offers. |
| `includeDetails` | Default true. Enrich variants, verified UPCs and features; no extra product fee. |
| `includePartialMatches` | Default false. Exclude Macy's partial-search fallback, or enable it for broader results labelled by searchPass. |
| `proxyConfiguration` | Automatic datacenter selection first, then US residential after refusal. Explicit custom settings are respected. |

Monitor two keyword groups near a selected ZIP:

```json
{
  "searchTerms": ["perfume", "towels"],
  "locations": ["10001"],
  "maxItemsPerSearch": 20,
  "maxItems": 40,
  "includeDetails": true
}
```

Monitor an exact product basket without multiplying rows by store:

```json
{
  "productIds": ["21552892", "15832823", "27574130"],
  "maxItems": 3,
  "includeDetails": true
}
```

Collect a category:

```json
{
  "categoryUrls": ["https://www.macys.com/shop/womens/clothing/dresses?id=5449"],
  "maxItemsPerSearch": 100,
  "maxItems": 100,
  "dealsOnly": true
}
```

Use `includeDetails: false` for listing-level collection when source price, option labels, aggregate ratings and online availability are sufficient. That mode does not promise variant UPC enrichment. Product-ID inputs still read the public product endpoint.

### Real output example

Selected fields observed from Macy's public product data on 10 November 2026:

```json
{
  "retailer": "Macy's",
  "country": "US",
  "currency": "USD",
  "productId": "27574130",
  "title": "Women's Lernia Low Profile Lace-Up Sneakers",
  "priceScope": "online",
  "price": 48.3,
  "regularPrice": 69,
  "onSale": true,
  "promoEnd": "2026-11-12",
  "saleEndText": "Sale ends 11/12/26"
}
```

Keep the complete row when building a price history, particularly its price scope, range bounds, store fields and offer conditions. A bare numeric price is insufficient to compare products with different sizes or qualifying promotions.

### Pricing and spending limits

One product means one distinct product at one selected store, or one online product when no store is selected. Selecting multiple stores can produce multiple rows with the same national online price and separate pickup context. Choose online-only collection if store context is unnecessary.

| Delivered rows | 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 $0.002 per collection with products, plus the minimum $0.00005 platform start charge. The collection charge is $0.0019 on Bronze, $0.0018 on Silver and $0.0016 on Gold. It is charged once with the first saved product; empty and failed collections have no collection charge. Base pricing is $0.004 per product; Bronze is $0.0038, Silver $0.0036 and Gold $0.0032. Optional details have no additional event fee. Overlapping inputs at the same store are delivered and charged once within the run. Notes, summaries, retries, failed lookups and empty results have no product charge. There is no additional default dataset-item charge.

Set Apify's maximum total charge for larger jobs. The Actor checks available product capacity before delivery, stops cleanly when the limit is reached and records that outcome in SUMMARY. A result is saved before its product charge is acknowledged.

### Monitor prices every day

Save a task with stable product IDs, category links or search terms. In Apify Console, create a schedule, choose the task, set the schedule and timezone, and connect a completed-run webhook to your database or workflow.

Join observations by `retailer + productId + storeId`, using an explicit online key for null store IDs and `scrapedAt` for the observation time. Store UPCs as text so leading zeros survive spreadsheet exports. Retain price ranges and coupon conditions separately from the advertised price.

Each run collects a fresh snapshot. Save those snapshots in your database to build history. Exact-store address metadata may be reused for seven days, with cache provenance in the row; prices and pickup signals are fetched for the current run. A source outage is reported as a gap rather than replaced with an older price.

SUMMARY's `sourceOutcomes` lets scheduled workflows distinguish complete collection, no matches and source gaps. Check those outcomes before accepting a snapshot as a complete daily assortment. Make, Zapier, n8n, Sheets and database loaders can read the dataset and summary using the ordinary Apify APIs.

### API and automation

Start a run using your own Apify token:

```bash
curl -X POST 'https://api.apify.com/v2/acts/vant47~macys-scraper/runs' \
  -H 'Authorization: Bearer YOUR_APIFY_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{"searchTerms":["perfume"],"maxItems":20}'
```

```python
from apify_client import ApifyClient
client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("vant47/macys-scraper").call(
    run_input={"productIds": ["21552892"], "maxItems": 1}
)
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('vant47/macys-scraper').call({
  searchTerms: ['perfume'], maxItems: 20
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
```

### Use with AI agents (MCP)

Connect your MCP client to `https://mcp.apify.com`. Ask for Macy's regular and sale prices, clearance, coupon conditions, UPC variants and store pickup context. Supply search terms, URLs or product Web IDs, the row cap, and ZIPs or store IDs when needed. Ask the agent to inspect SUMMARY and preserve `priceScope`, null values, price ranges and promotion conditions.

### Reliability

Two cloud runs on 10 November 2026 each delivered 1,080 unique rows across multiple sources, with 1,080 product charges and no duplicate product/store keys. One run included detail enrichment and the other used listing-level category data. Deliberate reboot tests delivered 20 unique products with 20 product charges and one collection charge. Saved rows and charge receipts are reconciled before continuation, so completed rows are not charged again.

Catalog page size is selected for the requested job and kept stable during pagination. Small jobs do not fetch an unnecessary full product page. Source requests are paced and retried using fresh anonymous proxy sessions. SUMMARY makes unresolved coverage visible.

### Limits

Macy's US online prices are collected in USD. The Actor does not verify shelf prices, checkout taxes, shipping fees or personalized account offers. No login, account cookies or CAPTCHA solving is used. Historical backfill is unavailable.

Search uses Macy's catalog. The retailer can return `crsPartialMatch` fallbacks even for nonsense input. These are excluded by default and reported as no matches with the original retailer match count in SUMMARY. Enable includePartialMatches to collect that broader result set; rows expose searchPass and originalSearchTerm. Category landing pages without a product grid produce a free note; use a product-bearing subcategory.

Public fields vary by product and source. A product can retain a null advertised price when the public response has no usable price; keep its availability and identifiers together when reviewing that observation. Some pages do not supply coupon codes, offer start dates, unit prices, member prices or quantities. Those values remain null. variants.upc is validated; variants.sourceUpc retains the retailer-labelled raw value for auditing. UPCs require a source barcode label and a valid check digit; product IDs and variant SKU numbers are never relabelled as UPCs. A product with multiple UPCs keeps them on its variants.

Pickup is product-level catalog evidence. A missing product in any pickup result remains unknown. Exact-product inputs may have null pickup even when online stock is known. Per-variant pickup and audited physical stock counts are outside coverage. A pickup filter's zero matches are recorded as query coverage rather than a negative inventory observation.

Details can be unavailable while a current listing still supplies useful prices. The row and summary disclose missing enrichment. Source refusals, site changes and discontinued products can prevent complete output. Requests are sequential and paced, with fresh anonymous proxy sessions on retries. A source with no matches is reported as no matches.

### FAQ

**Does a ZIP produce a local price?** It selects a nearby store for context and pickup checks. The price remains explicitly national online pricing.

**Does a coupon reduce price?** No. The advertised price, code and conditions remain separate.

**Can I select an exact store?** Yes, use storeIds. They take precedence over both locations and postalCodes.

**Does each variant cost extra?** No. Variants are nested under one product/store row.

**Are duplicate URLs charged twice?** A product found repeatedly for the same store is delivered and charged once in that run.

**Why is pickup null?** The public selected-store evidence did not confirm that particular product. Null is different from a source-proven negative signal.

**What happens with bad input?** Parseable invalid selections produce a free note and SUMMARY. Apify may reject schema-invalid input before starting a run.

**Can I compare this with another retailer?** Yes. The common retail fields are shared. Preserve priceScope and the promotion fields when joining datasets.

# Actor input Schema

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

Native Macy's keyword searches, such as shoes, bedding or perfume. Searches run alongside product IDs and URLs. Leave empty for URL-only jobs.

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

Public Macy's product URLs with ID, category URLs with id, or featured/search links. No account links.

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

Additional category URLs, merged with startUrls; duplicates are free.

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

Macy's numeric Web IDs, such as 21552892. Product IDs are not barcodes.

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

Resolve the nearest Macy's store. Prices remain national online prices; pickup is null unless the response proves store inventory. Empty uses online scope.

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

Alias for locations. Both arrays are merged and deduplicated. Exact storeIds take precedence over both.

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

Exact numeric Macy's store numbers. Takes precedence over ZIP inputs. Stores are verified against the public directory.

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

Product/store row limit. About $0.004 per delivered row. Overlapping sources at the same store are charged once.

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

Global product/store row limit. About $0.004 per row plus $0.002 per collection with products and the minimum platform start charge.

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

Keep explicit sales, clearance and product-linked coupon/reward text. Coupon values are not subtracted from price.

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

Include product detail enrichment: source-proven UPCs, size/colour variants and product features, when available. No additional event charge. False returns listing fields.

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

Automatic default: account datacenter selection first, then US residential on refusal. Explicit disable, country, groups or custom proxy URLs are preserved.

## `includePartialMatches` (type: `boolean`):

Default excludes Macy's crsPartialMatch search fallback. Enable to collect the retailer's broader matches, labelled with searchPass.

## Actor input object example

```json
{
  "searchTerms": [
    "shoes"
  ],
  "locations": [
    "10001"
  ],
  "maxItemsPerSearch": 20,
  "maxItems": 20,
  "dealsOnly": false,
  "includeDetails": true,
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "includePartialMatches": false
}
```

# 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": [
        "shoes"
    ],
    "locations": [
        "10001"
    ],
    "maxItemsPerSearch": 20,
    "maxItems": 20,
    "includeDetails": true
};

// Run the Actor and wait for it to finish
const run = await client.actor("vant47/macys-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": ["shoes"],
    "locations": ["10001"],
    "maxItemsPerSearch": 20,
    "maxItems": 20,
    "includeDetails": True,
}

# Run the Actor and wait for it to finish
run = client.actor("vant47/macys-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": [
    "shoes"
  ],
  "locations": [
    "10001"
  ],
  "maxItemsPerSearch": 20,
  "maxItems": 20,
  "includeDetails": true
}' |
apify call vant47/macys-scraper --silent --output-dataset

```

## MCP server setup

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