CompSniper Docs

Use CompSniper with ChatGPT, Claude or Cursor

A copy-paste setup prompt that teaches ChatGPT, Claude, Cursor or any AI assistant to build with the CompSniper sold-comps API, plus the agent skill and MCP options.

There are two ways to put CompSniper in an AI assistant. Pick the one that matches what you want.

You want toUse
Have the assistant write code that calls the API (a script, a sheet, an app)The setup prompt below, or the agent skill
Ask for sold prices in the chat, no codeThe MCP connector, no API key needed (recent sold comps and up to 3 years of eBay sold history)

1. Save your API key

Create a key in the dashboard and save it as an environment variable named COMPSNIPER_API_KEY. Do not paste the key into the chat: the prompt tells the assistant to read it from the environment instead.

export COMPSNIPER_API_KEY="cs_live_REPLACEWITHYOURKEY"

2. Paste the setup prompt

Copy this into ChatGPT, Claude, Cursor, Codex or any other assistant, then describe what you want to build.

You are helping me build with the CompSniper API, which returns real completed (sold) eBay listings and other marketplace data as JSON.

Read these before writing code:
- Agent skill (endpoints, parameters, errors, billing): https://compsniper.com/.well-known/skills/compsniper/SKILL.md
- Full reference: https://compsniper.com/.well-known/skills/compsniper/references/api-reference.md
- All docs as plain text: https://compsniper.com/llms.txt

Rules:
- Base URL: https://api.compsniper.com
- Auth: send the header "Authorization: Bearer <key>". Read the key from the COMPSNIPER_API_KEY environment variable. Never hardcode it, print it, or put it in browser code.
- eBay sold comps: GET /v1/scrape?keyword=...&ebaySite=ebay.com (8 sites: ebay.com, .co.uk, .de, .fr, .it, .es, .ca, .com.au). Up to 240 sales per call with a summary (median, mean, p25, p75). sold=false returns active listings. relevance=true (default) removes accessories, parts and wrong models; relevance=false returns eBay's raw results. bestOfferPrice=true adds acceptedOfferPrice, the real price paid on accepted Best Offer sales (bestOfferWait=true waits for the lookup on accounts with dedicated Best Offer capacity). Optional sellerCountry and postalCode. seller=<eBay username> returns only that seller's listings, and keyword is optional with it (GET /v1/scrape?seller=sevenpark = the seller's recent sold listings).
- 3-year history: GET /v1/research/sold (keyword, startDate and endDate required, 50 rows per page, follow nextPage).
- One listing: GET /v1/items/details?itemId=... (condition, item specifics, description, seller, images, status); POST /v1/items/details/batch for up to 50 item IDs.
- Photo search: POST /v1/scrape/image with a photo identifies the item and returns its sold comps.
- Saved Best Offer prices: GET /v1/best-offer-prices?itemIds=... (free, up to 100 IDs from earlier bestOfferPrice=true searches; sales still pending get a quick check first).
- TCGplayer: GET /v1/tcgplayer/sold and /v1/tcgplayer/listings take a product name or productId (never a pasted eBay title); every product, sale and listing has imageUrl.
- PSA graded cards: GET /v1/psa/search (find the specId), /v1/psa/card (prices by grade, recent sales, population), /v1/psa/sets and /v1/psa/set (population of a whole set).
- Beckett graded cards: GET /v1/beckett/cert?cert=<number>&type=BGS|BVG|BCCG (final grade, centering/corners/edges/surface subgrades, label, card, date graded, population at the grade and higher; unknown cert = 404 not_found).
- Fashion resale: GET /v1/grailed/sold and /v1/grailed/listings, GET /v1/depop/listings (country us, gb, au or ca), GET /v1/poshmark/sold, GET /v1/mercari (sold=true or false; marketplace=jp searches Japanese Mercari, prices in JPY with listedAt and soldAt).
- Whatnot: GET /v1/whatnot/listings (current Buy It Now listings and live-show auctions with current bid and bid count; format all, buy_it_now or auction; filters for country, category, price, seller rating, grading service, grade, set, cert number and more; seller=<username> searches one shop; facets list the exact filter values).
- Graded card auctions: GET /v1/goldin/sold, /v1/fanatics/sold, /v1/pristine/sold and /v1/myslabs/sold return auction results by keyword (price with buyer's premium, sale date, sale type, grade).
- Keep keywords short: brand plus model, or card name plus set and number. Extra words remove matches.
- On 429 or 503, wait for the Retry-After header and retry a bounded number of times. Do not retry 400 or quota_exceeded. Failed requests are not charged.

Start with a short script that prints the median sold price and sample size for "nintendo switch oled", then ask me what to build next.

The same prompt is one click away in your dashboard, under Use your key with ChatGPT, Claude or Cursor, right after you create a key.

3. Keep the assistant on track

  • Point it at the skill. If your tool supports Agent Skills (Claude Code, Cursor, Codex), install the CompSniper skill once with npx skills add https://compsniper.com and skip the prompt.
  • Short keywords win. Assistants tend to send full product titles. Ask for brand plus model, or card name plus set and number. See Getting more results.
  • Failed requests are free, so a bounded retry on 429 or 503 costs nothing. See Errors.

On this page