urlstringbắt buộc
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.
Đầu ra của bạn sẽ xuất hiện ở đây
Hoàn tất đầu vào, rồi nhấp Run.
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.
Bắt đầu xây dựng
Endpoint API của nền tảng với xác thực và theo dõi mức sử dụng thống nhất.
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"
}'Đặt SandBase API key của bạn trong môi trường máy chủ. Các request sử dụng xác thực Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Giữ key của bạn trên máy chủ. Không hiển thị trong mã chạy trên trình duyệt.
urlstringbắt buộcFull 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.
Đây là phản hồi ví dụ đã lưu cho API này; không có request thực nào được gửi khi xem mục này.
Chưa có phản hồi đã lưu nào được công bố. Chạy API trong Playground để xem phản hồi.
Khám phá thêm
| API | Giá | Phản hồi |
|---|---|---|
Walmart Product PageAPI này Walmart | $0.01 mỗi lần gọi | JSON bất đồng bộ |
Walmart | Từ $0.001 mỗi lần gọi | JSON |
Walmart | $0.015 mỗi lần gọi | JSON bất đồng bộ |
Walmart | $0.015 mỗi lần gọi | JSON bất đồng bộ |
Walmart | $0.01 mỗi lần gọi | JSON |
Câu hỏi
Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/walmart/scrape/product với khóa API SandBase của bạn trong tiêu đề Authorization (Bearer) và các tham số trong phần thân JSON. Bạn cũng có thể thử trực tiếp trong Playground trên trang này mà không cần viết code.
$0.01 mỗi lần gọi, được tính từ số dư SandBase của bạn. Bạn chỉ bị tính phí cho các lần gọi bạn thực hiện; không có gói đăng ký.
Bắt buộc: url (string). Tùy chọn: country (string), storeId (string) và zipCode (string). Bảng Parameters và Playground trên trang này liệt kê mọi trường.
Kết quả JSON. Endpoint này chạy bất đồng bộ, nên phản hồi sẽ cho bạn biết cách lấy kết quả hoàn tất. README trên trang này có ví dụ phản hồi.
Không. Walmart Product Page chạy thông qua SandBase, nên chỉ cần một API key SandBase là đủ cho endpoint này và mọi API cùng model khác trong danh mục. Bạn không cần đăng ký riêng để có quyền truy cập API của Walmart.