eBay
eBay listing title, price, item condition, stock, image and link by item id, about 15,000 listings per credit. Keyword search with five sorts, a seller's own items by username or link, and the comparable active listings eBay shows beside a listing.
eBay listing title, price, item condition, stock, image and link by item id, about 15,000 listings per credit. Keyword search with five sorts, a seller's own items by username or link, and the comparable active listings eBay shows beside a listing.
At a glance
Property | Value |
|---|---|
|
|
Item id | The number at the end of a listing link, |
Marketplaces | Live: |
Tier |
|
Ids per call | 20 |
Typical call | 3–20 s for 20 listings |
Search |
|
Similar |
|
Seller |
|
Example
- cURL
- Python
- Node.js
curl -X POST "https://api.scrapelyserp.com/v1/products" \
-H "Authorization: Bearer $SCRAPELY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"platform": "ebay",
"ids": ["267835059120", "https://www.ebay.com/itm/198776347344"]
}'import os
import requests
HEADERS = {"Authorization": f"Bearer {os.environ['SCRAPELY_API_KEY']}"}
r = requests.post(
"https://api.scrapelyserp.com/v1/products",
headers=HEADERS,
json={
"platform": "ebay",
"ids": ["267835059120", "https://www.ebay.com/itm/198776347344"],
},
timeout=30,
)
r.raise_for_status()
data = r.json()
for p in data["results"]:
print(p["id"], p["status"], (p.get("price") or {}).get("amount"), (p.get("ebay") or {}).get("condition"))const res = await fetch('https://api.scrapelyserp.com/v1/products', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.SCRAPELY_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
platform: 'ebay',
ids: ['267835059120', 'https://www.ebay.com/itm/198776347344'],
}),
signal: AbortSignal.timeout(30_000),
});
if (!res.ok) throw new Error((await res.json()).error.code);
const data = await res.json();
for (const p of data.results) console.log(p.id, p.status, p.price?.amount, p.ebay?.condition);Full reference → POST /v1/products
eBay fields
Besides the common fields, each result carries an ebay object.
Field | Description |
|---|---|
| The listing price, in USD (the lowest when a listing spans a price range). |
| eBay's own condition label ( |
|
|
Not given | Seller feedback, bids and auction end time. |
Search
GET /v1/structured/ebay/search returns eBay listings for a keyword — item id, title, price and currency, item condition, image and listing link, plus shipping (the shipping cost shown, amount: 0 when free; omitted when none is shown), buying_options (auction, buy_it_now, best_offer) and bid_count on auctions — up to 60 a page, about 400,000 results per credit.
Parameter | Description |
|---|---|
| The keyword (required unless |
| A UPC, EAN or ISBN (8, 12, 13 or 14 digits) instead of |
| Results page, 1–100. Send |
|
|
No matches
A keyword that matches nothing returns an empty list (total_results 0), not a failure. A page that could not be read is a failure (502 TARGET_FAILED, not charged); ask again.
Similar listings
GET /v1/structured/ebay/similar returns the comparable active listings eBay shows beside a listing — useful for resale pricing — in the same result shape as search, about 2 million listings per credit. The set does not page.
Parameter | Description |
|---|---|
| The eBay item id to find comparable listings for (a listing link is accepted). |
Seller listings
GET /v1/structured/ebay/seller returns a seller's own items — the same result shape as search — up to 60 a page, about 400,000 listings per credit.
Parameter | Description |
|---|---|
| The seller (required): their username ( |
| Optional. Keep only the seller's items matching these keywords. |
| Results page, 1–100. Send |
|
|
Unknown seller
A seller with no matching items returns an empty list (total_results 0). A storefront link that points to no eBay store is a free 404. A page that could not be read is a failure (502 TARGET_FAILED, not charged); ask again.
Statuses on eBay
not_found: the listing has ended or there is no such item id.unavailable: no usable answer after retries. Ask again; it is not charged.