Watching a competitor's prices on Shopify, Target and Trendyol: what to read, how often, and what it costs
Price monitoring is the least glamorous data job there is, and the one with the clearest payback: you find out what a rival charges before your customer does. It is also the job where a naive scraper breaks most often, b
Price monitoring is the least glamorous data job there is, and the one with the
clearest payback: you find out what a rival charges before your customer does. It
is also the job where a naive scraper breaks most often, because every storefront
renders its price differently β one in the HTML, one behind a JSON blob, one only
after the page runs its own JavaScript.
Disclosure: I run the three endpoints below. They are pay-per-call on
RapidAPI, the first 100 calls each month are free, a failed call is not billed,
and a call returns at most 100 rows. I'm writing the field lists and the cost
math, because that is what a card's tagline leaves out.
What a price watch actually needs
Four fields and one timestamp:
- the product id the store uses (so yesterday's row and today's row are the same product),
- the current price and the currency,
- the compare-at / list price, when the store publishes one (a discount is a price change),
- stock state, because a price cut with no stock is not a threat,
- and the time you read it.
Everything else β description, images, reviews β is for a different job. Pull it
once when you add a product to the watch list, not on every poll.
Shopify β $0.80 per 1,000 products
Card: https://rapidapi.com/luzivanlt/api/shopify-products-scraper
curl -X POST 'https://shopify-products-scraper.p.rapidapi.com/v1/shopify-products' \
-H 'content-type: application/json' \
-H 'x-rapidapi-key: YOUR_KEY' \
-H 'x-rapidapi-host: shopify-products-scraper.p.rapidapi.com' \
-d '{"startUrls":["https://example-store.com","https://example-store.com/collections/new"],"maxProductsPerStore":100,"includeReviews":true}'
Request fields: startUrls (up to 50 store, collection or product links),
maxProductsPerStore, includeStoreContacts, includeReviews.
Rows carry the product title, handle, URL, price and compare-at price, currency,
availability, variant list with per-variant price and stock, images and the
store's own contact details when asked. $0.08 a call at 100 products.
The useful trick: point startUrls at the store's /collections/all and at its
newest collection. The first gives you the catalogue, the second gives you what
changed since yesterday, and the second is cheaper to poll.
Target β $0.70 per 1,000 products
Card: https://rapidapi.com/luzivanlt/api/target-products-scraper
curl -X POST 'https://target-products-scraper.p.rapidapi.com/v1/target-products' \
-H 'content-type: application/json' \
-H 'x-rapidapi-key: YOUR_KEY' \
-H 'x-rapidapi-host: target-products-scraper.p.rapidapi.com' \
-d '{"searches":["air fryer"],"zip":"10001","maxProducts":100,"includeDetails":true}'
Request fields: searches, categories, products (TCINs or URLs), zip,
storeId, sort, includeSponsored, includeDetails, maxProducts.
The ZIP is the part people miss. Target's price and pickup availability are
store-specific, so a national price is the wrong number: pass the ZIP your
customers shop in and the row carries that store's price plus pickup and shipping
state. $0.07 a call at 100 products.
Trendyol β $0.60 per 1,000 products
Card: https://rapidapi.com/luzivanlt/api/trendyol-products-scraper
curl -X POST 'https://trendyol-products-scraper.p.rapidapi.com/v1/trendyol-products' \
-H 'content-type: application/json' \
-H 'x-rapidapi-key: YOUR_KEY' \
-H 'x-rapidapi-host: trendyol-products-scraper.p.rapidapi.com' \
-d '{"searchQueries":["bluetooth kulaklΔ±k"],"maxProducts":100,"sortBy":"price_asc","minRating":4}'
Request fields: searchQueries, categoryUrls, brandUrls, storeUrls,
productUrls, maxProducts, sortBy, minPrice, maxPrice, minRating,
includeDetails, includeDescription, includeReviews, maxQuestions.
Rows carry price, old price, the discount percentage, rating, stock, photos, the
seller and the variants. $0.06 a call at 100 products. Trendyol prices move in
lira, so store the currency with the number or you will compare two different
things in a spreadsheet.
How often to poll
- Hourly is almost always wasted. Retail prices move a few times a week, and a flash sale you catch two hours late is still a sale you catch.
- Twice a day, at the same two hours, gives a clean before/after without paying for noise. That is 60 calls a month per 100 products β under $5 at these prices, and inside the free 100 calls for a single watch list.
- Poll the change surface, not the catalogue. A store's new-arrivals collection and its search results change; the full catalogue does not.
The cheap way to run this: one JSON file per product, one row appended per poll,
and a diff. No database, no dashboard, no alerting until a diff is bigger than
the noise you are willing to ignore.
The rest of the catalogue β Reddit posts, Yelp and Trustpilot reviews, Viator
tours, Flashscore, TikTok, Booking hotels and more, with the per-1,000-row price
on each β is listed at https://github.com/luzivaltic/web-data-apis. The
endpoints are checked daily and repaired when a store changes its markup, which
is the part of this that never stops.
Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes β full credit and traffic to the original publisher.