Track Prices and Store Stock at Target, Best Buy, Costco and Lowe's
Pull price, sale price and store stock for the same products from Target, Best Buy, Costco and Lowe's on a schedule, into one daily CSV with one row per product.
The actor referenced in this article. Pay only for results delivered.
If you sell, resell or buy the same goods that Target, Best Buy, Costco and Lowe’s carry, you probably check their prices by hand: four sites, four layouts, and a stock answer that changes with the store you pick. An in stock badge on a product page says nothing about the store near your customer. What you want is a sheet with one row per product per day: the price, the price it was, whether it is on sale, and whether your store has it.
Try it live: Best Buy Scraper. Pay per result delivered.
This guide uses four actors, one per retailer, with the same shape: keywords, category links or product links in, one flat row per product out, with store data added when you give a ZIP code. The Best Buy Scraper leads because its rows carry the most identifiers for matching.
Which actor fits which job
| Retailer | Actor | What you give it | Store data with a ZIP | Ids in each row | Most per search |
|---|---|---|---|---|---|
| Target | Target Scraper | Keywords, category or brand links, product links or TCINs | Ship, pickup and in store status, units at the nearest store | TCIN, DPCI; UPC with details | about 1,200 |
| Best Buy | Best Buy Scraper | Keywords, category links, product links or SKUs | Pickup at up to 5 nearby stores, same day delivery | SKU, model number, UPC | about 2,000 |
| Costco | Costco Scraper | Keywords, product links, product ids or Item numbers | Online stock for delivery to that ZIP | Item number, product id, model | 1,000 per keyword |
| Lowe’s | Lowe’s Scraper | Keywords, category, search or product links, item ids | Units on hand, pickup, ship and delivery at one store | Item id, Item #, Model #; UPC on product links | 744 |
A few differences decide which input to use:
- Target and Best Buy work well with product links or bare ids for a fixed watch list. A Target product link always comes back with full details, UPC included.
- Costco has no category input. Its search box sits behind a bot wall, so the actor matches your keyword against the names in the catalogue Costco publishes for search engines, about 18,000 products on costco.com. Use words from product names, or paste Item numbers from a shelf tag.
- Lowe’s prices search and category rows for the store you choose. A product link is priced for a store Lowe’s picks itself, and it costs more (see the price section). For a watch list at your own store, use keywords or a
/pl/category link.
The inputs
Best Buy, a fixed list of products with pickup checked at the three stores nearest a Manhattan ZIP:
{
"productUrls": [
"https://www.bestbuy.com/product/apple-airpods-pro-2-wireless-active-noise-cancelling-earbuds-with-hearing-aid-feature-white/JJGCQ88C8X/sku/6447382",
"6679316"
],
"zipCode": "10001",
"nearbyStores": 3
}
Target, the same idea with a product link and a bare TCIN:
{
"productUrls": [
"https://www.target.com/p/ninja-air-fryer-pro-4-in-1-af141/-/A-90569368",
"89110863"
],
"zipCode": "10001"
}
Costco, a product link and an Item number, with online stock for the same ZIP:
{
"productUrls": [
"https://www.costco.com/p/-/kirkland-signature-paper-towels-2-ply-160-sheets-12-individually-wrapped-rolls/100234271",
"1738644"
],
"zipCode": "10001"
}
Lowe’s, three keywords priced at the store nearest an Atlanta ZIP:
{
"searchQueries": ["mulch", "potting soil", "paver base"],
"maxItems": 200,
"zipCode": "30301"
}
Each takes more: sort orders, Best Buy’s brand, sale, condition and pickup filters, Costco’s onlyInStock and country switch for costco.ca, and Lowe’s storeNumber for an exact store.
Run all four from Python
pip install apify-client
The script runs each actor, maps the four row shapes onto shared columns, appends today’s rows to one CSV and prints prices that fell since the last run.
import csv
from datetime import date
from pathlib import Path
from apify_client import ApifyClient
client = ApifyClient("YOUR_APIFY_TOKEN")
ZIP = "10001"
inputs = {
"target-scraper": {"productUrls": ["90569368", "89110863"], "zipCode": ZIP},
"bestbuy-scraper": {"productUrls": ["6447382", "6679316"], "zipCode": ZIP, "nearbyStores": 3},
"costco-scraper": {"productUrls": ["100234271", "1738644"], "zipCode": ZIP},
"lowes-scraper": {"searchQueries": ["cordless drill"], "maxItems": 48, "zipCode": ZIP},
}
# Each retailer names the id, the was price and the stock signal its own way.
def target(r): return r["tcin"], r.get("regular_price"), r.get("store_quantity", r.get("in_store_availability")), r["product_url"]
def bestbuy(r): return r["sku"], r.get("regular_price"), r.get("pickup_available"), r["product_url"]
def costco(r): return r["item_number"], r.get("price_before_savings"), r.get("availability"), r["product_url"]
def lowes(r): return r["item_id"], r.get("was_price"), r.get("store_on_hand_quantity"), r["url"]
mappers = {"target-scraper": target, "bestbuy-scraper": bestbuy,
"costco-scraper": costco, "lowes-scraper": lowes}
today = date.today().isoformat()
rows = []
for slug, run_input in inputs.items():
run = client.actor(f"themineworks/{slug}").call(run_input=run_input)
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
if "_type" in item:
continue # summary, info and error rows, never charged
item_id, was, stock, url = mappers[slug](item)
rows.append({
"date": today, "retailer": slug.replace("-scraper", ""), "id": item_id,
"title": item.get("title"), "price": item.get("price"), "was_price": was,
"on_sale": item.get("on_sale"), "stock": stock, "url": url,
})
history = Path("retail_prices.csv")
last = {}
if history.exists():
with history.open(newline="", encoding="utf-8") as f:
for old in csv.DictReader(f):
if old["date"] < today and old["price"]:
last[(old["retailer"], old["id"])] = float(old["price"])
if rows:
new_file = not history.exists()
with history.open("a", newline="", encoding="utf-8") as f:
writer = csv.DictWriter(f, fieldnames=list(rows[0].keys()))
if new_file:
writer.writeheader()
writer.writerows(rows)
for r in rows:
before = last.get((r["retailer"], str(r["id"])))
if before and r["price"] is not None and r["price"] < before:
print(f'{r["retailer"]}: {r["title"][:60]} fell from ${before} to ${r["price"]}')
The mapping exists because the same idea has four names: the was price is regular_price at Target, price_before_savings at Costco and was_price at Lowe’s. The stock column differs too: store units for Target and Lowe’s, a pickup yes or no for Best Buy, and online availability for Costco.
What the rows hold
- Best Buy:
price,regular_price,savings,savings_percent,on_sale,deal_ends_atwhen Best Buy shows a deal countdown,rating,review_count,sku,model_number,upc,sold_byandseller_type(1P or 3P),in_stock, and with a ZIPpickup_available,pickup_available_atandsame_day_delivery. - Target:
price,regular_price,save_percent,price_type(reg, sale or clearance),rating,rating_count,bought_last_monthwhen Target shows a demand note,dpci, and with a ZIPpickup_availability,in_store_availabilityandstore_quantity. - Costco:
priceafter instant savings,price_before_savings,savings,promo_startandpromo_end,item_number,member_only,online_only,availability, andvariantsfor sizes and colors with their own item numbers and prices. - Lowe’s:
price,was_price,savings_percent,promotion_ends,price_type(STORE or NETWORK),store_on_hand_quantity,pickup_available,delivery_available, andstore_numberwithstore_name.
To match one product across retailers, use the UPC where you have it. Best Buy had UPC and model number on every row in its tests. Target gives the UPC on product link rows, or on search rows with includeDetails; in a test it was filled on 97 of 110 detail rows. Lowe’s gives the barcode only on product link rows. Costco rows carry the item number and model but no UPC field, so match Costco on model number or title.
What it costs
Each actor charges per product row delivered plus a small start fee per run. The start fee is charged only after the first call returns products, so a run with bad input or no results costs nothing.
| Actor | Free plan per 1,000 | Gold and above per 1,000 | Start fee per run |
|---|---|---|---|
| Target Scraper | $0.94 | $0.75 | $0.001 |
| Best Buy Scraper | $2.25 | $1.80 | $0.001 |
| Costco Scraper | $4.50 | $2.61 | $0.001 |
| Lowe’s Scraper, search and category rows | $4.50 | $2.70 | $0.003 |
| Lowe’s Scraper, product link rows | $18.00 | $12.50 | same run, same fee |
A worked example: 100 products per retailer, checked daily for 30 days, is 3,000 rows per actor. On the Free plan that is $2.82 for Target, $6.75 for Best Buy and $13.50 for Costco, plus $0.03 in start fees each. For Lowe’s it is $13.50 plus $0.09 in start fees if you track through keywords or categories, and $54.00 if you track the same 100 products through product links. That gap, and the store question above, is why the Lowe’s input in this guide uses keywords.
Store stock, pickup and product details cost nothing extra in all four. Duplicates within a run, links for another site, ids the retailer does not have, and the summary, info and error rows are never charged.
Limits worth knowing
- Costco keyword search is name matching. A product named only “65 in. QLED Display” is not found by “tv”.
matches_for_querytells you how many products matched. The price is the online price, which can differ from the price on a warehouse shelf. - Best Buy pickup is yes or no.
pickup_availablemeans Best Buy offers pickup of that product at that store; it is not a unit count. Bundles are left out so every row is one product. - Lowe’s is slow and does not always answer for your store. Each page takes 10 to 50 seconds to load; 144 products from 2 keywords took 132 seconds in a test. On 17 Nov 2026, 314 of 530 search and category rows came back for the chosen store; the rest carry the store Lowe’s used in
store_number, so check that column before you compare. - Target refuses some calls. The actor retries them on a new IP, and that sets the run time: 538 products from 3 keywords with store stock took 143 seconds in a test. Products sold online only can have a shipping status and no store fields.
Put it on a schedule
Save each input as a task in Apify Console, open Schedules and add a daily schedule. Compare runs on each retailer’s id (tcin, sku, item_number, item_id) and price to catch drops, new sales and stock changes. Google Sheets, Make, Zapier, n8n and webhooks take each run’s rows to where your team works; web scraping data pipeline architecture covers the layout end to end.
Walmart and Amazon fit the same sheet: the Walmart Product Price Scraper returns price, was price, stock status and seller, and Amazon product research in Python covers the Amazon Product Scraper. For per result pricing against a flat subscription, see pay per result vs subscription scraping.
Related
Explore the scraper referenced in this article: inputs, outputs, and pricing, then run it on Apify.
Frequently asked questions
Which of these retailers give me a UPC to match products? +
Best Buy had UPC and model number on every row in its tests. Target adds the UPC on product link rows, or on search rows with includeDetails. Lowe's gives the barcode on product link rows only. Costco rows carry the Costco item number and model but no UPC field, so match Costco on model or title.
Am I charged when a run finds nothing? +
No. All four actors charge the start fee only after a call has returned products, so a run with bad input or no results costs nothing. Links that are not for that retailer, ids the retailer does not have, and the summary, info and error rows are never charged.
Which store does the stock data come from? +
With a ZIP code, Target and Lowe's use the nearest store, Best Buy checks up to 5 nearby stores for pickup, and Costco checks online stock for delivery to that ZIP. Target and Lowe's also take a store number directly, and Best Buy takes a storeId.
Why does Lowe's cost more for product links? +
Lowe's serves one product per page on a product link, against 24 per page on search and category lists, so product link rows are billed as product-detail: $12.50 per 1,000 on Gold and above against $2.70 for list rows. Product link rows are also priced for a store Lowe's picks itself.
Track Trendyol Prices, Buy Box Sellers and Reviews
Export Trendyol products by keyword, category, brand, store or product link with the lira price, discount, buy box seller and score, other sellers, stock and optional reviews, then spot undercutting sellers with a short Python script.
Hotel and Flight Price Monitoring With Agoda, Trip.com and Google Flights
Track hotel rates and airfares on a schedule: Agoda and Trip.com hotel prices for your dates, Google Flights fares by route, stored as a dated price history.
Marketplace Data Beyond Amazon: Shopee Reviews, Tokopedia, Wildberries and Wallapop
Pull reviews from Shopee, products and sold counts from Tokopedia, prices and stock from Wildberries, and second-hand listings from Wallapop, with real inputs, Python and exact prices.
Mercari Japan Sold Price Comps for Resellers and Importers
Pull sold and on sale Mercari Japan listings by keyword, category, brand or seller, with yen price, condition, seller rating and likes, and turn them into price comps with a short Python script.