thredUP
thredUP Rescue Boxes API
thredUP's Rescue boxes (mystery bundles of items): each box with its id, name, description, whether it is available now, sizes and picture, and its bundles with the item count, price in USD, state (listed means on sale now) and sizes. count and available_count say how many boxes there are and how many can be bought now. No input. Costs 1 credit.
POST/api/v1/thredup/rescue-boxes
Authorizations
AuthorizationstringheaderrequiredBearer authentication header of the form Bearer <token>, where <token> is your Scavio API key (e.g. Bearer sk_live_your_key).
Body
No body params: send {}.Notes
Store. thredUP has one store: thredup.com in English and US dollars (it ships to the US and Canada from it). There is no country param; every price is USD. Each call costs 1 credit.
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key", timeout=180)
data = client.thredup.rescue_boxes()["data"]
print(data["available_count"], "of", data["count"], "boxes available")
for box in data["boxes"]:
listed = [b for b in box["bundles"] if b["state"] == "listed"]
print(box["name"], box["available"], [(b["items"], b["price"]) for b in listed])Response
"count": 24,
"available_count": 2,
"currency": "USD",
},
"response_time": 12273
}