# Mercari Product API

> Get one Mercari US or Japan listing by item id or URL: title, description, price, original price, status, condition, brand, category, size, photos, shipping terms (who pays, method, ships-from region, handling days), whether offers are accepted, likes, seller name, rating, listing count and join date, when it was listed, and for a sold US item when it sold. For a sold item the price is the final sale price after any accepted offer.

Source: https://www.sandbase.ai/apis/mercari/product
API reference: https://www.sandbase.ai/apis/mercari/product#api

## Facts

- Provider: Mercari
- Type: Data API
- Endpoint: `POST https://api.sandbase.ai/v1/api/mercari/product`
- Price: From $0.0012 per call
- Capabilities: api, mercari, ecommerce, product data
- Billing: pay per use from one SandBase balance; no provider account or subscription needed

## Call it

`POST https://api.sandbase.ai/v1/api/mercari/product` with `Authorization: Bearer $SANDBASE_API_KEY` and the parameters as a JSON body.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `itemId` | string | yes |  |
| `country` | string | no | us, jp |
| `requireFields` | array | no |  |

## FAQ

### How do I use the Mercari Product API?

Send a POST request to https://api.sandbase.ai/v1/api/mercari/product with your SandBase API key in the Authorization header (Bearer) and the parameters as a JSON body. You can also try it in the Playground on this page without writing code.

### How much does the Mercari Product API cost?

From $0.0012 per call, billed from your SandBase balance. You are only charged for calls you make; there is no subscription.

### What parameters does the Mercari Product API accept?

Required: itemId (string). Optional: country (one of us, jp) and requireFields (array). The Parameters table and the Playground on this page list every field.

### What does the Mercari Product API return?

A JSON response returned in the same HTTP request (synchronous).

### Do I need a Mercari developer account or API key?

No. Mercari Product runs through SandBase, so one SandBase API key covers this endpoint and every other API and model in the catalog. You do not need to apply for Mercari API access separately.

## README

### Mercari Product API

Get one Mercari US or Japan listing by item id or URL: title, description, price, original price, status, condition, brand, category, size, photos, shipping terms (who pays, method, ships-from region, handling days), whether offers are accepted, likes, seller name, rating, listing count and join date, when it was listed, and for a sold US item when it sold. For a sold item the price is the final sale price after any accepted offer.

#### Request

```bash
curl -X POST "https://api.sandbase.ai/v1/run" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "mercari/product", "itemId": "m73121443159"}'
```

The result is returned in `outputs[0].data`. Lookups that find nothing fail with a not-found error.

#### Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `itemId` | string | Yes | Mercari item id or full listing URL (e.g. m73121443159 or https://www.mercari.com/us/item/m73121443159/). A jp.mercari.com URL is looked up in Japan whatever country says. Every mercari.search and mercari.sold_listings r |
| `country` | string | No | Mercari marketplace of the item id: us (USD) or jp (JPY). Ids are not shared between countries. One of: `us`, `jp`. Default `"us"`. |
| `requireFields` | array | No | Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `sellerJoinedUtc`, and it is served only by a source that returns ever |

#### Pricing

Billed at the actual cost of each call, about $0.0012 per request. A call can cost more when the first data source fails and another one answers. Failed calls and lookups that find nothing are not charged.
