Setting Up a Proxy for Price Monitoring the Right Way
By the ProxyV4 Engineering Team · Updated:
A proxy for price monitoring gives your price checks an IP address in the market you track, so you see the prices, currency and shipping costs that local shoppers see. It is a location tool, not a way around a site's limits: collect public product pages only, follow robots.txt and the site's terms, use an official API or feed where one exists, and slow down when the site asks you to.
What a proxy for price monitoring actually solves
Many shops show prices by region. The same product can have a different price, currency, tax display or shipping estimate depending on where the visitor appears to be, and the shop usually decides that from the IP address. A price tracker running on a server in Germany will record German or international prices, not the US or Japanese ones you care about.
An exit IP in the market fixes that input. A fixed IP also makes your collector easy to recognize: if the site operator wants to contact you, allow-list you or ask you to slow down, they can see one consistent address and the contact details in your User-Agent instead of traffic spread over hundreds of IPs.
What a proxy should not do is spread requests to stay under a site's rate limits or switch addresses after a block. If a site limits automated access, the answer is to slow down, use its API, or ask for permission.
Public data, terms and robots.txt
Stick to pages anyone can open without logging in: product pages, category listings and public search results. Read the site's terms of service for rules on automated access, and check robots.txt for paths you should not fetch and any Crawl-delay. Do not collect personal data such as reviewer names, and do not fetch pages behind a login with a scraper.
Use an API or feed when one exists
Several large marketplaces offer sanctioned routes to product and price data, for example Amazon's Product Advertising API for affiliates and eBay's Browse API. Retailers you work with may provide product feeds, and paid price-intelligence services license data from many shops. An API is usually more stable than parsing HTML, and it comes with clear usage limits.
A polite price collector in Python
The script below routes a requests Session through one proxy, reads robots.txt through the same route, skips disallowed URLs, waits between pages, and backs off on HTTP 429 or 503, honoring Retry-After when the site sends it. It reads the price from the page's schema.org JSON-LD, which many shops publish for search engines, so you do not depend on fragile CSS selectors.
import json
import random
import time
import urllib.robotparser
import requests
from bs4 import BeautifulSoup
PROXY = "http://USER:PASS@IP:PORT"
UA = "PriceWatch/1.0 (+https://example.com/bot; [email protected])"
SITE = "https://shop.example.com"
session = requests.Session()
session.proxies = {"http": PROXY, "https": PROXY}
session.headers.update({"User-Agent": UA, "Accept-Language": "en-US,en;q=0.9"})
# Read robots.txt through the same proxy and session.
robots = urllib.robotparser.RobotFileParser()
robots.parse(session.get(f"{SITE}/robots.txt", timeout=15).text.splitlines())
pause = robots.crawl_delay(UA) or 10 # seconds between pages
def fetch(url, max_tries=5):
if not robots.can_fetch(UA, url):
print("Disallowed by robots.txt:", url)
return None
backoff = pause
for _ in range(max_tries):
r = session.get(url, timeout=15)
if r.status_code in (429, 503):
retry_after = r.headers.get("Retry-After", "")
time.sleep(int(retry_after) if retry_after.isdigit() else backoff)
backoff = min(backoff * 2, 600)
continue
r.raise_for_status()
return r
return None
def price_from_jsonld(html):
soup = BeautifulSoup(html, "html.parser")
for tag in soup.find_all("script", type="application/ld+json"):
try:
data = json.loads(tag.string or "")
except ValueError:
continue
for item in data if isinstance(data, list) else [data]:
offers = item.get("offers") if isinstance(item, dict) else None
if isinstance(offers, list):
offers = offers[0] if offers else None
if isinstance(offers, dict) and "price" in offers:
return offers["price"], offers.get("priceCurrency")
return None
for path in ["/p/sku-1001", "/p/sku-1002"]:
r = fetch(SITE + path)
if r is not None:
print(path, price_from_jsonld(r.text))
time.sleep(pause + random.uniform(0, 2))Install the dependencies with pip install requests beautifulsoup4. Put a real contact URL or email in the User-Agent so the site can reach you. If a page builds its price with JavaScript and has no JSON-LD, look for a public JSON endpoint the page itself calls, or render it with a headless browser at a low rate. More connection options are in the Python requests proxy guide.
Scheduling checks so they stay sustainable
Most price monitoring does not need high frequency. Match the schedule to how often prices really change in that category, and you will make far fewer requests than a naive crawler.
- Check what changed, not everything. Keep a list of the products you actually track instead of crawling whole catalogs.
- Cache and use conditional requests. If the site sends
ETagorLast-Modified, sendIf-None-MatchorIf-Modified-Sinceand treat a 304 as "no change". - One market per IP. Give each country its own proxy and keep cookies per market, so currency and region settings do not leak between runs.
- Spread runs out. Run checks over the day instead of in one burst at midnight.
- Stop on refusals. A 403 or a block page means the site does not want this traffic. Pause that site and review its terms rather than retrying from another address.
Handling 429 and 503 responses
HTTP 429 means too many requests; 503 often means the server is busy. In both cases wait, honor Retry-After if it is present, and double the wait on each repeat up to a ceiling, as the script does. Switching proxies on a 429 to keep the same pace is exactly what the limit is meant to prevent, and it can get the whole range blocked.
Making regional prices reliable
IP location is not the only input. A shop may also use a region cookie, the Accept-Language header, or a delivery postcode you choose on the page. Set these explicitly per market and store the currency code next to every price, so a run that silently fell back to a default region is easy to spot.
Datacenter or static ISP for competitor price tracking
For public product pages, a datacenter IP in the right country is usually enough. Static ISP addresses are registered to consumer internet providers, which is closer to what a home shopper uses; they make sense when you want the same view as a household connection in that market. Neither type changes what a site allows, so the rules above apply to both.
| Option | Fits | Watch out for |
|---|---|---|
| Official API or feed | Marketplaces and partners that offer one | Coverage and quota set by the provider |
| Private datacenter IPv4 | Regional prices on public pages, fixed schedule | Some sites treat hosting networks differently; respect their choice |
| Static ISP | Consumer-network view in the US or Vietnam | Fewer locations than datacenter |
| Paid price-intelligence data | Large catalogs across many shops | Licensing cost, less control over timing |
Where ProxyV4 fits a price tracking setup
ProxyV4 sells private datacenter IPv4 in seven countries (United States, Vietnam, Japan, South Korea, Singapore, United Kingdom, Hong Kong) and static ISP proxies in 23 countries. Each IP has one tenant for the whole term and stays the same while the proxy is active; renewing before expiry keeps the address, which matters if a retailer or partner has allow-listed it. Pricing is per IP per month, so a fixed set of market IPs gives a predictable bill, and traffic on private IPv4 and static ISP is not metered.
Every proxy supports HTTP(S) and SOCKS5 with username and password, delivered as one ip:port:user:pass line. On the order's page you choose HTTP only, SOCKS5 only or both on the same port. More on matching IPs to collection jobs is on the web scraping proxy page.
Where it does not fit: if your design depends on a new IP per request, ProxyV4 sells no rotating pools (the rotating line is waitlist only), no mobile proxies and no per-GB plans. IPv6 proxies are a separate product that only works on IPv6-ready sites. Live per-IP prices are on the pricing page; order one IP, test it against your real targets, then add markets. A proxy that fails for a technical reason, such as not connecting or the wrong location, is credited to your balance under the refund policy.
Troubleshooting price checks through a proxy
Separate proxy problems from site responses before changing your parser.
- 407 from the proxy. The username or password is wrong or badly encoded in the URL; see 407 Proxy Authentication Required.
- Timeouts before any response. Confirm the line works in the proxy checker and that your firewall allows outbound connections to the proxy port.
- Wrong currency. Look for a region cookie or a saved location, clear cookies for that market, and confirm the exit country with
https://proxyv4.com/api/my-ip. - Price missing. The shop may render prices client-side or show them only after a postcode is set; check the page's own network requests for a public endpoint.
- Repeated 403. Treat it as a refusal: stop collecting from that site and look for an API, a feed or permission.
Frequently asked questions
Is it legal to scrape competitor prices?
Collecting public prices is common, but the rules depend on your jurisdiction and the site's terms. Use public pages only, follow robots.txt and the terms, prefer an official API, and get legal advice for large commercial projects.
Why does a shop show a different price through a proxy?
The shop reads your IP location and may also use cookies, language and a delivery postcode to choose region, currency and taxes. A proxy changes only the IP part.
How many IPs do I need for price monitoring?
Usually one per market you track, sized so each IP stays at a pace the sites accept. More IPs should mean more markets, not faster requests to the same site.
Is bandwidth billed for heavy product pages?
No. Traffic on ProxyV4 private IPv4 and static ISP proxies is not metered; you pay per IP per month.
Can I keep the same IP if a retailer allow-lists it?
Yes. The IP stays the same while the proxy is active, and renewing before expiry keeps the same address.
Per-IP pricing makes daily checks predictable
Pick a fixed private IPv4 or static ISP address in each market you track, with HTTP(S) and SOCKS5 on one line and unmetered traffic. Start with one IP.
Compare plans