eBay scraper
The Zenrows eBay scraper turns an eBay search, listing or sold-items URL into structured data: item ID, title, condition, price, coupon price, Best Offer, product rating, delivery, sold count and seller feedback. You send the URL, Fetch in Adaptive Stealth Mode opens the page, and Extract returns the fields. Run it from an API call, the CLI or an AI agent.
- Site
ebay.com- Returns
- Listings, prices, condition, sold counts and seller feedback
- Updated
{
"search_context": {
"query": "nintendo switch",
"total_results_label": "9,900+ results for nintendo switch",
"sort": "Best Match"
},
"results": [
{
"position": 1,
"item_id": "398200022846",
"epid": "14035048417",
"title": "Nintendo Switch Lite Handheld System - Turquoise / Light Blue",
"condition": "Very Good - Refurbished",
"price": 119.99,
"coupon_price": 99.99,
"currency": "GBP",
"best_offer": true,
"rating": 5.0,
"review_count": 58,
"delivery": "Free delivery in 3 days",
"returns": "Free returns",
"sold_count": "6 sold",
"stock_label": "Last one",
"seller": {
"name": "kester-trading",
"positive_feedback_percent": 99.5,
"feedback_count": 841
},
"item_url": "https://www.ebay.co.uk/itm/398200022846",
"image_url": "https://i.ebayimg.com/images/g/VcQAAeSwOoppNLYZ/s-l500.webp"
}
]
}{
"url": "https://www.ebay.co.uk/sch/i.html?_nkw=nintendo+switch",
"mode": "auto",
"extract": "auto",
"proxy_country": "gb"
}Sample output for an eBay UK search, built from a live request on Oct 20, 2026, trimmed for length. A field is returned when the listing shows it.
What data can you scrape from eBay?
A search page returns one record per listing plus the search context and the filter counts eBay shows in the sidebar.
These are the fields teams use most, with the path where each lives in the JSON.
| Field | What it holds | Example |
|---|---|---|
results[]. |
eBay's listing number, the ID in every /itm/ URL |
398200022846 |
results[]. |
eBay's catalog product ID, shared by every listing of the same product | 14035048417 |
results[]. |
Listing title as the seller wrote it | Nintendo Switch Lite Handheld System… |
results[]. |
New, used, refurbished grade or for parts | Very Good - Refurbished |
results[]. |
The price shown on the card, in the site's currency | 119.99 |
results[]. |
The price after a seller coupon, when one applies | 99.99 |
results[]. |
Whether the seller accepts offers | true |
results[]. |
Product rating out of 5 for the catalog product | 5.0 |
results[]. |
Number of product ratings behind that score | 58 |
results[]. |
Delivery cost or promise | Free delivery in 3 days |
results[]. |
Units sold on this listing | 6 sold |
results[]. |
Scarcity or demand label, such as watchers or last one | Last one |
results[]. |
Seller's eBay user ID | kester-trading |
results[]. |
Positive feedback over the last 12 months | 99.5 |
results[]. |
Seller's feedback score | 841 |
search_ |
How many listings match the query | 9,900+ results for nintendo switch |
filters. |
Sidebar refinements with their listing counts | { "label": "Nintendo Switch Lite", "count": 1932 } |
How to scrape eBay with Zenrows
- Create a free Zenrows account and copy your API key from the dashboard.
- Build the eBay URL in your browser. A search (
/sch/i.html?_nkw=…), a single listing (/itm/ITEM_ID), a sold-items search or a seller's store all work. Apply eBay's own filters first: condition, Buy It Now, sold items, item location. They all live in the URL. - Send it with the default configuration: Adaptive Stealth Mode to open the page, Extract to return the fields, and the country of the eBay site you are reading (
gbfor ebay.co.uk,usfor ebay.com,defor ebay.de). - Read
parsedfrom the response. To keep only the price and seller, list those paths and the response returns just them. - Move to Batch when the query works: one task per keyword, page number or item ID, with that ID as your
external_id.
# pip install requests
import json
import requests
params = {
"apikey": "YOUR_ZENROWS_API_KEY",
"url": "https://www.ebay.co.uk/sch/i.html?_nkw=nintendo+switch",
"mode": "auto", # Adaptive Stealth Mode
"extract": "auto", # structured JSON
"proxy_country": "gb", # ebay.co.uk prices and delivery
}
response = requests.get("https://api.zenrows.com/v1/", params=params, timeout=180)
response.raise_for_status()
data = response.json()["parsed"]
for item in data["results"]:
print(item["item_id"], item["price"], item["condition"], item["seller"]["name"])
print(json.dumps(data, indent=2))// Node 18+ (built-in fetch)
const params = new URLSearchParams({
apikey: "YOUR_ZENROWS_API_KEY",
url: "https://www.ebay.co.uk/sch/i.html?_nkw=nintendo+switch",
mode: "auto",
extract: "auto",
proxy_country: "gb",
});
const response = await fetch(`https://api.zenrows.com/v1/?${params}`, {
signal: AbortSignal.timeout(180_000),
});
if (!response.ok) throw new Error(`${response.status}: ${await response.text()}`);
const { parsed } = await response.json();
for (const item of parsed.results) console.log(item.item_id, item.price, item.sold_count);curl "https://api.zenrows.com/v1/?apikey=YOUR_ZENROWS_API_KEY&url=https%3A%2F%2Fwww.ebay.co.uk%2Fsch%2Fi.html%3F_nkw%3Dnintendo%2Bswitch&mode=auto&extract=auto&proxy_country=gb"
# Only the fields you need
curl "https://api.zenrows.com/v1/?apikey=YOUR_ZENROWS_API_KEY&url=https%3A%2F%2Fwww.ebay.co.uk%2Fsch%2Fi.html%3F_nkw%3Dnintendo%2Bswitch&mode=auto&extract=auto&proxy_country=gb&extract_fields=results.item_id%2Cresults.price%2Cresults.condition%2Cresults.seller"# pip install zenrows
from zenrows import ZenRowsClient
client = ZenRowsClient("YOUR_ZENROWS_API_KEY")
response = client.get(
"https://www.ebay.co.uk/sch/i.html?_nkw=nintendo+switch&LH_Sold=1&LH_Complete=1",
params={"mode": "auto", "extract": "auto", "proxy_country": "gb"},
)
for item in response.json()["parsed"]["results"]:
print(item["title"], item.get("price"), item.get("sold_count"))Input
The scraper takes one eBay URL per request, plus the options below.
A Batch job applies the same options to every task, so a price tracker for 500 keywords is a list of search URLs with these settings.
| Parameter | Type | Default | Description |
|---|---|---|---|
url |
string | required | Any eBay page: search (/sch/i.html?_nkw=…), listing (/itm/ITEM_ID), sold-items search, category or seller store, on any eBay country site |
mode |
string | auto |
Adaptive Stealth Mode: starts with the lightest setup and adds rendering and protected-site handling only when the page needs them |
extract |
string | auto |
Returns the page's fields as JSON in parsed, next to the raw html |
extract_ |
string | all fields | Comma-separated paths to keep, such as results.item_id,results.price,results.seller |
proxy_ |
string | any | Two-letter country code. eBay sets currency, delivery estimates and "items located in" results by the visitor's country |
wait_ |
string | none | A CSS selector to wait for before the page is read |
session_ |
integer | none | Keep the same session across several requests, up to 10 minutes, for example while you page through one search |
{
"type": "regular",
"status": "closed",
"zenrows_params": {
"mode": "auto",
"extract": "auto",
"proxy_country": "gb"
},
"tasks": [
{ "url": "https://www.ebay.co.uk/sch/i.html?_nkw=nintendo+switch", "external_id": "search-switch" },
{ "url": "https://www.ebay.co.uk/sch/i.html?_nkw=nintendo+switch&LH_Sold=1&LH_Complete=1", "external_id": "sold-switch" },
{ "url": "https://www.ebay.co.uk/itm/398313917788", "external_id": "item-398313917788" }
]
}
Output
Every response is JSON with two keys: html, the page as eBay served it, and parsed, the structured record. A search page returns results[] with one entry per listing card, the search context and the sidebar filters. The sample below comes from the same live eBay UK search, with two more listings and the filter counts.
Need a spreadsheet? Load results into pandas with pd.json_normalize(...) and write CSV or Excel. Need the page for an LLM? Ask for Markdown instead of JSON.
{
"search_context": {
"query": "nintendo switch",
"total_results_label": "9,900+ results for nintendo switch",
"sort": "Best Match"
},
"results": [
{
"position": 2,
"item_id": "398313917788",
"epid": "19037929451",
"title": "Nintendo Switch Lite 32GB Handheld Console - Coral / Pink",
"condition": "Good - Refurbished",
"price": 109.99,
"coupon_price": 89.99,
"currency": "GBP",
"best_offer": true,
"rating": 5.0,
"review_count": 49,
"delivery": "Free delivery in 3 days",
"delivery_date": "Get it by Fri 23 Oct",
"returns": "Free returns",
"sold_count": "8 sold",
"stock_label": "Last one",
"seller": { "name": "kester-trading", "positive_feedback_percent": 99.5, "feedback_count": 841 },
"item_url": "https://www.ebay.co.uk/itm/398313917788",
"image_url": "https://i.ebayimg.com/images/g/UU8AAeSwINxqX6cx/s-l500.webp"
},
{
"position": 3,
"item_id": "920011570081",
"epid": "232787957",
"title": "Nintendo Switch V1 Console with Random Coloured Joy-Con Controllers, 2017",
"condition": "Good - Refurbished",
"price": 138.99,
"coupon_price": 118.99,
"currency": "GBP",
"best_offer": true,
"rating": 5.0,
"review_count": 350,
"delivery": "Free delivery in 3 days",
"returns": "Free returns",
"stock_label": "6 watchers",
"seller": { "name": "kester-trading", "positive_feedback_percent": 99.5, "feedback_count": 841 },
"item_url": "https://www.ebay.co.uk/itm/920011570081",
"image_url": "https://i.ebayimg.com/images/g/kzIAAeSw~fxqwaYK/s-l500.webp"
}
],
"filters": {
"model": [
{ "label": "Nintendo Switch", "count": 6349 },
{ "label": "Nintendo Switch Lite", "count": 1932 },
{ "label": "Nintendo Switch (OLED Model)", "count": 1696 }
],
"condition": [
{ "label": "New", "count": 2775 },
{ "label": "Very Good - Refurbished", "count": 121 }
]
}
}
Connect the MCP server (Claude Code)
claude mcp add zenrows -e ZENROWS_API_KEY=YOUR_ZENROWS_API_KEY -- npx -y @zenrows/mcp
MCP config (Cursor, Claude Desktop, Windsurf)
{
"mcpServers": {
"zenrows": {
"command": "npx",
"args": ["-y", "@zenrows/mcp"],
"env": { "ZENROWS_API_KEY": "YOUR_ZENROWS_API_KEY" }
}
}
}
Or run the CLI
npx -y @zenrows/cli init
zenrows extract "https://www.ebay.co.uk/sch/i.html?_nkw=nintendo+switch" --proxy-country gb
Then ask your agent
Use Zenrows to search ebay.co.uk for "nintendo switch lite", sold items only,
and give me a table of the last 20 sales with title, condition and sold price,
then tell me the median price for refurbished units.
Scrape eBay from your coding agent
Claude Code, Cursor, Codex and any MCP client can scrape eBay from a prompt.
The agent sends the same Fetch and Extract request shown above and reads the same JSON. Connect the Zenrows MCP server once, or install the CLI and let the agent run it in the terminal. No key is needed to try either: the first call creates a free account.
Scrape eBay at scale with Batch and Crawl
Batch runs a list of eBay URLs as one job, in parallel, with your own ID on each result. Use it for a daily sweep of the searches you track, one task per keyword and results page, or to refresh a list of item IDs and catch price changes and ended listings.
Crawl finds the listing URLs for you. Start it on a search or a seller's store, keep only links that contain /itm/, and it returns every listing page it reaches. Feed those item URLs back into Batch for scheduled checks.
Scheduled jobs run the same Batch job on a timetable, on Zenrows' side: every few hours, once a day, at set times on chosen days, or once at a future date. Each run keeps its own results, a webhook can tell your app when a run finishes, and you can pause or resume the schedule at any time, with no cron server to keep alive.
curl -X POST "https://async.api.zenrows.com/v1/jobs" \
-H "X-API-Key: YOUR_ZENROWS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"type": "regular",
"status": "closed",
"zenrows_params": { "mode": "auto", "extract": "auto", "proxy_country": "gb" },
"tasks": [
{ "url": "https://www.ebay.co.uk/sch/i.html?_nkw=nintendo+switch", "external_id": "search-switch" },
{ "url": "https://www.ebay.co.uk/sch/i.html?_nkw=nintendo+switch&_pgn=2", "external_id": "search-switch-p2" }
]
}'
# Read the results when the job finishes
curl "https://async.api.zenrows.com/v1/jobs/JOB_ID/results?status=successful" \
-H "X-API-Key: YOUR_ZENROWS_API_KEY"# ebay.jsonl: one {"url": "...", "external_id": "...", "extract": "auto"} per line
zenrows batch create ebay.jsonl --proxy-country gb --wait
zenrows batch results <job-id> --out ebay-listings.jsonlcurl -X POST "https://api.zenrows.com/v1/crawls" \
-H "X-API-Key: YOUR_ZENROWS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://www.ebay.co.uk/sch/i.html?_nkw=nintendo+switch",
"depth": 1,
"max_pages": 200,
"include_patterns": ["/itm/"]
}'# Runs every day on Zenrows' side; each run keeps its own results
curl -X POST "https://async.api.zenrows.com/v1/jobs" \
-H "X-API-Key: YOUR_ZENROWS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"type": "scheduled",
"status": "closed",
"schedule": {
"rate": {
"every": 1,
"unit": "day"
}
},
"zenrows_params": {
"mode": "auto",
"extract": "auto",
"proxy_country": "gb"
},
"tasks": [
{
"url": "https://www.ebay.co.uk/sch/i.html?_nkw=nintendo+switch",
"external_id": "ebay"
}
]
}'
# Or at set times: "schedule": { "calendar": { "times_of_day": ["09:00"],
# "cadence": { "weekly": { "days": ["mon", "thu"] } } }, "timezone": "Europe/Madrid" }What teams do with eBay data
| Use case | Data they pull | Who runs it |
|---|---|---|
| Resale price research | Sold prices, condition and sale count per model from sold-items searches | Resellers, refurbishers and trade-in desks |
| Competitor price monitoring | Price, coupon price, Best Offer and delivery for the same product ID across sellers | Marketplace sellers and pricing teams |
| Market sizing by model | Listing counts per model, condition and brand from the search filters | Category managers and analysts |
| Seller vetting | Feedback score, positive percentage and the seller's live listings | Sourcing teams and marketplace buyers |
| Brand and counterfeit watch | Titles, prices far below retail and the sellers behind them | Brand protection teams |
| Collectibles and parts valuation | Sold history for rare items, graded cards and spare parts | Dealers, insurers and appraisers |
| Product catalogs and AI agents | The listing record, or the page as Markdown | Data and AI teams |
Tips for scraping eBay
- Put the filters in the URL.
LH_Sold=1&LH_Complete=1shows sold items,LH_BIN=1keeps Buy It Now,LH_ItemCondition=1000keeps new items and_udlo/_udhiset the price range. Click the filter on eBay once, then copy the URL. - Page with
_pgn._pgn=2is the second page of results._ipgsets how many listings a page shows, which cuts the number of requests per query. - Use the clean listing URL.
https://www.ebay.co.uk/itm/ITEM_IDopens the same listing as the long URL in your browser bar. Drop the tracking parameters and keep the item ID as your key. - Group listings by
epid. Different sellers list the same product under different titles. The catalog ID joins them, so you can compare prices for one product across every seller. - Request from the site's country. ebay.co.uk prices in pounds and estimates UK delivery, ebay.de in euros. Match the country to the site you read, and read each country site separately.
- Treat sold counts and labels as text. "6 sold", "6 watchers" and "Last one" sit in the same spot on the card. Parse the number when you need it and keep the label for context.
More eBay and marketplaces & classifieds scrapers
-
ebay.com
eBay sold listings scraper
Completed sales with final sold price, sale date, condition and bid count.
-
ebay.com
eBay search scraper
Listings for any eBay search with price, format, bids, condition and shipping cost.
-
ebay.com
eBay seller scraper
Seller feedback score, positive percentage, store items and recent feedback comments.
-
yad2.co.il
Yad2 scraper
Israeli classifieds for real estate, cars and secondhand items with prices and locations.
-
craigslist.org
Craigslist scraper
Local classifieds for housing, cars, jobs and items with prices and posted dates.
-
olx.com
OLX scraper
Classified ads for cars, property and goods with prices, locations and seller type.
-
vinted.com
Vinted scraper
Secondhand clothing listings with brands, prices, sizes, condition and favourite counts.
-
leboncoin.fr
Leboncoin scraper
French classified ads for cars, property and goods with prices and locations.
-
tcgplayer.com
TCGplayer scraper
Trading card listings with market prices for Magic, Pokémon and Yu-Gi-Oh cards.
Frequently asked questions
-
Collecting public eBay data, such as listing titles, prices, conditions and sold prices shown to every visitor, is common practice for price research and market analysis. Seller user IDs and feedback can count as personal data when they identify a private person, and personal data is protected by laws such as the GDPR and the CCPA, so collect only what you have a legitimate reason to use. Check eBay's user agreement for your use case and ask your lawyer if you are unsure.
-
Yes. eBay's developer program offers the Browse API for searching active listings and reading item details, with an OAuth token and a daily call limit per application. The older Finding API, which many tools used for sold and completed listings, was retired in 2025, and the Marketplace Insights API that returns sold-item data is restricted to approved partners. Teams scrape eBay when they need sold prices, the filter counts or the page exactly as a buyer sees it.
-
Search results (
/sch/i.html), sold and completed searches, single listings (/itm/ITEM_ID), category pages and seller stores, on ebay.com, ebay.co.uk, ebay.de and the other eBay country sites. Send the URL as it appears in your browser. -
Yes. Add
LH_Sold=1&LH_Complete=1to a search URL and eBay shows completed sales with their final price. Send that URL like any other search, and page through it with_pgnto collect the full history eBay shows for the query. -
Yes. Each eBay country site has its own domain, currency and delivery estimates. Send the URL of the site you want and set the country to match, for example ebay.de with Germany, and the response shows what a buyer there sees.
-
Send a GET request to
https://api.zenrows.com/v1/with your API key, the eBay URL, Adaptive Stealth Mode and Extract turned on, as in the Python example above. The response'sparsedkey holds the listings as a Python dictionary. Thezenrowspackage on PyPI wraps the same request. -
Send one URL per request, or a whole list as a Batch job that runs the URLs in parallel and keeps your own ID on each result. One Batch job accepts more than 10,000 URLs, sent inline or as a CSV file, so a full keyword list with every results page fits in one job.
-
No. Extract returns each field by name, so your code reads
parsedinstead of parsing eBay's HTML. For a field of your own, such as an item specific from the listing page, send a separate request with CSS selectors instead of Extract. -
Yes. Connect the Zenrows MCP server to Claude, Cursor, Codex or any MCP client, or give your agent the Zenrows CLI. Ask for the searches or listings you want in plain language and the agent calls Fetch and Extract for you.
-
Yes. Create a scheduled Batch job with your eBay URLs and the same settings as a single request, and Zenrows runs it on its side: every few hours, once a day, at set times on chosen days, or once at a future date. Each run keeps its own results, a webhook can notify your app when a run finishes, and the schedule can be paused or resumed at any time.
-
Zenrows works with n8n, Make, Zapier, Clay, Dify, LangChain, LlamaIndex, CrewAI and Mastra, plus the Python, Node.js and Go SDKs and any HTTP client. Send listings to Google Sheets, a database or a data warehouse from the workflow tool you already use. See the integrations page for the full list.
-
JSON by default, with the structured record in
parsedand the original page inhtml. You can also ask for the page as Markdown or plain text, which is what most LLM and RAG pipelines want.