Sand AISand AI MAGI-2MAGI-2 が SandBase に登場しました: ネイティブ音声付き 1080p 動画今すぐ試す

Mercari Product

APIドキュメント
https://api.sandbase.ai/v1/api/mercari/product

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.

料金
$0.0012 からUSD / 回
メソッド
POST
レスポンス
JSON
パラメータ
必須 1 件 · 任意 2 件

プレイグラウンド

入力
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 row carries its itemId.
Mercari marketplace of the item id: us (USD) or jp (JPY). Ids are not shared between countries.
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 every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a listing that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
出力準備完了

出力はここに表示されます

入力を完了してから[実行]をクリックしてください。

API 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

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

NameTypeRequiredDescription
itemIdstringYesMercari 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
countrystringNoMercari marketplace of the item id: us (USD) or jp (JPY). Ids are not shared between countries. One of: us, jp. Default "us".
requireFieldsarrayNoOptional; 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.

さらに探索

関連 APIs

すべての APIs
API価格レスポンス
Mercari Productこの API
Mercari
1回あたり $0.0012 からJSON
Mercari1回あたり $0.0012 からJSON
Mercari1回あたり $0.0012 からJSON

質問

FAQ

Mercari Product API はどのように使いますか?

Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/mercari/product に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。

Mercari Product API の料金はいくらですか?

1回あたり $0.0012 から、SandBase 残高から課金されます。課金対象はご利用分のみで、サブスクリプションはありません。

Mercari Product API はどのパラメータを受け付けますか?

必須: itemId (string)。 任意: country(us, jp のいずれか) と requireFields (array)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。

Mercari Product API は何を返しますか?

同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。

Mercari の開発者アカウントまたは API key は必要ですか?

いいえ。Mercari Product は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。Mercari の API アクセスを別途申請する必要はありません。