Kohl's
Kohl's Store Availability API
Store pickup stock for one Kohl's SKU at every store within about 50 miles of a US ZIP code, with unit counts: pickup_units, stock_level (In Stock, Low Stock, Out of Stock), ship-to-store units and the ship-to-store pickup window, pickup and ship-to-store eligibility, clearance and Sephora flags, and each store's address, phone, distance and hours for the week. Also returns how many stores have it and the total pickup units. Take sku (a variant's sku) and dept from the product endpoint. Costs 2 credits 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/jsonskustringrequiredA Kohl's SKU code: a product's variants[].sku.
Example: 73519108
deptstringThe product's department code (product.dept, e.g. "063").
Example: 063
zipstringrequiredUS ZIP code: stores within about 50 miles are listed.
Example: 10001
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
p = client.kohls.product(product_id="6251213")["data"]
sku = p["variants"][0]["sku"]
res = client.kohls.store_availability(sku=sku, dept=p["dept"], zip="10001")["data"]
print(res["in_stock_count"], "of", res["count"], "stores,", res["total_pickup_units"], "units")
for s in res["stores"]:
if s["pickup_units"]:
print(s["name"], s["distance_miles"], s["pickup_units"], s["stock_level"])Response