SportChek
SportChek Search API
Search SportChek (sportchek.ca) by keywords or a product code: 24 products a page sorted by relevance, price or rating and filtered by brand, sale or clearance and any of the site's filters, each with its price, was price, sale label and posted sale end date in Canadian dollars. Costs 1 credit; allow up to 2 minutes.
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/jsonqstringrequired1-200 characters: keywords, or a product code.
Example: winter jacket
pageintegerdefault:1Page, 1-500. total_pages says how many; deep pages work.
Example: 2
sortenum<string>default:relevanceResult order, as the site's sort menu offers it.
Example: price_low
relevance— The site's own order (default).price_high— Price, high to low.price_low— Price, low to high.rating— Highest rated first.
brandstring | string[]Brand as the site's Brand Name filter names it, one or up to 10 (facets[id=brand].values[].value), e.g. BAUER.
Example: BAUER
dealsstring | string[]The site's Deals filter: sale, clearance or both. On search and category pages; a deals page already is one (400).
Example: clearance
sale— Items on sale.clearance— Clearance items.both— Sale or clearance.
filters{facet, value}[]Any of the site's filters as facets[].values[] give them: {facet, value} (value: one or a list of up to 10), up to 6 entries: gender, size, colour, rating, price band and the category's own filters.
Example: [{"facet":"sku_gender_attr","value":"Female"}]
include_facetsbooleandefault:falseAlso return the site's filters with counts for these results (facets: id, label, values [{label, count, facet, value, selected}]). Still 1 credit.
Example: true
languagestringdefault:enen only. SportChek has no French storefront: anything else answers 400, not charged.
Example: en
Notes
SportChek. SportChek (sportchek.ca, Canada's sporting goods retailer, a Canadian Tire Corporation banner), as JSON. Scavio fetches the public SportChek page when you call it; SportChek has no public API. Canada only, prices in Canadian dollars; English only: SportChek has no French storefront, so any language but en answers 400, not charged. This endpoint costs 1 credit (include_facets included). price is SportChek's online price for a visitor without an account, in Canadian dollars, before tax and shipping; price_max is the top of the range when colours or sizes are priced differently. was_price is the site's was price as given, only where the site shows one (clearance and some sale items), and footnote quotes the site's own definition: "Was price reflects the last national regular price this product was sold for." on_sale and badges (SALE, CLEARANCE, TOPRATED, BESTSELLER, NEWARRIVAL) are the site's flags; sale_ends is the end date the site posts, as given; price_message [{label, details}] is the site's promotion text, as given. No percent off is returned: compute it from price and was_price and label it computed. In our checks prices were the same at every store sampled. Pages hold 24 products as the site shows them (page_size says; some searches show 40); total, total_pages and has_more say how many. sort: relevance (default), price_high, price_low or rating. brand takes the site's Brand Name value (facets[id=brand], e.g. BAUER); deals takes sale, clearance or both on search and category pages (a deals page already is one, so deals there is a 400); filters takes any of the site's filters as [{facet, value}] from facets (include_facets: true), up to 6. list reads a category page (paths from categories) or a deals page under /en/sale-clearance/ (sale, clearance and the Black Friday pages).
Timing. Answers take about 10-90 seconds: allow up to 2 minutes. Brands and categories answer in a few seconds. Set your client timeout to match; the examples use 180 seconds.
| Endpoint | Credits |
|---|---|
search | 1 credit (include_facets included) |
list | 1 credit (include_facets included) |
product | 1 credit (by code or by link) |
reviews | 1 credit (any page, sort or star filter) |
suggestions | 1 credit |
store | 1 credit |
brands | 1 credit |
categories | 1 credit |
Request
from scavio import ScavioClient
# Answers take about 10-90 seconds: allow up to 2 minutes.
client = ScavioClient(api_key="sk_live_your_key", timeout=180)
d = client.sportchek.search(q="winter jacket", include_facets=True)["data"]
print(d["total"], "products,", d["market"]["currency"])
print(d["footnote"]) # the site's own was-price sentence
for i in d["items"]:
# was_price as given; the percent off is computed here from the two shown numbers.
pct = round((1 - i["price"] / i["was_price"]) * 100) if i["was_price"] else None
print(i["code"], i["price"], i["was_price"], pct, i["sale_ends"], i["name"][:50])Response