Skip to the content
EnrichedNowDocs

    Type to search every page.

    Menu

    Scraper APIMacy’s

    macys.product

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

    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; what a run costs is in Usage and units.

    Inputs

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

    Inputs of macys.product
    FieldTypeDescription
    productrequiredstringThe 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.

    Record fields of macys.product
    FieldTypeNotes
    idstringMacy'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.
    namestringThe product's name.
    brandstring or nullThe brand.
    urlstringThe product's page on macys.com.
    descriptionstring or nullThe product's description.
    categorystring or nullThe category its page names, e.g. Men's Fashion, Shoes & Accessories.
    pricenumber or nullThe price the page shows now, in US dollars: the sale price when it is on sale, the low end of a range.
    max_pricenumber or nullThe high end of the price shown, when it is a range.
    regular_pricenumber or nullThe regular or original price the page shows beside a sale price; null when it is not on sale.
    percent_offinteger or nullThe saving the page states, in percent.
    price_textstring or nullThe price as the page writes it, e.g. $47.99 - $62.39.
    currencystring or nullThe prices' currency code: USD.
    availabilitystring or nullInStock when any size or colour can be bought, else schema.org's word for the first offer.
    ratingnumber or nullThe average rating out of 5.
    review_countinteger or nullHow many reviews the rating is from.
    imagesarray of stringThe product's pictures, one for each colour.
    offersarray of objectEvery 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.
    sku (in offers[])string or nullThe shop's number of the item the offer is for.
    gtin (in offers[])string or nullIts barcode number (GTIN or EAN), where the page states one.
    color (in offers[])string or nullThe colour the offer is for, where the product comes in several.
    size (in offers[])string or nullThe size the offer is for, where the product comes in several.
    seller (in offers[])string or nullWho sells it, where the page names a seller.
    price (in offers[])number or nullThe price asked.
    currency (in offers[])string or nullThe price's currency code, e.g. USD.
    availability (in offers[])string or nullschema.org's word for whether it can be bought: InStock, OutOfStock, PreOrder, …
    fetched_atstring (date-time)When the page was read, in UTC.

    Example request

    # Start a run and wait up to 60 seconds for it to finish
    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"}}'
    
    # Read its records, with the id the first call answered
    curl "https://api.enrichednow.com/v1/runs/$RUN_ID/records?limit=100" \
      -H "Authorization: Bearer $ENRICHEDNOW_API_KEY"
    from enrichednow import EnrichedNow
    
    client = EnrichedNow()  # reads ENRICHEDNOW_API_KEY
    
    # Start a run, wait for it to end, and get its records
    result = client.scrape("macys.product", {"product": "21777706"})
    print(result.run.id, result.run.status, result.run.record_count)
    
    # Read its records: pages are fetched as you go
    for record in result.records:
        print(record)

    Install it with pip install enrichednow, then save as run.py and run python3 run.py

    import EnrichedNow from "enrichednow";
    
    const client = new EnrichedNow(); // reads ENRICHEDNOW_API_KEY
    
    // Start a run, wait for it to end, and get its records
    const { run, records } = await client.scrape("macys.product", { product: "21777706" });
    console.log(run.id, run.status, run.record_count);
    
    // Read its records: pages are fetched as you go
    for await (const record of records) console.log(record);

    Install it with npm install enrichednow, then save as run.mjs and run node run.mjs

    package main
    
    import (
    	"context"
    	"fmt"
    	"log"
    	"time"
    
    	enrichednow "github.com/enrichednow/enrichednow-go"
    )
    
    func main() {
    	client, err := enrichednow.NewClient() // reads ENRICHEDNOW_API_KEY
    	if err != nil {
    		log.Fatal(err)
    	}
    	ctx, cancel := context.WithTimeout(context.Background(), 10*time.Minute)
    	defer cancel()
    
    	// Start a run, wait for it to end, and get its records
    	run, records, err := client.Scrape(ctx, "macys.product", map[string]any{"product": "21777706"})
    	if err != nil {
    		log.Fatal(err)
    	}
    	fmt.Println(run.ID, run.Status, run.RecordCount)
    
    	// Read its records: pages are fetched as you go
    	for records.Next() {
    		fmt.Println(string(records.Current()))
    	}
    	if err := records.Err(); err != nil {
    		log.Fatal(err)
    	}
    }

    Install it with go get github.com/enrichednow/enrichednow-go@latest, then save as run.go and run go run run.go

    import com.enrichednow.EnrichedNowClient;
    import com.enrichednow.ScrapeResult;
    import java.util.Map;
    
    public class Run {
        public static void main(String[] args) {
            EnrichedNowClient client = EnrichedNowClient.fromEnv(); // reads ENRICHEDNOW_API_KEY
    
            // Start a run, wait for it to end, and get its records
            ScrapeResult result = client.scrape("macys.product", Map.of("product", "21777706"));
            System.out.println(result.run().id() + " " + result.run().status() + " " + result.run().recordCount());
    
            // Read its records: pages are fetched as you go
            for (Map<String, Object> record : result.records()) {
                System.out.println(record);
            }
        }
    }

    Add com.enrichednow:enrichednow-java:0.4.0 to your Maven or Gradle build, then save as Run.java

    enrichednow run macys.product --input-json '{"product":"21777706"}'

    Install it with curl -fsSL https://raw.githubusercontent.com/enrichednow/enrichednow-cli/main/install.sh | sh

    It starts a run with this scraper’s example input, waits for it to finish and reads its records a page at a time. The key is read from ENRICHEDNOW_API_KEY.

    The body on its own:

    JSON
    {
      "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 lists every status and the reasons every scraper shares; the reasons of the Macy’s scrapers are in their own section there.