# SellerComps API reference

Base URL `https://api.sellercomps.com`. Every call needs `Authorization: Bearer $SELLERCOMPS_API_KEY` except `/status`. Full docs: https://sellercomps.com/docs. OpenAPI: https://sellercomps.com/openapi.json.

## GET /sold

Sold items from any marketplace in one row format. source is one of: ebay, tcgplayer, mercari, poshmark, grailed, stockx, psa, cardhobby, goldin, fanatics, pristine, myslabs. One request per success.

| Parameter | What it does |
| --- | --- |
| `source` | Required. The marketplace. |
| `keyword` | What to search for, up to 300 characters. Required for eBay and most sources. |
| `count / page` | How many rows, and which page. |
| `clean` | true drops lots, bundles, parts or repair, empty boxes, cases and accessories, replicas and proxies before the summary. |
| `bestOfferPrice` | true (source=ebay) adds acceptedPrice: what the buyer really paid on an accepted Best Offer. The summary uses it where known. |
| `history` | true (source=ebay) searches up to 3 years of eBay sales instead of the recent ones (same as GET /history, with startDate, endDate, limit 10/20/50, sort). |
| `format / raw` | format=csv returns a file; raw=true adds the marketplace's original answer. |
| `(any other)` | Goes to that marketplace unchanged: ebaySite, soldAfter, productId, grade, market and so on. |

## GET /active

Listings for sale now on any marketplace in one row format. source is one of: ebay, tcgplayer, mercari, poshmark, grailed, stockx, goat, depop, whatnot, vinted.

| Parameter | What it does |
| --- | --- |
| `source` | Required. The marketplace. |
| `keyword` | What to search for. |
| `count / page / format / raw` | Same as /sold. |

## GET /scrape

eBay sold listings (up to 240 per call, newest first) in eBay's own field names, or active listings with sold=false.

| Parameter | What it does |
| --- | --- |
| `keyword` | Required. Short and specific: brand plus model, or card name plus set and number. |
| `ebaySite` | ebay.com (default), ebay.co.uk, ebay.de, ebay.fr, ebay.it, ebay.es, ebay.ca or ebay.com.au. |
| `count / page` | 1 to 240 results; page 1 to 100. |
| `soldAfter / soldBefore` | Date range, YYYY-MM-DD. |
| `itemCondition / conditionId` | any, new or used, or an exact eBay condition id (7000 = for parts). |
| `minPrice / maxPrice / buyingFormat / sortOrder / categoryId / itemLocation` | eBay filters. |
| `clean` | true drops lots, parts, empty boxes, accessories and replicas. |
| `bestOfferPrice` | true adds acceptedOfferPrice and acceptedOfferPriceStatus (found, pending or not_available) on accepted Best Offer sales. |
| `format` | json (default) or csv. |

## GET /history

Up to 3 years of eBay sold history for a keyword (8 eBay sites, prices in USD), with eBay's totals for the whole date range (totalSold, averageSoldPrice, sellThroughPercent). Up to 50 listings per page, newest first. One request per page.

| Parameter | What it does |
| --- | --- |
| `keyword` | Required, up to 200 characters. |
| `startDate / endDate` | YYYY-MM-DD. Default: the last 3 years up to today. startDate can go back 3 years at most. |
| `ebaySite` | ebay.com (default), ebay.co.uk, ebay.de, ebay.fr, ebay.it, ebay.es, ebay.ca or ebay.com.au. |
| `page / limit` | page 1 to 200; limit 10, 20 or 50 (default 50). |
| `sort` | lastSoldDescending (default, newest first) or quantityAscending. |
| `singleUnitOnly / allListingSites / relevance` | true for listings that sold one unit only, sales of listings made on other eBay sites too, and dropping rows that are not the searched product. |
| `clean / format` | clean=true drops lots, parts, empty boxes, accessories and replicas; format=csv returns a file. |

## POST /scrape/image

Photo search: identifies the item in a photo, then returns its eBay sold comps. 2 requests on success, nothing on failure.

| Parameter | What it does |
| --- | --- |
| `image` | Multipart field 'image', or a raw image/* body (JPEG, PNG, WebP, GIF, HEIC), up to 8 MB. |
| `imageUrl` | Or a public https link to the photo (query string or JSON body). |
| `(any /scrape option)` | ebaySite, count, itemCondition and the rest apply to the search. |

## POST /scrape/batch

Up to 100 eBay keywords in one job. Each keyword that succeeds uses one request; failed keywords are free.

| Parameter | What it does |
| --- | --- |
| `keywords` | JSON array of up to 100 keywords. |
| `ebaySite, count, sold, soldAfter, clean, bestOfferPrice ...` | Shared /scrape options for every keyword. |

## GET /scrape/batch/{jobId}

Status of a batch job and the keywords finished so far. Free; poll every few seconds until status is complete.

| Parameter | What it does |
| --- | --- |
| `jobId` | From the POST answer. |

## GET /scrape/batch/{jobId}/download.csv

Every sale of a batch job as one CSV file, with a keyword column. Free.

| Parameter | What it does |
| --- | --- |
| `jobId` | From the POST answer. |

## GET /best-offer-prices

Accepted Best Offer prices found for sales from earlier bestOfferPrice=true searches, by eBay item number. Free, 30 calls a minute. Ask again later for sales that were pending.

| Parameter | What it does |
| --- | --- |
| `itemIds` | 1 to 100 eBay item numbers, separated by commas. |

## GET /account/usage

Your plan, requests used and left this month, the rate limit and your extra requests (credits). Free.

No parameters.

## GET /account/requests

Your own requests from the last 30 days, successes and failures, newest first, each with via (mcp, dashboard or api). Free, 30 calls a minute.

| Parameter | What it does |
| --- | --- |
| `limit` | 1 to 100 rows. |
| `before` | The nextBefore value from the previous page. |
| `status` | all (default), success or failed. |

## GET /status

Public health check of the API, the database and the data source. No key needed.

No parameters.

## GET /tcgplayer/sold

TCGplayer: Completed sales for one TCGplayer product, plus optional market price history.

| Parameter | What it does |
| --- | --- |
| `keyword` | Card or product name with set and number. Required unless productId is sent. |
| `productId` | The number in a TCGplayer product URL, for an exact match. |
| `count` | 1 to 250 sales. Defaults to 100. |
| `condition / variant / language` | For example Near Mint, Holofoil, Japanese. |
| `history` | none, month, quarter or annual market price buckets. |
| `soldAfter / soldBefore` | Trim the sales to a date window (YYYY-MM-DD). |

## GET /tcgplayer/listings

TCGplayer: Active listings with price, shipping, condition and seller rating.

| Parameter | What it does |
| --- | --- |
| `keyword or productId` | The product to list. |
| `condition / variant / language` | Same filters as the sold endpoint. |
| `page` | 1 to 50. |
| `count` | 1 to 50 listings per page. Defaults to 25. |

## GET /psa/search

PSA: Find a card and the PSA specId you use in the other calls.

| Parameter | What it does |
| --- | --- |
| `keyword` | Card name, set and number. |
| `count` | 1 to 20 matches. Defaults to 10. |
| `page` | 1 to 50. |

## GET /psa/card

PSA: Prices by grade, recent sales and the population report for one card.

| Parameter | What it does |
| --- | --- |
| `specId` | PSA spec ID from the search. Or send keyword for the best match. |
| `count` | 0 to 50 recent sales. Defaults to 10. |
| `grade` | 1 to 10 (half grades allowed) or raw, to filter the sales. |
| `timeRange` | Months of sales to include, 0 to 120 (0 = all). |
| `marketplace` | ebay, fanatics, goldin or heritage, to keep one venue's sales. |

## GET /psa/sets

PSA: Every PSA set for a game, newest first, with the headingId for population calls.

| Parameter | What it does |
| --- | --- |
| `game` | pokemon, one-piece, magic, yugioh, lorcana and more. |
| `keyword` | Words in the set name. |
| `year` | 4-digit year. |

## GET /psa/set

PSA: The population of every card in a set, for every grade.

| Parameter | What it does |
| --- | --- |
| `headingId` | PSA set ID from /psa/sets. |
| `url` | Or the set's PSA population page link. |

## GET /beckett/cert

Beckett: The graded card behind a Beckett cert number, with subgrades and population.

| Parameter | What it does |
| --- | --- |
| `cert` | The cert number on the label, up to 10 digits. Leading zeros optional. |
| `type` | BGS (default), BVG or BCCG. |
| `fresh` | true reads the cert again, for example to refresh the population. |

## GET /myslabs/sold

MySlabs: Recent sold slabs on MySlabs that match a keyword.

| Parameter | What it does |
| --- | --- |
| `keyword` | Card, player, set and grade. |
| `sortBy` | recent (default), price_desc or price_asc. |
| `deep` | true merges several result sets for a few hundred sales. |

## GET /cardhobby/sold

CardHobby: Completed CardHobby sales from the last 12 months for a keyword.

| Parameter | What it does |
| --- | --- |
| `keyword` | English or Chinese words, matched against sale titles. |
| `count` | 1 to 60 sales per page (1 to 20 with details). |
| `page` | Page number, up to 60,000 sales per search. |
| `sortBy` | newest (default), oldest, price_desc or price_asc. |
| `minPrice / maxPrice` | Price range in CNY. |
| `details` | true adds grader, grade, cert number, year, set, player and every photo. |

## GET /stockx/search

StockX: Products by keyword or style code with lowest ask, highest bid and recent sales counts.

| Parameter | What it does |
| --- | --- |
| `keyword` | What to search for. Required unless styleId is sent. |
| `styleId` | A style code; returns only exact matches. |
| `market` | us, ca, uk, de, fr, it, es, nl, au or jp. |
| `page` | 1 to 25, 40 products per page. |

## GET /stockx/product

StockX: One product in full with the market for every size.

| Parameter | What it does |
| --- | --- |
| `productId or styleId` | The StockX slug, product URL or style code. |
| `size` | One size: 10, US M 10, EU 44, UK 9, 7W, M or XL. |
| `market` | Region for prices and currency. |

## GET /stockx/sales

StockX: The latest individual sales of a product or one size.

| Parameter | What it does |
| --- | --- |
| `productId or styleId` | The product. |
| `size` | One size, to get that size's own sales. |
| `count` | 1 to 50 sales, newest first. |
| `soldAfter / soldBefore` | Date window (UTC). |
| `priceHistory` | true adds the average price over 12 months. |

## GET /goat/search

GOAT: Products by keyword or style code with retail price and lowest asks.

| Parameter | What it does |
| --- | --- |
| `keyword` | What to search for. Required unless styleId is sent. |
| `styleId` | A style code; returns only exact matches. |
| `page` | 1 to 50. |
| `count` | 1 to 100 products per page. Defaults to 24. |

## GET /goat/product

GOAT: One product with prices for every size and condition.

| Parameter | What it does |
| --- | --- |
| `productId or styleId` | The GOAT slug, URL, numeric id or style code. |
| `size` | One US size (10, 10.5) or a letter size (S to XL). |
| `condition` | all, new, new_with_defects or used. |

## GET /mercari

Mercari: Sold or active Mercari listings for a keyword, on Mercari US or Japan.

| Parameter | What it does |
| --- | --- |
| `keyword` | Any search term. Japanese works best on marketplace=jp. |
| `marketplace` | us (default) or jp. |
| `sold` | true (default) for sold items, false for active listings. |
| `count` | 1 to 100 per page. |
| `page` | 1 to 100. |
| `itemCondition` | any, new, likeNew, good, fair or poor. |

## GET /poshmark/sold

Poshmark: Poshmark US sold listings for a keyword, 48 per page.

| Parameter | What it does |
| --- | --- |
| `keyword` | Brand, model and item. |
| `department` | all, women, men, kids, home, pets or electronics. |
| `condition` | all, or nwt for New With Tags only. |
| `brand` | A Poshmark brand name such as Louis Vuitton. |
| `sortBy` | sold_recently, price_asc, price_desc or likes. |
| `enrich` | true adds the seller's location, sold count and ship time. |

## GET /poshmark/listings

Poshmark: Poshmark US listings for sale now, 48 per page.

| Parameter | What it does |
| --- | --- |
| `keyword` | What to search for. |
| `category` | Shoes, Bags, Jeans and so on (needs department). |
| `size` | Size labels as Poshmark shows them, up to 10. |
| `condition` | nwt, like_new, good, fair, comma-separated. |
| `sortBy` | relevance, newest, price_asc, price_desc or likes. |

## GET /grailed/sold

Grailed: Grailed sold listings with the price paid and shipping.

| Parameter | What it does |
| --- | --- |
| `keyword` | Designer, model and item. |
| `department` | any, menswear or womenswear. |
| `condition` | any, new, gently_used, used or worn. |
| `minPrice / maxPrice` | Price range in USD. |
| `count` | 1 to 100 per page, up to 1,000 rows per search. |

## GET /grailed/listings

Grailed: Active Grailed listings with price, shipping and offers.

| Parameter | What it does |
| --- | --- |
| `keyword` | What to search for. |
| `sortBy` | default, newest, price_asc or price_desc. |
| `count` | 1 to 100 per page. |

## GET /depop/listings

Depop: Current Depop listings for a keyword in one country.

| Parameter | What it does |
| --- | --- |
| `keyword` | Brand, model and item. |
| `country` | us (default), gb, au or ca. |
| `count` | 1 to 48 listings per page. Defaults to 24. |
| `cursor` | nextCursor from the previous page. |

## GET /vinted/listings

Vinted: Active Vinted listings for a keyword in one market.

| Parameter | What it does |
| --- | --- |
| `keyword` | What to search for. |
| `market` | us, uk, fr, de, it, es, nl, pl and 19 more. |
| `sortBy` | relevance, newest, price_asc or price_desc. |
| `condition` | new_with_tags, new_without_tags, very_good, good, satisfactory. |
| `brandId / sizeId / categoryId` | Vinted ids, read from an item answer. |
| `page` | 1 to 10, 96 listings per page. |

## GET /vinted/item

Vinted: One Vinted listing in full, with status and seller details.

| Parameter | What it does |
| --- | --- |
| `itemId` | The number in the listing URL, or the URL itself. |
| `market` | The market the listing was found on. |

## GET /whatnot/listings

Whatnot: Whatnot listings and live auctions for a keyword or one seller's shop.

| Parameter | What it does |
| --- | --- |
| `keyword` | Card, player, set or item. Optional when seller is set. |
| `format` | all, buy_it_now or auction. |
| `seller` | A Whatnot username, to search one shop. |
| `country` | Shipped-from countries: us, gb, ca, au, de, fr, jp and more. |
| `gradingService / grade` | For example PSA and 10. |
| `cursor` | nextCursor from the previous page. |

## GET /goldin/sold

Goldin: Goldin sold lots that match a keyword.

| Parameter | What it does |
| --- | --- |
| `keyword` | Card, player, set and grade. |
| `sortBy` | recent (default), price_desc or price_asc. |
| `page` | 1 to 100, 50 lots per page. |

## GET /fanatics/sold

Fanatics Collect: Fanatics Collect sales that match a keyword.

| Parameter | What it does |
| --- | --- |
| `keyword` | Card, player, set and grade. |
| `sortBy` | recent (default), price_desc or price_asc. |
| `page` | 1 to 200, 50 sales per page. |

## GET /pristine/sold

Pristine: Ended Pristine Auction lots that match a keyword.

| Parameter | What it does |
| --- | --- |
| `keyword` | Card, player, item and grade. |
| `sortBy` | recent (default), price_desc or price_asc. |
| `page` | 1 to 50, 60 lots per page. |

## Errors

| Status | Code | What to do |
| --- | --- | --- |
| 400 | `invalid_params` | Fix the parameter the message names. Not counted. |
| 401 | `unauthorized` | The key is missing, wrong or deleted. |
| 402 | `quota_exceeded` / `payment_required` | This month's requests and extra requests are used up, or a payment needs attention. |
| 404 | `not_found` | Nothing matched, or the page is past the last one. Not counted. |
| 429 | `rate_limited` | Wait for Retry-After. |
| 502 / 503 / 504 | `upstream_blocked`, `server_busy`, `upstream_timeout` | The marketplace was slow or busy. Retry after Retry-After. Not counted. |
