Piloterr

Macy's Product

Use in bulk with DataflowRun this endpoint over a file or a list, once or on a schedule.

GET
/v2/macys/product

Read a Macy's product from its URL or numeric id.

Credit cost: 1 credit per call

Authorization

ApiKeyAuth
headerx-api-key<token>

Your API key. Include it in the x-api-key header for every request.

Query Parameters

query*string

Product URL on macys.com, or a numeric product id.

return_page_source?boolean

Return the page HTML instead of the parsed product.

Defaultfalse
fields?string

Comma-separated list of response fields to return, with dot notation for nested fields (e.g. name,location.city).

is_async?boolean

Run the request as a background job: the API answers 202 with a job_id to poll on GET /v1/jobs/{id}.

Defaultfalse
soft_fail?boolean

Return HTTP 200 even when the request fails; the error is in the error field of the body.

Defaultfalse

Response Body

Successful response

application/json
  1. response
id?string
url?string
brand?string
color?string
price?number
sizes?array<>
title?string
images?array<string>
currency?string
price_display?string
compare_at_price?number
Example Request
curl -X GET 'https://api.piloterr.com/v2/macys/product?query=string'
Example Response
{
  "id": "28944131",
  "url": "https://www.macys.com/shop/product/cupshe-womens-off-the-shoulder-lace-trim-a-line-midi-dress?ID=28944131",
  "brand": "Cupshe",
  "color": "Black",
  "price": 53.99,
  "sizes": [
    {
      "size": "L",
      "in_stock": true
    },
    {
      "size": "M",
      "in_stock": true
    },
    {
      "size": "XL",
      "in_stock": true
    },
    {
      "size": "S",
      "in_stock": true
    }
  ],
  "title": "Women's Off-the-Shoulder Lace-Trim A-Line Midi Dress",
  "images": [
    "https://slimages.macysassets.com/is/image/MCY/products/7/optimized/39954387_fpx.tif",
    "https://slimages.macysassets.com/is/image/MCY/products/4/optimized/39954384_fpx.tif",
    "https://slimages.macysassets.com/is/image/MCY/products/3/optimized/39954383_fpx.tif",
    "https://slimages.macysassets.com/is/image/MCY/products/5/optimized/39954385_fpx.tif"
  ],
  "currency": "USD",
  "price_display": "$53.99",
  "compare_at_price": 59.99
}