# eBay sold prices from a photo: reverse image search API

URL: https://ebaysoldlistingsapi.com/marketplaces/ebay-sold-prices-from-photo

Updated: 2026-11-23



eBay 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 as JSON. A reverse image search for sold prices, 2 requests on success, nothing when the photo cannot be identified.



Short answer: to get eBay sold prices from a photo, send the photo to `POST /scrape/image`. The API identifies the item (brand, model, variant, and for trading cards the set, card number, grader and grade), turns it into an eBay search, and returns up to 240 sold listings in the same format as a keyword search, with the keyword it used shown first. It is a reverse image search for sold prices: one call, no typing, and nothing is charged when the photo cannot be identified.

```
curl -X POST "https://api.ebaysoldlistingsapi.com/scrape/image?count=60" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -F "image=@lego-falcon.jpg"
```

```
{
  "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,
  "results": [ "... sold listings, the same fields as GET /scrape ..." ]
}
```

### How reverse image search for sold prices works

1. Send a photo: a file upload (multipart field `image`, with a Content-Length header), raw image bytes, or a public https `imageUrl`. Images up to 8 MB.
2. The item is identified and turned into an eBay keyword. Photos below 0.6 confidence are refused rather than guessed, and not charged.
3. The normal sold search runs with that keyword and every option you passed: `ebaySite`, `count`, `itemCondition`, `bestOfferPrice` and the rest.
4. You get `identified` (keyword, confidence, category, details) and the sold listings. If the photo was read wrong, search again with `GET /scrape` and your own keyword.

### Photo search or keyword search

 | Photo search | Keyword search
--- | --- | ---
Endpoint | `POST /scrape/image` | `GET /scrape`
Input | A photo or image link | A keyword
Sold listings | Up to 240, 8 eBay sites | Up to 240, 8 eBay sites
Cost | 2 requests on success | 1 request
Not identified or failed | Free | Free
Best for | Apps, scanners, unknown items | Known items, bulk catalogs

### Python example

```
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, "itemCondition": "used"},
        files={"image": ("sneaker.jpg", photo, "image/jpeg")},
        timeout=120,
    )
if response.status_code == 422:
    print(response.json()["error"])  # not identified, not charged
else:
    data = response.json()
    print("Searched for:", data["identified"]["keyword"], "|", data["count"], "sold listings")
```

### 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 cannot be told from the outside (for example a phone's storage size), search by keyword instead.

### Plans

A successful photo search counts as 2 requests (1 to read the photo, 1 for the search) on every plan, from the free plan to Unlimited. On the Unlimited plan ($299 a month) there is no monthly request count. Up to 20 photos per minute per account. See pricing (https://ebaysoldlistingsapi.com/#pricing) and the photo search docs (https://ebaysoldlistingsapi.com/docs/photo-search).

### One key for every source

The same key returns eBay sold listings (https://ebaysoldlistingsapi.com/docs/sold-search) on 8 eBay sites (up to 240 per request, in local currency), item details (https://ebaysoldlistingsapi.com/docs/item-details), accepted Best Offer prices (https://ebaysoldlistingsapi.com/docs/best-offer-prices), PSA (https://ebaysoldlistingsapi.com/docs/psa) prices and population, TCGplayer (https://ebaysoldlistingsapi.com/docs/tcgplayer) sales, the Beckett cert lookup API (https://ebaysoldlistingsapi.com/marketplaces/beckett-cert-lookup), graded card auction prices (https://ebaysoldlistingsapi.com/marketplaces/graded-card-auction-prices) from Goldin, Fanatics Collect, Pristine Auction and MySlabs, the Whatnot API (https://ebaysoldlistingsapi.com/marketplaces/whatnot), the Mercari API (https://ebaysoldlistingsapi.com/marketplaces/mercari), the Poshmark API (https://ebaysoldlistingsapi.com/marketplaces/poshmark), the Depop API (https://ebaysoldlistingsapi.com/marketplaces/depop), the Grailed API (https://ebaysoldlistingsapi.com/marketplaces/grailed) and eBay sold prices from a photo (https://ebaysoldlistingsapi.com/marketplaces/ebay-sold-prices-from-photo).

Q: Can I get eBay sold prices from a photo?
A: Yes. POST /scrape/image reads the photo, identifies the item and returns up to 240 eBay sold listings for it as JSON, with the keyword it searched for.

Q: Is there a reverse image search for sold prices?
A: Yes. The photo search endpoint works as a reverse image search for eBay sold prices: photo in, sold listings out, on any of 8 eBay marketplaces.

Q: What does it cost?
A: 2 requests when the photo is identified and the search succeeds. Nothing when the photo cannot be identified or the search fails.

Q: Does it work for trading cards?
A: Yes. For cards it reads the set, card number and, on graded cards, the grader and grade from the slab label.

Q: Which image formats are accepted?
A: JPEG, PNG, WebP, GIF and HEIC up to 8 MB, as a file upload, raw image body or a public https link.
