# Macys Product Search Scraper (`ecomscrape/macys-product-search-scraper`) Actor

Automate product data extraction from Macys.com including prices, availability, images, and specifications. Perfect for price monitoring, competitive analysis, inventory tracking, and e-commerce research across fashion, home goods, and beauty categories.

- **URL**: https://apify.com/ecomscrape/macys-product-search-scraper.md
- **Developed by:** [ecomscrape](https://apify.com/ecomscrape) (community)
- **Categories:** Automation, E-commerce, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

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

## 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

## Contact

If you encounter any issues or need to exchange information, please feel free to contact us through the following link:
[My profile](https://apify.com/ecomscrape)

## Macy's Product Scraper: Extract Product Data from America's Iconic Department Store

### Introduction

Macy's stands as one of America's most iconic department store chains, with Macys.com serving as a comprehensive e-commerce platform featuring hundreds of thousands of products across fashion, home goods, beauty, and accessories. For retailers, resellers, market analysts, and price intelligence professionals, Macy's extensive product catalog represents a valuable data source for competitive pricing, trend analysis, and inventory research.

Manual collection of product data from Macy's website is impractical given the scale of their catalog and frequent price changes. The Macy's Product Search Scraper automates this process, enabling systematic extraction of product information, pricing data, availability status, and product specifications efficiently.

### Scraper Overview

The Macy's Product Search Scraper is a specialized e-commerce data extraction tool designed to collect detailed product information from Macys.com search results and category pages. This scraper navigates through product listings and captures comprehensive product data including identifiers, specifications, pricing, imagery, and availability information.

Key advantages include configurable retry mechanisms for handling dynamic content loading, flexible pagination controls for large product catalogs, and proxy support for reliable access. The tool is valuable for e-commerce businesses monitoring competitor pricing, resellers sourcing products, market researchers analyzing fashion trends, and price intelligence teams tracking retail pricing strategies.

The scraper handles various search parameters including keyword searches, category browsing, and filtered results with sorting options. It extracts structured product data suitable for price comparison, inventory management, market analysis, and competitive intelligence workflows.

### Input and Output Details

Example url 1: https://www.macys.com/shop/featured/shoe/Pageindex,Sortby/2,PRICE_HIGH_TO_LOW?ss=true

Example url 2: https://www.macys.com/shop/mens/shop-all-mens-shoes/mens-boots?id=55637

Example url 3: https://www.macys.com/shop/makeup-and-perfume/skin-care/serum-treatments?id=50363

Example Screenshot of product information page:

![](https://i.ibb.co/S47kYZdx/Screenshot-from-2026-01-08-11-53-33.png)

#### Input Format

The scraper accepts JSON configuration controlling the extraction process with parameters for URL-based scraping or search-filter-based collection.

##### Scrape with URLs:

```json
{
  "proxy": {
    "useApifyProxy": false
  },
  "ignore_url_failures": true,
  "max_retries_per_url": 2,
  "max_items_per_url": 20,
  "urls": [
    "https://www.macys.com/shop/featured/shoe/Pageindex,Sortby/2,PRICE_HIGH_TO_LOW?ss=true",
    "https://www.macys.com/shop/womens-clothing/dresses",
    "https://www.macys.com/shop/bed-bath/bedding-collections"
  ]
}
```

**The `urls` parameter**: Add URLs of product search or category pages from Macys.com. Include URLs with filters, sorting, or pagination as needed. Use Bulk edit for multiple URLs.

**The `ignore_url_failures` parameter**: Set to `true` to continue scraping even if some URLs fail after maximum retries, ensuring one problematic URL doesn't halt the entire job.

*When using URLs, search filter options are disabled. Only specified URLs will be scraped.*

##### Scrape with Search Filters:

```json
{
  "keyword": "running shoes",
  "page": 1,
  "max_items_per_url": 20,
  "max_retries_per_url": 2,
  "proxy": {
    "useApifyProxy": false
  }
}
```

**The `keyword` parameter**: Enter search terms to find products (e.g., "running shoes", "dresses", "kitchen appliances", "bedding sets"). Use terms matching Macy's product categories and descriptions.

**The `page` parameter**: Specify starting page number for scraping. Useful for resuming interrupted scrapes or targeting specific result ranges.

*When using search filters, leave the `urls` field empty.*

##### General Options:

**The `max_items_per_url` parameter**: Limit items to scrape per URL or search query. Default is 20, balancing data volume with extraction efficiency.

**The `max_retries_per_url` parameter**: Set retry attempts for each URL if scraping fails or encounters bot detection. Default is 2, providing reliability without excessive delays.

**The `proxy` parameter**: Configure proxy settings for avoiding detection and maintaining access. Essential for large-scale or frequent scraping operations.

#### Output Format

The scraper returns structured product data with fields serving specific e-commerce intelligence purposes:

- **ID**: Unique Macy's product identifier. *Essential for tracking products across time, avoiding duplicates, and linking to Macy's systems for updates.*

- **Identifier**: Product identification codes including SKU, UPC, or model numbers. *Critical for inventory matching, cross-platform price comparison, and supplier identification.*

- **Detail**: Comprehensive product information including title, description, brand, specifications, materials, dimensions, and features. *Provides complete product context for catalog building, competitive analysis, and customer research.*

- **Relationships**: Product relationship data such as color variants, size options, related products, and product groupings. *Valuable for understanding product families, variant tracking, and cross-selling opportunities.*

- **Imagery**: Product image URLs including main images, alternate views, zoom images, and lifestyle shots. *Essential for visual product catalogs, competitive visual analysis, and e-commerce listing creation.*

- **Availability**: Stock status, size availability, and inventory indicators. *Critical for inventory tracking, identifying trending products, and monitoring out-of-stock situations.*

- **Traits**: Product attributes including color, size, style, category, department, and other classification tags. *Useful for product categorization, filtered searches, trend analysis by attributes, and market segmentation.*

- **Pricing**: Complete pricing information including list price, sale price, discounts, promotional pricing, and price history indicators. *Core data for price monitoring, competitive pricing strategy, margin analysis, and deal identification.*

Each field supports specific use cases in price intelligence, competitive monitoring, inventory management, and e-commerce strategy development.

##### Example Output:

```json
[
  {
  "id": 20638531,
  "identifier": {
    "product_url": "/shop/product/coach-womens-soho-suede-sneakers?ID=20638531&isDlp=true",
    "product_id": 20638531
  },
  "detail": {
    "name": "SoHo Suede Lace-Up Casual Sneakers",
    "brand": "COACH",
    "flags": {
      "coach": true,
      "registrable": true,
      "intl_suppress_product": true,
      "has_colors": true,
      "p_d_p_colorized": true
    },
    "review_statistics": {
      "aggregate": {
        "rating": 4.9,
        "count": 98
      }
    },
    "type_name": "SHOE"
  },
  "relationships": {
    "taxonomy": {
      "default_category_id": 26499
    }
  },
  "imagery": {
    "additional_image_source": [
      {
        "file_path": "9/optimized/31800989_fpx.tif"
      },
      {
        "file_path": "1/optimized/31800991_fpx.tif"
      },
      {
        "file_path": "2/optimized/31800992_fpx.tif"
      },
      {
        "file_path": "3/optimized/31800993_fpx.tif"
      },
      {
        "file_path": "4/optimized/31800994_fpx.tif"
      },
      {
        "file_path": "6/optimized/32098106_fpx.tif"
      },
      {
        "file_path": "1/optimized/32031741_fpx.tif",
        "show_jumbo_swatch": true
      }
    ],
    "primary_image": {
      "file_path": "9/optimized/31800989_fpx.tif"
    }
  },
  "availability": {
    "active": true,
    "available": true
  },
  "traits": {
    "colors": {
      "selected_color": {
        "id": 9929289,
        "name": "Vivid Green",
        "normal_name": "Green",
        "swatch_image": {
          "file_path": "0/optimized/31800990_fpx.tif"
        },
        "imagery": {
          "additional_image_source": [
            {
              "file_path": "9/optimized/31800989_fpx.tif"
            },
            {
              "file_path": "1/optimized/31800991_fpx.tif"
            },
            {
              "file_path": "2/optimized/31800992_fpx.tif"
            },
            {
              "file_path": "3/optimized/31800993_fpx.tif"
            },
            {
              "file_path": "4/optimized/31800994_fpx.tif"
            },
            {
              "file_path": "6/optimized/32098106_fpx.tif"
            },
            {
              "file_path": "1/optimized/32031741_fpx.tif",
              "show_jumbo_swatch": true
            }
          ],
          "primary_image": {
            "file_path": "9/optimized/31800989_fpx.tif"
          }
        }
      },
      "color_map": [
        {
          "id": 9929290,
          "name": "Bluebell",
          "normal_name": "Blue",
          "swatch_image": {
            "file_path": "4/optimized/31395194_fpx.tif"
          },
          "imagery": {
            "additional_image_source": [
              {
                "file_path": "3/optimized/31395193_fpx.tif"
              },
              {
                "file_path": "6/optimized/31395196_fpx.tif"
              },
              {
                "file_path": "7/optimized/31395197_fpx.tif"
              },
              {
                "file_path": "1/optimized/32031741_fpx.tif",
                "show_jumbo_swatch": true
              }
            ],
            "primary_image": {
              "file_path": "3/optimized/31395193_fpx.tif"
            }
          }
        },
        {
          "id": 9929289,
          "name": "Vivid Green",
          "normal_name": "Green",
          "swatch_image": {
            "file_path": "0/optimized/31800990_fpx.tif"
          },
          "imagery": {
            "additional_image_source": [
              {
                "file_path": "9/optimized/31800989_fpx.tif"
              },
              {
                "file_path": "1/optimized/31800991_fpx.tif"
              },
              {
                "file_path": "2/optimized/31800992_fpx.tif"
              },
              {
                "file_path": "3/optimized/31800993_fpx.tif"
              },
              {
                "file_path": "4/optimized/31800994_fpx.tif"
              },
              {
                "file_path": "6/optimized/32098106_fpx.tif"
              },
              {
                "file_path": "1/optimized/32031741_fpx.tif",
                "show_jumbo_swatch": true
              }
            ],
            "primary_image": {
              "file_path": "9/optimized/31800989_fpx.tif"
            }
          }
        }
      ]
    },
    "types": {}
  },
  "pricing": {
    "price": {
      "price_type": {
        "text": "Clearance",
        "on_sale": true,
        "applicable_to_all_upcs": true
      },
      "policy": {
        "text": "Limited quantities, while supplies last. Intermediate markdowns may have been taken.\n\"Regular\" (REG.) and \"Original\" (ORIG.) prices are offering prices. That means we offered the merchandise in our stores or on macys.com at those prices; however, we may not have sold the item at that price. So, the savings we show from these prices may not be based on actual sales of the item. Some \"Original\" (ORIG.) prices may not have been in effect during the past 90 days.",
        "url": "/catalog/product/pricingpolicy.ognc?fpriceTypeId=7&daysInC=20460&ID=20638531"
      },
      "tiered_price": [
        {
          "label": "[PRICE]",
          "values": [
            {
              "value": 175,
              "formatted_value": "$175.00",
              "type": "regular"
            }
          ]
        },
        {
          "label": "Now [PRICE]",
          "values": [
            {
              "value": 105,
              "formatted_value": "$105.00",
              "type": "discount",
              "percent_off": [
                40
              ],
              "formatted_percent_off": "(40% off)"
            }
          ]
        }
      ],
      "price_type_id": 7
    }
  },
  "from_url": "https://www.macys.com/shop/featured/shoe/Pageindex/2"
}
]
```

### Usage Guide

#### Option 1: Scraping with URLs

To scrape specific Macy's product pages, navigate to Macys.com and construct your desired search using filters for category, price range, brand, or sorting options. Copy the resulting URL into the `urls` array.

**Best practices:**

- Test individual category URLs before batch processing
- Include sorting parameters in URLs for consistent results (e.g., PRICE_HIGH_TO_LOW, BEST_MATCH)
- Monitor for pagination limits on large categories
- Use department-specific URLs for focused data collection
- Verify URL structure remains valid as Macy's may update their site

**Troubleshooting:**

- Enable proxy if encountering access restrictions
- Reduce `max_items_per_url` if experiencing timeouts
- Check URL parameters haven't expired or changed
- Verify category pages are publicly accessible

#### Option 2: Scraping with Search Filters

Use keyword search for automated product discovery without manually constructing URLs.

**Step 1: Define Search Keywords**

Use product-specific terms:

- **Apparel**: "men's suits", "women's dresses", "kids' shoes", "athletic wear"
- **Home**: "bedding sets", "kitchen appliances", "furniture", "bath towels"
- **Beauty**: "skincare", "makeup", "fragrances", "hair care"
- **Brands**: "Calvin Klein", "Ralph Lauren", "KitchenAid", "Cuisinart"

**Step 2: Configure Pagination**

Set `page` parameter to control starting point:

- Start at `1` for complete catalog scraping
- Use higher numbers to resume interrupted scrapes
- Coordinate with `max_items_per_url` for systematic coverage

**Best practices for keyword scraping:**

- Use specific brand names for focused results
- Combine category terms (e.g., "men's running shoes" vs just "shoes")
- Test keywords on Macys.com first to verify result relevance
- Plan pagination strategy for large result sets
- Monitor total available results to calculate required pages

**Common issues:**

- Generic keywords may return too many irrelevant results
- Very specific terms might return no results
- Brand name spelling must match Macy's catalog exactly
- Seasonal products may have limited availability

#### Data Validation and Quality Control

After extraction, verify:

- Product IDs are unique and valid
- Pricing data includes both list and sale prices where applicable
- Image URLs are accessible and load correctly
- Availability status matches current inventory
- Product variants are properly linked
- Brand names and categories are correctly extracted

#### Proxy Configuration

**When to use proxies:**

- Large-scale scraping (100+ products)
- Frequent repeated scrapes
- Encountering rate limiting or blocks
- Running multiple concurrent scraping jobs

**Proxy best practices:**

- Use US-based residential proxies for optimal Macys.com access
- Rotate proxies for large extraction jobs
- Enable `useApifyProxy` with residential proxy groups for reliability
- Monitor for proxy failures and adjust configuration as needed

### Benefits and Applications

The Macy's Product Scraper significantly reduces time required for product data collection, transforming hours of manual research into automated extraction.

**Primary applications:**

**Price Monitoring**: Track competitor pricing across categories, identify promotional patterns, monitor discount frequencies, and optimize pricing strategies based on Macy's market positioning.

**Inventory Intelligence**: Monitor stock availability trends, identify fast-moving products, track seasonal inventory patterns, and discover emerging product opportunities.

**Competitive Analysis**: Compare product assortments, analyze pricing strategies, benchmark promotional activities, and identify market gaps.

**E-commerce Operations**: Source products for resale, build price comparison databases, automate catalog updates, and maintain competitive pricing.

**Market Research**: Analyze fashion trends, track brand presence, study seasonal patterns, and identify category growth areas.

**Advantages:**

- Comprehensive product data including specifications and variants
- Real-time pricing and availability information
- Structured data format for immediate analysis
- Scalable extraction across entire product catalog
- Integration-ready output for pricing tools and databases

### Conclusion

The Macy's Product Scraper transforms manual product research into efficient automated data collection from one of America's largest department store platforms. Whether monitoring competitor prices, sourcing products, analyzing market trends, or building pricing intelligence systems, this scraper provides systematic access to Macy's extensive product catalog.

Ready to automate your Macy's product data collection? Start extracting comprehensive product information, pricing data, and inventory insights today.

## Related Actors

- [**Macys.com Product Details Scraper**](https://apify.com/ecomscrape/macys-product-details-scraper): A specialized data extraction solution engineered to harvest comprehensive product information from Macys.com's.

## Your feedback

We are always working to improve Actors' performance. So, if you have any technical feedback about Macys.com Product Search Scraper or simply found a bug, please create an issue on the Actor's Issues tab in Apify Console.

# Actor input Schema

## `urls` (type: `array`):

Add the URLs of the Product list page urls you want to scrape. You can paste URLs one by one, or use the Bulk edit section to add a prepared list.

## `ignore_url_failures` (type: `boolean`):

If true, the scraper will continue running even if some URLs fail to be scraped after the maximum number of retries is reached.

## `keyword` (type: `string`):

Enter the keyword to search for items

## `page` (type: `integer`):

Specify the page number to start scraping from

## `max_items_per_url` (type: `integer`):

Limit the number of items per URL or search filters you want to scrape

## `max_retries_per_url` (type: `integer`):

Limit the number of retries for each URL or search filters if the scrape is detected as a bot or the page fails to load

## `proxy` (type: `object`):

Select proxies to be used by your scraper.

## Actor input object example

```json
{
  "urls": [
    "https://www.macys.com/shop/featured/shoe/Pageindex,Sortby/2,PRICE_HIGH_TO_LOW?ss=true"
  ],
  "ignore_url_failures": true,
  "max_items_per_url": 20,
  "max_retries_per_url": 2,
  "proxy": {
    "useApifyProxy": false
  }
}
```

# 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 = {
    "urls": [
        "https://www.macys.com/shop/featured/shoe/Pageindex,Sortby/2,PRICE_HIGH_TO_LOW?ss=true"
    ],
    "ignore_url_failures": true,
    "max_items_per_url": 20,
    "max_retries_per_url": 2,
    "proxy": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("ecomscrape/macys-product-search-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 = {
    "urls": ["https://www.macys.com/shop/featured/shoe/Pageindex,Sortby/2,PRICE_HIGH_TO_LOW?ss=true"],
    "ignore_url_failures": True,
    "max_items_per_url": 20,
    "max_retries_per_url": 2,
    "proxy": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("ecomscrape/macys-product-search-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 '{
  "urls": [
    "https://www.macys.com/shop/featured/shoe/Pageindex,Sortby/2,PRICE_HIGH_TO_LOW?ss=true"
  ],
  "ignore_url_failures": true,
  "max_items_per_url": 20,
  "max_retries_per_url": 2,
  "proxy": {
    "useApifyProxy": false
  }
}' |
apify call ecomscrape/macys-product-search-scraper --silent --output-dataset

```

## MCP server setup

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