ebaysoldlistingsAPI
Marketplace

eBay sold prices from a photo: reverse image search API

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.

Updated · 4 min read

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 "[email protected]"
{
  "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 searchKeyword search
EndpointPOST /scrape/imageGET /scrape
InputA photo or image linkA keyword
Sold listingsUp to 240, 8 eBay sitesUp to 240, 8 eBay sites
Cost2 requests on success1 request
Not identified or failedFreeFree
Best forApps, scanners, unknown itemsKnown 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 and the photo search docs.

One key for every source

The same key returns eBay sold listings on 8 eBay sites (up to 240 per request, in local currency), item details, accepted Best Offer prices, PSA prices and population, TCGplayer sales, the Beckett cert lookup API, graded card auction prices from Goldin, Fanatics Collect, Pristine Auction and MySlabs, the Whatnot API, the Mercari API, the Poshmark API, the Depop API, the Grailed API and eBay sold prices from a photo.

Can I get eBay sold prices from a photo?

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.

Is there a reverse image search for sold prices?

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.

What does it cost?

2 requests when the photo is identified and the search succeeds. Nothing when the photo cannot be identified or the search fails.

Does it work for trading cards?

Yes. For cards it reads the set, card number and, on graded cards, the grader and grade from the slab label.

Which image formats are accepted?

JPEG, PNG, WebP, GIF and HEIC up to 8 MB, as a file upload, raw image body or a public https link.

Try it with real data

Get completed eBay sales as JSON. Fifty free requests a month, no card required.

Get your API key