Piloterr

Macy's Search

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

GET
/v2/macys/search

Search Macy's by keyword or a macys.com URL.

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

Keyword or a macys.com URL. Another domain is rejected.

page?number

Page number, starting at 1. Page 2 uses /Pageindex/2.

Default"1"
return_page_source?boolean

Return the page HTML instead of the parsed search.

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
results?array<>
pagination?
Example Request
curl -X GET 'https://api.piloterr.com/v2/macys/search?query=string'
Example Response
{
  "results": [
    {
      "id": "23737111",
      "url": "https://www.macys.com/shop/product/levis-mens-extra-baggy-jeans?ID=23737111",
      "brand": "Levi's",
      "color": "Wherever You Are",
      "image": "https://slimages.macysassets.com/is/image/MCY/products/1/optimized/35103701_fpx.tif",
      "price": 44.97,
      "title": "Men's Extra Baggy Jeans",
      "price_display": "$44.97",
      "compare_at_price": 74.95
    }
  ],
  "pagination": {
    "next": "https://www.macys.com/shop/featured/jeans/Pageindex/2",
    "page": 1,
    "per_page": 60,
    "total_pages": 114,
    "total_results": 6832
  }
}