Macy's
Macy's Stores API
Macy's stores near a US ZIP code, a point (lat and lng) or a city and state, nearest first, up to 15 within 100 miles by default: store_id, name, address, phone, latitude and longitude, distance in miles, today's and tomorrow's opening hours, curbside pickup hours, the order cut-off time for same-day pickup and store features. store_id is what store-availability and search's pickup_store_id take. Costs 1 credit per request.
Authorizations
AuthorizationstringheaderrequiredBearer authentication header of the form Bearer <token>, where <token> is your Scavio API key (e.g. Bearer sk_live_your_key).
Body
application/jsonzipstringUS ZIP code to search around.
Example: 10001
latnumberLatitude, with lng, instead of zip.
Example: 37.7879
lngnumberLongitude, with lat.
Example: -122.4075
citystringUS city, with state, instead of zip.
Example: Atlanta
statestring2-letter US state code, with city.
Example: GA
radiusintegerSearch radius in miles, 1-100. Defaults to 100.
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
res = client.macys.stores(zip="10001", radius=10)["data"]
for s in res["stores"]:
print(s["store_id"], s["name"], s["distance_miles"], s["hours"][0], "pickup cut-off", s["pickup_cutoff"])Response