compsapi.com / ebay sold comps api

eBay sold comps API

One request in, a price out. /v1/comps reads completed eBay sales for your search and answers with the median, the spread and the newest sales behind it.

Short answer: GET /v1/comps?q=... returns price stats for a search over completed eBay sales: median, mean, p25, p75, min, max, how many sales were used and the dates they span, plus the 10 newest sales. Lots, accessories and replicas are left out before the stats are worked out, and Best Offer sales count at the accepted price.

One call

curl -G https://api.compsapi.com/v1/comps \
  -H "Authorization: Bearer YOUR_KEY" \
  --data-urlencode "q=nintendo switch oled console" \
  --data-urlencode "condition=used"

The answer on 27 November 2026, trimmed to the stats:

{
  "ok": true,
  "query": "nintendo switch oled console",
  "count": 197,
  "count_before_filters": 199,
  "filters": {"exclude": "junk"},
  "stats": {
    "count": 197,
    "used_for_stats": 197,
    "outliers_removed": 0,
    "median": 176.33,
    "mean": 161.0,
    "p25": 135.0,
    "p75": 200.03,
    "min": 5.49,
    "max": 348.85,
    "newest_sale": "2026-11-27T14:37:00Z",
    "oldest_sale": "2026-11-25T23:01:00Z"
  },
  "note": "stats use every matching sale; items shows the 10 newest"
}

The same in Python

import os
import requests

r = requests.get(
    "https://api.compsapi.com/v1/comps",
    headers={"Authorization": f"Bearer {os.environ['COMPSAPI_KEY']}"},
    params={"q": "nintendo switch oled console", "condition": "used"},
    timeout=60,
)
r.raise_for_status()
s = r.json()["stats"]
print(s["count"], "sales, median", s["median"], "middle half", s["p25"], "to", s["p75"])

Run on 27 November 2026, it printed 197 sales, median 176.33 middle half 135.0 to 200.03.

What comes back

FieldWhat it is
stats.medianThe middle sale price in USD. The number most people mean by comps
stats.p25, stats.p75The middle half of sales. A price inside it is an ordinary one
stats.min, stats.max, stats.meanThe range and the average
stats.used_for_stats, stats.outliers_removedHow many sales the stats were built from, and how many were set aside as outliers
stats.oldest_sale, stats.newest_saleThe dates the sales span
count_before_filters, filtersSales found before junk was left out, and which filter did it
itemsThe 10 newest sales, with the same fields as /v1/sold

Getting comps you can trust

Name the condition. condition=used or condition=new keeps sealed and used copies out of the same median.

Widen or fix the window. The stats come from the sales on the page, up to 240 with size=240. On a busy search that is the last few days, as in the example. For a slow item set days up to 1095, or ask for a fixed period with start and end.

Leave out the wrong item. match=strict drops sales whose title names another model, size, grade or card number. exclude=ai_junk adds an AI check for lots, parts and empty boxes that title rules miss. Both are on the exact match page and the junk filter page.

Cards. grader, grade and graded split PSA 10 from PSA 9 from raw, which is most of the work in card comps.

When you want the sales themselves, every one of them, the same search on /v1/sold returns up to 240 rows a page.

A free key is 100 requests a month with no card, and it reads the same 1,095 days as the paid plans. Paid plans are $9 for 5,000 requests, $29 for 25,000 and $79 for 100,000 a month. Every request returns up to 240 sales. Pricing has the larger plans.

Questions developers ask

Is there an eBay sold comps API? eBay has no open one. CompsAPI /v1/comps takes a search and returns the median, the middle half, the low and high and the 10 newest sales from completed eBay listings, in one GET request with a free key.

How many sales does the median use? Every sale on the page, up to 240 with size=240. stats.used_for_stats is the number, and stats.oldest_sale and stats.newest_sale give the dates they span.

Are lots and accessories counted in the comps? No. /v1/comps leaves out listings its title rules flag as lots, accessories, replicas and similar before it works out the stats. count_before_filters shows how many sales there were before that.

Do the comps use the accepted Best Offer price? Yes. On a Best Offer sale, price is the amount the offer was accepted at, so the median is built from what buyers paid.

Can I get comps for a graded card? Yes. Add grader and grade, for example grader=PSA and grade=10, or graded=false for raw copies only.

Price from what things
actually sold for

100 free requests a month · every filter on · no card

eBay plus 12 more marketplaces on the same key

Get a free key