Skip to content

USE CASE / COMMERCE & OPERATIONS

Amazon proxy workflows

Use permitted public Amazon observations to compare product availability and presentation under a controlled delivery and visitor context.

In this guide

WORKFLOW SNAPSHOT

  • Track a known product while keeping delivery location, seller, and condition explicit.
  • Suggested starting behavior: Static assignment
  • Validate the real application and destination

A practical Amazon workflow

Track a known product while keeping delivery location, seller, and condition explicit.

  • Record the product identifier and selected variation.
  • Keep delivery destination and browser state consistent.
  • Separate first-party offers, marketplace sellers, and unavailable items.

Why keep an Amazon product and delivery observation coherent?

Keep one assignment through a known product observation and its delivery context. A product page can display different sellers, conditions and availability. Changing route alone does not guarantee that the resulting offer is comparable.

Which Amazon seller, condition and delivery fields matter before scale?

An exit country is not the same as the delivery postcode used by a marketplace. Prices and availability can change without a proxy change.

Check the selected offer and product identity before comparing values over time. Prefer approved data interfaces when suitable.

Verify the Amazon connection boundary

Record the product identifier, seller, condition, quantity, currency, delivery location and observation time. Separate a displayed page price from shipping, tax or account-specific benefits that have not been verified.

Verify the document behind an Amazon offer observation

Fetches one product-page response to check document identity and preserve the raw availability or offer text that the server returned.

  1. 01
    Generate your endpoint

    Choose HTTP / HTTPS and Sticky session for the complete workflow 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 a permitted public Amazon product URL for a known product and variation, with seller, condition and intended delivery location captured in your observation record.

    Example URL · replace placeholders with your targethttps://www.amazon.com/dp/PRODUCT_ASIN

    Set PS_EXPECT_TEXT to the known product identifier expected in the product document. This optional check inspects the returned text without running JavaScript.

ps_amazon.pyFetches one product-page response to check document identity and preserve the raw availability or offer text that the server returned.
Before you runPython 3.10+ · python -m pip install requests · python ps_amazon.py
# Fetches one product-page response to check document identity and preserve the raw availability or offer text that the server returned.
# Use a permitted public Amazon product URL for a known product and variation, with seller, condition and intended delivery location captured in your observation record.
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://www.amazon.com/dp/PRODUCT_ASIN
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("amazon-offer-document.html").write_bytes(body)
        print(json.dumps({
            "workflow": "amazon", "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

Check the product identifier, response status and access messages before treating the body as an offer. This client does not inherit your browser's delivery postcode or selected seller; verify those conditions separately before comparing price or availability.

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: monitor a product with a defined delivery destination

Choose a known product and variation, then record the selected offer, condition, seller, delivery context, and currency. A network-country observation and a delivery postcode are different inputs to the marketplace.

Classify unavailable and access-conditioned pages before extracting a price. Keep the observation time with the record so later comparisons are not made against stale offers.

Illustrative observation record · replace with your test data
{
  "product": "PUBLIC_PRODUCT_ID",
  "variation": "EXACT_VARIATION",
  "seller": "RECORD_SELLER",
  "delivery_context": "RECORD_CONTEXT",
  "observed_at": "RECORD_TIMESTAMP"
}

Amazon verification checklist

For this Amazon workflow, record identity, offer and delivery alongside the actual result. Use the evidence below to decide whether another observation is comparable before increasing the workload.

CheckpointHold constant or recordExpected evidence
IdentityProduct and variation identifierEquivalent product
OfferSeller and conditionComparable listing
DeliverySelected destination and currencyConsistent presentation context

Troubleshoot Amazon results and connection errors

SymptomCheck nextWhat the result tells you
Price differs unexpectedlyCompare seller and conditionAnother offer may be selected
US exit shows another delivery regionCheck site delivery selectionExit is not a delivery address
No price foundClassify page and availabilityDo not manufacture a valid offer

Compare like-for-like Amazon offers and availability messages

Start with a few known products and define the exact offer fields. Preserve raw text beside normalized values and mark unavailable fields explicitly. Before reporting a price change, confirm that seller, condition and delivery context still match the baseline.

A LITTLE CLARITY

Common questions.

Does a US proxy set an Amazon delivery address?

No. Delivery context and network exit are separate inputs.

What is the minimum comparable marketplace record?

A matched product and variant, selected offer, cost context, availability state, and observation time.

Which Amazon seller, condition and delivery fields matter before scale?

Record the product identifier, seller, condition, quantity, currency, delivery location and observation time. Separate a displayed page price from shipping, tax or account-specific benefits that have not been verified.

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 ↗