# macys.product

A product on Macy's: name, brand, description, prices, rating, pictures and every size and colour on offer.

Macy's product, one of the Macy’s scrapers.

| | |
| --- | --- |
| Id | `macys.product` |
| Version | 1 |
| Billed per | request — 1 unit for a charged run |
| Runs | within one request |

Start it with `POST /v1/scrapers/macys.product/runs`. How runs work is in [Running a scraper](https://docs.enrichednow.com/running-a-scraper.md); what a run costs is in [Usage and units](https://docs.enrichednow.com/usage-and-units.md).

## Inputs

The fields of `input`. A field that is not listed here is refused.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `product` | string | yes | The product's id (`21777706`), or the address of its page (`https://www.macys.com/shop/product/…?ID=21777706`). Limit: at least 5 characters, at most 500 characters. |

## Record fields

Every record of a run has these fields. A value that is not known is `null` — never an empty string and never `0`.

| Field | Type | Notes |
| --- | --- | --- |
| `id` | string | Macy's id of the product read. A piece Macy's sells as part of a collection is answered with the collection's page, and this is the collection's id. |
| `name` | string | The product's name. |
| `brand` | string or null | The brand. |
| `url` | string | The product's page on macys.com. |
| `description` | string or null | The product's description. |
| `category` | string or null | The category its page names, e.g. `Men's Fashion, Shoes & Accessories`. |
| `price` | number or null | The price the page shows now, in US dollars: the sale price when it is on sale, the low end of a range. |
| `max_price` | number or null | The high end of the price shown, when it is a range. |
| `regular_price` | number or null | The regular or original price the page shows beside a sale price; null when it is not on sale. |
| `percent_off` | integer or null | The saving the page states, in percent. |
| `price_text` | string or null | The price as the page writes it, e.g. `$47.99 - $62.39`. |
| `currency` | string or null | The prices' currency code: `USD`. |
| `availability` | string or null | `InStock` when any size or colour can be bought, else schema.org's word for the first offer. |
| `rating` | number or null | The average rating out of 5. |
| `review_count` | integer or null | How many reviews the rating is from. |
| `images` | array of string | The product's pictures, one for each colour. |
| `offers` | array of object | Every size and colour on offer, each with its number and availability (at most 300), as the page's product document lists them; its prices can differ from the price shown, which is in `price`. |
| `offers[].sku` | string or null | The shop's number of the item the offer is for. |
| `offers[].gtin` | string or null | Its barcode number (GTIN or EAN), where the page states one. |
| `offers[].color` | string or null | The colour the offer is for, where the product comes in several. |
| `offers[].size` | string or null | The size the offer is for, where the product comes in several. |
| `offers[].seller` | string or null | Who sells it, where the page names a seller. |
| `offers[].price` | number or null | The price asked. |
| `offers[].currency` | string or null | The price's currency code, e.g. `USD`. |
| `offers[].availability` | string or null | schema.org's word for whether it can be bought: `InStock`, `OutOfStock`, `PreOrder`, … |
| `fetched_at` | string (date-time) | When the page was read, in UTC. |

## Example request

It starts a run with this scraper's example input and waits up to 60 seconds for it. The key is read from `ENRICHEDNOW_API_KEY`.

```bash
curl -X POST "https://api.enrichednow.com/v1/scrapers/macys.product/runs?wait=60" \
  -H "Authorization: Bearer $ENRICHEDNOW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":{"product":"21777706"}}'
```

## Example response

The run, once it has ended. A run that has not ended within `wait` comes back with `202` and the status `queued` or `running`.

```json
{
  "id": "run_841742f37553189ff9c27ba1",
  "scraper_id": "macys.product",
  "scraper_version": 1,
  "status": "ok",
  "reason": null,
  "input": {
    "product": "21777706"
  },
  "record_count": 1,
  "units": 1,
  "units_per_request": 1,
  "units_per_record": null,
  "units_per_page": null,
  "diagnostics": {
    "requests": 1,
    "bytes": 259214,
    "wall_ms": 885,
    "facts": {}
  },
  "created_at": "2026-11-16T22:37:50.170950Z",
  "started_at": "2026-11-16T22:37:50.178331Z",
  "finished_at": "2026-11-16T22:37:51.066313Z"
}
```

Its records, from `GET /v1/runs/{id}/records`. The record is a real one: this scraper's own parser read it from a page recorded from the site.

```json
{
  "records": [
    {
      "id": "21777706",
      "name": "Men's Denton Slim Straight-Fit Jeans",
      "brand": "Tommy Hilfiger",
      "url": "https://www.macys.com/shop/product/tommy-hilfiger-mens-slim-straight-denton-jeans?ID=21777706",
      "description": "Tommy Hilfiger's signature Denton jeans embody timeless American style with a slim, straight fit that works effortlessly from day to night.",
      "category": "Men's Fashion, Shoes & Accessories",
      "price": 59.99,
      "max_price": 59.99,
      "regular_price": 89.5,
      "percent_off": 33,
      "price_text": "$59.99",
      "currency": "USD",
      "availability": "InStock",
      "rating": 4.4,
      "review_count": 567,
      "images": [
        "https://slimages.macysassets.com/is/image/MCY/products/8/optimized/32336858_fpx.tif",
        "https://slimages.macysassets.com/is/image/MCY/products/1/optimized/32935771_fpx.tif",
        "https://slimages.macysassets.com/is/image/MCY/products/3/optimized/32336843_fpx.tif"
      ],
      "offers": [
        {
          "sku": "198296200737USA",
          "gtin": null,
          "color": "Black",
          "size": "34",
          "seller": null,
          "price": 59.99,
          "currency": "USD",
          "availability": "InStock"
        },
        {
          "sku": "198296200720USA",
          "gtin": null,
          "color": "Black",
          "size": "34",
          "seller": null,
          "price": 59.99,
          "currency": "USD",
          "availability": "InStock"
        }
      ],
      "fetched_at": "2026-11-19T19:01:03.594473Z"
    }
  ],
  "next_cursor": null
}
```

What was done to the record for this page, and nothing else — the API returns every value whole. A text that was cut ends with `… [truncated]`.

- Shortened: `images`: 4 items, the first 3 shown.
- Shortened: `offers`: 100 items, the first 2 shown.

A run does not always end `ok`. [Results and statuses](https://docs.enrichednow.com/results-and-statuses.md#reason-codes) lists every status and the reasons every scraper shares; [the reasons of the Macy’s scrapers](https://docs.enrichednow.com/results-and-statuses.md#macy-s) are in their own section there.
