CompSniper Docs

Mercari API (US and Japan)

Search Mercari US and Japanese Mercari sold or active listings by keyword with one CompSniper API key. Prices, condition, brand, category, images, sold dates on Japan, and a price summary for every sold page.

GET /v1/mercari searches Mercari by keyword and returns one page of up to 100 sold listings, or active listings with sold=false. One endpoint covers two marketplaces:

MarketplaceHow to askPricesSold date
Mercari US (mercari.com)marketplace=us, or leave it outUS dollars, "25.00"Not shown by Mercari US
Japanese Mercari (jp.mercari.com)marketplace=jpWhole Japanese yen, "12800"soldAt on every sold row

Japanese Mercari results include Mercari Shops products as well as person-to-person listings. Every sold page comes with a summary (count, median, mean, min, max, p25, p75) in the page's currency.

It uses the same API key, per-minute limit, monthly allowance and purchased credits as the eBay endpoints. No Mercari account or cookies are needed.

For an overview with code in cURL, Python and JavaScript, see the Mercari API page. Every other marketplace is listed on Marketplace APIs.

Make a request

curl --fail-with-body \
  -H "Authorization: Bearer cs_live_REPLACEWITHYOURKEY" \
  "https://api.compsniper.com/v1/mercari?keyword=sony+wh-1000xm5&count=50&sold=true"
Python
import requests

response = requests.get(
    "https://api.compsniper.com/v1/mercari",
    headers={"Authorization": "Bearer cs_live_REPLACEWITHYOURKEY"},
    params={"keyword": "nintendo switch oled", "sold": "true", "itemCondition": "likeNew", "count": 100},
    timeout=45,
)
response.raise_for_status()
data = response.json()
print(data["totalResults"], "matches, median sold price", data["summary"]["median"], data["summary"]["currency"])
for item in data["items"][:5]:
    print(item["price"], item["currency"], item["condition"], item["title"])
JavaScript
const url = new URL("https://api.compsniper.com/v1/mercari");
url.search = new URLSearchParams({ keyword: "nintendo switch oled", sold: "true", count: "100" });

const response = await fetch(url, {
  headers: { Authorization: `Bearer ${process.env.COMPSNIPER_API_KEY}` },
  signal: AbortSignal.timeout(45_000),
});
if (!response.ok) throw new Error(await response.text());

const data = await response.json();
console.log(data.totalResults, data.summary?.median);
console.table(data.items.slice(0, 5).map((item) => ({ price: item.price, condition: item.condition, title: item.title })));

Same search on Japanese Mercari: add marketplace=jp (see Japanese Mercari).

Parameters

ParameterValuesDefault
keywordAny search term, up to 300 charactersRequired
marketplaceus (Mercari US) or jp (Japanese Mercari)us
soldtrue = sold listings, false = active listingstrue
count1 to 100 listings per page100
page1 to 1001
sortOrderbestMatch, newest, lowestPrice, highestPrice, recentlySold, mostPopularbestMatch
minPrice, maxPricePrice range: US dollars on us, whole yen on jpNone
itemConditionany, new, likeNew, good, fair, poorany
categoryId, brandIdPositive Mercari US category or brand IDs (Mercari US only)None
includeListedAttrue adds listedAt, the date Mercari US shows as "Posted"false
  • mostPopular is accepted for older integrations and works like recentlySold on Mercari US.
  • minPrice must be less than or equal to maxPrice.
  • Semicolons in the keyword are read as spaces (Mercari ignores punctuation).

Response

Mercari US sold response (shortened, one item shown)
{
  "keyword": "sony wh-1000xm5",
  "page": 1,
  "count": 25,
  "totalResults": 347,
  "totalItems": 25,
  "hasNextPage": true,
  "items": [
    {
      "itemId": "m93973576506",
      "url": "https://www.mercari.com/us/item/m93973576506/",
      "title": "Sony WH-1000XM5 Wireless Noise Cancelling Headphones",
      "price": "70.00",
      "currency": "USD",
      "originalPrice": "199.00",
      "condition": "Good",
      "conditionId": 3,
      "status": "sold",
      "imageUrl": "https://u-mercari-images.mercdn.net/photos/...",
      "thumbnailUrl": "https://u-mercari-images.mercdn.net/photos/...",
      "sellerId": 928815218,
      "brand": "Sony",
      "categoryId": null,
      "categoryName": "Bluetooth Headphones",
      "marketplace": "mercari"
    }
  ],
  "marketplace": "mercari",
  "scrapedAt": "2026-11-26T15:40:12.204Z",
  "summary": { "count": 25, "currency": "USD", "median": 112, "p25": 85, "p75": 149 }
}

Page fields:

FieldMeaning
totalResultsHow many listings match the search on Mercari
totalItemsHow many listings are in this page
hasNextPagetrue when you can ask for page + 1
summaryPrice summary of this page's sold prices; null on active searches
region, currencyOnly on Japanese Mercari: "jp" and "JPY"

Item fields:

FieldMeaning
itemId, urlMercari listing ID and the link to the listing
titleListing title
priceSold price (sold search) or asking price (active search), as a string: "70.00" dollars or "28304" yen
currencyUSD or JPY
originalPriceThe earlier price when the seller lowered it, otherwise null
condition, conditionIdCondition in English and its number: Mercari US 1 New, 2 Like new, 3 Good, 4 Fair, 5 Poor
statussold or active
imageUrl, thumbnailUrlFull-size and small photo
sellerIdMercari seller ID when shown (often null on Japanese Mercari)
brand, categoryId, categoryNameBrand and category as Mercari lists them
marketplaceAlways "mercari"
listedAtWhen the item was posted (ISO 8601 UTC): with includeListedAt=true on Mercari US, always on Japan
soldAt, conditionJa, listingTypeJapanese Mercari only, see below

Mercari US search does not show a reliable sold date, so CompSniper does not invent one. If you need the date the listing went up, add includeListedAt=true: each listing is looked up separately, so the request takes a few seconds longer, and a listing whose date cannot be read returns listedAt: null while the search still succeeds. It is the posting date, not the sold date, and it costs the same one request.

Japanese Mercari

Add marketplace=jp to search Japanese Mercari (jp.mercari.com), including Mercari Shops products. Japanese keywords find the most listings (for example ポケモンカード リザードン); URL-encode them.

curl --fail-with-body -G \
  -H "Authorization: Bearer cs_live_REPLACEWITHYOURKEY" \
  --data-urlencode "keyword=ポケモンカード リザードン" \
  -d marketplace=jp -d sold=true -d count=20 \
  "https://api.compsniper.com/v1/mercari"

Encoded, the sold request is GET https://api.compsniper.com/v1/mercari?keyword=%E3%83%9D%E3%82%B1%E3%83%A2%E3%83%B3%E3%82%AB%E3%83%BC%E3%83%89&marketplace=jp&sold=true.

How the parameters work on Japanese Mercari:

ParameterWith marketplace=jp
keyword, sold, page (1 to 100), count (1 to 100)Same as Mercari US
minPrice, maxPriceWhole Japanese yen (minPrice=5000 means 5,000 yen)
itemConditionnew, likeNew, good, fair match Mercari Japan's first four conditions; poor covers the last two
sortOrderbestMatch (default), newest, lowestPrice, highestPrice; recentlySold sorts by newest listing, mostPopular by most liked
categoryId, brandIdNot supported: Mercari Japan uses different IDs, so these return 400 invalid_params
includeListedAtNot needed: every Japanese row already has listedAt

Japanese rows have the same fields as Mercari US, with prices as whole yen strings and currency: "JPY", plus:

  • listedAt: when the item was listed.
  • soldAt: when it sold (null on active listings).
  • conditionJa: the condition as Mercari Japan shows it. condition is the English label.
  • listingType: mercari for a person-to-person listing (jp.mercari.com/item/...), shops for a Mercari Shops product (jp.mercari.com/shops/product/...).

The response also carries region: "jp" and currency: "JPY", and the sold summary is in yen.

Japanese Mercari sold response (one item shown)
{
  "keyword": "ポケモンカード リザードン",
  "page": 1,
  "count": 20,
  "totalResults": 1091,
  "totalItems": 19,
  "hasNextPage": true,
  "items": [
    {
      "itemId": "2Ja72nShEkCYsGrqnSKhmg",
      "url": "https://jp.mercari.com/shops/product/2Ja72nShEkCYsGrqnSKhmg",
      "title": "【PSA10】 リザードンV (SSR) {307/190} [S4a/シャイニースターV] [SS] 1枚",
      "price": "28304",
      "currency": "JPY",
      "originalPrice": null,
      "condition": "Some scratches or stains",
      "conditionId": 4,
      "status": "sold",
      "imageUrl": "https://assets.mercari-shops-static.com/-/large/plain/2Ja72nRMfN3EGrqJeWEZAu.jpg@webp",
      "thumbnailUrl": "https://assets.mercari-shops-static.com/-/small/plain/2Ja72nRMfN3EGrqJeWEZAu.jpg@webp",
      "sellerId": null,
      "brand": "Pokémon TCG",
      "categoryId": 1289,
      "categoryName": null,
      "marketplace": "mercari",
      "listedAt": "2026-11-26T15:01:35.000Z",
      "soldAt": "2026-11-26T15:27:38.000Z",
      "conditionJa": "やや傷や汚れあり",
      "listingType": "shops"
    }
  ],
  "marketplace": "mercari",
  "region": "jp",
  "currency": "JPY",
  "scrapedAt": "2026-11-26T16:06:01.611Z",
  "summary": {
    "count": 19,
    "currency": "JPY",
    "median": 13980,
    "mean": 48222.26,
    "min": 400,
    "max": 187000,
    "p25": 3540,
    "p75": 75970,
    "avgShipping": null
  }
}

Mercari Japan condition labels:

conditionIdconditionJacondition
1新品、未使用New, unused
2未使用に近いLike new
3目立った傷や汚れなしNo noticeable scratches or stains
4やや傷や汚れありSome scratches or stains
5傷や汚れありScratches or stains
6全体的に状態が悪いPoor overall condition

To compare with US prices, convert yen yourself at the rate you use; CompSniper returns the prices exactly as Mercari Japan shows them.

Sold and active listings

  • sold=true (the default) returns listings that sold, with the sold price in price and a summary.
  • sold=false returns listings for sale now, with the asking price in price and summary: null, because asking prices are not sales.

Run both with the same keyword to see what sold next to what is listed today.

Pagination

Ask for the next page while hasNextPage is true: page=2, page=3 and so on, up to page=100, with the same count. Each page is one request. A smaller count returns faster; count=100 gives the most listings per request.

Read three pages
import requests

rows, page = [], 1
while page <= 3:
    data = requests.get(
        "https://api.compsniper.com/v1/mercari",
        headers={"Authorization": "Bearer cs_live_REPLACEWITHYOURKEY"},
        params={"keyword": "lego 75192", "sold": "true", "count": 100, "page": page},
        timeout=45,
    ).json()
    rows += data["items"]
    if not data["hasNextPage"]:
        break
    page += 1
print(len(rows), "sold listings")

Price summary

Sold pages include summary with count, currency, median, mean, min, max, p25 and p75, calculated from the prices on that page (avgShipping is null on Mercari). It is in USD on Mercari US and in JPY on Japanese Mercari.

Mercari shows the listing price. A buyer may have paid less through an offer or a coupon that Mercari does not show, so treat a sold price as the price the item was listed at when it sold. Keep the sample size (summary.count) next to any median you show.

Billing and saved copies

  • One successful page is one request, sold or active, US or Japan, with or without includeListedAt.
  • Failed requests are free.
  • The same search asked again within 24 hours can come back at once from a saved copy; it still counts as one request.
  • Send X-Credit-Source: credits to spend purchased credits first, as on every endpoint.

Errors

The Mercari endpoint uses the shared error format (code, error, requestId):

StatusCodeMeaningWhat to do
400invalid_paramsMissing keyword, a value out of range, minPrice above maxPrice, or categoryId/brandId with marketplace=jpFix the request
401unauthorizedMissing or wrong API keyCheck the key
429rate_limited / quota_exceededPer-minute limit or monthly allowance reachedSee Rate limits
502upstream_blockedMercari did not complete the search this timeRetry after a few seconds, with a bound
503upstream_unavailable / server_busyMercari could not be reached, or the search service is busyRetry after retry_after seconds

See Errors for the full list.

FAQ

Is Japanese Mercari a separate endpoint?

No. It is the same GET /v1/mercari with marketplace=jp. Same key, same limits, one request per page.

Does Mercari US return the date an item sold?

No. Mercari US search does not show a reliable sold date, so it is left out instead of guessed. Japanese Mercari rows include soldAt.

Can I search Mercari Japan in English?

Yes, but most Japanese listings are written in Japanese, so a Japanese keyword (for example ポケモンカード instead of pokemon card) finds far more sold listings.

Do I need a Mercari account?

No. You only need a CompSniper API key.

How do I get Poshmark sold listings?

Poshmark has its own endpoint with its own fields: see the Poshmark API docs.

On this page