The problem
Your agent may struggle to pick out the important item details when reading an eBay page. It needs those details clearly separated before it can compare listings. Similar titles can hide differences in condition, included accessories, or offers that the agent should not guess.
How NativePort helps
NativePort connects to eBay through Zyte and gathers the available details from an item listing. Your agent can use those details to help compare offers and explain differences between items. It can keep the original links so you can inspect each listing yourself.
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-ebay-listings/ 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 EBAY_ITEM_URL to the full URL of one public eBay item page. The request asks for Zyte’s product extraction and preserves the source URL.
import json
import os
import requests
BASE = "https://api.nativeport.ai"
HEADERS = {"Authorization": f"Bearer {os.environ['NATIVEPORT_API_KEY']}"}
url = os.environ["EBAY_ITEM_URL"]
response = requests.post(
BASE + "/zyte",
headers=HEADERS,
json={"url": url, "product": True},
timeout=120,
)
response.raise_for_status()
product = response.json().get("product")
if not isinstance(product, dict) or not product.get("name"):
raise RuntimeError("No product details extracted from this URL")
print(json.dumps({"source_url": url, "product": product},
indent=2, ensure_ascii=False))Inspect the returned fields before comparing offers. If condition, shipping, seller terms, or auction details are absent, your agent should say they are unknown. Treat the result as a snapshot of one listing; this example does not search the eBay catalog or place bids. Repeat the request for another item URL when you need a comparison.
Tool costs
| Tool used in the example | Price per call |
|---|---|
| Zyte — product extraction from one eBay listing | $0.00211 / call |
Prices in USD. Usage-based tools have no fixed per-call price. View pricing.