Sold prices from a photo
POST /scrape/image reads a photo, identifies the item, shows the keyword it used and returns up to 240 eBay sold listings with a price summary. 2 requests on success, nothing when the photo cannot be identified.
Price an item from a photo. POST /scrape/image reads the photo, identifies the product (brand, model, variant, and
for trading cards the set, card number, grader and grade), turns it into an eBay search keyword and runs the normal
sold search with it. The response shows exactly what was identified and searched for, followed by
the same fields as GET /scrape: up to 240 sold listings in the marketplace's own currency.
- 2 requests per successful search: 1 to read the photo, 1 for the sold search. On the Unlimited plan it is simply part of your unlimited requests.
- Nothing is charged when the photo cannot be identified (
422 image_not_identified) or the search fails. - Every sold search option works:
ebaySite,count,itemCondition,bestOfferPrice,sellerCountry,postalCodeand the rest, in the query string. - You see the keyword: if the photo is read wrong, search again with
GET /scrapeand your own keyword.
For an overview, see eBay sold prices from a photo.
/scrape/imagecost 2 requests, free when not identifiedUpload the photo as the multipart field image:
curl -X POST "https://api.ebaysoldlistingsapi.com/scrape/image?count=60" \
-H "Authorization: Bearer YOUR_API_KEY" \
-F "[email protected]"Or pass a public image link:
curl -X POST "https://api.ebaysoldlistingsapi.com/scrape/image?count=60&bestOfferPrice=true" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"imageUrl": "https://example.com/photos/charizard-psa10.jpg"}'import requests
with open("sneaker.jpg", "rb") as photo:
response = requests.post(
"https://api.ebaysoldlistingsapi.com/scrape/image",
headers={"Authorization": "Bearer YOUR_API_KEY"},
params={"count": 60},
files={"image": ("sneaker.jpg", photo, "image/jpeg")},
timeout=120,
)
if response.status_code == 422:
print(response.json()["error"]) # not identified, not charged
else:
response.raise_for_status()
data = response.json()
print("Searched for:", data["identified"]["keyword"], data["identified"]["confidence"])
print(data["count"], "sold listings")import { readFile } from "node:fs/promises";
const form = new FormData();
form.append("image", new Blob([await readFile("watch.jpg")], { type: "image/jpeg" }), "watch.jpg");
const res = await fetch("https://api.ebaysoldlistingsapi.com/scrape/image?count=60", {
method: "POST",
headers: { Authorization: "Bearer YOUR_API_KEY" },
body: form,
});
const data = await res.json();
console.log(data.identified?.keyword, data.results?.length);Ways to send the photo
| How | Request |
|---|---|
| File upload | multipart/form-data with the field image |
| Raw image body | Content-Type: image/jpeg (or image/png, image/webp, image/gif, image/heic) with the bytes as the body |
| Public link | JSON body {"imageUrl": "https://..."}, or ?imageUrl= in the query string |
Images up to 8 MB. A multipart upload must carry a Content-Length header (curl, Python requests and fetch with
FormData send one); without it the answer is 411 invalid_params. Image links must be public https:// addresses of
up to 2,000 characters, in the query string, the JSON body or a multipart field named imageUrl. Up to 20 photos per
minute per account.
Response
The identified block comes first, then the same fields as GET /scrape.
{
"identified": {
"keyword": "LEGO Star Wars Millennium Falcon 75192",
"confidence": 1,
"category": "toy",
"details": { "brand": "LEGO", "model": "Millennium Falcon", "set": "75192" }
},
"requestsCharged": 2,
"keyword": "LEGO Star Wars Millennium Falcon 75192",
"ebaySite": "ebay.com",
"count": 60,
"page": 1,
"hasNextPage": true,
"results": [
{
"itemId": "1357xxxxxxxx",
"title": "LEGO Star Wars UCS Millennium Falcon 75192 Complete",
"soldPrice": "949.99",
"soldCurrency": "USD",
"endedAt": "2026-11-18",
"condition": "Used"
}
]
}identified.keywordstringidentified.confidencenumber0 to 1. Photos below 0.6 are refused rather than guessed.identified.categorystringtrading_card, sneakers, electronics, clothing, toy, watch, collectible, media or other.identified.detailsobjectrequestsChargednumber2 on success.resultsarrayGET /scrape.Tips for photos that identify well
- Show the label, the box front, the model number or the card front. For graded cards, include the slab label.
- One item per photo, filling most of the frame.
- If the model or generation cannot be told from the outside (for example the storage size of a phone), the photo is
refused rather than guessed. Search with
GET /scrapeand the exact model instead.
Errors
| Situation | Status | Charged |
|---|---|---|
| Photo identified and sold search returned | 200 | 2 requests |
No photo and no imageUrl, an invalid or non-public imageUrl, or an invalid search option (checked before the photo is read) | 400 invalid_params | no |
Multipart upload without a Content-Length header | 411 invalid_params | no |
| Not enough requests left for both steps | 402 quota_exceeded | no |
| Image larger than 8 MB | 413 invalid_image | no |
| Photo does not show one identifiable item, or confidence below 0.6 | 422 image_not_identified | no |
| Image link unreachable or not an image | 422 image_unavailable / invalid_image | no |
| More than 20 photos in a minute, or your plan's per-minute limit | 429 rate_limited with Retry-After | no |
| Sold search failed after identification | the normal search error (502, 503, 504), without identified | no |
Item details
Read the condition, seller notes, item specifics, full description, buying format, bid count and quantity sold of any eBay listing, sold listings included, with GET /items/details or up to 50 at once with POST /items/details/batch. 1 request per listing, never charged when eBay no longer has the listing.
Active listings
Set sold=false on GET /scrape to return current live eBay listings with asking price, bids, time left, watchers and units sold.