eBay Product
Get an eBay listing by item ID.
GET/api/v1/ebay/product
Costs 1 credit per request; failed requests are refunded. Authentication, the search_metadata envelope and error codes are the same as for every endpoint (see the API reference). Try it in the playground.
Parameters
Request
| Parameter | Type | Description |
|---|---|---|
product_idrequired | string | 12-digit eBay listing ID from search results or an /itm/ URL. |
Marketplace
| Parameter | Type | Description |
|---|---|---|
ebay_domain | "ebay.com" | "ebay.co.uk" | "ebay.ca" | "ebay.com.au" | "ebay.de" | "ebay.fr" | "ebay.it" | "ebay.es" | "ebay.at" | "ebay.be" | "ebay.ch" | "ebay.ie" | "ebay.nl" | "ebay.com.hk" | "ebay.com.my" | "ebay.pl" | "ebay.com.sg" | eBay marketplace hostname.Default: ebay.com. |
locale | string | Country code for eBay's localized interface, e.g. US, JP, CA. |
lang | string | Interface language override; requires locale and ebay.com.Up to 12 characters. |
shipping_country | string | Two-letter destination country code for shipping calculations. |
Response
A JSON object with search_metadata (request id, credits used and remaining) and the result data: product_results, seller_results and related_products; conditional sections depend on the page. Groups and fields depend on the content of each page, so treat every field as optional.
Examples
cURL
curl "https://serpfast.com/api/v1/ebay/product?product_id=305576857892" \
-H "Authorization: Bearer $SERPFAST_KEY"Node.js 18+
const params = new URLSearchParams({
"product_id": "305576857892"
});
const res = await fetch(`https://serpfast.com/api/v1/ebay/product?${params}`, {
headers: { Authorization: `Bearer ${process.env.SERPFAST_KEY}` },
});
const data = await res.json();
console.log(data);Python
import os, requests
params = {
"product_id": "305576857892"
}
res = requests.get(
"https://serpfast.com/api/v1/ebay/product",
params=params,
headers={"Authorization": f"Bearer {os.environ['SERPFAST_KEY']}"},
timeout=120,
)
print(res.json())