apiwren
eBay Data API · GET /search

eBay search API

GET /search runs a keyword search on one eBay site and returns each listing’s item ID, title, URL, image, price, currency, shipping cost, condition and buying format, with bids and time left for auctions, the seller’s user name where the card shows it, and a sponsored flag. Each page also gives eBay’s total result count. Results come 1 page at a time, up to page 100, with five sort orders and filters for condition, price range, buying format and category.

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.

Get a free key on RapidAPIAll 5 endpointsOpenAPI spec

What GET /search returns

Active eBay listings for a keyword on one market, one results page in eBay's order, with total_results (eBay's count, null when not shown). Each item has item_id, title, url, image, price, price_max (the top of a price range, else null), currency (the market's), is_price_approximate, shipping (the cost to the delivery location eBay assumes for the request, which may not be in the market's country; 0 when free, null when eBay shows no amount for that location), condition (eBay's text), buying_format (auction or buy_it_now), bids and time_left (auctions), seller (user name, null when the card does not show it) and is_sponsored. is_price_approximate true means eBay marked the price as its approximate conversion from the seller's currency; false only means eBay did not mark it, not a guarantee that the price is unconverted. is_sponsored is read from how eBay draws the Sponsored label and may misclassify a card. A search with no exact matches returns items [] rather than eBay's results for fewer words. Every page is checked to come from the requested market; a page from another eBay site is never returned. Sold and completed listings are not available. Cached for 10 minutes.

Parameters

NameRequiredValuesNotes
queryyesstringSearch words, 1 to 200 characters.
countrynoUS, GB, DE, FR, IT, ES, CA, AU, AT, BE, CH, PL, HK, MYeBay 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).
pageno1 to 100 (default 1)Results page, 1 to 100.
sortnobest_match, ending_soonest, newly_listed, price_asc, price_descResult order. Default: eBay's best match.
conditionnonew, refurbished, used, for_partsOnly items in this condition.
min_pricenonumberLowest price, in the market's currency.
max_pricenonumberHighest price, in the market's currency. Must not be below min_price.
buying_formatnoauction, buy_it_nowOnly auctions, or only Buy It Now listings.
category_idnomatches ^\d{1,10}$eBay category ID, 1 to 10 digits, as in eBay's /b/ and /sch/ URLs.

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/search?query=usb+c+cable&country=US&page=2&min_price=5&max_price=20&category_id=44932' \
  --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/search",
    params={"query": "usb c cable", "country": "US", "page": "2", "min_price": "5", "max_price": "20", "category_id": "44932"},
    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/search');
url.search = new URLSearchParams({ query: 'usb c cable', country: 'US', page: '2', min_price: '5', max_price: '20', category_id: '44932' });

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.

200 OK
{
  "data": {
    "total_results": 150000,
    "items": [
      {
        "item_id": "376333147656",
        "title": "NOCO XGrid XC2: 240W USB-C to USB-C Cable with E-Marker Chip - 6-Foot (White)",
        "url": "https://www.ebay.com/itm/376333147656",
        "image": "https://i.ebayimg.com/images/g/lN8AAeSwfEZqsW12/s-l500.webp",
        "price": 14.95,
        "price_max": null,
        "currency": "USD",
        "is_price_approximate": false,
        "shipping": 0,
        "condition": "Brand New",
        "buying_format": "buy_it_now",
        "bids": null,
        "time_left": null,
        "seller": "officialnoco",
        "is_sponsored": true
      },
      {
        "item_id": "376333121161",
        "title": "NOCO XGrid XC1: 240W USB-C to USB-C Cable with E-Marker Chip - 3-Foot (White)",
        "url": "https://www.ebay.com/itm/376333121161",
        "image": "https://i.ebayimg.com/images/g/U54AAeSwkOJqsW1w/s-l500.webp",
        "price": 12.95,
        "price_max": null,
        "currency": "USD",
        "is_price_approximate": false,
        "shipping": 0,
        "condition": "Brand New",
        "buying_format": "buy_it_now",
        "bids": null,
        "time_left": null,
        "seller": "officialnoco",
        "is_sponsored": true
      }
    ],
    "query": "usb c cable",
    "page": 1
  },
  "meta": {
    "country": "US",
    "cached": false,
    "fetched_at": "2026-11-15T07:36:43.000Z"
  }
}

What people use it for

FAQ

How do I sort eBay search results by price?
Pass sort=price_asc or sort=price_desc. The other values are best_match, ending_soonest and newly_listed. min_price and max_price filter in the eBay site’s currency.
Can I search eBay auctions only?
Yes. Pass buying_format=auction. Add sort=ending_soonest to get the auctions that close first, each with its bid count and time left.
Does the eBay search API return sponsored listings?
Yes, with is_sponsored set to true. The flag is read from how eBay draws the “Sponsored” label and may misclassify a card.
What does an empty result list mean?
eBay found no listing that matches every word. The listings eBay shows for fewer words are not returned.

Related endpoints

See all 5 endpoints and 14 eBay sites on the eBay API page, or every parameter and error in the openapi spec.

Try GET /search. The free plan covers 20 requests a month.

Get eBay Data API on RapidAPI
Free plan on every API

Give your app real data.

Every API has a free plan on RapidAPI, and one key works for all of them.