urlstring必須
Full Walmart page URL, e.g. https://www.walmart.com/ip/HP-14-Laptop/17581855155
https://api.sandbase.ai/v1/api/walmart/scrape/productExtract structured data from a Walmart product page URL: name, current and list price, stock, delivery estimate, ratings and seller details.
出力はここに表示されます
入力を完了してから[実行]をクリックしてください。
Returns structured data for one Walmart product page: name, price, availability, images, review count and seller details. It needs the full product page URL as url.
curl -X POST "https://api.sandbase.ai/v1/api/walmart/scrape/product" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "https://www.walmart.com/ip/HP-14-Laptop/17581855155"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
url | string | Yes | Full Walmart page URL, e.g. https://www.walmart.com/ip/HP-14-Laptop/17581855155 |
country | string | No | Walmart marketplace country code, e.g. 'us', 'ca', 'mx' (default 'us'). |
storeId | string | No | Walmart store ID for localized inventory. |
zipCode | string | No | US zip code used to determine local product availability. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"currency": "$",
"description": "<p>Statement: Original Seal is opened for upgrade ONLY. If the computer has modi…",
"price": "$599.99",
"productAvailability": true,
"productId": "17581855155",
"productImages": [
"https://i5.walmartimages.com/seo/HP-14-Laptop-Student-Business-Computer-Intel-N1…"
],
"productName": "HP 14\" Laptop Student Business Computer, Intel N150 Processor, 1-Year Microsoft …",
"reviewCount": 115,
"sellerId": "974611902A77437FBB999DF11CCBF0BA",
"sellerName": "82days Tech",
"sellerUrl": "https://www.walmart.com/global/seller/102594305",
"soldCount": null
}
| Field | Meaning |
|---|---|
productId | Walmart product ID. It matches the number at the end of the product page URL. |
productName | Full product title as shown on the page. |
price | Current price as a string with the currency symbol, for example $599.99. |
currency | Currency symbol used for the price. |
productAvailability | Boolean. true means the product is available for the requested location. |
reviewCount | Number of customer reviews for the product. |
productImages[] | List of product image URLs. |
description | Product description. It contains HTML markup and may be cut short. |
sellerName / sellerId / sellerUrl | Name, ID and Walmart page URL of the seller listing the product. |
soldCount | Units sold, when the page shows it. It is null when the page gives no value. |
url from a Walmart product page. The product ID is the last part of the path, for example 17581855155.country to pick the marketplace, and use storeId or zipCode to localize availability.$0.01 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
開発を始める
統一認証と使用状況の追跡を備えたプラットフォームAPIエンドポイントです。
curl -X POST "https://api.sandbase.ai/v1/api/walmart/scrape/product" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://www.walmart.com/ip/HP-14-Laptop/17581855155"
}'SandBaseのAPIキーをサーバー環境に設定してください。リクエストはBearer認証を使用します。
export SANDBASE_API_KEY="YOUR_API_KEY"キーはサーバー側で管理してください。ブラウザコードに公開しないでください。
urlstring必須Full Walmart page URL, e.g. https://www.walmart.com/ip/HP-14-Laptop/17581855155
countrystringWalmart marketplace country code, e.g. 'us', 'ca', 'mx' (default 'us').
storeIdstringWalmart store ID for localized inventory.
zipCodestringUS zip code used to determine local product availability.
このAPIの保存済みサンプルレスポンスです。表示時にライブリクエストは行われません。
保存済みレスポンスはまだ公開されていません。PlaygroundでAPIを実行し、レスポンスを確認してください。
さらに探索
| API | 価格 | レスポンス |
|---|---|---|
Walmart Product Pageこの API Walmart | $0.01 / 回 | 非同期 JSON |
Walmart | 1回あたり $0.001 から | JSON |
Walmart | $0.015 / 回 | 非同期 JSON |
Walmart | $0.015 / 回 | 非同期 JSON |
Walmart | $0.01 / 回 | JSON |
質問
Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/walmart/scrape/product に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。
1回あたり $0.01、SandBase 残高から課金されます。課金対象はご利用分のみで、サブスクリプションはありません。
必須: url (string)。 任意: country (string), storeId (string) と zipCode (string)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。
JSON 結果です。このエンドポイントは非同期で実行されるため、レスポンスには完了した結果の取得方法が含まれます。 このページの README にサンプルレスポンスがあります。
いいえ。Walmart Product Page は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。Walmart の API アクセスを別途申請する必要はありません。