Skip to content

How to Build a Competitor Price Tracker That Respects Site Terms

Plan a competitor price tracker that checks site terms first, collects public prices politely, stores comparable data and knows where a proxy helps and where it does not.

9 min readUpdated Nov 14, 2026By XPASS Editorial Team

How to Build a Competitor Price Tracker That Respects Site Terms

A competitor price tracker sounds simple: fetch some product pages every day, pull out the price, and put the numbers in a chart. The first prototype often takes an afternoon. The hard part is everything around it. Which pages are you allowed to read automatically, how often can you ask without becoming a nuisance, how do you keep the numbers comparable, and what happens when a site changes its layout or tells you to stop?

This guide walks through building a tracker in a way that respects the websites you read. It covers the permission checks to do before writing code, a simple architecture, polite collection habits, data hygiene and the limits of the whole approach. It also explains where a proxy fits, and where it does not. Everything here assumes lawful use: public pages, the target site's terms and your local law come first.

Start with permission, not code

Before you write a single line of a crawler, answer three questions for every site you plan to track.

First, what do the terms of use say? Many retail sites include a clause about automated access, scraping or commercial reuse of content. Some allow limited access, some forbid it outright, and some say nothing useful. Read the actual text rather than assuming. Keep a note of the date you read it and the wording that mattered, because terms change.

Second, what does robots.txt say? The Robots Exclusion Protocol, documented in RFC 9309, lets a site tell automated clients which paths they should not fetch and sometimes how fast to go. It is not a security system and it is not a legal contract on its own, but honouring it is the baseline of a responsible collector. If the pages you need are disallowed, treat that as a clear signal.

Third, is there an official way to get the data? Some retailers publish product feeds, offer affiliate or partner APIs, or sell data licences. An official feed is almost always more stable than scraping HTML, and it removes the compliance question entirely. A short email to the site owner is sometimes enough to learn that an export already exists.

If the answer to any of these is a firm "no automated access", the right move is to stop, use another source, or sample a small number of prices by hand. A tracker that depends on ignoring a site's wishes is a project with a hidden failure date.

Define the scope before you collect

A tracker that tries to watch everything ends up watching nothing well. Write down a small scope first.

  • Which competitors matter? Start with three to five direct ones, not fifty.
  • Which products? Pick a basket of comparable items, such as your top sellers and a few reference products, rather than whole catalogues.
  • Which fields? Usually price, currency, availability label, product name, a stable identifier such as SKU or model number, and the page URL.
  • Which markets? Decide whether you only care about one country or about regional differences. If you compare regions, say so now because it changes how you fetch.
  • How often? Match frequency to decisions. If you review prices weekly, collecting hourly is waste.

A small scope also makes the legal and ethical side easier. Fewer requests, to fewer pages, for a clear business reason, is easier to defend and easier to maintain.

A simple architecture that works

You do not need a large platform. A reliable tracker is a handful of small parts.

Part Job Notes
Target list The URLs and identifiers to watch Store in a table, with the site, product and market
Scheduler Decides when each URL is due Spread requests over time instead of bursts
Fetcher Downloads the page Applies delays, timeouts and a clear User-Agent
Parser Extracts price and other fields Separate per site, easy to replace
Storage Keeps every observation with a timestamp Append, do not overwrite
Alerts and reports Shows changes that matter Thresholds, weekly digest, dashboard

Keep the fetcher and the parser separate. Sites change their HTML often, and when the parser breaks you want to fix one small module without touching the rest. Save the raw page, or at least the relevant fragment, for a short period so you can debug a bad parse without fetching again.

Look for structured data before you write fragile selectors. Many product pages embed machine-readable product information in the page, and reading that is usually more stable than guessing at CSS classes. Always confirm that the value you read matches what a visitor sees on the page.

Collect politely

Polite collection protects the target site and also protects your project, because an aggressive collector is the first thing to get blocked or complained about.

  • Identify yourself. Use a descriptive User-Agent string with a contact address, so a site operator can reach you if something is wrong.
  • Set modest rates. One request at a time per site, with a pause between requests, is a good default. If robots.txt gives a crawl delay or the site asks you to slow down, follow it.
  • Back off on errors. If you receive repeated error responses or a request to slow down, wait longer and reduce your rate instead of retrying hard.
  • Use caching and conditional requests. HTTP, as described in RFC 9110, lets a client ask whether a resource changed since last time using validators such as ETag and Last-Modified. When the answer is "not modified" you save the site a full page load.
  • Fetch only what you need. Do not download images, scripts and unrelated pages if the price is in the HTML.
  • Stay on public pages. Never log in with accounts you are not entitled to use, and never touch checkout or personal areas.
  • Do not try to defeat protections. If a site shows a challenge or blocks you, take it as a sign to stop and revisit permission, not as a puzzle to solve.

Where a proxy fits

A proxy is a server that forwards your requests, so the target site sees the proxy's address instead of yours. The MDN overview of proxy servers explains the general idea. In a price tracker, a proxy has two legitimate jobs.

The first is regional views. Many stores show different prices, currencies, shipping options or even product ranges depending on the visitor's country. If you want to know what a shopper in another market sees on a public page, you need to request that page from that market. A proxy with an exit in the target country is a normal way to do that. The companion guide on checking product listing pages in several countries goes into the details of comparing those views.

The second is separation. Running a scheduled collection job through a dedicated address keeps that traffic apart from your office or home connection, which makes it easier to monitor and to pause.

What a proxy does not do is grant permission. It does not make an otherwise disallowed collection acceptable, and it should never be used to hide an abusive request pattern, evade a block or ignore a site's terms. If you are unsure which type of proxy suits a job, check the proxy page for what is on offer and read the plan details carefully.

Keep the data clean and comparable

A tracker is only useful if numbers from different sites and days can be compared fairly. Plan for these issues from the start.

  1. Normalise currency. Store the original price and currency, and convert to a reporting currency separately using a dated exchange rate. Do not overwrite the original.
  2. Know what the price includes. Some sites show prices with tax, some without. Some include shipping, some show it at checkout only. Record a flag, and compare like with like.
  3. Capture the sale context. A crossed-out list price, a promotional price and a member price are three different numbers. Store each in its own field.
  4. Match products carefully. The same item has different names across sites. Match on model number, barcode or another stable identifier, and review uncertain matches by hand.
  5. Record availability. A price for an item that cannot be bought tells a different story. The guide on detecting out-of-stock products from public pages shows how to read availability signals sensibly.
  6. Timestamp everything. Store the time in a single time zone and keep every observation, so you can chart history and spot a parse error as a sudden jump.

Add basic sanity checks. A price of zero, a ten-fold change overnight or a missing currency is more likely a parsing problem than a real event. Flag those for review before they trigger alerts.

Limits and what to watch for

Be honest about what a tracker can and cannot tell you.

  • Public pages show only the public price. Personalised discounts, loyalty prices, bundles and negotiated B2B prices will not appear.
  • Some pages build prices with scripts after loading. A simple fetch may miss them, and a heavier approach means more load on the site. Think twice before escalating.
  • Layouts change. Expect to maintain parsers, and monitor for silent failures such as a field suddenly going empty.
  • Terms can change. Recheck permission periodically and keep your notes current.
  • Data protection rules may apply if any page content includes personal data, such as reviewer names. Collect product and price information, not personal details.
  • Do not publish or resell scraped content wholesale. Using prices for your own analysis is different from republishing a competitor's catalogue.
  • Pricing decisions have their own laws. In some places, coordinating prices with competitors is restricted. Use the data to understand the market, not to arrange anything with rivals.

For a broader view of what a monitoring project needs on the business side, see the guide on requirements for price monitoring for online stores.

A plain example

Imagine a small shop that sells running shoes and wants to follow four competitors on twenty models.

The owner reads each competitor's terms and robots.txt. Three allow normal browsing of product pages and one forbids automated access, so the owner drops that one and checks its prices by hand once a week. For the other three, the owner builds a list of sixty URLs with model numbers as identifiers.

The scheduler fetches each page once per day, one request at a time with a pause of several seconds, using a User-Agent that names the shop and gives an email address. The parser reads the product data embedded in the page and stores price, currency, tax flag and availability with a timestamp. For two competitors that also sell abroad, the owner requests the pages once from the local market and once from a second country through a proxy, to see regional price differences, and stores the market as a field.

A weekly report highlights models where a competitor moved more than a set percentage, and flags any parse that returned zero or a missing currency. The owner uses the report to decide where to adjust their own prices, and nothing more. The whole job makes a few hundred light requests a day, which is easy to explain to anyone who asks.

Summary

A trustworthy competitor price tracker starts with permission: read the terms, honour robots.txt and prefer official feeds. Keep the scope small, split fetching from parsing, collect slowly and identify yourself, and use caching so you load other sites as little as possible. A proxy is useful for viewing public pages from other countries and for keeping the job separate from your own network, but it never replaces permission. Store original prices, currencies and timestamps so the numbers stay comparable, and accept the limits of public data. When you are ready to compare regional views, the proxy page shows the options and what each plan includes.

Frequently asked questions

Is it legal to track competitor prices?

Looking at publicly displayed prices is a normal business activity, but the details depend on your country, the site's terms of use and how you collect the data. Read the terms, respect robots.txt, avoid anything behind a login and ask a lawyer if the project is large or sensitive.

Do I need a proxy to build a price tracker?

Not for every project. A single-market tracker that fetches a few pages politely may not need one. A proxy becomes useful when you must see how public pages look from another country, for example to compare regional prices, and when you want to keep your own office network separate from the collection job.

How often should a price tracker check each page?

Only as often as the decisions you make from the data require. Daily or a few times per day is enough for most retail comparisons. Checking more often adds load on someone else's site and rarely improves your decisions.

What should I do if a site says automated access is not allowed?

Respect it. Look for an official feed, an API, a partner programme or a data licence instead, or collect the prices by hand for a small sample. Do not try to work around the restriction.

About the author

Bob Kanokphon Thongdee, founder of XPASS VPN

Bob Kanokphon Thongdee

  • Founder of XPASS VPN
  • Co-founder of eSIMonline.asia
  • More than 7 years in online marketing
  • Founder of Cojourney Visa and Cojourney Travel

Need a proxy for this?

XPASS Proxy sells residential proxy traffic by the gigabyte, with the price shown before you pay.

See proxy plans

Keep reading

Proxy Guides

How to Detect Out-of-Stock Products From Public Pages

Stock status is one of the most useful signals in market research. This guide shows how to read it from public product pages, avoid common mistakes and check politely.

10 min read

Proxy Guides

How to Check Product Listing Pages in Multiple Countries

A practical method for viewing public product listing pages as a shopper in different countries sees them, recording what changes and staying within site terms.

9 min read

Proxy Guides

What You Need for Price Monitoring in an Online Store

A checklist of what an online store needs before it monitors prices: clear goals, product matching, data fields, permission, a polite schedule, storage and sensible alerts.

10 min read