Harbor Freight
Harbor Freight Product API
One Harbor Freight product by item number, id or harborfreight.com URL: title, brand, UPC, category, the full price block (current, regular, sale price and end date, clearance, coupon, Inside Track Club member price, compare-at price), rating and review count, description, highlights, the specification table, warranty, shipping notes, owner's manuals, images and variants. Costs 1 credit 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/jsonskustringHarbor Freight item number (the sku of a search result).
Example: 73216
idintegerNumeric product id (the id of a search result).
Example: 48725
urlstringharborfreight.com product URL ending in the item number. Pass sku, id or url.
Example: https://www.harborfreight.com/20v-cordless-12-in-drilldriver-kit-with-2-ah-battery-and-charger-73216.html
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
p = client.harbor_freight.product(sku="73216")["data"]
print(p["title"], p["upc"], p["price"], "regular", p["regular_price"])
if p["compare_at"]:
print("vs", p["compare_at"]["brand"], p["compare_at"]["model"], p["compare_at"]["price"])
for s in p["specifications"]:
print(s["label"], "=", s["value"])Response