Completed eBay sales as rows you can load: price paid, sale time, format, bids, shipping and the listing link, up to three years back.
Short answer: GET /v1/sold returns completed eBay sales as JSON, up to 240 per request, newest first, up to 1,095 days back on every plan. Page through a search with page, or cut it into periods with start and end. Add format=csv and the same request returns a CSV file.
One sale from a response on 27 November 2026:
{
"item_id": "407377159793",
"title": "Nintendo Switch OLED 64GB White Console Bundle With 128GB SD, Case And Game",
"last_sold": "2026-11-27T14:37:00Z",
"price": 203.21,
"units_sold": 1,
"total_sales": 203.21,
"format": "AUCTION",
"bids": 13,
"shipping_cost": null,
"free_shipping_pct": 100.0,
"url": "https://www.ebay.com/itm/407377159793?nordt=true",
"image": "https://i.ebayimg.com/00/s/MTIwMFgxNjAw/z/zVsAAeSwDQhq9xt~/$_1.JPG?set_id=8800005007",
"us_sale": false,
"condition": "used"
}
price is in USD and is what the buyer paid, the accepted amount on a Best Offer sale. native_price=1 adds the amount in the currency of the sale, and best_offer=1 flags accepted offers.
curl -OJ -H "X-API-Key: YOUR_API_KEY" \
"https://api.compsapi.com/v1/sold?q=nintendo+switch+oled&days=30&size=50&format=csv"
Run on 27 November 2026, it saved compsapi-sold-nintendo-switch-oled.csv: a header row and 47 sales, one request. The columns are the item fields, starting item_id, title, last_sold, price, and the file opens in Excel or loads with pandas.read_csv. The response headers carry the paging: X-CompsAPI-Page is the page you got and X-CompsAPI-Next-Page is true when there is another. An error still comes back as JSON with its usual status. The CSV section of the reference has the rest.
To join several pages into one file with only the columns you want, read the JSON and write the CSV yourself:
import csv
import os
import time
import requests
KEY = os.environ["COMPSAPI_KEY"]
FIELDS = ["item_id", "last_sold", "price", "format", "bids", "shipping_cost", "title", "url"]
def sold(q, days=365, max_pages=3):
for page in range(1, max_pages + 1):
r = requests.get(
"https://api.compsapi.com/v1/sold",
headers={"Authorization": f"Bearer {KEY}"},
params={"q": q, "days": days, "size": 240, "page": page},
timeout=120,
)
r.raise_for_status()
data = r.json()
yield from data["items"]
if not data["next_page"]:
break
time.sleep(1)
with open("sold.csv", "w", newline="") as f:
w = csv.DictWriter(f, fieldnames=FIELDS, extrasaction="ignore")
w.writeheader()
n = 0
for item in sold("lego 75192"):
w.writerow(item)
n += 1
print(n, "sales written to sold.csv")
Run on 27 November 2026, it printed 627 sales written to sold.csv: three requests.
Page in order. next_page says whether another page exists. Pages run 10 deep on Free, 25 on Starter and 200 on Growth and above.
Cut by date for history. start=2024-12-01&end=2025-01-31 returns that period directly, so a three year pull goes month by month and never hundreds of pages deep.
Filter on the request. condition, min_price, max_price, category and site (US, UK, DE, FR, IT, ES, CA, AU) narrow the rows that come back.
Mind the rate. Paid plans allow 120 requests a minute and the free key 10. A request that fails does not count.
The Google Sheets template pulls sold prices into a spreadsheet, and this post prices a whole CSV of items in one run.
The same call reads sold prices from 12 more marketplaces with source, among them StockX, GOAT, Reverb, Grailed, Poshmark and Mercari.
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.
Is there an eBay sold data API? eBay does not offer an open one. CompsAPI /v1/sold returns completed eBay sales as JSON, up to 240 a request and up to 1,095 days back, with a free key and no eBay developer account.
Can I download eBay sold data as CSV? Yes. Add format=csv to /v1/sold and the response is a CSV file with one row per sale, counted as one request like JSON. The script on this page joins several pages into one file, and the Google Sheets template works without code.
How much sold data can one key pull? Each request returns up to 240 sales. A search can be paged 10 pages deep on Free, 25 on Starter and 200 on Growth and above, and a start and end window reaches any period in the last 1,095 days without deep paging.
How far back does eBay sold data go? eBay's own sold search shows about 90 days. CompsAPI returns sales up to 1,095 days back on every plan.
100 free requests a month · every filter on · no card
eBay plus 12 more marketplaces on the same key
Get a free key