DEV Community

Aurelix Solutions
Aurelix Solutions

Posted on

Track Best Buy Canada prices, sales and price drops in Python, no login

Retailers, resellers and deal sites in Canada keep an eye on bestbuy.ca: what a laptop or TV costs today, what is on sale and until when, and whether a marketplace seller undercuts Best Buy itself. Checking that by hand every morning does not scale past a few products.

This post pulls Best Buy Canada search results into Python, finds well-rated deals, splits Best Buy from marketplace sellers, and sets up a daily feed of new products and price changes.

Disclosure: I'm Aurelix, and I built Best Buy Canada Scraper, the tool used here. It's a paid tool (prices below).

What each row holds

Up to 40 fields per product:

  • sku, title, product_url, image_url, images, category.
  • price, regular_price, on_sale, savings, sale_ends_at, currency (CAD).
  • rating, ratings_count, reviews_count.
  • seller (Best Buy or the marketplace shop name), marketplace, clearance, online_only.
  • With includeDetails on: brand, model_number, upc, online_stock, in_store_availability, description_text, specs, at the same per-product price.
  • query, position, and for tracking runs new_since_last_run, previous_price, price_change.

Sale products for a few searches

pip install apify-client
Enter fullscreen mode Exit fullscreen mode
import csv
import os

from apify_client import ApifyClient

client = ApifyClient(os.environ["APIFY_TOKEN"])
run = client.actor("aurelix/best-buy-canada-scraper").call(
    run_input={"queries": ["air fryer", "4k tv"], "maxResultsPerQuery": 200, "onSaleOnly": True, "minRating": 4}
)
products = list(client.dataset(run["defaultDatasetId"]).iterate_items())

fields = ["query", "title", "price", "regular_price", "savings", "sale_ends_at", "rating", "reviews_count", "seller", "product_url"]
with open("bestbuy_deals.csv", "w", newline="", encoding="utf-8") as f:
    w = csv.DictWriter(f, fieldnames=fields, extrasaction="ignore")
    w.writeheader()
    w.writerows(products)
Enter fullscreen mode Exit fullscreen mode

Other filters: minPrice and maxPrice in dollars, minReviews, sellers (all, bestbuy or marketplace) and sort (relevance, price-asc, price-desc). Products that do not match your keywords are dropped and not charged.

Biggest discounts, and who sells them

from collections import Counter

for p in sorted(products, key=lambda p: -(p["savings"] or 0))[:10]:
    pct = 100 * p["savings"] / p["regular_price"] if p["regular_price"] else 0
    print(f"{p['title'][:60]:60} ${p['price']:>8.2f}  -{pct:.0f}%  {p['seller']}")

print(Counter("Best Buy" if not p["marketplace"] else "marketplace" for p in products))
Enter fullscreen mode Exit fullscreen mode

New products and price changes, every morning

run_input = {
    "queries": ["laptop", "4k tv"],
    "onSaleOnly": True,
    "incrementalMode": "new-or-price-change",
    "stateKey": "laptop-tv-deals",
    "slackWebhookUrl": "https://hooks.slack.com/services/...",
}
Enter fullscreen mode Exit fullscreen mode

With incrementalMode set to new, each run returns only products no earlier run returned; new-or-price-change also returns known products whose price moved, with previous_price and price_change filled in. Save the input as a task in the Apify Console and schedule it daily: Slack gets a short digest, and nothing is sent when nothing changed. webhookUrl sends the same digest as JSON to Zapier, Make or n8n.

Why this tool

  • Price, regular price, savings and sale end date on every product.
  • Price tracking built in: only new or repriced products.
  • Filters for price, sale, rating, reviews and seller type.
  • Brand, model, UPC and stock at no extra cost.
  • Cheaper than the leading tools.

Limits

  • Best Buy Canada only (bestbuy.ca, English); Best Buy USA is not covered.
  • At most 2,000 results per search, Best Buy Canada's own limit.
  • Stock, brand, model, UPC and specs need includeDetails, which adds one request per product and makes runs slower.
  • Sort is best match or price; there is no rating sort in this data.
  • With strict filters a run reads at most 4 result pages plus 2 per product returned, so a narrow search never runs up a long bill; searches it did not finish are named in the run status.

Cost

$0.90 per 1,000 products on Apify's free plan, from $0.48 per 1,000 on paid plans, details included, plus a start fee per run. The current prices are on the Store page; Apify's free plan includes $5 of credit a month, about 5,500 products.

Use it from an AI assistant

The tool also works through Apify's hosted MCP server, so Claude, ChatGPT or Cursor can run it from a request like "find 4K TVs on sale at Best Buy Canada rated 4 stars or more, sorted by savings". Server URL: https://mcp.apify.com/?tools=aurelix/best-buy-canada-scraper.

Links

Top comments (0)