# Macys (`pintostudio/macys`) Actor

Get a Macy's product's full details by product ID: name, description, brand, price, currency, availability and images. Fast, cached results for pricing, catalog and market research.

- **URL**: https://apify.com/pintostudio/macys.md
- **Developed by:** [Pinto Studio](https://apify.com/pintostudio) (community)
- **Categories:** E-commerce
- **Stats:** 2 total users, 0 monthly users, 77.8% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

from $10.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

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

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

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

# README

## Macy's Product Details Scraper

Get complete, structured details for any product listed on [Macys.com](https://www.macys.com) - instantly, by product ID. No browser automation and no proxies to manage: pass a product ID and get back the product's name, description, brand, price, currency, availability and images.

### What does this Actor do?

The Actor calls Macy's own product API for a single `productId` and returns one dataset item with three parts:

- **`productMktData`** - a clean, standardized `schema.org/Product` record. This is the easiest place to read `name`, `description`, `url`, `image`, `brand.name` and `offers[0].price` / `priceCurrency` / `availability`.
- **`product`** - the full, raw product record from Macy's internal API (category, department, division, description, flags and more), for when you need more than the standardized fields.
- **`meta`** - page metadata and the analytics payload captured from the product page.

Results are cached for 9 hours per `productId` + `currencyCode` + `regionCode` combination, so repeat lookups are fast and cheap.

### Input

| Field | Type | Description | Default |
|---|---|---|---|
| `productId` | String | The Macy's product ID to look up. Find it in the product URL, e.g. `.../product/...?ID=17342121` -> `17342121`. | `17342121` |
| `currencyCode` | String | The currency to price the product in. | `USD` |
| `regionCode` | String | The region/country code Macy's should use to localize the response. | `US` |

Example input:

```
{
  "productId": "17342121",
  "currencyCode": "USD",
  "regionCode": "US"
}
```

### Output

One dataset item per run. Example (trimmed):

```
{
  "productMktData": {
    "name": "Caroline Melbourne Medium Leather Satchel Bag",
    "description": "The Caroline is a polished, uber-stylish satchel...",
    "url": "https://www.macys.com/shop/product/brahmin-caroline-melbourne-medium-leather-satchel-bag?ID=27024288",
    "brand": { "name": "Brahmin" },
    "offers": [
      { "price": "325.00", "priceCurrency": "USD", "availability": "http://schema.org/InStock" }
    ]
  }
}
```

Download results as JSON, CSV, Excel, XML or RSS from the run's Storage tab, or fetch them via the Apify API.

### Use cases

- Price and availability monitoring for specific SKUs
- Enriching a product catalog with Macy's descriptions and images
- Competitive and market research on Macy's listings
- Feeding clean product data into a pricing or BI pipeline

### Tips

- To look up many products, save this Actor as a [Task](https://docs.apify.com/platform/actors/running/tasks) per `productId`, or call the Actor once per ID via the API/schedules.
- Change `currencyCode` and `regionCode` together to check localized pricing for other Macy's storefronts.

### Support

Questions or feature requests? Contact pintoflowpt@gmail.com.

# Actor input Schema

## `productId` (type: `string`):

The productId to get description

## `currencyCode` (type: `string`):

The currency code that will be used.

## `regionCode` (type: `string`):

The region code that will be used.

## Actor input object example

```json
{
  "productId": "17342121",
  "currencyCode": "USD",
  "regionCode": "US"
}
```

# Actor output Schema

## `productData` (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 = {
    "productId": "17342121",
    "currencyCode": "USD",
    "regionCode": "US"
};

// Run the Actor and wait for it to finish
const run = await client.actor("pintostudio/macys").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 = {
    "productId": "17342121",
    "currencyCode": "USD",
    "regionCode": "US",
}

# Run the Actor and wait for it to finish
run = client.actor("pintostudio/macys").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 '{
  "productId": "17342121",
  "currencyCode": "USD",
  "regionCode": "US"
}' |
apify call pintostudio/macys --silent --output-dataset

```

## MCP server setup

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

```

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/ITYU2eFNLRqkyWA7J/builds/7npigJSbZBizKMKZN/openapi.json
