ebaysoldlistingsDOCS

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, postalCode and the rest, in the query string.
  • You see the keyword: if the photo is read wrong, search again with GET /scrape and your own keyword.

For an overview, see eBay sold prices from a photo.

POST/scrape/imagecost 2 requests, free when not identified

Upload 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"}'
Python
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")
Node.js
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

HowRequest
File uploadmultipart/form-data with the field image
Raw image bodyContent-Type: image/jpeg (or image/png, image/webp, image/gif, image/heic) with the bytes as the body
Public linkJSON 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.

Example response (shortened)
{
  "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.keywordstring
The eBay search that was run.
identified.confidencenumber
0 to 1. Photos below 0.6 are refused rather than guessed.
identified.categorystring
trading_card, sneakers, electronics, clothing, toy, watch, collectible, media or other.
identified.detailsobject
What was read from the photo: brand, model, variant, color, size, year, set, cardNumber, player, grader, grade (only the ones found).
requestsChargednumber
2 on success.
resultsarray
Sold listings with the same fields as GET /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 /scrape and the exact model instead.

Errors

SituationStatusCharged
Photo identified and sold search returned2002 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_paramsno
Multipart upload without a Content-Length header411 invalid_paramsno
Not enough requests left for both steps402 quota_exceededno
Image larger than 8 MB413 invalid_imageno
Photo does not show one identifiable item, or confidence below 0.6422 image_not_identifiedno
Image link unreachable or not an image422 image_unavailable / invalid_imageno
More than 20 photos in a minute, or your plan's per-minute limit429 rate_limited with Retry-Afterno
Sold search failed after identificationthe normal search error (502, 503, 504), without identifiedno

On this page