Sam's Club
Sam's Club Category API
Products in a Sam's Club category, paged, with the same fields as search: price, was-price, savings, unit price, Instant Savings, rating, stock status and fulfillment. Clearance is category 1150109. Results are priced for a nearby club picked by location and returned in club. Costs 1 credit per request.
POST/api/v1/samsclub/category
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/jsoncategory_idstringrequiredSam's Club category id: the number at the end of a samsclub.com /browse/ or /cp/ URL. Clearance is 1150109.
Example: 1150109
pageintegerResults page, 1-based. Defaults to 1.
Example: 1
sortstringrelevance, price_low, price_high or top_selling. Defaults to the site's own order.
Example: price_low
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
# 1150109 = Clearance
res = client.sams_club.category(category_id="1150109")["data"]
print(res["category_name"], res["total_results"], "items at club", res["club"]["club_id"])
for p in res["products"]:
print(p["item_id"], p["title"], p["price"], p["availability_status"])Response
"category_id": "1150109",
"category_name": "Clearance",
"title": "Results for "Shop All Savings"",
"page": 1,
"sort": "relevance",
"total_results": 131,
"total_pages": 3,
"count": 44,
},
"response_time": 3025
}