Developers
The pricing API
What a secondhand item sells for, from real eBay sold listings, in your own scripts and tools. JSON in, JSON out. The same answers the app and the Claude and ChatGPT connector give.
Pricing
Free to build with. Pay when it's in production. A new key is on these prices from the start. Accounts that already held a key on October 29, 2026 keep 500 free lookups a day until December 1, 2026.
Free$0
100 lookups a day. After that, calls stop until the next day.
Pay as you goPer call
5¢ a description price, 2¢ a sold-comps search, billed monthly.
Volume$149 a month
5,000 lookups included, then 3¢ each.
Estate$399 a month
20,000 lookups included, then 2¢ each.
A lookup is one description price or one sold-comps search. Photo prices use a scan on your account. Paid plans allow up to 4,000 lookups a day. Pick a plan under Settings, API; for an account that already held a key, a plan picked before December 1, 2026 is not charged before then. Higher volume or a contract: support@underpricedai.com.
Get a key
Sign in and create a key under Settings, API keys. Send it on every request:
Authorization: Bearer upai_your_keySold comps
GET /api/v1/sold-comps?q= returns recent real eBay sold listings for a search, with a price summary. Search the way a buyer would: brand, item, model or pattern. Each call is a lookup (see Pricing).
Searches run on your account's own eBay site, the same one your photo scans use: eBay UK in pounds for a UK account, eBay US in dollars otherwise. Add marketplace=EBAY_GB (eBay UK, GBP) or marketplace=EBAY_US (eBay US, USD) to choose. Those are the two accepted values; case does not matter, and EBAY_UK is read as EBAY_GB. Any other value returns 400 and is not counted against your day. The answer names the site in marketplace and the currency of every price in currency.
Sales whose title shows a different item (a jade carving under a daybed search) are left out before anything is counted. comps.count, the summary and comps.recent cover only the sales that were kept. comps.matched is how many were kept and comps.dropped is how many were left out as a different item. If that check cannot run, every sale is kept and comps.relevanceChecked is false, so you know some may be unrelated.
eBay answers one page of sales per search. When comps.countIsLowerBound is true the page was full, so read the count as that number or more, not as every sale there is.
Optional: limit lists more recent sales in comps.recent, a whole number from 1 to 50 (8 if you leave it out). include and exclude take up to 5 comma-separated words each, up to 40 characters per word. A sale is kept only if its title has every include word, and left out if it has any exclude word; both match whole words in any case. include words are also added to the search when your q does not already have them. The answer repeats the words it used, and comps.removedByWords counts the sales they left out. A limit outside 1 to 50, or too many or too long words, returns 400 and is not counted against your day.
prefer takes words the same way but leaves nothing out: sellers word the same item differently (rattan, wicker, cane), so a strict include can empty a search. Sales whose title has every prefer word are listed first in comps.recent with preferred: true, and comps.preferred gives their own count and summary. The search itself is not changed, and count and summary still cover every matching sale.
Each sale in comps.recent also has condition (as the listing showed it where we have it, for example "Pre-Owned"), saleType (auction, buy_it_now or best_offer), bids, shipping (postage the buyer paid, 0 when free), location and itemId (the eBay item number). Each is null when it is not known; a sale we stored before 22 October 2026 gives the condition only as new or used. eBay's sold data does not include the seller or the quantity sold.
exclude_items takes up to 20 comma-separated eBay item numbers (9 to 15 digits each) and leaves those sales out of the count, summary and list, before any other filter. Use it to keep your own earlier sale of the same item from counting as evidence. One item number covers every sale of that listing. The answer repeats the numbers in excludeItems, and comps.removedByItems says how many sales were left out; 0 means none of the numbers matched a returned sale, so check for a typo. A sale whose link has no item number (itemId null) cannot be left out this way. A badly formed number returns 400 and is not counted against your day.
curl "https://underpricedai.com/api/v1/sold-comps?q=pyrex+butterprint+403" \
-H "Authorization: Bearer upai_your_key"
curl "https://underpricedai.com/api/v1/sold-comps?q=hornsea+saffron+teapot&marketplace=EBAY_GB" \
-H "Authorization: Bearer upai_your_key"
curl "https://underpricedai.com/api/v1/sold-comps?q=antique+daybed&include=daybed&exclude=jade,cabinet&limit=20" \
-H "Authorization: Bearer upai_your_key"
curl "https://underpricedai.com/api/v1/sold-comps?q=pencil+reed+coffee+table&prefer=rattan&exclude_items=188298931188&marketplace=EBAY_GB" \
-H "Authorization: Bearer upai_your_key"{
"query": "pyrex butterprint 403",
"marketplace": "eBay US",
"marketplaceId": "EBAY_US",
"currency": "USD",
"comps": {
"count": 18,
"countIsLowerBound": false,
"matched": 18,
"dropped": 3,
"relevanceChecked": true,
"summary": { "median": 42, "low": 20, "high": 95, ... },
"recent": [ { "title": "...", "price": 44.99, "soldDate": "2026-10-01", "url": "https://www.ebay.com/itm/...", "condition": "Pre-Owned", "saleType": "auction", "bids": 4, "shipping": 9.5, "location": "United States", "itemId": "123456789012" }, ... ]
},
"source": { "name": "Underpriced AI", "url": "...", "cite": "..." }
}Price an item
POST /api/v1/price with a description or an image_url. A description price is a lookup (see Pricing) and is saved nowhere. A photo price runs the full scan on your account (photo identification, sold comps and our accuracy checks), is one scan on your account, and saves the item to your history. Send cost, the price you paid or would pay for the item, and the answer carries a worth-it verdict.
A description is priced on your account's own eBay site (eBay UK in pounds for a UK account), or on the one you send as marketplace: EBAY_US or EBAY_GB (any case; EBAY_UK is read as EBAY_GB; anything else returns 400). Send cost in the same currency; price.currency names it. A photo price always uses your account's own site.
curl -X POST https://underpricedai.com/api/v1/price \
-H "Authorization: Bearer upai_your_key" \
-H "Content-Type: application/json" \
-d '{"description": "Pyrex Butterprint 403 mixing bowl turquoise, no chips", "cost": 8}'
curl -X POST https://underpricedai.com/api/v1/price \
-H "Authorization: Bearer upai_your_key" \
-H "Content-Type: application/json" \
-d '{"image_url": "https://example.com/photo.jpg", "condition": "Good"}'{
"item": { "name": "Pyrex Butterprint 403 Mixing Bowl", "brand": "Pyrex", "category": "...", "condition": "Good", "identifiedFrom": "description", "confidence": 0.72 },
"price": { "estimate": 42, "low": 30, "high": 58, "currency": "USD", "basis": "weighted median of 18 real sold listings, calibrated per category on realised sales" },
"listPrices": { "fast": { "price": 36, "sold14Pct": 61 }, "market": { "price": 42, "sold14Pct": 44 }, "patient": { "price": 48, "sold14Pct": 30 } },
"netAfterEbayFees": 35.99,
"worthIt": { "verdict": "worth_it", ... },
"comps": { "count": 18, "summary": { ... }, "recent": [ ... ] },
"account": { "savedToHistory": true, "scanId": "...", "creditsLeft": 12 }
}What a call costs
- A photo price is one scan on your account: a plan scan, a credit, or the pay as you go meter, exactly as a scan in the app.
GET https://underpricedai.com/api/v1/accountsays what is left. With nothing left the call returns 402 and a link to add scans. - Description prices and sold comps are lookups: 100 a day free, or a plan (see Pricing). Accounts that already held a key on October 29, 2026 have 500 a day free until December 1, 2026. Paid lookups are billed monthly to your card.
- 60 requests a minute per key. Up to 5 active keys an account.
- An account on a raised daily limit has its description lookups paced at 20 a minute per account, across all its keys. A call over the pace returns 429
rate_limited; wait a few seconds and send it again.
Plans and credit packs are on the pricing page.
Errors
Every error is JSON with a message and a code (the key is checked before the body): unauthorized (401), bad_request (400), not_identified (422, say more about the item), no_scans_left (402), rate_limited and daily_cap (429), failed (500).
{ "error": "No scans left on this account. Add a credit pack or a plan at ...", "code": "no_scans_left", "buy": "https://underpricedai.com/pricing" }Attribution
Every answer carries a source field with one line and a link. Showing that line next to our prices is a condition of using the API. Questions and higher limits: support@underpricedai.com. Building for an AI assistant instead? The connector speaks MCP.
