thredUP
thredUP Suggestions API
thredUP's search suggestions for a partial query (department women, girls or boys): each suggestion with its text and the filter set it stands for (query, department, brand, category, free_text), ready to pass to search, brand or category. Costs 1 credit.
POST/api/v1/thredup/suggestions
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/jsonquerystringrequiredWhat the shopper has typed so far, 1-100 characters.
Example: made
departmentenum<string>default:womenwomen, girls or boys.
Example: girls
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)
# Turn a typed term into the brand / category filters thredUP uses.
for s in client.thredup.suggestions(query="made")["data"]["suggestions"]:
print(s["text"], s["department"], s["brand"], s["category"])Response
"query": "made",
"department": "women",
"count": 10,
},
"response_time": 6131
}