The problem
Your agent may be blocked when opening an Amazon page or struggle to separate the product details from ads and recommendations. It then lacks the information needed to compare products. It cannot safely guess the current price, availability, or selected size and color.
How NativePort helps
NativePort connects to Amazon through Oxylabs and gathers the available product details from a listing. Your agent can use that information to check the displayed price, explain the product, or compare it with another option. You can share the product link with your agent and tell it what you want to know.
Let your agent build it
You don’t need to write this code yourself. Copy the prompt and paste it into your agent. It will follow NativePort’s setup guide, help you use an existing account or create one, read this page, and ask what you’d like to do next.
View prompt
Help me use NativePort for this use case. 1. Read https://nativeport.ai/SKILL.md and follow its instructions to learn how to use NativePort. Save or update the skill if your environment supports it. 2. Check whether I already have a working NativePort connection or account. Reuse it if available. Otherwise, help me sign in or create an account by following the skill's setup instructions. Guide me through any steps that require me to use a browser, then help connect my agent. Keep credentials private. 3. Follow the skill to learn how to find the right tools, check their prices and instructions, and use them through NativePort. 4. Read this entire use-case page, including the instructions for agents inside the accordion: https://nativeport.ai/use-cases/extract-amazon-product-data/ Once setup is complete and you have read the page, briefly explain what you can help me do and ask me what I would like to do next. Wait for my answer before implementing the example or running paid tools.
Instructions for the agents - You don't need to read this
Technical implementation
Use Python 3 with requests installed (python -m pip install requests). Set NATIVEPORT_API_KEY in your environment to your NativePort key. Run the snippets on your server, where your key stays private.
Set AMAZON_ASIN to the ten-character identifier after /dp/ in the product URL. This example reads one listing on Amazon.com; domain selects the marketplace.
import json
import os
import requests
BASE = "https://api.nativeport.ai"
HEADERS = {"Authorization": f"Bearer {os.environ['NATIVEPORT_API_KEY']}"}
response = requests.post(
BASE + "/oxylabs",
headers=HEADERS,
json={"source": "amazon_product", "domain": "com",
"query": os.environ["AMAZON_ASIN"], "parse": True},
timeout=120,
)
response.raise_for_status()
results = response.json().get("results", [])
if not results:
raise RuntimeError("No product result returned")
item = results[0]
if item.get("status_code") != 200:
raise RuntimeError("Amazon page could not be retrieved")
product = item.get("content")
if not isinstance(product, dict) or not product.get("title"):
raise RuntimeError("No parsed product details returned")
print(json.dumps(product, indent=2, ensure_ascii=False))Keep the ASIN, marketplace, and retrieval time with the result. Check the selected variant, currency, and availability before comparing prices; the displayed amount may exclude shipping or depend on delivery location. A missing price should remain missing in your agent’s answer. The Amazon product request reference documents the available controls. For customer feedback, use the Amazon reviews guide.
Tool costs
| Tool used in the example | Price per call |
|---|---|
| Oxylabs — Amazon product lookup | $0.002638 / call |
Prices in USD. Usage-based tools have no fixed per-call price. View pricing.