eBay pricing API for your app
Suggest a listing price from recent eBay sold listings. Search sold items, take the middle price, and show the comps behind it.
Last updated
Use eBay sold listings to suggest a price in your own app. Search for the item, keep the rows that match, and show the middle price with the listings behind it. This is how reseller, crosslisting and inventory apps add a "price it" button.
curl -G https://api.soldgraph.com/v1/ebay/sold \ -H "Authorization: Bearer $SOLDGRAPH_KEY" \ --data-urlencode "q=sony wh-1000xm5" \ -d page=1#Build the price suggestion
- Search with specific words. Brand, model and size beat a generic title. Add
conditionto match the seller's item. See Search inputs. - Wait for the job. Poll
poll_urlwith?wait=20untilstatusiscomplete. See Search jobs. - Take the middle price. Use the median of
displayed_price.amount. It ignores the odd bundle or typo better than the average. - Show the comps. List a few rows with their
link, so sellers can check the price themselves.
const prices = result.data .map((row) => row.displayed_price?.amount) .filter((n): n is number => typeof n === "number") .sort((a, b) => a - b); const mid = Math.floor(prices.length / 2);const median = prices.length === 0 ? null : prices.length % 2 ? prices[mid] : (prices[mid - 1] + prices[mid]) / 2;#Make it trustworthy
- Say what it is. "Based on 38 recent eBay sales" beats a bare number.
- Handle thin results. With only a few rows, show the rows instead of a suggested price.
- Displayed prices aren't always final prices. Best offers can lower what the buyer paid. See How prices work.
#Add more marketplaces
Poshmark and Mercari sold searches return rows in the same format, so the same code works. Compare prices across them with Poshmark sold listings and Mercari sold listings.
#Common questions
Does eBay have a pricing API? Not one open to new developers. Its sold-data API, Marketplace Insights, isn't taking new users. See Marketplace Insights API alternative.
Is there a price API for trading cards or video games? Card and game sales on eBay come back like any other item. See PriceCharting API alternative.
How many requests does a price check use? One per search. Free covers 100 a month. See Usage and billing.