Photo search
Send a photo to POST /scrape/image and you get back what is in it (a search keyword, a category and the details it
read, such as brand, model, set or grade) and the eBay sold listings for that item, in the same answer. It is the
fastest way to price something you are holding: take a picture, get its comps.
| At a glance | |
|---|---|
| Input | A photo file (multipart field image, or the raw image as the body) or a public imageUrl |
| Output | identified (what is in the photo) plus the same sold listings as GET /scrape |
| Cost | 2 requests on success: one to read the photo, one for the search. Nothing when it fails or the photo cannot be identified |
| Limits | Photos up to 8 MB in a common image format (JPEG, PNG, WebP), 20 photos a minute per account on top of your plan’s speed |
| Product page | Photo search overview |
Send an image URL
The simplest way: a public https link to the photo.
curl -X POST "https://api.sellercomps.com/scrape/image?imageUrl=https%3A%2F%2Fi.ebayimg.com%2Fimages%2Fg%2FA3AAAeSw9nhq%7E6YM%2Fs-l1600.jpg&count=50" \
-H "Authorization: Bearer YOUR_API_KEY"Upload a photo file
Send the file as multipart form data in a field named image, or as the raw body with its image content type.
curl -X POST "https://api.sellercomps.com/scrape/image?count=50" \
-H "Authorization: Bearer YOUR_API_KEY" \
-F "[email protected]"# The raw photo as the body works too:
curl -X POST "https://api.sellercomps.com/scrape/image" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: image/jpeg" \
--data-binary "@photo.jpg"A JSON body {"imageUrl": "https://..."} is accepted as well.
Parameters
Every option of the sold search works here, as query parameters, and applies to the search that runs after the photo is read:
| Parameter | Values | Default |
|---|---|---|
imageUrl | A public https link to the photo, instead of uploading it | None |
ebaySite | Any of the 8 eBay countries | ebay.com |
count, page | Sales per page (1 to 240) and page | 240, 1 |
sold | false returns listings for sale now instead of sales | true |
itemCondition, buyingFormat, sortOrder | As on sold listings | Any |
minPrice, maxPrice, soldAfter, soldBefore | Price band and date range | None |
itemLocation, categoryId | Location and one eBay category | Any |
bestOfferPrice | true adds the accepted Best Offer price | false |
Options are checked before the photo is read, so a wrong option answers 400 straight away and never costs a read.
Response
Example response112 lines, long lists cut to a few rowsReal answer, Nov 29, 2026
{
"identified": {
"keyword": "Nintendo Switch OLED Model White",
"confidence": 0.84,
"category": "electronics",
"details": {
"brand": "Nintendo",
"model": "Switch OLED Model",
"variant": "White Joy-Con",
"color": "White"
}
},
"requestsCharged": 2,
"keyword": "Nintendo Switch OLED Model White",
"ebaySite": "ebay.com",
"count": 3,
"page": 1,
"hasNextPage": true,
"totalResults": 2700,
"results": [
{
"itemId": "327422329001",
"url": "https://www.ebay.com/itm/327422329001?nordt=true",
"thumbnailUrl": "https://i.ebayimg.com/images/g/DVAAAeSw1MJqw5xa/s-l500.jpg",
"fullResThumbnailUrl": "https://i.ebayimg.com/images/g/DVAAAeSw1MJqw5xa/s-l1600.jpg",
"epid": null,
"title": "Nintendo Switch OLED Console - 64GB - White",
"condition": "Pre-Owned",
"conditionId": 3000,
"sellerType": null,
"buyingFormat": "buyItNow",
"bestOfferAccepted": null,
"bidCount": null,
"categoryId": null,
"listingType": "sold",
"shippingPrice": "112.51",
"shippingCurrency": "USD",
"shippingType": "paid",
"totalPrice": "245.47",
"sellerUsername": "powerup149",
"sellerPositivePercent": 100,
"sellerFeedbackScore": 127,
"productRating": 4.5,
"productReviewCount": 7,
"itemLocation": "Australia",
"scrapedAt": "2026-11-29T06:37:27.584160+00:00",
"endedAt": "2026-11-28",
"soldPrice": "132.96",
"soldCurrency": "USD"
},
{
"itemId": "267857649709",
"url": "https://www.ebay.com/itm/267857649709?nordt=true",
"thumbnailUrl": "https://i.ebayimg.com/images/g/QAEAAeSwBllrC6Iz/s-l140.jpg",
"fullResThumbnailUrl": "https://i.ebayimg.com/images/g/QAEAAeSwBllrC6Iz/s-l1600.jpg",
"epid": null,
"title": "Nintendo Switch OLED Model Console System, White Joy-Con, HDMI Connectivity",
"condition": "Open Box",
"conditionId": 1500,
"sellerType": null,
"buyingFormat": null,
"bestOfferAccepted": true,
"bidCount": null,
"categoryId": null,
"listingType": "sold",
"shippingPrice": "7.22",
"shippingCurrency": "USD",
"shippingType": "paid",
"totalPrice": "187.22",
"sellerUsername": "willjame.cqntdc",
"sellerPositivePercent": 100,
"sellerFeedbackScore": 45,
"productRating": null,
"productReviewCount": null,
"itemLocation": "United States",
"scrapedAt": "2026-11-29T06:37:27.584160+00:00",
"endedAt": "2026-11-28",
"soldPrice": "180.00",
"soldCurrency": "USD"
},
{
"itemId": "198822480550",
"url": "https://www.ebay.com/itm/198822480550?nordt=true",
"thumbnailUrl": "https://i.ebayimg.com/images/g/7y8AAeSwEmVrBiR3/s-l140.jpg",
"fullResThumbnailUrl": "https://i.ebayimg.com/images/g/7y8AAeSwEmVrBiR3/s-l1600.jpg",
"epid": null,
"title": "Nintendo Switch OLED Model White Console w/ Joy-Con Boxed TV/Tabletop/Handheld",
"condition": "Brand New",
"conditionId": 1000,
"sellerType": null,
"buyingFormat": null,
"bestOfferAccepted": true,
"bidCount": null,
"categoryId": null,
"listingType": "sold",
"shippingPrice": "9.20",
"shippingCurrency": "USD",
"shippingType": "paid",
"totalPrice": "289.19",
"sellerUsername": "asmrashee_1",
"sellerPositivePercent": 100,
"sellerFeedbackScore": 16,
"productRating": null,
"productReviewCount": null,
"itemLocation": "United States",
"scrapedAt": "2026-11-29T06:37:27.584160+00:00",
"endedAt": "2026-11-28",
"soldPrice": "279.99",
"soldCurrency": "USD"
}
]
}| Field | Meaning |
|---|---|
identified.keyword | The search the photo was read into; the sales below are for this keyword |
identified.confidence | How sure the reading is, from 0 to 1 |
identified.category | What kind of item it is |
identified.details | What was read from the photo, such as brand, model, set, card, grader or grade |
requestsCharged | Always 2 on a success |
keyword, ebaySite, count, page, hasNextPage, totalResults, results | The sold search, exactly as GET /scrape returns it |
Check identified.keyword before you trust the comps: if the photo shows a different edition or grade than you
expected, run GET /scrape with the keyword you want (one request).
Better photos, better matches
- One item per photo, filling most of the frame, on a plain background.
- For cards, the front with the whole label of a slab readable; for sneakers, the side view.
- Boxes and labels help: a set number, a style code or a model name narrows the search.
Errors
| Status | Code | When | What to do |
|---|---|---|---|
| 400 | invalid_params | No photo and no imageUrl, an imageUrl that is not a public https link, or a wrong search option | Fix the request |
| 400 or 422 | image_unavailable | The imageUrl could not be downloaded. Not counted | Check the link, or upload the file |
| 411 | invalid_params | An upload without a Content-Length header | Let your client set the length |
| 413 | invalid_image | The photo is larger than 8 MB | Send a smaller photo |
| 415 | invalid_image | The file could not be read as an image | Send a JPEG, PNG or WebP photo |
| 422 | image_not_identified | Nothing sellable could be read from the photo. Not counted | Try a clearer photo, or search by keyword |
| 429 | rate_limited | Over your plan’s speed or 20 photos a minute | Wait for Retry-After |
| 502, 503, 504 | upstream_blocked, server_busy, upstream_timeout | Reading or searching failed this time. Not counted | Retry |
Every error has the same body (error, code, requestId): see errors and retries.