Blog / API guides

Poshmark and Mercari APIs: Resale Listings as JSON

The Poshmark API on Perceptlayer returns Poshmark search results as JSON: one GET /v1/poshmark/search call takes a query plus brand, size, condition, colour and price filters, and returns a page of listings with price, original price, condition, sizes and dates, for 1 credit. Mercari has a matching GET /v1/mercari/search at the same cost. This guide puts the two side by side using recorded responses: the request, the parameters, the listing fields, paging, and the cost per listing.

Which Poshmark and Mercari endpoints are there?

Poshmark has four endpoints and Mercari has three, all at 1 credit per successful call. For listings data, search is the endpoint you'll use most on both: it returns a page of listings with their prices and details, so you rarely need the single-listing call. Failed calls cost nothing on either.

Site Endpoint Returns Required parameters Optional parameters
Poshmark GET /v1/poshmark/search A page of listings none query, brand[], category, category_feature, department, size[], condition[], color[], price_min, price_max, availability, sort, cursor, page, count, country
Poshmark GET /v1/poshmark/listing One listing none id, url, country
Poshmark GET /v1/poshmark/suggestions Search suggestions query country
Poshmark GET /v1/poshmark/closet Closet username availability, sort, cursor, page, country
Mercari GET /v1/mercari/search A page of items market, status, page query, category, brand, size, color, condition, min_price, max_price, sort, shipping_payer, seller
Mercari GET /v1/mercari/item One item market id, url
Mercari GET /v1/mercari/seller Seller market, id, status, page none

Search listings on both sites carry an id and a url, and the single-listing endpoints take id or url, so the names match. This guide has recorded responses for the two search endpoints only; the Poshmark API page and Mercari API page have playgrounds for the rest.

How do you search Poshmark listings?

Send a GET request to https://api.perceptlayer.com/v1/poshmark/search with your key in the X-API-Key header. No parameter is required, but you'll want a query and a few filters. List filters take bracketed names and can repeat. This request searches for Zara jackets, new with tags, with price_max=60, sorted by price:

curl "https://api.perceptlayer.com/v1/poshmark/search?query=jacket&brand[]=Zara&condition[]=nwt&price_max=60&sort=price_asc" \
  -H "X-API-Key: $API_KEY"

Keys start with sk_live_, and the authentication docs cover the api_key query parameter for clients that can't set headers. Every successful response carries X-Credits-Used and X-Credits-Remaining.

How do you search Mercari listings?

Mercari search requires three parameters: market (us or jp), status (on_sale or sold) and page. Add query, sort and filters on top. The status parameter makes it a choice in every call whether you read live listings or sold ones. This request searches the US market for Nike items on sale, cheapest first:

curl "https://api.perceptlayer.com/v1/mercari/search?market=us&query=nike&status=on_sale&sort=price_asc&page=1" \
  -H "X-API-Key: $API_KEY"

Which search parameters do the two sites take?

Both search endpoints filter on keyword, brand, size, colour, condition and price, and both sort by price, but the names, the list syntax and the allowed values differ. Poshmark takes lists (brand[], size[]) and a coded condition; Mercari takes single strings and adds a shipping filter. The table lists what the API documents; nothing else about these parameters is documented.

What it filters Poshmark Mercari
Keyword query, up to 100 characters query, up to 200 characters
Brand brand[], list, up to 60 characters brand, string
Category category, category_feature, department (Women, Men, Kids) category
Size size[], list size
Colour color[], list color
Condition condition[]: nwt, uln, ug, uf condition, string
Price price_min, price_max min_price, max_price
Live or sold availability: available, sold, not_for_sale, all status (required): on_sale, sold
Sort relevance, price_asc, price_desc, added_desc, price_drop, like_count relevance, price_asc, price_desc, newest
Shipping none shipping_payer: buyer, seller
Country or market country: us, ca market (required): us, jp
Paging cursor, page (only 1), count page (required)

The Poshmark response includes a filters_applied object that echoes what the search used. In the recording it lists availability as available, which the request didn't send, so log filters_applied with each run rather than assuming what a search covered. Only one condition code is labelled in the recording: nwt comes back as "New with tags".

What does a listing look like on each site?

A Poshmark listing is the richer record: prices as objects with a currency, the original and first-listed price, a discount where there is one, per-size quantities, and likes, comments and shares. A Mercari item is flatter: a numeric price with currency, condition, category, optional brand and size objects, photos and dates. Both carry an id, url, title and listed_at.

This is the first part of the second recorded Poshmark listing, with the seller block and images removed:

{
  "success": true,
  "items": [
    …
    {
      "id": "6abbe055728253db5936c234",
      "url": "https://poshmark.com/listing/6abbe055728253db5936c234",
      "title": "Zara Kids Jacket in Beige Size 3 Years NWT",
      "brand": "Zara",
      "department": "Kids",
      "category": {
        "slug": "Jackets_&_Coats",
        "name": "Jackets & Coats"
      },
      "condition": {
        "code": "nwt",
        "label": "New with tags"
      },
      "size": "98 cm",
      "sizes": [
        {
          "size": "98 cm",
          "quantity_available": 1,
          "quantity_sold": 0,
          "quantity_reserved": 0
        }
      ],
      "price": {
        "amount": 3,
        "currency": "USD"
      },
      "original_price": {
        "amount": 30,
        "currency": "USD"
      },
      "discount": {
        "percent": 90,
        "amount": 27
      },
      "first_listed_price": {
        "amount": 5,
        "currency": "USD"
      },
      …
      "likes": 2,
      "comments_count": 0,
      "shares": 17,
      "listed_at": "2026-09-29T16:04:11+00:00",
      "updated_at": "2026-10-19T19:20:40+00:00",
      …
      "availability": "available",
      "sold": false
    }
  ],
  "pagination": {
    "next_cursor": "ENC_eyJtYXhfaWRzIjpbNDksMSwxXSwi…",
    "has_more": true,
    "count": 48,
    "total": 5000,
    "total_capped": true
  },
  …
}

And the second recorded Mercari item, with the seller block removed:

{
  "success": true,
  "data": {
    "market": "us",
    "query": "nike",
    "page": 1,
    "per_page": 30,
    "total": 10000,
    "total_is_capped": true,
    "has_next": true,
    "items": [
      …
      {
        "id": "m47199620622",
        "url": "https://www.mercari.com/us/item/m47199620622/",
        "title": "XL Nike Baseball Pants",
        "price": 1,
        "currency": "USD",
        "status": "on_sale",
        "condition": {
          "id": 3,
          "name": "Good"
        },
        "brand": {
          "id": 4578,
          "name": "Nike"
        },
        "size": {
          "id": 12,
          "name": "XL (46-48)"
        },
        "category": {
          "id": 379,
          "name": "Pants"
        },
        …
        "likes": 0,
        "listed_at": "2024-11-23T00:33:02Z",
        "updated_at": "2025-01-08T00:52:46Z",
        …
      }
    ]
  },
  …
}
Field Poshmark Mercari
Price price.amount, price.currency price, currency
Earlier prices original_price, first_listed_price, optional discount none in the recording
Condition condition.code, condition.label condition.id, condition.name
Brand brand (string) brand.id, brand.name (optional)
Size size, sizes[] with quantities size.id, size.name (optional)
Category category.slug, category.name, category_path category.id, category.name
Images images[].url, images[].thumbnail thumbnail, photos[]
Engagement likes, comments_count, shares likes
Status availability, sold status
Dates listed_at, updated_at listed_at, updated_at

Both responses also include a seller object on each listing. If you store listings, drop it: listing data such as price, brand, size and condition answers resale questions without any details about the people selling.

What should you watch for in the results?

Cheapest-first sorting surfaces odd matches on both sites. The first recorded Mercari result for "nike" is a sticker in the "Single Cards" category at a price of 1, and the first Poshmark result is titled just "Jackets" at 3. Narrow with category, brand and price_min or min_price before you sort by price, and treat optional fields such as Mercari's brand and size, which the first item lacks, as possibly absent.

How do you page through results?

The two sites page differently. Poshmark's page parameter accepts only 1, and the response carries pagination.next_cursor and has_more, while the endpoint takes a cursor parameter; the names match, so try passing next_cursor back as cursor in the playground. Mercari takes a required page and reports has_next, per_page and total.

Both report capped totals. The Poshmark recording shows total 5000 with total_capped: true, and the Mercari recording shows total 10000 with total_is_capped: true. Treat those as "at least" figures, and split a broad search into narrower ones by brand, size or price band when you need all of it.

A script that reads both into one table

This Python script runs one search on each site and writes the listings to a CSV file with shared columns. It reads only fields in the recorded responses, uses .get for optional ones, and leaves the seller object out.

import csv
import os

import requests

API_KEY = os.environ["API_KEY"]
BASE = "https://api.perceptlayer.com/v1"
HEADERS = {"X-API-Key": API_KEY}


def get(path, params):
    r = requests.get(f"{BASE}/{path}", params=params, headers=HEADERS, timeout=60)
    r.raise_for_status()
    return r.json()


def poshmark_rows(query):
    body = get("poshmark/search", {"query": query, "sort": "price_asc"})
    for item in body["items"]:
        yield ["poshmark", item["id"], item["title"], item["price"]["amount"],
               item["price"]["currency"], item["condition"]["label"],
               item.get("brand", ""), item["url"], item["listed_at"]]


def mercari_rows(query):
    body = get("mercari/search", {"market": "us", "query": query,
                                  "status": "on_sale", "sort": "price_asc", "page": 1})
    for item in body["data"]["items"]:
        brand = item.get("brand")
        yield ["mercari", item["id"], item["title"], item["price"], item["currency"],
               item["condition"]["name"], brand["name"] if brand else "",
               item["url"], item["listed_at"]]


with open("resale.csv", "w", newline="") as f:
    out = csv.writer(f)
    out.writerow(["site", "id", "title", "price", "currency", "condition", "brand", "url", "listed_at"])
    out.writerows(poshmark_rows("zara jacket"))
    out.writerows(mercari_rows("zara jacket"))

That's 2 calls, 2 credits. Add try/except around get for production: every error comes back with an HTTP status and a JSON body with code, message and request_id, and a 429 or 503 carries Retry-After. The errors docs list every code.

What does resale listing data cost?

Each successful search call costs 1 credit on either site, so the cost per listing is 1 credit divided by the listings a page returns. At the recorded Mercari per_page of 30, that's about 0.033 credits per listing. On Poshmark, the recorded pagination.count is 48; check it in your own calls before you budget on it.

Plan Arithmetic Credits
10 searches on each site, first page, once 10 × 2 × 1 credit 20
20 searches on each site, 3 pages each, daily for 30 days 20 × 2 × 3 × 30 × 1 credit 3,600
3,000 Mercari listings once (30 per page) 3,000 ÷ 30 × 1 credit 100
100 single-listing lookups a day for 30 days 100 × 30 × 1 credit 3,000

The 100 free credits on signup cover the first plan five times, or one 100-page Mercari pull. The second and fourth plans each fit the Starter pack's 10,000 credits, and together (6,600) still do. Purchased credits last 12 months, with no subscription. See pricing for what credits cost, and the credits docs for how debits work.

To try it, run search in the playground on the Poshmark search endpoint and the Mercari search endpoint with the same query, compare the fields you need, then get a free API key. The marketplaces APIs page lists other resale sources, and Vinted Scraper or API covers a third.

APIs in this post

Frequently asked questions

How much does a Poshmark API call cost?

Every Poshmark and Mercari endpoint costs 1 credit per successful call, and a failed call costs nothing and returns X-Credits-Used: 0. A search call returns a page of listings, so the cost per listing is a fraction of a credit: at the recorded Mercari per_page of 30, about 0.033 credits. The 100 free credits on signup cover 100 searches.

Can I get sold listings from Poshmark and Mercari?

Yes, as a filter. Poshmark search takes availability with available, sold, not_for_sale or all, and each listing carries availability and sold. Mercari search requires status, either on_sale or sold, and each item carries status. Both recorded searches are of live listings, so check a sold search in the playground before you build on its fields.

Does the Poshmark API work for Canada?

Every Poshmark endpoint takes an optional country parameter, us or ca; the recorded response reports country as us. Mercari's endpoints require market, us or jp. Each country or market is a separate call at 1 credit, so store the country with every listing and keep currencies apart: each Poshmark price object carries its own currency.

Do the responses include seller details?

Each listing in both recorded responses carries a seller object. Leave it out of what you store: resale analysis needs price, brand, size, condition and dates, not the people selling. Don't use listing data to contact sellers. The closet and seller endpoints exist, and their parameters are listed on the Poshmark and Mercari API pages.

Can an AI agent search Poshmark and Mercari?

Yes. Through the MCP server at https://perceptlayer.com/mcp, an agent finds the endpoints with search_endpoints, reads their parameters with get_endpoint (both free) and runs a search with call_endpoint, which spends credits only on success and reports the credits used and remaining. The AI agents docs cover the setup.

  1. Vinted API: Search Second-Hand Items as JSON

    Search Vinted as JSON with 14 optional parameters, then price-check one query across 19 countries. Each call costs 1 credit; failed calls cost nothing.

  2. Depop API: Resale Listings as JSON

    Search Depop listings as JSON with brand, condition, sizes and price.amount per item; the recorded jacket search had a total_count of 6,815,522. 1 credit.

  3. Etsy Scraper or API: What You Get

    An Etsy scraper vs one 10-credit product endpoint: a recorded listing with price, discount, quantity, variations and favorites, and the cost per item tracked.

Start with 100 free credits

No password to set. We email you a sign-in link, and your key works on every API.

No credit card. 100 free credits on signup.