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:
| Marketplace | How to ask | Prices | Sold date |
|---|---|---|---|
| Mercari US (mercari.com) | marketplace=us, or leave it out | US dollars, "25.00" | Not shown by Mercari US |
| Japanese Mercari (jp.mercari.com) | marketplace=jp | Whole 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"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"])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
| Parameter | Values | Default |
|---|---|---|
keyword | Any search term, up to 300 characters | Required |
marketplace | us (Mercari US) or jp (Japanese Mercari) | us |
sold | true = sold listings, false = active listings | true |
count | 1 to 100 listings per page | 100 |
page | 1 to 100 | 1 |
sortOrder | bestMatch, newest, lowestPrice, highestPrice, recentlySold, mostPopular | bestMatch |
minPrice, maxPrice | Price range: US dollars on us, whole yen on jp | None |
itemCondition | any, new, likeNew, good, fair, poor | any |
categoryId, brandId | Positive Mercari US category or brand IDs (Mercari US only) | None |
includeListedAt | true adds listedAt, the date Mercari US shows as "Posted" | false |
mostPopularis accepted for older integrations and works likerecentlySoldon Mercari US.minPricemust be less than or equal tomaxPrice.- Semicolons in the keyword are read as spaces (Mercari ignores punctuation).
Response
{
"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:
| Field | Meaning |
|---|---|
totalResults | How many listings match the search on Mercari |
totalItems | How many listings are in this page |
hasNextPage | true when you can ask for page + 1 |
summary | Price summary of this page's sold prices; null on active searches |
region, currency | Only on Japanese Mercari: "jp" and "JPY" |
Item fields:
| Field | Meaning |
|---|---|
itemId, url | Mercari listing ID and the link to the listing |
title | Listing title |
price | Sold price (sold search) or asking price (active search), as a string: "70.00" dollars or "28304" yen |
currency | USD or JPY |
originalPrice | The earlier price when the seller lowered it, otherwise null |
condition, conditionId | Condition in English and its number: Mercari US 1 New, 2 Like new, 3 Good, 4 Fair, 5 Poor |
status | sold or active |
imageUrl, thumbnailUrl | Full-size and small photo |
sellerId | Mercari seller ID when shown (often null on Japanese Mercari) |
brand, categoryId, categoryName | Brand and category as Mercari lists them |
marketplace | Always "mercari" |
listedAt | When the item was posted (ISO 8601 UTC): with includeListedAt=true on Mercari US, always on Japan |
soldAt, conditionJa, listingType | Japanese 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:
| Parameter | With marketplace=jp |
|---|---|
keyword, sold, page (1 to 100), count (1 to 100) | Same as Mercari US |
minPrice, maxPrice | Whole Japanese yen (minPrice=5000 means 5,000 yen) |
itemCondition | new, likeNew, good, fair match Mercari Japan's first four conditions; poor covers the last two |
sortOrder | bestMatch (default), newest, lowestPrice, highestPrice; recentlySold sorts by newest listing, mostPopular by most liked |
categoryId, brandId | Not supported: Mercari Japan uses different IDs, so these return 400 invalid_params |
includeListedAt | Not 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 (nullon active listings).conditionJa: the condition as Mercari Japan shows it.conditionis the English label.listingType:mercarifor a person-to-person listing (jp.mercari.com/item/...),shopsfor 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.
{
"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:
conditionId | conditionJa | condition |
|---|---|---|
| 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 inpriceand asummary.sold=falsereturns listings for sale now, with the asking price inpriceandsummary: 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.
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: creditsto spend purchased credits first, as on every endpoint.
Errors
The Mercari endpoint uses the shared error format (code, error, requestId):
| Status | Code | Meaning | What to do |
|---|---|---|---|
| 400 | invalid_params | Missing keyword, a value out of range, minPrice above maxPrice, or categoryId/brandId with marketplace=jp | Fix the request |
| 401 | unauthorized | Missing or wrong API key | Check the key |
| 429 | rate_limited / quota_exceeded | Per-minute limit or monthly allowance reached | See Rate limits |
| 502 | upstream_blocked | Mercari did not complete the search this time | Retry after a few seconds, with a bound |
| 503 | upstream_unavailable / server_busy | Mercari could not be reached, or the search service is busy | Retry 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.
Poshmark Sold Listings API
Search Poshmark US sold listings by keyword with one CompSniper API key. Sold price, original price, sold and listed dates, days to sell, brand, size, condition, seller and a price summary.
TCGplayer Sold Prices API
Get TCGplayer completed sales, market price history and active listings for Pokemon, Magic, Yu-Gi-Oh and other trading cards with one API key.