Walmart 商品詳細
Walmart 商品詳細 API でEC データ API の連携を行えます。リクエストパラメーター、レスポンスのフィールド、実行可能なコード例を確認してください。
API データの例
このエンドポイントのリクエスト本文とレスポンス全体の構造を確認できます。
{
"productId": "11350566851"
}{
"request_id": "25ad9c7e-2dfe-5f68-a429-d41a48537909",
"data": {
"product_id": "11350566851",
"parent_product_id": "7L6C0DXUVMZR",
"title": null,
"price": "$89",
"listing_sales_volume_of_month": 232578,
"listing_sales_of_month": "$20699442",
"brand": "Ninja",
"seller": "Walmart",
"shipedby": "WFS",
"wfs_fee": 0,
"reviews_count": 2597,
"ratings": 4.6,
"number_of_star": [
1,
115,
2,
33,
3,
58,
4,
107
],
"node_tree": [],
"label": [],
"popular_pick": false,
"clearance": false,
"reduced_price": false,
"rollback": false,
"flash_deal": false,
"weight": 0
}
}このページでは Ecommerce Data API の公開契約を説明します。フィールド名、パス、技術例はそのまま保持しているため、そのまま統合できます。
Availability: Available
This endpoint is active in the v1 gateway, OpenAPI, and subscription catalog. Each call consumes 1 billing unit, including calls that find nothing (
RESULT_NOT_FOUND).
POST /v1/walmart/products/detail
The request and response fields below match the current public contract.
API マッピング
| Item | Value |
|---|---|
| MCP Code | walmart_products_detail |
クイック呼び出し
First create an API key, then store it in a server-side environment variable:
export ECOMMERCE_DATA_API_KEY="your_api_key"curl --request POST \
--url https://ecommercedataapi.com/v1/walmart/products/detail \
--header "Content-Type: application/json" \
--header "X-API-Key: ${ECOMMERCE_DATA_API_KEY}" \
--data '{
"productId": "11350566851"
}'Integrate with an AI CLI
Copy for your AI CLI
Paste this task into Codex, Claude Code, Gemini CLI, or another coding agent.
Integrate the "Walmart Product Details" endpoint from Ecommerce Data API into the current repository. Make the changes directly instead of only returning sample code.
API documentation: https://ecommercedataapi.com/ja/docs/walmart/products-detail
Endpoint: POST https://ecommercedataapi.com/v1/walmart/products/detail
API key environment variable: ECOMMERCE_DATA_API_KEY
Example request:
{
"productId": "11350566851"
}
Requirements:
1. Read the API documentation first, then inspect the repository's language, framework, HTTP client, directory structure, and environment-variable conventions.
2. Reuse the existing API client and error-handling patterns. If none exist, add the smallest reusable Ecommerce Data API client and an endpoint-specific wrapper.
3. Read the key from the server-side ECOMMERCE_DATA_API_KEY environment variable and send Content-Type: application/json plus the X-API-Key header. Never write a real key into source code, browser code, logs, test snapshots, or Git.
4. If the environment variable is missing, tell me to configure ECOMMERCE_DATA_API_KEY myself. Do not request, print, or invent the real key, and continue implementing code and tests that do not require a live request.
5. Implement request and response types from the documentation. Handle non-2xx responses, request_id, error.code, error.message, and 429 rate limits.
6. Add a minimal usage example or test that follows the repository's conventions. Run one minimal live request only when the key is already configured and external requests are allowed; otherwise use mocks or static validation.
7. Run the relevant formatter, type checker, and tests. Report changed files, usage, verification results, and any environment variable I still need to configure.Open this request in Postman
Download the preconfigured collection for this endpoint, then import it into Postman.
Node.js example
const response = await fetch(
'https://ecommercedataapi.com/v1/walmart/products/detail',
{
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-API-Key': process.env.ECOMMERCE_DATA_API_KEY,
},
body: JSON.stringify({
productId: '11350566851',
}),
}
);
const result = await response.json();
if (!response.ok) {
throw new Error(`${result.error?.code}: ${result.error?.message}`);
}
console.log(result.data);Python example
import os
import requests
response = requests.post(
"https://ecommercedataapi.com/v1/walmart/products/detail",
headers={
"Content-Type": "application/json",
"X-API-Key": os.environ["ECOMMERCE_DATA_API_KEY"],
},
json={
"productId": "11350566851",
},
timeout=30,
)
response.raise_for_status()
print(response.json()["data"])Request body
Send the fields below directly in the JSON body without an extra wrapper. Undefined fields are rejected.
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
productId | String | Yes | Product ID, from the product search or category results of the same platform. | 11350566851 |
Response structure
| Field | Type | Description |
|---|---|---|
request_id | String | Unique identifier for this request. |
data | Object | Endpoint business data. |
The fields below are inside data. For array endpoints they describe one array item; for paginated endpoints they describe one record in items[].
Response fields
| Field | Type | Description | Example |
|---|---|---|---|
product_id | String | Walmart product ID. | 11350566851 |
parent_product_id | String | Parent product ID. | 7L6C0DXUVMZR |
title | String | Product title. | - |
price | String | Product selling price (string with leading "$"). | $89 |
listing_sales_volume_of_month | Integer | Product's sales volume in the last 30 days (units). | 232578 |
listing_sales_of_month | String | Product's sales amount in the last 30 days (string with leading "$"). | $20699442 |
brand | String | Brand. | Ninja |
seller | String | Seller name. | Walmart |
shipedby | String | Shipping method (e.g. WFS). | WFS |
wfs_fee | Integer | WFS fulfillment fee. | 0 |
reviews_count | Integer | Total number of reviews. | 2597 |
ratings | Number | Average rating (out of 5). | 4.6 |
number_of_star | Array | Star rating distribution array (1-5 star order, each value is the count at that star). | - |
node_tree | Array | Category path and date array, 4 items per group: [category name, parent chain nodeId (joined with underscores), date, rank]. | - |
label | Array | Array of product labels. | - |
popular_pick | Boolean | Whether flagged as "Popular Pick". | False |
clearance | Boolean | Whether the item is a clearance product. | False |
reduced_price | Boolean | Whether the price has been reduced. | False |
rollback | Boolean | Whether the item participates in a Rollback discount. | False |
flash_deal | Boolean | Whether the item participates in a Flash Deal. | False |
weight | Number | Product weight (unit not specified; 0 means not filled). | 0.0 |
Response example
{
"request_id": "25ad9c7e-2dfe-5f68-a429-d41a48537909",
"data": {
"product_id": "11350566851",
"parent_product_id": "7L6C0DXUVMZR",
"title": null,
"price": "$89",
"listing_sales_volume_of_month": 232578,
"listing_sales_of_month": "$20699442",
"brand": "Ninja",
"seller": "Walmart",
"shipedby": "WFS",
"wfs_fee": 0,
"reviews_count": 2597,
"ratings": 4.6,
"number_of_star": [1, 115, 2, 33, 3, 58, 4, 107],
"node_tree": [],
"label": [],
"popular_pick": false,
"clearance": false,
"reduced_price": false,
"rollback": false,
"flash_deal": false,
"weight": 0
}
}See Errors and rate limits for error payloads, request tracing, and rate-limit headers.