eBay UPC, EAN and ISBN lookup API
GET /product-lookup takes a UPC, EAN, ISBN or GTIN and returns the listings eBay finds for that code, with the same fields as a search result: item ID, title, price, shipping, condition and buying format. The code may have 8, 10, 12, 13 or 14 digits, and an ISBN-10 may end in X.
Part of eBay Data API, sold on RapidAPI with a free plan of 20 requests a month. Paid plans are on the pricing page. Endpoint details checked 2026-11-15.
What GET /product-lookup returns
The eBay search results for a UPC, EAN, ISBN or GTIN, with the same item fields as /search, plus code (normalised: no hyphens or spaces) and total_results. Matches are not verified against the barcode: eBay's search results carry none. Check the top items, or call /item-details. No matches gives items []. Cached for 10 minutes.
Parameters
| Name | Required | Values | Notes |
|---|---|---|---|
code | yes | string | UPC, EAN, ISBN or GTIN: 8, 10, 12, 13 or 14 digits (an ISBN-10 may end in X). Hyphens and spaces are ignored. |
country | no | US, GB, DE, FR, IT, ES, CA, AU, AT, BE, CH, PL, HK, MY | eBay market, as an ISO country code. GB is ebay.co.uk, BE is the French-language Belgian site befr.ebay.be. Default US (ebay.com). |
Example request
Every parameter that has an example, with country set explicitly. Send your key in X-RapidAPI-Key.
curl --request GET \
--url 'https://ebay-data-api-search-item-details-seller.p.rapidapi.com/product-lookup?code=9780735211292&country=US' \
--header 'X-RapidAPI-Key: YOUR_RAPIDAPI_KEY' \
--header 'X-RapidAPI-Host: ebay-data-api-search-item-details-seller.p.rapidapi.com'import requests
resp = requests.get(
"https://ebay-data-api-search-item-details-seller.p.rapidapi.com/product-lookup",
params={"code": "9780735211292", "country": "US"},
headers={
"X-RapidAPI-Key": "YOUR_RAPIDAPI_KEY",
"X-RapidAPI-Host": "ebay-data-api-search-item-details-seller.p.rapidapi.com",
},
timeout=75,
)
resp.raise_for_status()
body = resp.json()
if "error" in body: # bad input or not found: HTTP 200 with an error body
raise RuntimeError(f"{body['error']['code']}: {body['error']['message']}")
print(body["data"])const url = new URL('https://ebay-data-api-search-item-details-seller.p.rapidapi.com/product-lookup');
url.search = new URLSearchParams({ code: '9780735211292', country: 'US' });
const res = await fetch(url, {
headers: {
'X-RapidAPI-Key': process.env.RAPIDAPI_KEY,
'X-RapidAPI-Host': 'ebay-data-api-search-item-details-seller.p.rapidapi.com',
},
});
const { data, meta } = await res.json();
console.log(data, meta.fetched_at);Example response
A recorded response, shortened to 3 items per list.
{
"data": {
"code": "9780735211292",
"total_results": 522,
"items": [
{
"item_id": "264638287688",
"title": "Atomic Habits, James Clear",
"url": "https://www.ebay.com/itm/264638287688",
"image": "https://i.ebayimg.com/images/g/CqIAAeSwwnNq5a8r/s-l500.webp",
"price": 11.51,
"price_max": null,
"currency": "USD",
"is_price_approximate": false,
"shipping": 0,
"condition": "Pre-Owned",
"buying_format": "buy_it_now",
"bids": null,
"time_left": null,
"seller": "second.sale",
"is_sponsored": false
},
{
"item_id": "860137296695",
"title": "Atomic Habits : An Easy and Proven Way to Build Good Habits and Break Bad...🔥🔥",
"url": "https://www.ebay.com/itm/860137296695",
"image": "https://i.ebayimg.com/images/g/SpoAAeSwnkFqsVTa/s-l500.webp",
"price": 7,
"price_max": null,
"currency": "USD",
"is_price_approximate": false,
"shipping": 4.39,
"condition": "Brand New",
"buying_format": "buy_it_now",
"bids": null,
"time_left": null,
"seller": "spartanbooks",
"is_sponsored": false
}
]
},
"meta": {
"country": "US",
"cached": false,
"fetched_at": "2026-11-15T07:36:43.000Z"
}
}What people use it for
Book resale: send an ISBN and read the prices of the copies listed on eBay.
Barcode scanning apps: turn a scanned UPC or EAN into live eBay listings with price and condition.
Cross-marketplace comparison: look up the same barcode on eBay and on Amazon.
Guides and examples
FAQ
- Are the matches verified against the barcode?
- No. eBay’s search results carry no barcode, so the API returns what eBay finds for the code. Check the titles of the top items, or call /item-details and read the UPC in specifics when the seller gave one.
- Can I pass an ISBN with hyphens?
- Yes. Hyphens and spaces are ignored, so 978-0-7352-1129-2 and 9780735211292 are the same request.
- Can I look up a UPC or EAN on eBay UK or Germany?
- Yes. Pass country=GB or country=DE, or any of the other 12 country codes. Titles come back in that eBay site’s language and prices in its currency.
- What comes back when eBay finds nothing?
- An empty items list, with HTTP 200.
Related endpoints
See all 5 endpoints and 14 eBay sites on the eBay API page, or every parameter and error in the openapi spec.