Macy's Search
Use in bulk with DataflowRun this endpoint over a file or a list, once or on a schedule.
GET
Search Macy's by keyword or a macys.com URL.
Credit cost: 1 credit per call
ApiKeyAuthheader
x-api-key<token>Your API key. Include it in the x-api-key header for every request.
query*stringKeyword or a macys.com URL. Another domain is rejected.
page?numberPage number, starting at 1. Page 2 uses /Pageindex/2.
Default
"1"return_page_source?booleanReturn the page HTML instead of the parsed search.
Default
falsefields?stringComma-separated list of response fields to return, with dot notation for nested fields (e.g. name,location.city).
is_async?booleanRun the request as a background job: the API answers 202 with a job_id to poll on GET /v1/jobs/{id}.
Default
falsesoft_fail?booleanReturn HTTP 200 even when the request fails; the error is in the error field of the body.
Default
falseSuccessful response
application/json- response
results?array<>pagination?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
}
}