Skip to content

USE CASE / COMMERCE & OPERATIONS

Marketplace price comparison proxy workflows

Use consistent public-price observations to investigate marketplace differences. Keep network location, currency, fees, and product identity in the same record.

In this guide

WORKFLOW SNAPSHOT

  • Compare the same item across permitted listings without treating a displayed spread as guaranteed profit.
  • Suggested starting behavior: Per-request rotation
  • Validate the real application and destination

A practical Marketplace price comparison workflow

Compare the same item across permitted listings without treating a displayed spread as guaranteed profit.

  • Match product identifiers, condition, seller, and availability.
  • Normalize currency and record tax or shipping presentation.
  • Timestamp observations closely enough for the research question.

When should marketplace comparisons use independent assignments?

Use independent assignments for independent permitted listing observations if needed, while keeping each item and its delivery context coherent. A changed currency or shipping region can create a price difference unrelated to a market opportunity.

Which costs and product conditions must match before comparing spreads?

Listed prices can be stale, conditional, or unavailable at checkout. A proxy does not establish execution price or financial opportunity.

Validate matched items and total displayed conditions before drawing a comparison. Keep automated purchasing outside the observation job.

Verify the Marketplace price comparison connection boundary

Record the same product variant, seller, condition, currency, tax and delivery basis. Include fees and availability where known. A displayed spread is not a guarantee that the item can be bought and resold at that margin.

Capture a comparable marketplace offer document

Fetches a single offer document and preserves its response fingerprint for a later comparison with an equivalent listing.

  1. 01
    Generate your endpoint

    Choose HTTP / HTTPS and Every request for independent observations in Configure proxies.

  2. 02
    Set your proxy URL

    Set PS_PROXY_URL to http://USERNAME:PASSWORD@HOST:PORT using your generated endpoint. For IP authentication, whitelist your machine and use http://HOST:PORT. Percent-encode special characters in credentials; these are proxy credentials, separate from your account password or API key.

  3. 03
    Choose the destination

    Set PS_TARGET_URL before running the code. Use one permitted public listing URL for the exact product, seller and condition in your comparison; record currency, shipping destination and observation time alongside it.

    Example URL · replace placeholders with your targethttps://example.com/marketplace/offers/matched-item

    Set PS_EXPECT_TEXT to the product identifier shared by the offers you intend to compare. This optional check inspects the returned text without running JavaScript.

ps_arbitration.pyFetches a single offer document and preserves its response fingerprint for a later comparison with an equivalent listing.
Before you runPython 3.10+ · python -m pip install requests · python ps_arbitration.py
# Fetches a single offer document and preserves its response fingerprint for a later comparison with an equivalent listing.
# Use one permitted public listing URL for the exact product, seller and condition in your comparison; record currency, shipping destination and observation time alongside it.
import hashlib
import json
import os
import time
from pathlib import Path
from urllib.parse import urlsplit

import requests

class InspectSession(requests.Session):
    # Leave redirect bodies streamed instead of preparing the next request.
    def resolve_redirects(self, *args, **kwargs):
        return iter(())

proxy = os.environ["PS_PROXY_URL"]  # HTTP endpoint from ProxySight
target = os.environ["PS_TARGET_URL"]  # https://example.com/marketplace/offers/matched-item
if urlsplit(proxy).scheme != "http":
    raise ValueError("Use your generated HTTP proxy endpoint for this example.")
if urlsplit(target).scheme not in ("http", "https"):
    raise ValueError("PS_TARGET_URL must be an HTTP or HTTPS URL.")

with InspectSession() as client:
    client.trust_env = False  # No ambient proxy, NO_PROXY or netrc overrides
    started = time.monotonic()
    with client.get(
        target,
        proxies={"http": proxy, "https": proxy},
        headers={"Accept-Language": "en-US,en;q=0.9"},
        timeout=(10, 20), allow_redirects=False, stream=True,
    ) as response:
        body = bytearray()
        for chunk in response.iter_content(16384):
            body.extend(chunk)
            if len(body) > 1048576:
                raise RuntimeError("Response exceeds this example's 1 MiB limit.")
        Path("marketplace-offer-observation.html").write_bytes(body)
        print(json.dumps({
            "workflow": "arbitration", "status": response.status_code,
            "elapsed_ms": round((time.monotonic() - started) * 1000),
            "bytes": len(body), "sha256": hashlib.sha256(body).hexdigest(),
            "headers": {name: response.headers.get(name) for name in ['Content-Type', 'Content-Language', 'Location']},
        }, indent=2))
        expected = os.getenv("PS_EXPECT_TEXT", "")
        if expected:
            text = body.decode(response.encoding or "utf-8", errors="replace")
            print("Expected text:", "found" if expected in text else "absent")
        # A 200 status alone does not prove the intended page was returned.
        # Inspect redirects, login prompts, 403 and 429 before another request.
Understand the result

Verify item identity in the body and check status and cache age before reading raw price text. A GET does not normalize currency, discover all fees or establish an executable profit margin; compare only matched products and equivalent cost conditions.

Response bodies are limited to 1 MiB for a small diagnostic. TLS verification stays enabled; redirects are left for you to inspect. Connection guide

Example: normalize marketplace observations before comparing spreads

Choose identical product or asset identifiers and record condition, seller, currency, fees, and observation time. A public displayed difference is a research result, not proof that both sides can be executed at those prices.

Keep automated purchasing and financial decisions outside this collection task. First establish that the underlying observations are comparable and fresh.

Illustrative observation record · replace with your test data
{
  "item": "MATCHED_ITEM_ID",
  "offer_a": "RECORD_CONTEXT",
  "offer_b": "RECORD_CONTEXT",
  "observed_at": "RECORD_TIMESTAMP",
  "execution": "NOT_PERFORMED"
}

Marketplace price comparison verification checklist

For this Marketplace price comparison workflow, record identity, cost context and time alongside the actual result. Use the evidence below to decide whether another observation is comparable before increasing the workload.

CheckpointHold constant or recordExpected evidence
IdentityMatched item, variant, and conditionEquivalent resource
Cost contextCurrency, fees, and deliveryComparable displayed totals
TimeNearby observation windowA freshness-qualified comparison

Troubleshoot Marketplace price comparison results and connection errors

SymptomCheck nextWhat the result tells you
Large apparent spreadCheck variant and cost contextUnmatched offers can explain it
One offer unavailablePreserve unavailable stateDo not assume executable inventory
Prices change before reviewRecord timestampsThe comparison has a time limit

Keep displayed price differences separate from a verified margin

Build a small comparison sheet with raw values and normalized units. Mark missing costs as unknown and verify outliers on the source listing. Keep observation times close enough that the comparison does not mix unrelated market windows.

A LITTLE CLARITY

Common questions.

Does a proxy make price arbitration profitable?

No. Routing does not establish trade execution, fees, availability, or profit.

What separates a price observation from a trading opportunity?

Execution, inventory, fees, eligibility, and timing must be established independently.

Which costs and product conditions must match before comparing spreads?

Record the same product variant, seller, condition, currency, tax and delivery basis. Include fees and availability where known. A displayed spread is not a guarantee that the item can be bought and resold at that margin.

PUT THE KNOWLEDGE TO WORK

Your workflow.
Your next connection.

Try the controls, choose your IP behavior, and start with one clear connection check.

Explore the configurator ↗