# 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/tools/mercari
- Handle: `@mercari`
- Category: [Commerce](https://fous.com/tools/category/commerce)
- Source website: https://mercari.com
- Last verified: Sep 29, 2026

## Methods

### Search listings

Operation `search_listings`, version 1. 1 credit per completed call. Failed calls without a completed billing receipt are free; completed work can remain charged if delivery is interrupted.

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

Replace `YOUR_API_KEY` with a Fous API key. To create one, open Developers at the bottom of Fous Studio, turn on Developer mode, then go to API keys (https://app.fous.com/keys). Change the values in `input` to run the same tool on new data.

```bash
curl 'https://api.fous.com/v1/query' \
  --fail-with-body --silent --show-error --max-time 180 \
  -H "Authorization: Bearer YOUR_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.
import json
import urllib.error
import urllib.request

api_key = "YOUR_API_KEY"

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=180) 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.
const apiKey = "YOUR_API_KEY";

const response = await fetch("https://api.fous.com/v1/query", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${apiKey}`,
    "Content-Type": "application/json",
  },
  signal: AbortSignal.timeout(180_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);
```

## Use from an AI assistant

Connect this tool to Claude Code, Claude Desktop, Cursor, VS Code, Codex and any MCP client as its own MCP server. Each method is a typed tool whose arguments are the method’s input.

- Server URL: `https://api.fous.com/mcp/tools/mercari`
- Authorization: `Authorization: Bearer <Fous API key>`

**Tools**

- `search_listings`: Search listings. 1 credit per completed call. Failed calls without a completed billing receipt are free; completed work can remain charged if delivery is interrupted.
- `fous_get_run`: the result of a run that was still going, by its `request_id`. Free.

Claude Code:

```bash
claude mcp add --scope user --transport http fous-mercari https://api.fous.com/mcp/tools/mercari --header "Authorization: Bearer ${FOUS_API_KEY:?Set FOUS_API_KEY to your Fous API key}"
```

To give the assistant every tool, connect `https://api.fous.com/mcp`: it finds one with `fous_search_tools` and runs it with `fous_run_tool`. Setup for other clients: https://fous.com/llms-full.txt.

## 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

### Can I run it with my own inputs?

Yes. Change the inputs in Studio and press Run, or send new inputs from your code, or ask a connected AI assistant.

### Can I call this Mercari tool as an API?

Yes. Send a POST request to /v1/query with your Fous API key and the inputs, and get JSON back.

### How much does it cost?

Each completed run costs 1 credit. Failed runs without a completed receipt are free; completed work can remain charged if delivery is interrupted. 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. Some results are reused for up to 24 hours, and results that use your account or key are never reused. It was last verified 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/tools/mercado-libre.md): Search public marketplace listings in Latin America.
- [eBay API](https://fous.com/tools/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/tools/offerup.md): Local marketplace for buying and selling items.
- [Rakuten API](https://fous.com/tools/rakuten.md): Find products and prices on Rakuten Ichiba.
- [Vinted API](https://fous.com/tools/vinted.md): Search public second-hand listings on Vinted country sites.
- [Macy's API](https://fous.com/tools/macys.md): Shop Macy's products and sales.
- [Amazon API](https://fous.com/tools/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/tools/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 tools](https://fous.com/tools/category/commerce)
