How to Start Tracking Competitor Prices Automatically
Learn how to set up a small, respectful competitor price tracker: pick what to watch, check site rules, collect public pages on a schedule and store changes you can trust.
10 min readUpdated Nov 14, 2026By XPASS Editorial Team
Pricing moves quickly online. A competitor can change a headline price on a Tuesday morning, run a short promotion over a weekend or quietly adjust shipping costs, and you may only notice when your sales dip. Tracking those changes by hand works for five products. It stops working at fifty, and it never works at a steady rhythm because people forget, get busy or compare numbers from different days.
Automated competitor price tracking solves the rhythm problem. A small program visits a list of public product pages on a schedule, reads the price, saves it and tells you what changed. The idea is simple, but the details decide whether the result is useful and whether you stay on the right side of other people's websites. This guide shows how to begin in a modest, respectful way, and it builds on the basics in how to collect public product prices for market research and what web scraping is and why to start with public data.
Decide what you are tracking and why
The most common reason price trackers fail is not technical. It is that nobody wrote down the question they wanted answered. "Track our competitors" is not a question. "Tell me when any of the eight competing kettles in our catalogue drops more than a set amount below our own price" is a question, and it tells you exactly what to build.
Start with a short scope document, even if it is only a few lines in a notebook:
- Products. List the specific items you compete on. Start with ten to twenty at most. A small list lets you check results by eye and notice mistakes early.
- Competitors. Name the shops or marketplaces that matter to your customers. You do not need every seller on the internet.
- Fields. Decide which values you want: the displayed price, a crossed-out previous price, the currency, whether the item is in stock, and perhaps the shipping note. Each extra field is another thing that can break.
- Decision. Write down what you will do with the answer. Adjust your own price? Trigger a review once a week? Feed a report? If no decision depends on the data, you do not need to collect it.
- Rhythm. Decide how often prices realistically change in your category. Fashion and travel can move several times a day. Many household goods change a few times a month.
Keep a product matching table as well. Different shops use different titles, bundles and model codes for the same item, so you need your own identifier that maps to each competitor's URL. A spreadsheet with columns for your product ID, the competitor name, the competitor URL and the size or variant is enough to begin.
Check permission before you write any code
Automation does not change the ethics or the rules of looking at a page. Before you point any program at a website, spend ten minutes on three checks.
- Read the terms of use. Some sites allow personal or research access but forbid automated collection. Others publish an official data feed or API that is the intended route. If the terms prohibit automated access, do not do it. Look for a licensed data feed or ask the owner instead.
- Read robots.txt. The Robots Exclusion Protocol, described in RFC 9309, lets a site say which paths automated clients should avoid and sometimes how fast to go. It is not a security control, but it is a clear statement of the owner's wishes, and respecting it is the baseline of good behaviour.
- Stay on public pages. Collect only what any visitor can see without logging in. Do not collect personal data, do not use accounts that belong to someone else and do not touch checkout or account areas.
Also think about the source of your data. A price shown on a public product page is information the business chose to publish. Customer reviews, seller names and anything tied to an individual person can raise privacy questions, so leave them out unless you have a clear lawful reason and have checked local rules.
If a site clearly does not want automated visits, the right response is to stop, not to hide. Do not try to get around CAPTCHAs, rate limits or access controls. A different data source, a manual spot check or a conversation with the vendor is better than a conflict.
Build the smallest useful pipeline
A price tracker has five stages. Keep each one small and separate so you can test and repair them independently.
1. Fetch
Request the page over HTTPS using a standard HTTP client. Send a clear User-Agent string that identifies your tool and gives a contact address, so a site owner who sees your traffic can reach you. Follow redirects sensibly, set a timeout and record the HTTP status code, as defined in RFC 9110. A status such as 429 or 503 is the server asking you to slow down, and your code should respond by waiting longer, not by retrying immediately.
2. Extract
Pull the price out of the page. Many shops embed structured data in the page source that describes the product, price and currency in a machine-readable form, and this is usually more stable than the visual layout. When it is missing, use a clearly named selector for the price element. Always capture the currency separately and keep the raw text next to the parsed number so you can audit a strange value later.
3. Normalise
Convert the text into comparable values. Remove thousands separators, handle decimal commas, and record the currency code. Do not convert currencies at this stage. Save the original value and add a converted value in a separate column if you need one, with the exchange rate source and date.
4. Store
Use a table where each row is one observation: product ID, competitor, URL, price, currency, availability, region, timestamp, HTTP status and a short note. A simple database or even a CSV file is fine at first. Never overwrite old rows. History is the whole point, because a price trend is only visible when old values stay.
5. Compare and alert
Compare the newest observation with the previous one and with your own price. Alert only when a change crosses a threshold that matters, such as a difference larger than a set percentage or a competitor going out of stock. Too many alerts teach people to ignore them.
Schedule requests politely
The schedule is where good intentions often turn into a problem. A tracker that checks every page every minute is rarely more useful than one that checks daily, but it puts far more load on someone else's server.
Practical habits that keep you a good neighbour:
- Match frequency to reality. If a product's price changed twice in the last month, hourly checks add nothing. Start with once a day and increase only if the data shows you are missing changes.
- Spread requests out. Add a delay between requests to the same site and add some randomness, so you do not send a burst at the top of every hour.
- Run at quiet times. Early morning in the shop's local time is usually lighter than a weekend sale evening.
- Cache and conditional requests. If a page has not changed, HTTP lets you ask the server and receive a short reply instead of the full page. This saves both sides bandwidth.
- Back off on errors. When you see repeated errors, wait longer each time, then stop and look at the logs. A runaway retry loop is the fastest way to cause trouble.
- Honour crawl delay hints where robots.txt or the site's documentation gives them.
Write the schedule down in your scope document so that a colleague can see what the tracker does and why it does not run more often.
Where a proxy fits in a tracker
A proxy is an intermediary that sends your request to the website on your behalf, as described in the MDN overview of proxy servers and tunneling. For a price tracker, there are a few legitimate reasons to use one.
- Seeing regional prices. Many shops show different currencies, taxes, shipping options or even product ranges depending on where the visitor appears to be. If your customers are in several countries, a request that appears to come from each target region shows what they see. The follow-up guide on checking foreign product prices from different regions explains this in detail.
- Separating office traffic. Keeping research traffic apart from your office or home connection helps if you do not want normal browsing mixed with automated checks in the same log.
- Spreading a polite load. When you track many sites, a pool of addresses can keep each address's request pattern modest. This is about keeping per-address volume low, not about hiding abusive behaviour.
A proxy does not give permission. If a site forbids automated access, a proxy does not change that. It also does not make heavy request rates acceptable. Use it with the same rules, the same delays and the same respect for terms of service that you would use without it. If you want to look at proxy options, the proxy page describes what is on offer and what each product type is designed for, and the plan details there are the place to check what is included.
When you add a proxy to the pipeline, record which region and which address type was used for each observation. A price from a UK-looking request and a price from a Thai-looking request are different data points, and mixing them without a label produces confusing charts.
A worked example
Imagine you sell a mid-range espresso machine online and you compete with three shops. You decide to track the machine's displayed price and its stock status, once a day, from your home country only.
- You write a four-row matching table: your product ID, then one URL per competitor.
- You read each site's terms and robots.txt. Two sites allow public page access. The third states that automated collection is not allowed, but it offers a partner data feed. You request the feed and leave the page alone.
- For the two remaining pages, you write a fetch step with a clear User-Agent, a ten-second timeout and a pause of a few seconds between requests.
- You extract the price from the structured product data where it exists, falling back to a selector for the price element. You save the raw text, parsed number, currency and the check time.
- The job runs at six in the morning local time and writes one row per page.
- After two weeks you plot the history. One shop changes its price on Fridays. The other has not changed since you started. You now know that a weekly Friday check would catch most of the movement.
- You set an alert: if a competitor falls below your price by a margin you chose, send a short message to the pricing owner.
Nothing here was sophisticated. The value came from the scope, the permission checks and the consistent history. Later you might add a second country using a proxy located there, label those rows with the region and compare.
Limits and what to watch for
Even a well-built tracker has weak points. Knowing them keeps you from making decisions on bad numbers.
| Risk | What it looks like | What to do |
|---|---|---|
| Layout change | Price field suddenly empty or wrong | Log a failure, keep the last good value, alert, fix the selector |
| Dynamic pages | Price appears only after scripts run | Look for the structured data or an official feed before adding heavier tools |
| Personalised pricing | Price differs by login, device or history | Track only the public default view and label it as such |
| Promotions and coupons | A banner shows a lower price at checkout | Record the displayed price and note the promotion text separately |
| Currency and tax | Same product looks lower but excludes tax | Capture whether the price is tax-inclusive and the currency |
| Variants | Colour or size has a different price | Track the specific variant URL or option, not the parent page |
| Blocks and errors | Requests start failing | Slow down, review your pacing and terms, do not escalate |
Keep a few more cautions in mind:
- Treat data as a signal, not a verdict. A competitor's displayed price does not tell you their margin, their stock or whether they are about to sell out.
- Do not collect more than you need. Less data is lighter to store, easier to check and lower in risk.
- Review your tracker regularly. Once a month, spot check five products against the live pages. If any number is wrong, fix the cause before trusting the rest.
- Document everything. Note the sites you track, the permission basis, the schedule and the person responsible. If a site owner contacts you, you can answer calmly and stop at once if asked.
- Think about the downstream use. If your data goes into a public report or into an automatic repricing system, add human review. Automatic repricing based on a wrong parse can do real damage quickly.
Growing the tracker step by step
Once the first version has run reliably for a month, you can extend it in measured steps.
First, add products, but in small batches, and check the first results by eye. Second, add a second region if your customers justify it, keeping the region label on every row. Third, improve alerts: group several changes into a single daily digest instead of a flood of messages. Fourth, add a basic dashboard that shows each product's price history next to your own price. Fifth, consider related signals such as stock status, which the guide on price monitoring requirements for online stores discusses in more depth, and which can be even more telling than the price itself.
At each step ask the same questions: do we have permission, is the load on the other site modest, and does a real decision depend on this data? If the answer to any is no, pause and reconsider.
Summary
Automated competitor price tracking starts with a clear question, a short list of products and a permission check, not with code. Build a small pipeline of fetch, extract, normalise, store and compare, run it at a modest and polite rhythm, and keep a history of every observation with its region and time. A proxy can help you see how prices look from different regions and keep research traffic organised, but it never replaces respect for site terms, robots.txt and sensible request rates. Watch for layout changes, personalised pricing and tax differences, and treat the numbers as signals to review rather than final answers.
If you want to compare proxy options for regional price checks, the proxy page is the place to see what each type is meant for.
Frequently asked questions
Is it legal to track competitor prices automatically?
Looking at prices that a business shows publicly is a normal part of market research in many places, but the rules depend on your country, the site's terms and how you collect the data. Read the terms, respect robots.txt, avoid logged-in or private areas and ask a lawyer if the stakes are high.
How often should a price tracker check each page?
Match the schedule to how often prices really change. Many products need one check per day or less. Checking more often rarely adds value and puts extra load on someone else's server, which can lead to blocks.
Do I need a proxy to track competitor prices?
Not always. A proxy becomes useful when you need to see the price a visitor in another country or region would see, or when you must keep your own office address out of a log. It never replaces permission or polite request rates.
What should I store for each price check?
Store the product identifier, the URL, the price and currency as text, the availability note, the time of the check, the region you checked from and an HTTP status. This lets you explain every number later and spot errors.
What do I do when a page layout changes and my tracker breaks?
Treat a failed parse as a signal, not as a price of zero. Log the failure, keep the last good value, alert yourself and update the selector. Small, well-named extraction rules are easier to repair than one large script.
References
About the author

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 plansKeep reading

Proxy Guides
How to Collect Public Product Price Data for Market Research
Price data is only useful if it answers a clear question. This guide covers planning, responsible collection, cleaning and storage of public product prices.
10 min read

Proxy Guides
How to Check Foreign Product Prices From Different Regions
Shops often show different prices, currencies and shipping by visitor location. This guide explains why, how to compare fairly and how a proxy helps you see the local view.
10 min read

Proxy Guides
What Is Web Scraping, and How to Start with Public Data
Web scraping means collecting data from web pages with software. This guide explains how it works and how to start responsibly with public data and polite requests.
10 min read