# SoldStack API docs

> SoldStack returns clean sold-price comps for secondhand clothing, shoes and bags, from Poshmark (US) and Poshmark Canada (CAD) sold listings. It removes other items, bundles, kids' sizes, duplicates and outliers, then gives the median sold price, typical range, days to sell, what the seller keeps after Poshmark fees, price by condition, a confidence rating and a buy / maybe / pass verdict. Home, kitchen, electronics, media, pet and beauty searches are cleaned too (accessories, parts, other models and lots removed), and say so when too few sales of the actual product are left to price it. Use it through the REST API, Google Sheets formulas or the remote MCP server. Plans: free 50 lookups/month, Starter $9/month, Growth $29/month, Business $99/month. Free and Starter (keys created from Oct 25, 2026) value the last 90 days of sales and read 20 pasted listings a day; Growth and Business use the full archive back to 2012 and read 200 (Growth) or 1,000 (Business) a day, with reserved spots in line when busy, 300 or 600 deep lookups per 10 minutes, and 10% or 20% of overage before any cutoff. Showing results to your own users (in your app or site) needs Business; Free, Starter and Growth are for your own use, and keys created before November 13, 2026 (00:00 UTC) keep that right on any plan.

This is the Markdown version of https://soldstack.dev/docs, built from the same page, so the two always match. The machine-readable spec is https://soldstack.dev/openapi.json and the site map for AI tools is https://soldstack.dev/llms.txt.

## Quickstart

Three steps to your first sold-price lookup. It takes about two minutes.

**Showing results to your own users needs Business ($99/month).** Free, Starter and Growth are for your own use: pricing your own items, research and internal tools. The exception: keys created before November 13, 2026 (00:00 UTC) keep the right to show results to your own users on any plan. See [the terms](https://soldstack.dev/terms#show-results).

### Get a free key

Enter your email on the [home page](https://soldstack.dev/#key). Free keys include 50 lookups a month, no card needed. Your key starts with `ss_`.

1. 

### Make your first call

Send your search as `q` and your key in the `X-API-Key` header. `limit=1` keeps the answer short; the stats still use every clean match.

```bash
curl "https://soldstack.dev/v1/sold?q=coach+tabby&limit=1" \
  -H "X-API-Key: ss_your_key"
```

```python
import json, os, requests

r = requests.get(
    "https://soldstack.dev/v1/sold",
    params={"q": "coach tabby", "limit": 1},
    headers={"X-API-Key": os.environ.get("SOLDSTACK_KEY", "ss_your_key")},
    timeout=30,
)
r.raise_for_status()
print(json.dumps(r.json(), indent=2))
```

```javascript
// Node 18 or later. Save as first-call.mjs and run: node first-call.mjs
const key = process.env.SOLDSTACK_KEY ?? "ss_your_key";
const res = await fetch(
  "https://soldstack.dev/v1/sold?q=coach+tabby&limit=1",
  { headers: { "X-API-Key": key }, signal: AbortSignal.timeout(30000) }
);
if (!res.ok) throw new Error((await res.json()).detail);
console.log(JSON.stringify(await res.json(), null, 2));
```

Keep the key on your server, in an environment variable, not in browser or app code (see [Authentication](https://soldstack.dev/docs#auth)). A fresh search can take up to 10 seconds, so set a timeout of at least 30.

2. 

### Read the response

You get JSON like this. It is the same shape as the full [Response](https://soldstack.dev/docs#response) below, with `by_condition` left out, the image link shortened and the seller name changed. Your numbers will differ as new sales come in.

```json
{
  "query": "coach tabby",
  "source": "poshmark",
  "stats": {
    "count": 41,
    "currency": "USD",
    "median": 220.0,
    "mean": 236.78,
    "p10": 150.0,
    "p90": 340.0,
    "min": 125.0,
    "max": 450.0,
    "median_days_to_sell": 3.9,
    "median_net_payout": 176.0,
    "suggested_max_buy": 58.67,
    "oldest_sold": "2022-12-14",
    "newest_sold": "2026-10-25"
  },
  "cleaning": {
    "found": 48,
    "used": 41,
    "removed": { "variants": 6, "price_outliers": 1 },
    "item_type": "bags",
    "confidence": "high",
    "confidence_note": "41 matching sales with consistent prices."
  },
  "items": [
    {
      "source": "poshmark",
      "id": "6ab344731b53fe724da2f539",
      "title": "Coach Tabby Hobo Bag in Saddle Brown",
      "brand": "Coach",
      "size": "OS",
      "condition": "used_like_new",
      "price": 220.0,
      "currency": "USD",
      "sold_at": "2026-10-06T04:26:58-07:00",
      "listed_at": "2026-09-22T20:18:51-07:00",
      "days_to_sell": 13.3,
      "url": "https://poshmark.com/listing/Coach-Tabby-Hobo-Bag-in-Saddle-Brown-6ab344731b53fe724da2f539",
      "image": "https://di2ponv0v5otw.cloudfront.net/posts/…jpg",
      "seller": "closet_name",
      "department": "Women",
      "category": "Bags"
    }
  ],
  "usage": { "used": 1, "limit": 50, "remaining": 49, "grace": 0, "plan": "free", "resets": "2026-11-01", "charged": true }
}
```

- **`stats.median`**: The typical sold price, in `stats.currency`. `stats.p10` and `stats.p90` are the realistic low and high.
- **`stats.median_net_payout`**: What a seller keeps from the median after Poshmark's fee. `stats.suggested_max_buy` is the most to pay to flip it.
- **`cleaning.confidence`**: `high`, `medium` or `low`, with a plain reason in `confidence_note`. Check `stats.count` first: with no matches, `stats` is just `{"count": 0}`.
- **`usage.remaining`**: Lookups left this month. A repeat of the same search within 6 hours is free (`usage.charged` is `false`).
3. 

> **Base URL:** `https://soldstack.dev`. Everything is HTTPS and JSON. Uptime and incidents: [status page](https://stats.uptimerobot.com/91Bm79CSIc). Docs for AI tools: [this page as Markdown](https://soldstack.dev/docs.md).

**Next:** [where the key goes](https://soldstack.dev/docs#auth) · [filters](https://soldstack.dev/docs#sold) · [value a whole list](https://soldstack.dev/docs#value) · [MCP setup for AI agents](https://soldstack.dev/docs#mcp) · [plan limits](https://soldstack.dev/docs#limits) · [errors](https://soldstack.dev/docs#errors).

## Authentication

Every request needs your API key. Send it in the `X-API-Key` header (recommended) or as `Authorization: Bearer ss_your_key`. Only if your tool can't set any header (some no-code tools and connector screens), the `api_key` query parameter also works, but a key in a URL can end up in access logs, browser history and shared screenshots, so use the header whenever you can.

**Keep your key on your server.** Don't put it in browser JavaScript or a mobile app, where anyone can read it. Call SoldStack from your backend and pass the results on from there (showing results to your own users [needs Business](https://soldstack.dev/docs#show-results) for newer keys).

You can see your key, plan and usage on your [account page](https://soldstack.dev/account).

## GET /v1/sold

Returns recently sold listings that match a search, with summary stats.

### Query parameters

- **`q`** (string · required): What to search for, 2–100 characters. Brand plus item works best, e.g. `lululemon align 6`. Case and extra spaces are ignored.
- **`source`** (poshmark · poshmark_ca · default poshmark): Which marketplace to search: `poshmark` (US, prices in USD) or `poshmark_ca` (Poshmark Canada, prices in CAD). Canadian results say so in `stats.currency` and each item's `currency`, link to poshmark.ca, and `median_net_payout` uses Poshmark Canada's fee: a flat C$3.95 under C$20, otherwise 20%, before GST/HST on the fee. Any other value is a 400.
- **`limit`** (integer · 1–200 · default 50): How many sold listings to return in `items`. Stats always use every clean match, whatever the limit. Poshmark returns up to 48 sold listings per page in its own relevance order, not by date, so a normal lookup gives you at most 48 back; use `days` to limit to recent sales, and `deep=true` to read up to ~190.
- **`deep`** (boolean · default false): Read up to about 190 sold listings (four Poshmark result pages of up to 48, still in Poshmark's relevance order, not by date) instead of one page. Slower when not cached (about 10 seconds) and still counts as one lookup. Cached separately from the normal lookup. Up to 120 new deep lookups per 10 minutes per key, 300 on Growth and 600 on Business (cached repeats don't count); past that you get a 429 stating your key's limit.

### Filters

Optional. Filters work on the cached search, so trying different filters on the same search doesn't use extra lookups.

- **`size`** (string): Only this size. Letter sizes are normalized, so `M`, `medium` and `Size Medium` match each other, and `8` matches `8.0`.
- **`condition`** (comma-separated): `new`, `used`, a plain word (`nwt`, `like new`, `excellent`, `very good`, `good`, `fair`, `poor`), or any exact [condition value](https://soldstack.dev/docs#response), e.g. `used_like_new,used_excellent`. Case, spaces and hyphens don't matter. An unknown value is a 400 that lists the accepted ones. Listings with no condition are left out when you filter.
- **`days`** (integer · 1–365): Only sales from the last N days. Without it, results are whatever Poshmark ranks as relevant and can include sales that are years old (see `stats.oldest_sold`); `days=365` or `days=90` keeps prices recent. Filters the sales behind `stats` too, unlike `sort`, which only orders the sales returned. To get the most recent sales, use `days` to set the window and `sort=recent` to order them.
- **`min_price / max_price`** (number): Only sales in this price range.
- **`exclude`** (comma-separated): Drop listings whose title contains any of these words, e.g. `exclude=stained,damaged`.
- **`exclude_seller`** (comma-separated): Drop sales by these seller usernames (case-insensitive), e.g. `exclude_seller=closet_a,Closet_B`, before the stats are computed. Counted in `cleaning.removed` as `excluded_seller`. Sales cached before sellers were recorded have no `seller` and are never excluded.
- **`department`** (comma-separated): Only sales in these Poshmark departments (case-insensitive): `Women`, `Men`, `Kids`, `Home`, `Pets`, `Electronics`. An unknown department returns a 400 listing the valid ones. `department=kids` also turns off the default `kids_sizes` removal, so kids' items are kept, and when `q` has no kids' word (kids, girls, boys, toddler, baby, youth…) it searches with `kids` added: Poshmark only returns kids' sales for a search that asks for them, so `q=snow pants&department=kids` searches `kids snow pants`. The response's `query` shows the search used and `query_note` says why; cleaning still matches titles against your own `q`, so a kids' sale titled "Levi's 505 jeans" is kept. Sales cached before departments were recorded have no `department`: `kids` falls back to the kids' size and title check, `women` and `men` keep them, and other departments drop them. Counted in `removed` as `department`.
- **`kids_age`** (baby · toddler · big_kids): Only kids' sales in these sizes: `baby` (0–24 months), `toddler` (2T–5T) or `big_kids` (4/5 and up; 4 and 5 count as both toddler and big kids). Poshmark's Kids department runs from newborn to teen, so without it a kids' search keeps 12–24 month and toddler sizes. Sales filed under Women or Men, and sales whose size can't be read as an age, are left out; counted in `removed` as `kids_age`. Like `department=kids`, it adds `kids` to a query with no kids' word.
- **`category`** (comma-separated): Only sales in these Poshmark categories (case-insensitive), e.g. `category=Jeans,Shorts`. Sales with no recorded category are kept. Counted in `removed` as `category`.
- **`sort`** (recent · price_asc · price_desc): Order of the sales returned in `items`: `recent` is newest first (sales with no sold date last), `price_asc` and `price_desc` by price. It only orders the returned list, so `stats` never change; `limit` then keeps the first N in that order. Leave it out for the marketplace's order. To restrict which sales are used, see `days`.
- **`include_removed`** (boolean · default false): Add `removed_items` to the response: the sales cleaning and your filters dropped, each with a `removed_reason` (see [removed_items[]](https://soldstack.dev/docs#removed-items)), up to `limit`.
- **`clean`** (boolean · default true): Clean comps (below). Set `clean=false` to get the marketplace's raw results; your filters still apply.

### Clean comps

Marketplace search is loose: "lululemon align" also returns joggers, bodysuits and bundles, and "nike dunk low" mixes toddler sizes with adult pairs. Before computing anything, SoldStack removes:

- **`off_topic`**: Titles missing one of your search words. Numbers in your search can also match the size, so `lululemon align 6` means size 6.
- **`replicas`**: Listings whose title says replica, rep, dupe, fake, 1:1, look-alike, inspired by, or a brand from your search followed by inspired, unless you searched for those words. Price outliers (next) also catch most unlabeled fakes, which usually sell far below the real price.
- **`bundles`**: Bundles, lots and sets, unless you searched for a bundle: "X & Y" listings with an item on each side ("Hoodie & Jogger"; not "Cat & Jack" or "Black and White"), counts ("Two ...", "Trio", "(4 items)", "2pc"), and, in kids' and baby searches, plurals like "Polo Shirts".
- **`wrong_age`**: In a baby, infant, toddler, kids', boys' or girls' search, sales whose size is for a different age, even when a title or brand word matches: a 4T "Kyte BABY" pajama set in `baby pajamas`, a 3 month size in `boys jeans`, a size 6 coat in `toddler jacket`. Sales with no kids' size, or one that could fit either age, are kept.
- **`kids_sizes`**: Toddler, youth and GS sizes, unless your search asks for them. To price kids' clothing, put girls, boys, kids, toddler, youth or GS in `q`: `girls jeans` keeps the girls' sales. Sales Poshmark files under Women or Men are never counted as kids' (a "Soft Girl" cardigan, an 8.5B shoe).
- **`other_item_types`**: When most matches are one kind of item (bags, leggings, sneakers), other kinds are dropped. Name the type in your search to choose it yourself.
- **`variants`**: Listings of a different model of the same item, e.g. a Pillow or Twisted Tabby when you searched Tabby 26, are removed.
- **`duplicates`**: The same listing showing up twice (for example on two result pages) counts once. Two separate listings of the same item are two sales.
- **`price_outliers`**: Prices far outside the rest, once there are at least 8 sales to compare.

### Beyond clothing

A search for something other than clothing, shoes or bags is cleaned for what it is, and `cleaning.family` says which family it was read as: `home` (pillows, candles, bedding, towels, decor), `kitchen` (cookware, appliances, tumblers, mugs), `electronics` (phones, tablets, consoles, headphones, cameras), `media` (video games, vinyl, DVDs, board games, books), `pets`, `beauty` (fragrance, makeup, skincare, hair tools), `toys`, `kids_gear` (strollers, carriers, monitors) and `jewelry` (necklaces, bracelets, earrings, rings, charms and watches; smartwatches are `electronics`). The family comes from your words and from where Poshmark filed the sales; clothing, shoe and bag searches (`family` is `null`) are cleaned exactly as above. On top of `off_topic`, `replicas`, `duplicates` and `price_outliers`, a goods search removes:

- **`accessories`**: Cases, chargers, covers, bands, mounts and other add-ons that share the product's name ("Case for iPad", "Dough Hook for Stand Mixer"), unless your search names the accessory. Extras after "with" or "+" don't count: "iPad with case" is an iPad.
- **`parts`**: Pieces sold alone or broken units: "lid only", "box only", "for parts", a blender base or pitcher.
- **`other_product`**: A different product with the same name: a cookbook in `air fryer`, an amiibo in a game search.
- **`several_units`**: Lots, bundles, counts ("set of 4", "(2)") and listings with a second product ("Harness and Leash Set"), unless the set is itself one product (a sheet set, a cookware set).
- **`other_model`**: Another model, size or version than the one you searched: an iPhone 13 Pro Max in `iphone 13 pro`, a 30 oz tumbler in `stanley quencher 40 oz`.
- **`other_department`**: A sale filed where the product doesn't live: a person's sweater (Women > Sweaters) in `dog sweater`.
- **`not_hardware`**: In a console search (`nintendo switch`, `xbox series x`), games and covers with no console in the title.

A relisted copy of the same listing (same title and price) is returned in `items` but counted once in `stats`; `cleaning.relists` says how many. When fewer than 6 sales of the actual product are left, `cleaning.thin` is `true`, confidence is `low` and `confidence_note` says so ("Only 3 sales of the actual product; the rest were accessories, parts or other items."): there aren't enough to price it. When the first page is mostly accessories and Poshmark has a subcategory for the product (Consoles, Tablets, Smartwatches, Vinyl Records, Mugs...), one more page from that subcategory is added before cleaning, and `cleaning.facet` says which; it counts as the same lookup. Toys and kids' gear are cleaned the same way but still rated `low` with a note (`cleaning.guarded`) until they pass their accuracy checks.

## Response

A JSON object with the normalized query, the source, a `stats` summary, a `cleaning` report and the `items` that sold. This is a real response, trimmed to one item:

```json
{
  "query": "coach tabby",
  "source": "poshmark",
  "stats": {
    "count": 46,
    "currency": "USD",
    "median": 194.0,
    "mean": 247.25,
    "p10": 107.0,
    "p90": 409.9,
    "min": 50.0,
    "max": 775.0,
    "median_days_to_sell": 4.2,
    "median_net_payout": 155.2,
    "suggested_max_buy": 51.73,
    "oldest_sold": "2025-11-03",
    "newest_sold": "2026-10-12"
  },
  "by_condition": [
    { "condition": "new_with_tags", "label": "New with tags", "count": 12, "median": 228, "p10": 195, "p90": 265 },
    { "condition": "used_excellent", "label": "Excellent", "count": 2, "median": 170 }
  ],
  "cleaning": {
    "found": 48,
    "used": 46,
    "removed": { "bundles": 1, "other_item_types": 1 },
    "item_type": "bags",
    "confidence": "medium",
    "confidence_note": "46 matching sales, but prices vary. Add a model, size or condition to narrow it."
  },
  "items": [
    {
      "source": "poshmark",
      "id": "6aa7b1f5353f0a1005ca7d66",
      "title": "Coach Tabby 20",
      "brand": "Coach",
      "size": "OS",
      "condition": "used_good",
      "price": 135.0,
      "currency": "USD",
      "sold_at": "2026-09-22T10:58:58-07:00",
      "listed_at": "2026-09-14T01:51:24-07:00",
      "days_to_sell": 8.4,
      "url": "https://poshmark.com/listing/Coach-Tabby-20-6aa7b1f5353f0a1005ca7d66",
      "image": "https://di2ponv0v5otw.cloudfront.net/posts/…jpeg",
      "seller": "closet_name",
      "department": "Women",
      "category": "Bags"
    }
  ],
  "usage": { "used": 12, "limit": 50, "remaining": 38, "plan": "free", "resets": "2026-11-01", "charged": true }
}
```

### stats

Computed over every clean match, not just the ones returned in `items`. Prices are in `currency` (USD below means USD, or CAD for `poshmark_ca`). When nothing matched, `stats` is just `{"count": 0}` and `items` is empty, so check `count` before reading the other fields.

- **`count`** (integer): How many sold listings matched (same as `cleaning.used`).
- **`currency`** (string): The currency of every price in the response: `USD` for `poshmark`, `CAD` for `poshmark_ca`.
- **`median`** (number · USD): The middle sold price. The best single "what it sells for" number, because one unusually high sale doesn't move it.
- **`mean`** (number · USD): The average sold price.
- **`p10 / p90`** (number · USD): The realistic low and high end: 10% of sales were below `p10`, 10% above `p90`.
- **`min / max`** (number · USD): Cheapest and most expensive sale.
- **`median_days_to_sell`** (number · days · or null): Typical time from listing to sale. A low number means the price moves quickly.
- **`median_net_payout`** (number · USD): What the seller keeps from the median price after the marketplace fee. On Poshmark: $2.95 flat under $15, otherwise 20%.
- **`suggested_max_buy`** (number · USD): A third of the net payout: a common reseller rule for the most to pay when sourcing an item to flip.
- **`oldest_sold / newest_sold`** (string · ISO date · or null): The sold dates of the oldest and newest sale behind the stats, e.g. `2025-11-03`. Poshmark ranks sold results by relevance, not date, so check these: if the range reaches back years, add `days=365` or `days=90`.

### by_condition

The same sales split by the condition the seller listed, best condition first, so you can price the item you actually have. Conditions with no sales are left out, as are older listings that have no condition.

- **`condition`** (string): `new_with_tags`, `not_new_with_tags`, `used_like_new`, `used_excellent`, `used_good` or `used_fair`. The same values the `condition` filter takes.
- **`label`** (string): Display name, e.g. "Like new".
- **`count`** (integer): Sales in this condition.
- **`median`** (number · USD): Middle sold price in this condition.
- **`p10 / p90`** (number · USD · optional): Typical range. Only included with 3 or more sales, since a range from one or two sales would mislead.

### cleaning

What was removed and how far to trust the stats.

- **`found`** (integer): Sold listings the marketplace returned.
- **`used`** (integer): How many were kept and used for `stats` (same as `stats.count`).
- **`removed`** (object): Count per reason: `filters`, `excluded_seller`, `department`, `category`, `off_topic`, `replicas`, `bundles`, `kids_sizes`, `kids_age`, `wrong_age`, `other_item_types`, `variants` (a different model of the same item, e.g. a Pillow or Twisted Tabby when you searched Tabby 26), `duplicates`, `price_outliers`, and for [goods](https://soldstack.dev/docs#goods) `accessories`, `parts`, `other_product`, `several_units`, `other_model`, `other_department`, `not_hardware`. Reasons with nothing removed are left out. `include_removed=true` returns the sales behind these counts.
- **`item_type`** (string · or null): The kind of item the comps are about, e.g. `bags`, `pants/leggings`, `shoes`. `mixed` when no single kind dominates.
- **`confidence`** (high · medium · low): `high`: 15+ matching sales with consistent prices. `medium`: 6+ sales, or prices that vary. `low`: few sales, very different prices, or no matches. For [goods](https://soldstack.dev/docs#goods), always `low` when `thin` or `guarded`, and at most `medium` when more than half the sales found were accessories, parts or other products. Also `low` when most of the sales are home, electronics, pet or toy items that no goods family covers, and the note says so.
- **`confidence_note`** (string): A plain-English reason and a tip, written ready to show (showing results to your own users [needs Business](https://soldstack.dev/docs#show-results) for newer keys). When more than half the sales used are over a year old it ends with "Most of these sales are over a year old; add days=365 (or days=90) for recent prices only."
- **`undated`** (integer · optional): Kept sales with no sold date. Only present, and only above 0, for a source that doesn't show sold dates. Poshmark and Poshmark Canada sales are always dated, so you won't see it today.
- **`note`** (string · optional): Only present with `partial_matches` (below): says those sales are not part of the stats.
- **`family`** (string · or null): The [goods family](https://soldstack.dev/docs#goods) the search was cleaned as: `home`, `kitchen`, `electronics`, `media`, `pets`, `beauty`, `jewelry`, `toys` or `kids_gear`. `null` for clothing, shoes and bags, and with `clean=false`.
- **`thin`** (boolean · goods only): `true` when fewer than 6 sales of the actual product are left: confidence is `low`, the verdict is `maybe`, and `confidence_note` says how many.
- **`guarded`** (boolean · goods only): `true` for a family that hasn't passed its accuracy checks yet (today toys and kids' gear): cleaned all the same, but confidence is held at `low` with a note.
- **`relists`** (integer · goods only): Relisted copies of the same listing (same title and price) in `items`, counted once in `stats`. So `stats.count` is `used` minus `relists`.
- **`variants`** (array · goods only · optional): When the search names no model or size and the titles name at least two: `variant` (e.g. `40oz`, `oled`; `null` for sales that name none), `count` and `median`, most common first. Search the variant to price it alone.
- **`facet`** (object · goods only · optional): Only when the first page was mostly accessories and one more page was read from Poshmark's subcategory for the product: `path` (e.g. `Electronics > Video Games & Consoles > Consoles`) and `added` (sales it added). `found` includes them. Same lookup, no extra charge.

### items[]

Every sold listing comes back in the same shape, whatever the marketplace. Items are in the marketplace's order, which is by relevance, not date.

- **`source`** (string): Marketplace the sale came from.
- **`id`** (string): The marketplace's listing ID.
- **`title`** (string): Listing title as the seller wrote it.
- **`brand`** (string · or null): Brand, when the seller set one.
- **`size`** (string · or null): Size as listed, e.g. `6`, `M` or `OS` (one size).
- **`condition`** (string · or null): One of `new_with_tags`, `not_new_with_tags`, `used_like_new`, `used_excellent`, `used_good`, `used_fair`. `null` when the seller didn't say.
- **`price`** (number): The price it sold at, in `currency`.
- **`currency`** (string): ISO currency code, usually `USD`.
- **`sold_at`** (string · ISO 8601 · or null): When it sold.
- **`listed_at`** (string · ISO 8601 · or null): When it was first listed.
- **`days_to_sell`** (number · or null): Days between listing and sale.
- **`url`** (string): Link to the original listing.
- **`image`** (string · or null): Link to the listing's main photo.
- **`seller`** (string · or null): The seller's username (Poshmark). Missing on sales cached before this field was added. Use it with `exclude_seller`.
- **`department`** (string · or null): Poshmark's department: `Women`, `Men`, `Kids`, `Home`, `Pets` or `Electronics`. Missing on older cached sales. Use it with the `department` filter.
- **`category`** (string · or null): Poshmark's category, e.g. `Jeans` or `Bags`. Missing on older cached sales. Use it with the `category` filter.

### removed_items[]

Only with `include_removed=true`. The sales that were dropped before the stats, in the marketplace's order, up to `limit`. Each has every field of `items[]` plus:

- **`removed_reason`** (string): Why it was dropped: one of the `cleaning.removed` keys (`filters`, `excluded_seller`, `department`, `category`, `off_topic`, `replicas`, `bundles`, `kids_sizes`, `wrong_age`, `kids_age`, `other_item_types`, `variants`, `duplicates`, `price_outliers`, and for goods `accessories`, `parts`, `other_product`, `several_units`, `other_model`, `other_department`, `not_hardware`). Counting them all gives `cleaning.removed`.

### partial_matches[]

Only when cleaning leaves no sales and at least one sale was removed as `off_topic`. Up to 10 of those off-topic sales, closest first, so you can show "nearest matches" instead of nothing. They are **not** used in `stats`, and `cleaning.note` says so. Each has every field of `items[]` plus:

- **`match_score`** (number · 0.5–1): The share of your search's meaningful words found in the title and brand, rounded to 2 decimals. Sales under 0.5 are left out, so the list can be empty.

### usage

On every `/v1/sold` and `/v1/verdict` response, counted after this request. The same numbers come back as headers: `X-Lookups-Used`, `X-Lookups-Limit`, `X-Lookups-Remaining` and `X-Plan`. Two more headers say what this request cost: `X-Cache` (`hit` when served from the 6-hour cache, `miss` when fetched now) and `X-Lookup-Charged` (`1` or `0`).

- **`used`** (integer): Lookups used this billing period (the calendar month on the free plan). A cached repeat doesn't add to it.
- **`limit`** (integer): Your plan's lookups per month.
- **`remaining`** (integer): `limit` minus `used`, never below 0. At 0 the next fresh lookup gets a 429, except on Growth and Business, which have a `grace`.
- **`grace`** (integer): Extra lookups allowed past `limit` before requests are refused: 10% of the limit on Growth (1,500, so 16,500 in all), 20% on Business (12,000, so 72,000), `0` on every other plan. `limit` and `remaining` stay your plan's own numbers.
- **`plan`** (string): `free`, `starter`, `growth`, `business`, or a retired plan that is no longer sold: `scale` or `pass`.
- **`resets`** (string · ISO date): When the count goes back to 0: your billing date on a paid plan (or the same day a month after a free month started), otherwise the first day of next month (UTC).
- **`charged`** (boolean): `true` when this request used a lookup, `false` when it was free (a cached repeat, or a retry after a busy 503 that already paid for it). Same as the `X-Lookup-Charged` header.

## GET /v1/verdict

Should you buy it? Send the item and what you'd pay (say, the thrift-store tag price) and get **buy**, **pass** or **maybe**, with a plain-English reason, ready to show ([who can show results to their own users](https://soldstack.dev/docs#show-results)). It uses the same clean comps and filters as `/v1/sold` and costs the same single lookup, and asking again for the same item is free for 6 hours.

```bash
curl "https://soldstack.dev/v1/verdict?q=nike+dunk+low&cost=15&days=90" \
  -H "X-API-Key: ss_your_key"
```

### Query parameters

- **`q`** (string · required): The item, as specific as you can, e.g. `coach tabby 26`.
- **`cost`** (number · required): What you'd pay for it.
- **`min_profit`** (number · default 10): The smallest profit after fees that's worth the effort.
- **`source`** (poshmark · poshmark_ca · default poshmark): Same as in [/v1/sold](https://soldstack.dev/docs#sold). With `poshmark_ca`, `cost` and every number in the response are in CAD.
- **`limit`** (integer · 0–50 · default 5): How many of the comps to include in `comps` as evidence.
- **`deep`** (boolean · default false): Same as in [/v1/sold](https://soldstack.dev/docs#sold): judge from up to ~190 sold listings instead of one page.
- **`filters`** (optional): Every [filter](https://soldstack.dev/docs#sold) from `/v1/sold` works here too: `size`, `condition`, `days`, `min_price`, `max_price`, `exclude`, `exclude_seller`, `department`, `kids_age`, `category`, `sort`, `include_removed`, `clean`. `usage` and the `X-Lookups-*` headers come back too.

### How the verdict is decided

- **`pass`**: After the marketplace fee, the expected profit (`median_net_payout − cost`) is below `min_profit`, or it's a loss.
- **`buy`**: The profit clears `min_profit`, the cost is at or under the max-buy price (a third of the net payout), confidence isn't low, prices agree (the p10–p90 range is no more than 1.5× the median), and it typically sells within 90 days. A wide price range usually means the search mixes different versions of the item, such as kids' and adult sizes or worn and deadstock pairs, so the verdict asks you to narrow it first.
- **`maybe`**: Profitable on paper, but one of the buy checks fails. The `reason` says which. Always `maybe` for a [goods](https://soldstack.dev/docs#goods) search with `cleaning.thin` (fewer than 6 sales of the actual product), whatever the profit: the reason starts with the same "Only N sales of the actual product" note.
- **`maybe (no comps)`**: When no clean sales match, there's nothing to judge from: `verdict` is `maybe`, `reason` is "No clean sold comps to judge from. Try a broader search.", `confidence` is `low`, `stats` is `{"count": 0}`, `comps` is empty, and `expected_sale_price`, `expected_net_payout`, `expected_profit`, `roi`, `max_buy` and `days_to_sell` are all `null`. `partial_matches` may list near misses. Check `stats.count` to tell this apart from a real maybe.

### Response

```json
{
  "query": "nike dunk low",
  "source": "poshmark",
  "verdict": "maybe",
  "reason": "Sells for about $78 in about 40 days; at $15 you'd keep about $47.40 after fees. But prices for this search range from $32 to $185, so add the model, size or condition to be sure you're comparing the same item.",
  "cost": 15,
  "min_profit": 10,
  "expected_sale_price": 78.0,
  "expected_net_payout": 62.4,
  "expected_profit": 47.4,
  "roi": 3.16,
  "max_buy": 20.8,
  "days_to_sell": 40.0,
  "confidence": "medium",
  "stats": { … same as /v1/sold … },
  "cleaning": { … same as /v1/sold … },
  "comps": [ … up to limit sold items … ],
  "usage": { … same as /v1/sold … }
}
```

- **`query`** (string): Your search as used: lowercased, extra spaces removed.
- **`query_note`** (string · only when set): Present only when the search differs from `q`: `kids` was added for `department=kids` or `kids_age`.
- **`source`** (string): The marketplace searched.
- **`verdict`** (buy · pass · maybe): The answer, always lowercase.
- **`reason`** (string): One or two plain-English sentences explaining it.
- **`cost`** (number): The `cost` you sent.
- **`min_profit`** (number): The `min_profit` used (10 unless you sent one).
- **`expected_sale_price`** (number · or null): What it typically sells for: `stats.median`.
- **`expected_net_payout`** (number · or null): What you'd keep from that after the marketplace fee: `stats.median_net_payout`.
- **`expected_profit`** (number · or null): Net payout after fees minus `cost`. Shipping is paid by the buyer on Poshmark. `null` when there were no comps.
- **`roi`** (number · or null): Profit divided by cost: `3.16` means you'd make 3.16 times what you paid. `null` when `cost` is 0 or there were no comps.
- **`max_buy / days_to_sell / confidence`**: Same as `stats.suggested_max_buy`, `stats.median_days_to_sell` and `cleaning.confidence`, repeated here so you don't have to dig into `stats`.
- **`stats / cleaning`** (object): The same objects as in [/v1/sold](https://soldstack.dev/docs#response), including `oldest_sold`, `newest_sold` and the old-sales note.
- **`comps`** (array): The clean sales behind the verdict, up to `limit`, in the same shape as [items[]](https://soldstack.dev/docs#response).
- **`removed_items / partial_matches`** (array · optional): As in `/v1/sold`: `removed_items` only with `include_removed=true`, `partial_matches` only when cleaning leaves no sales.
- **`usage`** (object): Same as in `/v1/sold`, with the same headers.

## POST /v1/value

Value a whole donation list in one call. Send up to 100 items and get back a fair-market value for each, the ranges and number of sales behind it, their dates, how broad the match was, the price by condition, up to 5 of the sales with links, a list total, and a plain-English `method` paragraph a donor can keep with their records (for example as backup for IRS Form 8283). Each item counts as one lookup. To see the whole response laid out for a real 24-item list, open the [sample valuation report](https://soldstack.dev/sample-report). Prefer a file to an API? The [Donated Clothing Value Guide](https://soldstack.dev/donation-value-guide) is the same kind of values by department, category and condition as a downloadable CSV and printable guide.

To show someone their own list valued, link to [the demo](https://soldstack.dev/donation-value#value-demo-list) with the list in `?items=`: one item per line, URL-encoded, up to 15 items and 3,000 characters, for example `/donation-value?items=womens%20coat%2C%20good%0Amens%20suit#value-demo-list`. The page fills the box and values the list on load. The demo's *Share this list* link builds one for you.

```bash
curl -X POST "https://soldstack.dev/v1/value" \
  -H "X-API-Key: ss_your_key" -H "Content-Type: application/json" \
  -d '{"days": 365,
       "items": [
        {"description": "womens jeans", "condition": "used_like_new"},
        {"description": "womens jeans", "condition": "used_good"},
        {"description": "womens handbag", "brand": "coach", "condition": "used_good"},
        {"description": "kids snow pants", "condition": "used_good", "quantity": 2}
      ]}'
```

### Body

- **`items`** (array · 1–100 · required unless you send listing): The donation list. More than 100 is a `422` and nothing is counted: split longer lists. Send exactly one of `items` or [`listing`](https://soldstack.dev/docs#value-listing).
- **`items[].description`** (string · required): What the item is, as the donor would say it: `womens handbag`, `mens suit`, `kids snow pants`. The category and department are read from it when you don't send them.
- **`items[].brand`** (string · optional): With a brand, the brand and description are searched and cleaned exactly as in [/v1/sold](https://soldstack.dev/docs#sold).
- **`items[].category`** (string · optional): One of `jeans`, `pants`, `leggings`, `shorts`, `skirt`, `dress`, `jumpsuit`, `tshirt`, `top`, `blouse`, `shirt`, `sweater`, `cardigan`, `hoodie`, `jacket`, `coat`, `blazer`, `suit`, `vest`, `activewear`, `swim`, `sleepwear`, `bra`, `underwear`, `socks`, `sneakers`, `boots`, `heels`, `sandals`, `flats`, `loafers`, `other_shoes`, `handbag`, `backpack`, `wallet`, `hat`, `scarf`, `belt`, `jewelry`, `sunglasses`, `accessory_other` or `costume`. Everyday words such as `purse` or `t-shirt` work too. For household goods, a family: `home` (or `home decor`), `kitchen`, `electronics`, `media` (books, DVDs, music, games), `toys`, `baby gear`, `pets` (or `pet supplies`) or `beauty`. A goods category marks the item as goods, so it is never given a clothing category value (a `bean bag chair` sent with `home` is not a handbag). `furniture`, `sporting goods`, `tools` and the like are understood too, and get no value: Poshmark has too few of their sales.
- **`items[].department`** (string · optional): `women`, `men`, `girls`, `boys`, `baby`, `kids` (girls and boys) or `unisex`. A `unisex` item is valued from every department's sales of its category.
- **`items[].condition`** (string · default used): `new_with_tags`, `used_like_new`, `used_excellent`, `used_good`, `used_fair`, a plain word (`like new`, `good`, `fair`), or `new` / `used`. A grade (`used_like_new`, `good`…) is valued from sales in that grade alone when there are at least 10 of them; otherwise from its condition group (new with tags, or used: every other grade), and `reason` says so. `new` or `used` values from the whole group. An unknown condition gives that item no value rather than a guess.
- **`items[].size / quantity`** (optional): `size` is echoed back; a kids' size such as `4T` marks the item as kids'. `quantity` (default 1) multiplies the value into the item's `total`. Without a `quantity`, a count in the description is read as one and left out of the search: `throw pillows (4)`, `candles x5`, `qty 3 lamps`, `box of 12 DVDs`, `set of 4 mugs`, and for goods `4 throw pillows`; `reason` says so. Sizes and capacities are not counts (`3 wick candle`, `12 cup coffee maker`, `5x7 rug`, `levi's 501 jeans`).
- **`items[].kids_age`** (baby · toddler · big_kids · optional): For kids' items: value from `baby` (0–24 months), `toddler` (2T–5T) or `big_kids` (4/5 and up) sizes only, on every path. Without it, kids' values include every kids' size, as Poshmark's Kids department does. An item with no department is treated as kids'; on a women's or men's item it is ignored. A kids' item that says `toddler` (in its description or department) and has no `kids_age` is valued from toddler sizes, and the response's `department` and `kids_age` say so.
- **`days`** (integer · 1–3650 · optional): Only sales from the last N days, for every item and every path below. `days=365` is the last 12 months. Without `days`, `sold_after` or `sold_before` nothing changes: brand and description values prefer the last 12 months when they have enough sales, and archive values use every sale. **History depth by plan:** on Free and Starter, every value uses only sales from the last 90 days, whatever window you send (it is cut down to the last 90 days, and a window wholly older than that finds no sales, with no error); Growth and Business use the full archive, back to 2012. Keys created before Oct 25 2026 keep the full archive. The response says which: `history_days`.
- **`sold_after / sold_before`** (YYYY-MM-DD · optional): Only sales sold on or after / on or before these dates, e.g. `"sold_after": "2025-01-01", "sold_before": "2025-12-31"` for 2025. With `days` too, the later start wins. A window with no days in it is a `422` and nothing is counted. Each item's `oldest_sold` and `newest_sold` fall inside it.
- **`source`** (poshmark · poshmark_ca · default poshmark): With `poshmark_ca`, every value is in CAD.

### How each value is found

- **`brand + item`**: When a brand is sent and at least 5 sales of it in the item's condition group pass cleaning (the last 12 months when there are enough). Confidence is the search's own rating. A search that isn't cached is fetched live, up to 5 per call and only in the call's first 10 seconds, so a whole list answers in well under 30 seconds; the rest use the sales already saved for that search, or fall back, and their `reason` says they weren't searched live.
- **`item description`**: With no brand match, when the description says more than its department and kind of item (`kids snow pants`, `wool coat`, `vintage leather jacket`), the description is searched and cleaned the same way, with the item's department and condition, and used when at least 5 sales remain. A kids' item whose description has no kids' word is searched with one (`snow pants` with `department: "kids"` searches `kids snow pants`). Plain descriptions such as `womens handbag` or `mens suit` skip this and use the archive.
- **`category + department + condition`**: Otherwise, every sale in SoldStack's archive of categorized sold listings with the same category, department and condition group (at least 10). Confidence is medium from 30 sales, else low.
- **`category + condition`**: When the department is unknown or has fewer than 10 sales: the same category across departments. Confidence is low.
- **`no value`**: `value`, `low`, `high`, `p10`, `p90`, `total`, `basis`, `matched_on` and `confidence` are `null` and `reason` says why: unknown condition, a category that can't be read from the description, or too few sales (in the date window, when there is one).
- **`goods items`**: An item that isn't clothing, shoes or bags (`KitchenAid stand mixer`, `Dyson Airwrap`, `Nintendo Switch games (5)`, `dog bed`) is searched and [cleaned for its family](https://soldstack.dev/docs#goods), as `/v1/sold` does, and valued only from those sales; the item's `family` says which. When the first page is mostly accessories or too thin and Poshmark has a subcategory for the product (tablets, consoles, accent pillows, candles, pet beds…), the same search inside that subcategory is added, as `/v1/sold` adds it; a fresh one counts against the call's live searches. The archive's category values are for clothing, shoes and bags, so a goods item never falls back to them, even with no sales to go on (`Apple Watch` is not jewelry, `diaper bag` is not a handbag). A goods value needs at least 6 different sales of the actual product in the item's condition (a relisted listing counts once). With fewer it has no value and `reason` says why: the rest were accessories or parts, or the product sold mostly new (send `condition: "new"` for an unused item). A line that is several goods with no count (`box of DVDs`, `assorted kitchen utensils`) has no value: list each product, or give the count and say what one item is. Toys and baby or kids' gear are rated `low` whatever the sales say.
- **`at every step`**: A grade is tried before its condition group, and the date window and `kids_age` apply. Each item says which step valued it (`matched_on`), whether that is wider than the item as described (`broadened`), and why (`reason`).

### Response

```json
{
  "source": "poshmark",
  "currency": "USD",
  "sold_after": "2025-10-20",
  "sold_before": null,
  "items": [
    {
      "index": 0,
      "description": "womens jeans",
      "category": "jeans",
      "department": "women",
      "kids_age": null,
      "condition": "used_like_new",
      "condition_group": "used",
      "condition_matched": "used_like_new",
      "quantity": 1,
      "value": 28.0,
      "low": 20.0,
      "high": 38.0,
      "p10": 15.0,
      "p90": 52.0,
      "total": 28.0,
      "sales_used": 212,
      "oldest_sold": "2025-10-21",
      "newest_sold": "2026-10-18",
      "basis": "category + department + condition",
      "matched_on": "category + department",
      "broadened": false,
      "search_query": null,
      "confidence": "medium",
      "reason": "Median of 212 women's jeans sales in like new condition sold since 2025-10-20; the brand isn't known to this value.",
      "by_condition": [
        { "condition": "used_like_new", "label": "Like new", "count": 212, "median": 28.0, "p10": 15.0, "p90": 52.0 },
        { "condition": "used_good", "label": "Good", "count": 174, "median": 22.0, "p10": 12.0, "p90": 40.0 }
        … one row per grade with sales …
      ],
      "examples": [
        { "title": "Madewell perfect vintage jean 27", "price": 28.0, "sold_at": "2026-10-15T18:04:11+00:00", "condition": "used_like_new", "url": "https://poshmark.com/listing/…" }
        … up to 5 …
      ]
    },
    {
      "index": 3,
      "description": "kids snow pants",
      "value": 20.0,
      "sales_used": 31,
      "basis": "item description",
      "matched_on": "item description",
      "broadened": true,
      "condition_matched": "used",
      "search_query": "kids snow pants",
      "reason": "Only 6 of these sales are in good condition, fewer than 10, so every used grade is used. 31 sales of 'kids snow pants' in used condition sold since 2025-10-20 matched after cleaning.",
      … the same fields as above …
    }
    … one entry per item, in the order sent …
  ],
  "items_valued": 4,
  "items_without_value": 0,
  "total": 229.0,
  "appraisal_may_be_needed": false,
  "method": "Values were computed by SoldStack (soldstack.dev) on 2026-10-19 from completed sales on Poshmark (US). Each value is the median (middle) sold price of comparable items in the same condition group …",
  "disclaimer": "This is resale market data, not tax or legal advice. For US donors, the IRS requires a qualified appraisal (Form 8283, Section B) when a single item, or a group of similar items, is claimed at over $5,000.",
  "usage": { … same as /v1/sold, after this list … }
}
```

- **`items[].value`** (number · or null): Fair-market value of one item: the median sold price of the sales used. Each item also echoes the `description`, `brand`, `size` and `quantity` you sent, and gives the `currency` (USD, or CAD for `poshmark_ca`).
- **`items[].low / high`** (number · or null): The 25th and 75th percentiles of the same sales: half of them sold between the two.
- **`items[].p10 / p90`** (number · or null): The 10th and 90th percentiles of the same sales: four in five sold between the two. The same wider range `/v1/sold` gives in `stats`.
- **`items[].total`** (number · or null): `value` × `quantity`.
- **`items[].sales_used / oldest_sold / newest_sold`**: How many sales the value comes from and the dates of the oldest and newest, inside the date window when there is one.
- **`items[].matched_on`** (string · or null): How broad the match is: `brand + item`, `item description`, `category + department` or `category, all departments`.
- **`items[].broadened`** (boolean): `true` when the value comes from wider sales than the item as described: a brand or description search with too few sales (so the category was used), a department with too few (all departments), or a grade with too few (its condition group). `reason` says which.
- **`items[].condition_matched`** (string · or null): The condition of the sales behind the value: the grade sent (e.g. `used_good`) or its group (`used`, `new`).
- **`items[].by_condition`** (array): The same item's sales (same match, window and kids' age) split by grade, best first, exactly as `by_condition` in [/v1/sold](https://soldstack.dev/docs#response): `condition`, `label`, `count`, `median`, and `p10` / `p90` from 3 sales. Under 3 sales they are `null` here, where `/v1/sold` leaves them out.
- **`items[].search_query`** (string · or null): The marketplace search behind a `brand + item` or `item description` value.
- **`items[].basis`** (string · or null): `brand + item`, `item description`, `category + department + condition` or `category + condition`, as above. Kept for existing integrations; `matched_on` says the same.
- **`items[].confidence`** (high · medium · low · or null): How far to trust the value. It drops a step with each fallback.
- **`items[].reason`** (string): Why this value, or why there is none, in plain English, ready to show ([see the rule](https://soldstack.dev/docs#show-results)).
- **`items[].examples`** (array): Up to 5 of the sales used, the ones priced closest to the value, newest first: `title`, `price`, `sold_at`, `condition`, `url`.
- **`items[].category / department / condition`** (string · or null): What was used: what you sent, or what was read from the description. `category` is a clothing, shoes or bags category, and `null` for goods.
- **`items[].family`** (string · or null): For household goods, the kind: `home`, `kitchen`, `electronics`, `media`, `toys`, `kids_gear`, `pets` or `beauty`. `null` for clothing, shoes and bags.
- **`sold_after / sold_before`** (string · or null): The date window used (from `days`, `sold_after` and `sold_before`), or `null` at an open end.
- **`history_days`** (integer · or null): `90` when your plan values only the last 90 days of sales (Free, Starter); `null` when the full archive is used (Growth, Business, and any key created before Oct 25 2026). `sold_after` and `sold_before` show the dates actually used.
- **`history_note`** (string · or null): Only when the 90-day limit changed the dates you asked for (none sent, or older than 90 days): what was used instead. Otherwise `null`.
- **`total`** (number): Sum of every item's `total`. `items_valued` and `items_without_value` count the two kinds.
- **`appraisal_may_be_needed`** (boolean): `true` when a single item, or a group of similar items (same category, or for goods the same `family`), is over $5,000 (USD only), the IRS line for a qualified appraisal. Two unrelated $3,000 items don't trip it.
- **`method / disclaimer`** (string): How the values were derived, dated, for the donor's records; and a short note that this is market data, not tax advice.
- **`usage`** (object): Same as in `/v1/sold`, with the `X-Lookups-*` headers.

### Paste a listing instead of items

Auction and lot descriptions are prose, not item lists. Send the text as `listing` (1 to 4,000 characters, instead of `items`) and SoldStack reads it into items, values each one exactly as above, and adds what it read, a lot total and, for some lots, what lots like it usually sold for at auction. Reading the text costs nothing; each item it finds is one lookup, as with `items`.

```bash
curl -X POST "https://soldstack.dev/v1/value" \
  -H "X-API-Key: ss_your_key" -H "Content-Type: application/json" \
  -d '{"listing": "Lot of assorted womens clothing, approx 40 pcs incl. Levis jeans, North Face jackets, some NWT. Customer returns, sold as is."}'
```

- **`listing`** (string · 1–4,000 characters): The raw text. Leading and trailing whitespace is dropped before the length check; control characters are refused. Send `days`, `sold_after`, `sold_before` and `source` as with `items`.
- **`unit_count`** (integer · 1–10,000 · only with listing): How many pieces the lot has, for a lot whose text gives no count (see `needs_unit_count`). Items that state their own quantity keep it; the rest of the count is split equally across the items with none (the remainder to the first), and those rows say `quantity_assumed: true`. A `unit_count` below the quantities the text already states, or on a single item, a collectible or text that isn't clothing, shoes or bags, is a `422` that says why.
- **`one item per line`**: Text that is already a list (at least 2 lines, none over 120 characters, in the format of the [list demo](https://soldstack.dev/donation-value#value-demo-list): `item`, `item, condition` or `brand, item, condition`) is read by rules, with no model: `extraction.method` is `rules`. Everything else is read by a model (`method`: `ai`). A tidy list does not take a `unit_count`.
- **`the same text twice`**: A reading is kept for 6 hours, so sending the same text again (for example with a `unit_count`) reads nothing new and doesn't count against the read limits below. Its lookups are charged again as usual.
- **`read limits`**: Each model read counts against a per-key limit by plan: 20 a day on Free and Starter, 200 a day on Growth and 1,000 a day on Business (UTC days), and against a monthly cap shared by every caller. Reads of tidy lists and kept readings don't count.

### What a listing response adds

- **`extraction`** (object): What was read: `method` (`ai` or `rules`), `lot_type`, `weight_lbs` and `unit_count` (or `null`), `items` (each with its `description`, `brand`, `condition`, `quantity`, `quantity_assumed`, `uncertain` and the `source_snippet` of the text it came from), `dropped` (items read but not usable, each with the line and the reason), `uncertain_items`, `unaccounted_items` (pieces of the lot's count that the items listed don't cover) and `quantity_note`. `null` for an `items` request.
- **`extraction.lot_type`** (string): Decided from what the text states, never guessed: `single` (one item), `itemized` (every item has its own quantity), `counted_bulk` (a count for the lot, generic items), `uncounted_bulk` (a weight and no count), `collectible`, `not_apparel` or `unknown`.
- **`bid_range`** (object · or null): For `itemized` and `counted_bulk` lots only, when the total is complete (every item valued, none dropped, uncertain or unaccounted) and at least half of it comes from `brand + item` or `item description` values: `low`, `typical` and `high`, the lot total times the 25th percentile, median and 75th percentile of winning bid divided by SoldStack value across `lots` past GovDeals lots, with the `source` named. It is one auction site's history, not advice or a prediction.
- **`bid_range_omitted`** (string · or null): Why `bid_range` is `null`, in words. `null` for an `items` request.
- **`needs_unit_count`** (boolean): `true` for a lot sold by weight with no piece count (for example "500 lbs of assorted women's clothing"). Each kind of item is valued once, per piece (`quantity` 1), and `total` is `null`, `appraisal_may_be_needed` is `false` and there is no `bid_range`. Send the same `listing` again with a `unit_count` to get the total.
- **`total`** (number · or null): `null` only when `needs_unit_count` is `true`.
- **`items[].quantity_assumed`** (boolean): `true` when the quantity was split from the lot's count instead of stated.

### When a listing can't be read

- **`422`**: The text can't be turned into items: free-form listings are switched off ("Free-form listings aren't supported right now. Send one item per line (item, condition), or use the items field."), the model couldn't read it or found no clothing, shoes or bags, or `unit_count` doesn't fit. Nothing is charged.
- **`429`**: The key has no lookups left, or has used its model reads for the day (the message says when they reset). The `Retry-After` header says how long to wait before trying again, at most an hour; the message gives the reset date.
- **`503`**: Reading listings is busy (try again in a minute) or paused until next month. Send one item per line, or use `items`: both always work.

A list longer than the lookups left this month is refused whole with a `429`, and nothing is counted. A busy or unreachable marketplace never fails the list: the affected items fall back to their category.

Building a donation-value or home-inventory app? The [integration recipes](https://soldstack.dev/docs/recipes#donation) have runnable Python and JavaScript for this endpoint: reading `by_condition`, `matched_on` and `broadened`, the `method` paragraph and the appraisal note.

## MCP server

SoldStack is also a remote [MCP](https://modelcontextprotocol.io) server, so an AI agent (Claude, Cursor, ChatGPT and others) can price resale items itself. There's nothing to install: point your client at the URL and send your API key. Each tool call is one lookup, metered exactly like the REST API.

```json
{
  "mcpServers": {
    "soldstack": {
      "type": "http",
      "url": "https://soldstack.dev/mcp",
      "headers": { "X-API-Key": "ss_your_key" }
    }
  }
}
```

### Add it to Claude (claude.ai and the Claude Desktop app)

Custom connectors sync across your Claude account, so you add SoldStack once and it shows up on the web and in the desktop app. They're available on the Free, Pro, Max, Team and Enterprise plans (Free allows one custom connector; on Team and Enterprise an owner adds it first, then members connect).

1. Get your key: [a free one takes a few seconds](https://soldstack.dev/#key), or sign in on your [account page](https://soldstack.dev/account).
2. In claude.ai (or the Claude Desktop app), open **Customize**, then **Connectors**. Click **+ Add**, then **Add custom connector**. On Team and Enterprise an owner goes to **Organization settings** > **Connectors** > **Add** > **Custom** instead.
3. Name it `SoldStack` and enter the server URL `https://soldstack.dev/mcp`. Continue.
4. SoldStack uses an API key, not a sign-in, so set authentication to **No sign in**. Then under **Request headers** add the header name `X-API-Key` with your key (`ss_...`) as the value. Click **Add**. (`Authorization: Bearer ss_your_key` works too.)
5. Start a chat, open the connectors menu and switch SoldStack on. Ask *"What did a Lululemon Align legging sell for on Poshmark?"* or *"I can buy this Coach Tabby 26 for $40, buy or pass?"*

Menu names move around a little between Claude releases. If yours differs, look for Connectors and Add custom connector, and see Anthropic's [custom connector guide](https://support.claude.com/en/articles/11175166-get-started-with-custom-connectors-using-remote-mcp). If your version has no field for request headers, use the URL form `https://soldstack.dev/mcp?api_key=ss_your_key` as the server URL. That URL contains your key, so keep it private like a password and don't paste it into shared chats or screenshots.

### Claude Code, Cursor and other clients

Use the JSON above. For Claude Code you can run this instead:

```bash
claude mcp add --transport http soldstack https://soldstack.dev/mcp --header "X-API-Key: ss_your_key"
```

Use the header form where you can. Only if your client has no way to send a header, the URL form `https://soldstack.dev/mcp?api_key=ss_your_key` also works; that URL contains your key, so keep it private.

**For AI agents:** call the tools one item at a time, not in parallel. If a call returns busy, wait the number of seconds it says and call again.

### Tools

- **`sold_comps`** (query, source, size, condition, days, limit, deep, exclude_seller, sort, department, kids_age, category, include_removed): What an item sold for: the same `stats`, `by_condition` and `cleaning` as [/v1/sold](https://soldstack.dev/docs#response), plus the matching sales under `sales` (each in the same shape as [items[]](https://soldstack.dev/docs#response)), `removed_items` and `partial_matches` when they apply, and the same `usage` object (with `charged`). `limit` defaults to 10 and goes from 0 to 50 (REST: 50, 1–200). `source` is `poshmark` (default) or `poshmark_ca`.
- **`buy_or_pass`** (query, cost, min_profit, size, condition, source): `buy`, `maybe` or `pass` for an item at a given cost, with the reason and the verdict fields and `stats` of [/v1/verdict](https://soldstack.dev/docs#verdict) (but no `cleaning` or `query_note`), plus `by_condition`, up to 5 comps under `sales` (same item shape) and `usage`.
- **`value_donation_list`** (items, source, examples_per_item, days, sold_after, sold_before): Values a whole [donation list](https://soldstack.dev/docs#value) in one call, the same as `POST /v1/value`: up to 100 items, one lookup per item. `items` is a list of objects: `description` (required, as the donor would say it: `womens handbag`, `mens suit`) and optionally `brand`, `condition` (`new_with_tags`, `used_good`, a plain word such as `good`, or `new` / `used`; default used), `category`, `department`, `size`, `kids_age` and `quantity`. `days`, `sold_after` and `sold_before` set the date window, as in the API. Returns each item's `value`, `low`, `high`, `p10`, `p90`, `sales_used`, `matched_on`, `broadened`, `condition_matched`, `by_condition`, `basis`, `confidence` and `reason` (an item with nothing to go on has a null value), the list `total`, `method` and `disclaimer`, and `usage`. `examples_per_item` (0 to 5, default 2) sets how many of the sales behind each value come with it. Call it once with the whole list, not once per item.

## Errors

Errors use normal HTTP status codes and a JSON body with a plain-English `detail`, e.g. `{"detail": "q must be 2-100 characters"}`. There is no separate error-code field: match on the status, then on the start of `detail` (the wording after the start can improve). Errors never count as a lookup and carry no usage headers. `429` and `503` may carry a `Retry-After` header, in seconds.

| Status | `detail` starts with | What it means | What to do |
| --- | --- | --- | --- |
| `400` | `q must be 2-100 characters` | The search is shorter than 2 or longer than 100 characters, after extra spaces are removed. | Send a `q` of 2 to 100 characters. |
| `400` | `unknown source` | `source` isn't `poshmark` or `poshmark_ca`. | Use one of those two. |
| `400` | `unknown condition` | `condition` has a value the API doesn't know. The message lists the accepted ones. | Use `new`, `used`, a plain word or an exact grade, as in [Filters](https://soldstack.dev/docs#sold). |
| `400` | `unknown department` | `department` isn't one of Women, Men, Kids, Home, Pets, Electronics. | Use one or more of those, comma-separated. |
| `400` | `text must be valid Unicode` | The request contains a lone surrogate character, which can't be stored. | Remove the character, or send plain text. |
| `401` | `missing API key` | No key was sent: `"missing API key: send it in the X-API-Key header (or Authorization: Bearer). Get a free key at https://soldstack.dev/#key"` | Send it in the `X-API-Key` header. [Get a free key](https://soldstack.dev/#key). |
| `401` | `invalid API key` | The key isn't one SoldStack knows, usually because part of it was cut off: `"invalid API key: check you copied all of it (keys start with ss_). Your key is on https://soldstack.dev/account"` | Copy the whole key (it starts with `ss_`). It is on your [account page](https://soldstack.dev/account). |
| `404` | `Not Found` | The path doesn't exist. | Check the URL against the endpoints on this page. |
| `413` | `request body too large` | The body is over 256 KB. | Send fewer items per request. A full 100-item list is far smaller. |
| `422` | the parameter name, then the reason, e.g. `limit: Input should be less than or equal to 200` | A parameter is missing or has the wrong type or range, or a `POST /v1/value` body is not valid (for example it has neither `items` nor `listing`). `detail` is a readable string; the structured list is in `errors`. | Fix the parameter named at the start of `detail`. |
| `422` | `Couldn't read this listing` | `POST /v1/value` with `listing`: the text couldn't be turned into items, has no clothing, shoes or bags, or `unit_count` doesn't fit. Free-form listings can also be switched off. Nothing is charged. | Send one item per line, or use `items`. See [paste a listing](https://soldstack.dev/docs#value-listing). |
| `429` | `monthly limit reached` | All of this period's lookups are used (for Growth and Business, the grace too). The message gives your limit and the reset date, says nothing was counted, and may name the plan that fits your recent use with a `/pricing#plan-{id}` link (a key that already subscribes is pointed to its account page instead). It is written for the owner of the key, e.g. `"monthly limit reached: all 50 lookups on this key's Free plan are used; they reset on 2026-12-01 (UTC). Nothing was counted. This key made 604 lookups in its busiest recent month-long period. Starter ($9/month, 1,500 lookups) covers 604 a month: https://soldstack.dev/pricing#plan-starter"` `Retry-After` says how long to wait before trying again (at most an hour; the message has the reset date). | Cached repeats still work. Upgrade on your [account page](https://soldstack.dev/account) or in [Pricing](https://soldstack.dev/pricing), or wait for the date in `usage.resets` (the same date the `detail` gives). |
| `429` | `Too many requests: the limit is 120 per minute per key` | More than 120 requests in a minute with this key. | Wait the seconds in `Retry-After`, then slow down. |
| `429` | `Too many deep lookups` | More new `deep=true` lookups than your plan allows per 10 minutes (120; 300 on Growth, 600 on Business). | Retry after `Retry-After`, or leave `deep` off. Cached repeats don't count. |
| `429` | `this list has` | `POST /v1/value`: the list has more items than lookups left, and each item is one lookup. Nothing is counted. No `Retry-After` unless the key has no lookups left at all: a shorter list works right away. | Send a shorter list, or get more lookups. |
| `429` | `This key has used its` | `POST /v1/value` with `listing`: today's free-form listing reads are used (20 on Free and Starter; 200 on Growth; 1,000 on Business). | Wait for the reset time in the message, or send one item per line. |
| `502` | `Poshmark didn't respond in time` | Poshmark didn't answer properly or in time (other messages start `poshmark returned HTTP` or `poshmark page layout changed`). Nothing is counted. | Retry in a minute. |
| `503` | `Busy fetching fresh prices` | A lot of fresh searches are queued ahead of yours. Nothing is counted if the line was full; if your request waited and timed out, it is fetched in the background and the retry is free. | Wait the seconds in `Retry-After`, then retry the same request. Send one request at a time. |
| `503` | `Reading free-form listings is` | `POST /v1/value` with `listing`: reading listings is busy, or paused until next month. | Send one item per line, or use `items`: both always work. |

The `/v1/sold` and `/v1/verdict` codes are also in the [OpenAPI spec](https://soldstack.dev/openapi.json). For `429` and `503`, a good client waits for `Retry-After` and retries once or twice. Don't retry a `400`, `401` or `422` unchanged.

## Limits & caching

- **`Free`** ($0): 50 lookups a month.
- **`Starter`** ($9 / month): 1,500 lookups a month. Starter subscriptions that started before November 12, 2026 keep 2,500 for as long as they run.
- **`Growth`** ($29 / month): 15,000 lookups a month, and up to 10% more (16,500 in all) before requests are refused.
- **`Business`** ($99 / month): 60,000 lookups a month, and up to 20% more (72,000 in all) before requests are refused.

Scale ($79) is no longer sold. Keys already on it keep its limits and everything Business has.

Upgrade in [Pricing](https://soldstack.dev/pricing), or from your [account page](https://soldstack.dev/account), where you also see this month's usage. When you run out, the API answers `429` (see [Errors](https://soldstack.dev/docs#errors)).

### What else changes by plan

- **`Valuation history`** (POST /v1/value): Free and Starter value sales from the last 90 days (`history_days: 90`). Growth and Business use the full archive, back to 2012. Keys created before Oct 25 2026 keep the full archive.
- **`Paste-a-listing reads`** (per key per day): 20 a day on Free and Starter; 200 on Growth; 1,000 on Business.
- **`Deep lookups`** (per 10 minutes): 120 on Free and Starter; 300 on Growth; 600 on Business. Cached repeats don't count.
- **`Overage grace`** (past the monthly limit): Growth 10% (16,500 lookups), Business 20% (72,000), before requests are refused. Other plans stop at the limit. `usage.grace` says how many extra your plan allows.
- **`Reserved spots in line`** (when busy): When many keyed requests are waiting for fresh prices, Growth and Business keep 6 waiting spots that other plans can't take, so they are still queued instead of getting a busy `503`.
- **`Support`**: Growth: an email reply within 1 business day. Business: first in line for support.
- **`Show results to your own users`** (licence, see terms): Business only: show results to your own users, for example prices in your app. Free, Starter and Growth are for your own use: pricing your own items, research and internal tools. The exception: keys created before November 13, 2026 (00:00 UTC) keep this on any plan. `display_rights` on your [account](https://soldstack.dev/account) says which applies to your key. Nothing in the API changes either way.
- **One lookup = one request** to `/v1/sold` or `/v1/verdict` that has to fetch fresh data, whatever the `limit` or filters.
- **One lookup per item** on `/v1/value`, cached or not: a 40-item donation list is 40 lookups.
- **Repeats are free.** Results are cached for 6 hours per search and source. Asking the same search again within 6 hours returns the cached result and doesn't count. Every response says which it was: `X-Cache`, `X-Lookup-Charged` and `usage.charged`.
- **Counts reset** on your billing date each month on a paid plan (a new subscription starts at zero), on the day a free month started, and on the 1st of each month (UTC) on the free plan. `usage.resets` in every response gives the date.
- **Speed:** cached repeats about 0.2s; a fresh lookup usually 3–10 seconds (a fresh `deep=true` lookup about 10). Set a client timeout of at least 30 seconds. Requests to the marketplace are spaced out, so a burst of new searches can take longer.

## Code examples

No code? Use your key in [Google Sheets](https://soldstack.dev/sheets) with `=SOLDPRICE("coach tabby 26")`. Building a whole integration? The [integration recipes](https://soldstack.dev/docs/recipes) walk through a donation-value app, a crosslister, a home-inventory app, an AI agent and Sheets, with caching, errors and cost.

### JavaScript (Node 18+)

```javascript
const res = await fetch(
  "https://soldstack.dev/v1/sold?q=" + encodeURIComponent("coach tabby"),
  { headers: { "X-API-Key": process.env.SOLDSTACK_KEY }, signal: AbortSignal.timeout(30000) }
);
if (!res.ok) throw new Error((await res.json()).detail);
const { stats, cleaning } = await res.json();

if (stats.count === 0) {
  console.log("No clean sales matched.", cleaning.confidence_note);
} else {
  console.log(`Sells for about ${stats.median} ${stats.currency}, pay under ${stats.suggested_max_buy}`);
}
```

### Python

```python
import os, requests

r = requests.get(
    "https://soldstack.dev/v1/sold",
    params={"q": "coach tabby", "limit": 10},
    headers={"X-API-Key": os.environ["SOLDSTACK_KEY"]},
    timeout=30,
)
r.raise_for_status()
data = r.json()
stats = data["stats"]
if stats["count"] == 0:  # nothing matched: stats is just {"count": 0}
    print("No clean sales matched.", data["cleaning"]["confidence_note"])
else:
    print(f"Sells for about {stats['median']} {stats['currency']}, pay under {stats['suggested_max_buy']}")
```

## Quickstarts: Swift, Kotlin and JavaScript

Starting points for an iOS, Android or JavaScript app. Each one makes a [/v1/sold](https://soldstack.dev/docs#sold) call, reads `stats.median` and the first item's `image`, then values a short list with [/v1/value](https://soldstack.dev/docs#value). They use only the platform's own networking and JSON (plus OkHttp on Android), and set the 30-second timeout from [Limits & caching](https://soldstack.dev/docs#limits).

> **Calling from a mobile app?** Call SoldStack from your own backend, which keeps the API key and passes the results on, so the key isn't shipped inside the app binary where anyone can extract it (see [Authentication](https://soldstack.dev/docs#auth)); the examples below keep the key in a constant only to stay short.

Two things to handle in your own code: when nothing matches, `stats` is just `{"count": 0}` with no `median`, and `image` (and an item's `value` from `/v1/value`) can be `null`. Failures come back as a non-200 status with a `detail` message, as in [Errors](https://soldstack.dev/docs#errors).

### Swift (iOS, URLSession)

Needs iOS 15 or later for `async/await`. `convertFromSnakeCase` maps `sold_at` to `soldAt`; fields you don't declare are ignored.

```swift
import Foundation

let baseURL = "https://soldstack.dev"
let apiKey = "ss_your_key"  // in a shipped app, call your own backend instead (see above)

struct SoldResponse: Decodable {
    struct Stats: Decodable {
        let count: Int
        let currency: String?  // stats is just {"count": 0} when nothing matched
        let median: Double?
    }
    struct Item: Decodable {
        let title: String
        let price: Double
        let currency: String
        let condition: String?
        let size: String?
        let soldAt: String?
        let url: String
        let image: String?
    }
    let stats: Stats
    let items: [Item]
}

struct ValueRequest: Encodable {
    struct Item: Encodable {
        let description: String
        var brand: String? = nil
        var condition: String = "used_good"
        var quantity: Int = 1
    }
    let days: Int
    let items: [Item]
}

struct ValueResponse: Decodable {
    struct Item: Decodable {
        let description: String
        let value: Double?  // null when there was nothing to go on
        let reason: String
    }
    let items: [Item]
    let total: Double
}

struct SoldStackError: Error { let status: Int }

func send<T: Decodable>(_ request: URLRequest, as type: T.Type) async throws -> T {
    var request = request
    request.setValue(apiKey, forHTTPHeaderField: "X-API-Key")
    request.timeoutInterval = 30
    let (data, response) = try await URLSession.shared.data(for: request)
    let status = (response as? HTTPURLResponse)?.statusCode ?? 0
    guard status == 200 else { throw SoldStackError(status: status) }  // body is {"detail": "..."}
    let decoder = JSONDecoder()
    decoder.keyDecodingStrategy = .convertFromSnakeCase  // sold_at -> soldAt
    return try decoder.decode(T.self, from: data)
}

func demo() async throws {
    // GET /v1/sold
    var components = URLComponents(string: baseURL + "/v1/sold")!
    components.queryItems = [
        URLQueryItem(name: "q", value: "coach tabby 26"),
        URLQueryItem(name: "days", value: "365"),
    ]
    let sold = try await send(URLRequest(url: components.url!), as: SoldResponse.self)
    if let median = sold.stats.median, let first = sold.items.first {
        let currency = sold.stats.currency ?? "USD"
        let photo = first.image ?? "none"  // load it with AsyncImage(url:)
        print("Median: \(median) \(currency)")
        print("First photo: \(photo)")
    } else {
        print("No clean sales matched")
    }

    // POST /v1/value
    var post = URLRequest(url: URL(string: baseURL + "/v1/value")!)
    post.httpMethod = "POST"
    post.setValue("application/json", forHTTPHeaderField: "Content-Type")
    post.httpBody = try JSONEncoder().encode(ValueRequest(days: 365, items: [
        .init(description: "womens handbag", brand: "coach"),
        .init(description: "kids snow pants", quantity: 2),
    ]))
    let valued = try await send(post, as: ValueResponse.self)
    for item in valued.items {
        let value = item.value.map { String($0) } ?? "no value"
        print("\(item.description): \(value) (\(item.reason))")
    }
    print("Total: \(valued.total)")
}
```

### Kotlin (Android, OkHttp)

Add `com.squareup.okhttp3:okhttp` and make sure the app has the `INTERNET` permission. `org.json` is built into Android, so there is no other dependency. `send` blocks, so call it from a background thread or `Dispatchers.IO`, never the main thread.

```kotlin
import okhttp3.HttpUrl.Companion.toHttpUrl
import okhttp3.MediaType.Companion.toMediaType
import okhttp3.OkHttpClient
import okhttp3.Request
import okhttp3.RequestBody.Companion.toRequestBody
import org.json.JSONArray
import org.json.JSONObject
import java.util.concurrent.TimeUnit

const val BASE_URL = "https://soldstack.dev"
const val API_KEY = "ss_your_key" // in a shipped app, call your own backend instead (see above)

val client = OkHttpClient.Builder().callTimeout(30, TimeUnit.SECONDS).build()

// Blocking: call it off the main thread (for example inside withContext(Dispatchers.IO)).
fun send(request: Request): JSONObject = client.newCall(request).execute().use { res ->
    val body = JSONObject(res.body!!.string())
    if (!res.isSuccessful) error(body.optString("detail", "HTTP " + res.code))
    body
}

fun demo() {
    // GET /v1/sold
    val url = "$BASE_URL/v1/sold".toHttpUrl().newBuilder()
        .addQueryParameter("q", "coach tabby 26")
        .addQueryParameter("days", "365")
        .build()
    val sold = send(Request.Builder().url(url).header("X-API-Key", API_KEY).build())
    val stats = sold.getJSONObject("stats")
    if (stats.getInt("count") == 0) {
        println("No clean sales matched") // stats is just {"count": 0}
    } else {
        val median = stats.getDouble("median")
        val currency = stats.getString("currency")
        println("Median: $median $currency")
        val first = sold.getJSONArray("items").getJSONObject(0)
        val image = if (first.isNull("image")) null else first.getString("image")
        println("First photo: $image") // load it with Coil or Glide
    }

    // POST /v1/value
    val payload = JSONObject()
        .put("days", 365)
        .put("items", JSONArray()
            .put(JSONObject().put("description", "womens handbag").put("brand", "coach").put("condition", "used_good"))
            .put(JSONObject().put("description", "kids snow pants").put("condition", "used_good").put("quantity", 2)))
    val post = Request.Builder()
        .url("$BASE_URL/v1/value")
        .header("X-API-Key", API_KEY)
        .post(payload.toString().toRequestBody("application/json".toMediaType()))
        .build()
    val valued = send(post)
    val items = valued.getJSONArray("items")
    for (i in 0 until items.length()) {
        val item = items.getJSONObject(i)
        val value = if (item.isNull("value")) "no value" else item.getDouble("value").toString()
        val description = item.getString("description")
        val reason = item.getString("reason")
        println("$description: $value ($reason)")
    }
    val total = valued.getDouble("total")
    println("Total: $total")
}
```

### JavaScript (fetch)

`fetch` is built into Node 18+ and React Native, so this runs in both with no packages. In React Native, point `BASE` at your own backend instead of putting the key in the app. The key is also readable in any browser page, so keep it out of front-end code.

```javascript
const BASE = "https://soldstack.dev";
const KEY = process.env.SOLDSTACK_KEY; // keep the key on your server, not in a browser or app

async function soldstack(path, options = {}) {
  const abort = new AbortController();
  const timer = setTimeout(() => abort.abort(), 30000);
  try {
    const res = await fetch(BASE + path, {
      ...options,
      headers: { "X-API-Key": KEY, ...options.headers },
      signal: abort.signal,
    });
    const body = await res.json();
    if (!res.ok) throw new Error(body.detail);
    return body;
  } finally {
    clearTimeout(timer);
  }
}

async function main() {
  // GET /v1/sold
  const sold = await soldstack("/v1/sold?" + new URLSearchParams({ q: "coach tabby 26", days: "365" }));
  if (sold.stats.count === 0) {
    console.log("No clean sales matched");
  } else {
    console.log("Median:", sold.stats.median, sold.stats.currency);
    console.log("First photo:", sold.items[0].image); // may be null
  }

  // POST /v1/value
  const valued = await soldstack("/v1/value", {
    method: "POST",
    headers: { "Content-Type": "application/json" },
    body: JSON.stringify({
      days: 365,
      items: [
        { description: "womens handbag", brand: "coach", condition: "used_good" },
        { description: "kids snow pants", condition: "used_good", quantity: 2 },
      ],
    }),
  });
  for (const item of valued.items) console.log(item.description, item.value ?? "no value", item.reason);
  console.log("Total:", valued.total);
}

main().catch(console.error);
```

## About the data

- **Where it comes from:** the marketplace's public sold listings, the same results a shopper sees when they filter a search to sold items.
- **Sold price:** Poshmark shows the last listed price on a sold item. If the buyer and seller agreed a lower offer privately, the real final price may be a little lower. Use `median` rather than any single sale.
- **Matching:** clean comps remove most mismatches, but a model name can still cover several versions (a Coach Tabby comes in sizes 20, 26 and 36 at very different prices). Add the model number, size or item type to your search for the tightest numbers, and check `cleaning.confidence`.
- **How old the sales are:** Poshmark returns up to 48 sold listings per page in its own relevance order, not by date, so some sales can be months or years old. `stats.oldest_sold` and `stats.newest_sold` show the range, and `confidence_note` warns when most are over a year old. For today's prices, add `days=365` or `days=90` (or your own window).
- **Freshness:** fetched live on the first request, then cached for 6 hours.
- **How accurate it is:** what cleaning removed in real searches, how confidence is decided and what it doesn't catch are on [How accurate is this?](https://soldstack.dev/accuracy)

## Support

Questions, a lost key, or a marketplace you need? Email [aaron@soldstack.dev](mailto:aaron@soldstack.dev). You'll get a reply from a person, usually within a day.

Using the API means you agree to the [Terms](https://soldstack.dev/terms). How we handle data is in the [Privacy Policy](https://soldstack.dev/privacy). For code generators there's an [OpenAPI spec](https://soldstack.dev/openapi.json) (auth as an `apiKey` scheme, every error response declared).
