# Mercari API

> Mercari returns item listings and displayed prices as a workflow and API.

Mercari searches for listings using a required query and optional condition, price, sorting, and result-count inputs. Search listings returns item details and displayed prices; sold listing prices are not confirmed transaction totals.

- Page: https://fous.com/workflows/mercari
- Handle: `@mercari`
- Category: [Commerce](https://fous.com/workflows/category/commerce)
- Source website: https://mercari.com
- Last verified: Sep 29, 2026
- Fous is not affiliated with Mercari.

## Methods

### Search listings

Operation `search_listings`, version 1. 1 credit per call.

Search Mercari US listings for items for sale or sold, with condition, price and sorting filters. Sold prices are displayed listing prices, not confirmed transaction totals; inaccessible item pages may lack seller or shipping details.

**Input**

| Field | Type | Required | Example | Description |
|---|---|---|---|---|
| `sort` | string | no | `"price_low_to_high"` | Results order, such as newest. |
| `query` | string | yes | `"Nintendo Switch OLED"` | Words to search for, such as Nintendo Switch OLED. |
| `condition` | string | no | `"good"` | Item condition, such as good. |
| `max_price` | number | no | `200` | Highest item price in USD, such as 200. |
| `min_price` | number | no | `20` | Lowest item price in USD, such as 50. |
| `sold_only` | boolean | no | `true` | Show only sold listings, such as true. |
| `max_results` | integer | no | `5` | Maximum listings to return, such as 30 (up to 120). |

**Input schema**

```json
{
  "type": "object",
  "required": [
    "query"
  ],
  "properties": {
    "sort": {
      "enum": [
        "best_match",
        "newest",
        "price_low_to_high",
        "price_high_to_low"
      ],
      "type": "string",
      "default": "best_match",
      "description": "Results order, such as newest.",
      "examples": [
        "price_low_to_high",
        "price_high_to_low"
      ]
    },
    "query": {
      "type": "string",
      "minLength": 1,
      "description": "Words to search for, such as Nintendo Switch OLED.",
      "examples": [
        "Nintendo Switch OLED",
        "Coach purse"
      ]
    },
    "condition": {
      "enum": [
        "any",
        "new",
        "like_new",
        "good",
        "fair",
        "poor"
      ],
      "type": "string",
      "default": "any",
      "description": "Item condition, such as good.",
      "examples": [
        "good"
      ]
    },
    "max_price": {
      "type": "number",
      "minimum": 0,
      "description": "Highest item price in USD, such as 200.",
      "examples": [
        200
      ]
    },
    "min_price": {
      "type": "number",
      "minimum": 0,
      "description": "Lowest item price in USD, such as 50.",
      "examples": [
        20
      ]
    },
    "sold_only": {
      "type": "boolean",
      "default": false,
      "description": "Show only sold listings, such as true.",
      "examples": [
        true
      ]
    },
    "max_results": {
      "type": "integer",
      "default": 30,
      "maximum": 120,
      "minimum": 1,
      "description": "Maximum listings to return, such as 30 (up to 120).",
      "x-fous-developer": true,
      "examples": [
        5,
        6,
        4
      ]
    }
  },
  "additionalProperties": false,
  "examples": [
    {
      "query": "Nintendo Switch OLED",
      "max_results": 5
    },
    {
      "sort": "price_low_to_high",
      "query": "Coach purse",
      "condition": "good",
      "max_price": 200,
      "min_price": 20,
      "sold_only": true,
      "max_results": 6
    },
    {
      "sort": "price_high_to_low",
      "query": "Nintendo Switch OLED",
      "max_results": 4
    }
  ]
}
```

**Output**

| Field | Type | Example | Description |
|---|---|---|---|
| `listings` | array |  |  |
| `listings[].size` | string or null |  |  |
| `listings[].sold` | boolean | `false` |  |
| `listings[].brand` | string or null | `"Nintendo"` |  |
| `listings[].price` | number | `220` | USD price. |
| `listings[].title` | string | `"Nintendo Switch OLED Bundle with Pro Joycons and Accessories"` |  |
| `listings[].item_id` | string | `"m85660443016"` |  |
| `listings[].currency` | string | `"USD"` |  |
| `listings[].condition` | string or null | `"Good"` |  |
| `listings[].image_link` | string or null | `"https://u-mercari-images.mercdn.net/photos/m85660443016_1.jpg?1790611894"` |  |
| `listings[].seller_name` | string or null | `"sydmeade"` |  |
| `listings[].listing_link` | string | `"https://www.mercari.com/us/item/m85660443016/"` |  |
| `listings[].free_shipping` | boolean or null | `false` |  |
| `listings[].seller_rating` | number or null | `5` | Average rating out of five. |

**Example input**

```json
{
  "query": "Nintendo Switch OLED",
  "max_results": 5
}
```

**Example output**

```json
{
  "listings": [
    {
      "size": null,
      "sold": false,
      "brand": "Nintendo",
      "price": 220,
      "title": "Nintendo Switch OLED Bundle with Pro Joycons and Accessories",
      "item_id": "m85660443016",
      "currency": "USD",
      "condition": "Good",
      "image_link": "https://u-mercari-images.mercdn.net/photos/m85660443016_1.jpg?1790611894",
      "seller_name": "sydmeade",
      "listing_link": "https://www.mercari.com/us/item/m85660443016/",
      "free_shipping": false,
      "seller_rating": 5
    },
    {
      "size": null,
      "sold": false,
      "brand": "Nintendo",
      "price": 162.91,
      "title": "Nintendo Switch OLED Model Console - WNintendo Switch OLED Model Console - White",
      "item_id": "m11394135554",
      "currency": "USD",
      "condition": "Like new",
      "image_link": "https://u-mercari-images.mercdn.net/photos/m11394135554_1.jpg?1789677381",
      "seller_name": "TalkerArt",
      "listing_link": "https://www.mercari.com/us/item/m11394135554/",
      "free_shipping": false,
      "seller_rating": 5
    },
    {
      "size": null,
      "sold": false,
      "brand": "Nintendo",
      "price": 180,
      "title": "Nintendo Switch OLED HEG-001 Console 64GB White Joy-Con Japanese Model",
      "item_id": "m65372254442",
      "currency": "USD",
      "condition": "Good",
      "image_link": "https://u-mercari-images.mercdn.net/photos/m65372254442_1.jpg?1790640158",
      "seller_name": "Kai’s Electronics",
      "listing_link": "https://www.mercari.com/us/item/m65372254442/",
      "free_shipping": false,
      "seller_rating": 5
    }
  ]
}
```

## Quick start

Call the API with a Fous API key (`FOUS_API_KEY`). To create one, turn on Developer mode in Fous Studio, then open Keys & connections → API keys (https://app.fous.com/keys).

```bash
# First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
: "${FOUS_API_KEY:?Set FOUS_API_KEY before running this example}"

curl 'https://api.fous.com/v1/query' \
  --fail-with-body --silent --show-error --max-time 120 \
  -H "Authorization: Bearer $FOUS_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "api": "@mercari",
  "visibility": "public",
  "operation": "search_listings",
  "version": 1,
  "input": {
    "query": "Nintendo Switch OLED",
    "max_results": 5
  },
  "response": {
    "format": "json"
  }
}'
```

```python
# Save as fous.py and run with python3 fous.py. No packages needed.
# First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
import json
import os
import urllib.error
import urllib.request

api_key = os.environ.get("FOUS_API_KEY")
if not api_key:
    raise RuntimeError("Set FOUS_API_KEY before running this example")

body = json.loads("{\n  \"api\": \"@mercari\",\n  \"visibility\": \"public\",\n  \"operation\": \"search_listings\",\n  \"version\": 1,\n  \"input\": {\n    \"query\": \"Nintendo Switch OLED\",\n    \"max_results\": 5\n  },\n  \"response\": {\n    \"format\": \"json\"\n  }\n}")
request = urllib.request.Request(
    "https://api.fous.com/v1/query",
    data=json.dumps(body).encode("utf-8"),
    headers={
        "Authorization": f"Bearer {api_key}",
        "Content-Type": "application/json",
    },
    method="POST",
)
try:
    with urllib.request.urlopen(request, timeout=120) as response:
        result = json.load(response)
except urllib.error.HTTPError as error:
    raise RuntimeError(f"HTTP {error.code}: {error.read().decode('utf-8', errors='replace')}") from error
if result.get("success") is False:
    raise RuntimeError(result.get("error", {}).get("message", "Request failed"))
print(json.dumps(result["data"]["output"], indent=2))
```

```typescript
// Save as fous.mts and run with npx tsx fous.mts.
// First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
const apiKey = process.env.FOUS_API_KEY;
if (!apiKey) throw new Error("Set FOUS_API_KEY before running this example");

const response = await fetch("https://api.fous.com/v1/query", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${apiKey}`,
    "Content-Type": "application/json",
  },
  signal: AbortSignal.timeout(120_000),
  body: JSON.stringify({
  "api": "@mercari",
  "visibility": "public",
  "operation": "search_listings",
  "version": 1,
  "input": {
    "query": "Nintendo Switch OLED",
    "max_results": 5
  },
  "response": {
    "format": "json"
  }
}),
});
type ApiResult = { success: boolean; data?: { output: unknown }; error?: { message: string } };
const result: ApiResult = await response.json();
if (!response.ok || result.success === false) {
  throw new Error(result.error?.message ?? `HTTP ${response.status}`);
}
if (!result.data) throw new Error("Missing API response data");
console.log(result.data.output);
```

Or describe the data in plain language: send `{"api":"@mercari","prompt":"Describe the data you need, with every detail"}` to the same URL. Fous fills in the input, runs the method that fits and returns only the fields you asked for; `data.route.calls[].request` is the exact call it made. Routing is free; the run costs the same.

## Use cases

- Compare displayed prices for searched items.
- Find sold listings for a product.
- Filter listings by condition and price range.
- Review available seller ratings and shipping details.

## FAQ

### Is Fous affiliated with Mercari?

No. Fous is not affiliated with Mercari. This workflow reads the public mercari.com website and returns its data.

### How much does it cost?

Each run costs 1 credit. With pay-as-you-go, a credit costs 1¢; monthly plans cost less per credit.

### Do I need a Mercari account?

No. You only need a Fous account.

### How current is the data?

Fous gets the data from mercari.com when you run it; repeating the same request within a day may return the saved result. Fous checks this workflow automatically; it last passed a check on Sep 29, 2026.

### What listings match a searched item?

Search listings returns matching items with details such as title, brand, condition, displayed price, and seller rating.

### What prices were displayed for sold items?

Search listings can return sold listings when sold-only is enabled. These are displayed listing prices, not confirmed transaction totals.

### Can I filter listings by condition and price?

Yes. Search listings accepts condition, minimum price, and maximum price inputs.

## Related

- [Mercado Libre API](https://fous.com/workflows/mercado-libre.md): Search public marketplace listings in Latin America.
- [eBay API](https://fous.com/workflows/ebay.md): eBay provides listings, listing details, seller reputation and newest feedback; shipping varies by destination, and some details or counts may be missing or approximate.
- [OfferUp API](https://fous.com/workflows/offerup.md): Local marketplace for buying and selling items.
- [Rakuten API](https://fous.com/workflows/rakuten.md): Find products and prices on Rakuten Ichiba.
- [Vinted API](https://fous.com/workflows/vinted.md): Search public second-hand listings on Vinted country sites.
- [Macy's API](https://fous.com/workflows/macys.md): Shop Macy's products and sales.
- [Amazon API](https://fous.com/workflows/amazon.md): Amazon returns publicly shown product listings, prices, details, ratings, reviews, current best sellers, and Today's Deals; availability and content vary by store, location, and access.
- [Etsy API](https://fous.com/workflows/etsy.md): Etsy provides current listings and prices, shop ratings and shipping, plus public item and shop details; some review counts or listings may be unavailable.
- [All Commerce workflows](https://fous.com/workflows/category/commerce)
