---
title: "Macy's API: product search as JSON | Perceptlayer"
description: "Macy's API for product search with price filters, product details with sale prices, categories and search suggestions as JSON. 1 credit per successful call."
url: https://perceptlayer.com/apis/macys
---

[APIs](https://perceptlayer.com/apis) / [Marketplaces](https://perceptlayer.com/verticals/marketplaces) / Macy's

1 credit per call 4 endpoints 7 datapoints 

# Macy's API

Macy's API for product search with price filters, product details with sale prices, categories and search suggestions as JSON. 1 credit per successful call.

[Get a free API key](https://perceptlayer.com/signup) Run it below

Macy's

GET /v1/macys/search?query=dress&sort=price\_low 

```
{
  "success": true,
  "data": {
    "query": "dress",
    "sort_by": "price_low",
    "sort_options": [
      "relevance",
      "price_low",
      "price_high"
    ],
    "results": [
      {
        "id": "25371565",
        "title": "Women's V-Neck Wrap Dress",
        "brand": "DKNY",
        "url": "https://www.macys.com/shop/product/dkny-womens-v-neck-faux-wrap-dress?ID=25371565",
        "price": {
          "original": 119,
          "sale": 47.53,
          "discount_percent": 60,
          "currency": "USD",
          "formatted_original": "$119.00",
          "formatted_sale": "$47.53",
          "is_on_sale": true
        },
        "availability": {},
        "rating": {}
      },
      {
        "id": "26890245",
        "title": "Women's Velvet Bow-Strap Shift Dress",
        "brand": "On 34th",
        "url": "https://www.macys.com/shop/product/on-34th-womens-velvet-bow-strap-shift-dress-macys-exclusive?ID=26890245",
        "price": {
          "original": 99.5,
          "sale": 49.75,
          "discount_percent": 50,
          "currency": "USD",
          "formatted_original": "$99.50",
          "formatted_sale": "$49.75",
          "is_on_sale": true
        },
        "availability": {},
        "rating": {}
      },
      {
        "id": "20638749",
        "title": "Juniors' Asymmetric Drape Strapless Ball Gown",
        "brand": "B Darlin",
        "url": "https://www.macys.com/shop/product/b-darlin-juniors-asymmetric-drape-strapless-ball-gown-created-for-macys?ID=20638749",
        "price": {
          "original": 129,
          "sale": 51.53,
          "discount_percent": 60,
          "currency": "USD",
          "formatted_original": "$129.00",
          "formatted_sale": "$51.53",
          "is_on_sale": true
        },
        "availability": {},
        "rating": {}
      }
    ],
    "pagination": {
      "current_page": 1,
      "per_page": 79,
      "total_results": 79,
      "has_next_page": false,
      "note": "Macy's does not expose a stable second page; only page 1 is available. Filters and sort apply to this page."
    }
  },
  "meta": {
    "endpoint_family": "search",
    "duration_ms": 3035,
    "request_id": "req_7d5c3221f6254abb87372b703529856f",
    "credits_charged": 1,
    "credits_remaining": 976
  }
}
```

200 OK JSON X-Credits-Used: 1

Recorded from our API and shortened.

Sample data

## What one call returns

A recorded run of `search`: the fields and shapes you will get, shortened to 3 items.

| # | id string | title string | brand string | url url | price object | availability object | rating object |
| --- | --- | --- | --- | --- | --- | --- | --- |
| 1 | 25371565 | Women's V-Neck Wrap Dress | DKNY | https://www.macys.com/shop/product/dkny-womens-v-neck-faux-wrap-dress?ID=25371565 | {7 fields} | {0 fields} | {0 fields} |
| 2 | 26890245 | Women's Velvet Bow-Strap Shift Dress | On 34th | https://www.macys.com/shop/product/on-34th-womens-velvet-bow-strap-shift-dress-macys-exclusive?ID=26890245 | {7 fields} | {0 fields} | {0 fields} |
| 3 | 20638749 | Juniors' Asymmetric Drape Strapless Ball Gown | B Darlin | https://www.macys.com/shop/product/b-darlin-juniors-asymmetric-drape-strapless-ball-gown-created-for-macys?ID=20638749 | {7 fields} | {0 fields} | {0 fields} |

Recorded from our API · 3 items shown · 7 datapoints per item GET /v1/macys/search?query=dress&sort=price\_low

7 datapoints

### Identity

-   id string
-   title string
-   brand string

### Contact

-   url url

### Reputation

-   rating object

### Price

-   price object

### Other

-   availability object

Playground

## Run this API

cURL shell 

```
curl "https://api.perceptlayer.com/v1/macys/search?query=dress&sort=price_low" \
  -H "X-API-Key: $API_KEY"
```

Macy's · 4 endpoints

## Endpoints

Every endpoint takes the same key. Open one for its parameters, the fields it returns and an example request.

| Endpoint | Required parameters | Returns | Cost |
| --- | --- | --- | --- |
| [GET `/v1/macys/categories`](https://perceptlayer.com/apis/macys/categories) | none | `id` `name` `url` | 1 credit |
| [GET `/v1/macys/product`](https://perceptlayer.com/apis/macys/product) | none +2 optional | `id` `title` `brand` `url` `image` `price` +3 more | 1 credit |
| [GET `/v1/macys/search`](https://perceptlayer.com/apis/macys/search) | none +8 optional | `sort_by` `sort_options` `results` `pagination` | 1 credit |
| [GET `/v1/macys/suggest`](https://perceptlayer.com/apis/macys/suggest) | `query` | `suggestions` | 1 credit |

Overview

## About the Macy's API

## What you can get

The Macy's API returns Macy's products, prices and categories as JSON through 4 endpoints.

-   **Search:** `search` takes a `query` or `category`, with `category_url`, `brand`, `min_price`, `max_price`, `sort` ( `relevance`, `price_low`, `price_high` or `rating_high`) and `page`.
-   **Products:** `product` takes an `id`, or a product URL as `url`.
-   **Categories:** `categories` takes no parameters.
-   **Suggestions:** `suggest` takes a `query`.

The recorded `search` for "dress" sorted by `price_low` returns `results`, each with `id`, `title`, `brand`, `price`, `availability` and `rating`. Each `price` carries `original`, `sale`, `discount_percent`, `currency` and `is_on_sale`. Its `pagination` reports a `total_results` of 79 on one page. The first result is a DKNY Women's V-Neck Wrap Dress at 47.53 `USD`, down from 119, a `discount_percent` of 60.

## How a call works

Search, then read the product: `GET /v1/macys/search?query=dress&sort=price_low`, with your key in the `X-API-Key` header, returns each product's `id`. Pass that to `product`, for example `GET /v1/macys/product?id=25371565`, which returned `image`, `availability` and `variants`, each with its own `color`, `price` and `availability`. Search returns one page: the recorded `pagination` has `has_next_page` false and a `note` that only page 1 is available, so narrow results with `category`, `brand` or the price filters. `categories` returned a `total` of 1032, each with `id` and `name`. Every successful call costs 1 credit; failed calls cost nothing.

Marketplaces JSON REST MCP

### More marketplaces APIs

[About You](https://perceptlayer.com/apis/about-you) [adidas](https://perceptlayer.com/apis/adidas) [Albert Heijn](https://perceptlayer.com/apis/albert-heijn) [ALDI SÜD](https://perceptlayer.com/apis/aldi-sued) [Alibaba](https://perceptlayer.com/apis/alibaba) [AliExpress](https://perceptlayer.com/apis/aliexpress) [Allegro](https://perceptlayer.com/apis/allegro) [ALTERNATE](https://perceptlayer.com/apis/alternate) [Alza](https://perceptlayer.com/apis/alza) [Amazon](https://perceptlayer.com/apis/amazon) [Americanas](https://perceptlayer.com/apis/americanas) [Aponeo](https://perceptlayer.com/apis/aponeo)

Use cases

### Track sale prices and \`discount\_percent\` for a brand or category

`` Use the Macy's API to track sale prices and `discount_percent` for a brand or category `` 

### Watch price changes per colour across \`variants\`

`` Use the Macy's API to watch price changes per colour across `variants` `` 

### Find the lowest-priced items in a category with \`sort\`

`` Use the Macy's API to find the lowest-priced items in a category with `sort` `` 

### Map the category tree with \`categories\`

`` Use the Macy's API to map the category tree with `categories` `` 

FAQ

## Questions

**How much does the Macy's API cost?**

Each successful call costs one credit, whichever endpoint you call. New accounts get free credits to start, and credit packs bring the price down as you scale.

**Does search return more than one page?**

No. Search returns page 1, so use \`category\`, \`brand\`, \`min\_price\`, \`max\_price\` and \`sort\` to choose which products land on it.

**What format are responses in?**

Every endpoint returns JSON, with no HTML parsing on your side.

**Do I need a Macy's account?**

No. You call this Macy's API with your Perceptlayer key in the \`X-API-Key\` header, with no Macy's login.

**Is this the official Macy's API?**

No. Perceptlayer is an independent service and is not affiliated with Macy's. It returns Macy's data as JSON with a Perceptlayer key, so there is no Macy's developer account, app review or partner approval to get first. It only reads data: if Macy's has an official API and you need to act on your own Macy's account, such as posting, managing orders or reading private data, use that one.

**Should I build a Macy's scraper instead?**

You can, but a Macy's scraper is code you maintain: page changes break it, requests get blocked, and Macy's's terms govern how you collect data. The Macy's API gives you 4 endpoints of named JSON fields for 1 credit per successful call, and failed calls cost nothing. A scraper makes sense only for data these endpoints don't return, so check the response in the playground on this page first.

## Try the Macy's API with 100 free credits

No credit card. Failed calls are never billed.

[Get a free API key](https://perceptlayer.com/signup) [Read the docs](https://docs.perceptlayer.com)
