Chewy
Chewy Search API
Search Chewy by keyword, or browse a category, 36 products per page. Each result has the one-time price, offer and strike-through price, Autoship price and discount, first-Autoship price, discount and savings cap, MAP price and flag, per-unit price, rating and rating count, in-stock flag, deal, new, Chewy-exclusive and prescription flags, brand, image and product URL. Sponsored listings are removed and counted. Prices are in US dollars. Costs 10 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/jsonquerystringSearch keywords, up to 200 characters. Pass this or category_id, not both. Chewy sends some broad queries ("dog food") straight to a category; the response's redirect then names that category.
Example: kong classic dog toy
category_idstringCategory to browse instead of a search: the number at the end of a chewy.com /b/ URL (332 is Dog Food in /b/food-332), or that URL itself. Pass this or query.
Example: 332
pageintegerResults page, 1-based, 1-100. Defaults to 1. 36 results per page.
Example: 1
sortstringrelevance (default), bestselling, newest, price_low, price_high, rating or most_reviewed.
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
res = client.chewy.search(query="kong classic dog toy")["data"]
print(res["total_results"], "results,", res["sponsored_removed"], "sponsored removed")
for p in res["products"]:
print(p["product_id"], p["name"], p["price"], "autoship:", p["autoship_price"], "rating:", p["rating"])Response