Skip to content

About

eBay sold listings API (2026): up to 240 real eBay sold prices per request as JSON, 3 years (1,095 days) of history, real accepted Best Offer prices, 8 eBay sites plus TCGplayer, PSA, Grailed, Mercari, Poshmark, Depop and 4 card auction houses. Python and Node.js examples.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

eBay Sold Listings API (2026): Python and Node.js examples

Short answer: eBay has no open API for sold listings. findCompletedItems was retired in February 2025 and the Marketplace Insights API needs eBay's approval. CompSniper is an eBay sold listings API you can call today: one GET request returns up to 240 real completed eBay sales as JSON, with a median and price range, on 8 eBay sites. 100 free requests a month, no credit card.

  • Up to 240 sold listings per request: sold price, sold date, condition, shipping, seller, listing URL
  • 8 eBay marketplaces: US, UK, Germany, France, Italy, Spain, Canada, Australia
  • 10 more marketplaces on the same key: TCGplayer, PSA, Grailed, Poshmark, Mercari, Depop, and Goldin, Fanatics Collect, Pristine Auction and MySlabs auction results (18 in all)
  • 3 years (1,095 days) of sold history (/v1/research/sold)
  • The real accepted Best Offer price, not the asking price (bestOfferPrice=true)
  • Optional AI cleanup that removes accessories, parts and wrong models before the median is computed
  • 5.4% wrong-item rate in a blind 40-search benchmark, against 25.7% to 31.6% for other eBay sold data APIs (benchmark)

Get a key

Create a free account at compsniper.com and copy your API key (cs_live_...).

export COMPSNIPER_API_KEY="cs_live_..."

curl

curl -H "Authorization: Bearer $COMPSNIPER_API_KEY" \
  "https://api.compsniper.com/v1/scrape?keyword=nintendo+switch+oled&count=50&ebaySite=ebay.com"

Python

pip install compsniper   # official client, or use requests as below
python python/sold_listings.py "nintendo switch oled"

See python/sold_listings.py.

Node.js (18+)

node node/sold-listings.mjs "nintendo switch oled"

See node/sold-listings.mjs. No dependencies: it uses the built-in fetch.

Response (shortened)

{
  "totalResults": 50,
  "summary": { "median": 249.99, "p25": 225.0, "p75": 275.0, "mean": 251.3, "currency": "USD" },
  "items": [
    {
      "itemId": "1234567890",
      "title": "Nintendo Switch OLED Model White",
      "soldPrice": "249.99",
      "soldCurrency": "USD",
      "endedAt": "2026-10-27",
      "condition": "Pre-Owned",
      "shippingPrice": "0.00",
      "sellerUsername": "example_seller",
      "url": "https://www.ebay.com/itm/1234567890"
    }
  ]
}

Values above are illustrative. Full field list: API reference.

Useful parameters

Parameter What it does
keyword Product search, for example rtx 4090 founders edition
count 1 to 240 sold listings
ebaySite ebay.com, ebay.co.uk, ebay.de, ebay.fr, ebay.it, ebay.es, ebay.ca, ebay.com.au
itemCondition new or used
minPrice, maxPrice Price bounds
relevance true (AI cleanup, default) or false for the raw eBay feed
bestOfferPrice true adds the real accepted price on Best Offer sales

Related

About

eBay sold listings API (2026): up to 240 real eBay sold prices per request as JSON, 3 years (1,095 days) of history, real accepted Best Offer prices, 8 eBay sites plus TCGplayer, PSA, Grailed, Mercari, Poshmark, Depop and 4 card auction houses. Python and Node.js examples.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages