Walmart オーガニック検索結果
Walmart オーガニック検索結果 API でEC データ API の連携を行えます。リクエストパラメーター、レスポンスのフィールド、実行可能なコード例を確認してください。
API データの例
このエンドポイントのリクエスト本文とレスポンス全体の構造を確認できます。
{
"keyword": "air fryer"
}{
"request_id": "b51e3c0d-5eb0-59fd-994e-7a75ca66e599",
"data": [
{
"product_id": "19950367748",
"parent_product_id": "19950367748",
"photo": [
"https://i5.walmartimages.com/seo/Chefman-Turbofry-8-Qt-Air-Fryer-w-Digital-Controls-Windowed-Basket-Stainless-Steel_0603781f-e265-4829-b1f7-33223c9168ac.9ab16d901a3987f4bc41062674b8678c.jpeg",
"https://i5.walmartimages.com/asr/77b411ed-fa20-4c43-a941-d06d8861cd6e.5281e5221b8ecfb7739bfd2c26a3a7ba.jpeg",
"https://i5.walmartimages.com/asr/3937729a-5666-444e-8148-5c43c2e2a8f3.c2ad0c92424387fb091bd289eb0b9538.jpeg",
"https://i5.walmartimages.com/asr/baec1b09-6f3a-4b20-bf0e-e9e5b25a391b.95f4e8e4a2e9531395ed03b80039eacd.jpeg",
"https://i5.walmartimages.com/asr/51a25adc-cf16-4e7f-97a8-922bac5faf63.2b67de210537c0ec4e1d0f717ec4d9da.jpeg",
"https://i5.walmartimages.com/asr/5025eda4-7b9b-40c3-80d1-6a2b57164ab1.de64bdc4a7c969e57dce967d1e73bb9f.jpeg",
"https://i5.walmartimages.com/asr/917f4091-d33b-459f-9f72-046cd8c0488a.2d21eaea698c0e8efcda22a704ed58b1.jpeg",
"https://i5.walmartimages.com/asr/560dffc7-453f-4a10-9690-c6f05df08c5a.3494b06a1a62c519d48ce0a0937756b8.jpeg"
],
"title": "Chefman Turbofry 8 Qt Air Fryer w/ Digital Controls & Windowed Basket - Stainless Steel",
"price": "$67.99",
"listing_sales_volume_of_month": 14994,
"listing_sales_of_month": "$1019442.06",
"brand": "Chefman",
"seller": "Chefman Direct",
"shipedby": "Fulfillment by Merchant",
"wfs_fee": 0,
"reviews_count": 496,
"ratings": 4.5,
"number_of_star": [
1,
18,
2,
3,
3,
22,
4,
44
],
"node_tree": [],
"label": [],
"popular_pick": true,
"clearance": false,
"reduced_price": false,
"rollback": false,
"flash_deal": false,
"weight": 0,
"variants": null
},
{
"product_id": "14678059894",
"parent_product_id": "14678059894",
"photo": [
"https://i5.walmartimages.com/seo/Chefman-Air-Fryer-1500W-6-Quart-4-Functions-with-Touch-Controls-Stainless-Steel_0ccae75c-daa2-4d52-a1d4-63b5f20f42c3.52b088aed447be6063d85850d455ebd5.jpeg",
"https://i5.walmartimages.com/asr/6be8aefc-2525-4c51-8d0a-6d9fc5241427.2c00dbe92bdf832ea76c89e5dd3709b0.jpeg",
"https://i5.walmartimages.com/asr/c509d374-ea53-457a-a894-dc14183f04d6.96ee957a6892ddc8841d2f0cfe16c3ce.jpeg",
"https://i5.walmartimages.com/asr/14cb027a-f602-4cc8-aa60-1e6be1ba5366.a7bf1be85a8e1190302109de99f42744.jpeg",
"https://i5.walmartimages.com/asr/014ba5ab-4905-431a-babe-567f4a464766.7eab401c23f3bfd212419271598dec80.jpeg",
"https://i5.walmartimages.com/asr/0276ab72-2447-4685-ac6d-fafa5d7e2eb5.efce969f8012561f64a346ae03b4793b.jpeg",
"https://i5.walmartimages.com/asr/d80d8848-3c63-4160-8488-79d42f98373d.62acbdce0724d8e514447fca98c9c4e5.jpeg"
],
"title": "Chefman Air Fryer 1500W, 6 Quart, 4 Functions with Touch Controls, Stainless Steel",
"price": "$64.97",
"listing_sales_volume_of_month": 13916,
"listing_sales_of_month": "$904122.52",
"brand": "Chefman",
"seller": "Walmart",
"shipedby": "WFS",
"wfs_fee": 0,
"reviews_count": 14263,
"ratings": 4.6,
"number_of_star": [
1,
487,
2,
165,
3,
714,
4,
2006
],
"node_tree": [],
"label": [],
"popular_pick": true,
"clearance": false,
"reduced_price": false,
"rollback": false,
"flash_deal": false,
"weight": 0,
"variants": null
}
]
}このページでは 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/keywords/search-results
The request and response fields below match the current public contract.
API マッピング
| Item | Value |
|---|---|
| MCP Code | walmart_keywords_search_results |
クイック呼び出し
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/keywords/search-results \
--header "Content-Type: application/json" \
--header "X-API-Key: ${ECOMMERCE_DATA_API_KEY}" \
--data '{
"keyword": "air fryer"
}'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 Organic Search Results" 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/keywords-search-results
Endpoint: POST https://ecommercedataapi.com/v1/walmart/keywords/search-results
API key environment variable: ECOMMERCE_DATA_API_KEY
Example request:
{
"keyword": "air fryer"
}
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/keywords/search-results',
{
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-API-Key': process.env.ECOMMERCE_DATA_API_KEY,
},
body: JSON.stringify({
keyword: 'air fryer',
}),
}
);
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/keywords/search-results",
headers={
"Content-Type": "application/json",
"X-API-Key": os.environ["ECOMMERCE_DATA_API_KEY"],
},
json={
"keyword": "air fryer",
},
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 |
|---|---|---|---|---|
keyword | String | Yes | Search phrase, in English. | air fryer |
page | Integer | No | Page number, 20 results per page. | 1 |
Response structure
| Field | Type | Description |
|---|---|---|
request_id | String | Unique identifier for this request. |
data | Array | 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. | 19950367748 |
parent_product_id | String | Parent product ID. | 19950367748 |
photo | Array | Array of product image URLs (main image first). | - |
title | String | Product title. | Chefman Turbofry 8 Qt Air Fryer w/ Digital Controls & Windowed Basket - Stainless Steel |
price | String | Product selling price (string with leading "$"). | $67.99 |
listing_sales_volume_of_month | Integer | Product's sales volume in the last 30 days (units). | 14994 |
listing_sales_of_month | String | Product's sales amount in the last 30 days (string with leading "$"). | $1019442.06 |
brand | String | Brand. | Chefman |
seller | String | Seller name. | Chefman Direct |
shipedby | String | Shipping method (e.g. WFS). | Fulfillment by Merchant |
wfs_fee | Integer | WFS fulfillment fee. | 0 |
reviews_count | Integer | Total number of reviews. | 496 |
ratings | Number | Average rating (out of 5). | 4.5 |
number_of_star | Array | Star rating distribution array. | - |
node_tree | Array | Category path and date array (often empty in search results). | - |
label | Array | Array of product labels. | - |
popular_pick | Boolean | Whether flagged as "Popular Pick". | True |
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 |
variants | String | Array of variants. | - |
variants.variant_id | String | Variant ID. | - |
variants.url | String | Variant detail page URL. | - |
variants.property | String | Variant property key-value flat array (every two elements form a key and value pair). | - |
variants.price_update | String | Variant's last price update date (yyyy-MM-dd). | - |
variants.detail_update | String | Variant's last detail update date (yyyy-MM-dd). | - |
Response example
{
"request_id": "b51e3c0d-5eb0-59fd-994e-7a75ca66e599",
"data": [
{
"product_id": "19950367748",
"parent_product_id": "19950367748",
"photo": [
"https://i5.walmartimages.com/seo/Chefman-Turbofry-8-Qt-Air-Fryer-w-Digital-Controls-Windowed-Basket-Stainless-Steel_0603781f-e265-4829-b1f7-33223c9168ac.9ab16d901a3987f4bc41062674b8678c.jpeg",
"https://i5.walmartimages.com/asr/77b411ed-fa20-4c43-a941-d06d8861cd6e.5281e5221b8ecfb7739bfd2c26a3a7ba.jpeg",
"https://i5.walmartimages.com/asr/3937729a-5666-444e-8148-5c43c2e2a8f3.c2ad0c92424387fb091bd289eb0b9538.jpeg",
"https://i5.walmartimages.com/asr/baec1b09-6f3a-4b20-bf0e-e9e5b25a391b.95f4e8e4a2e9531395ed03b80039eacd.jpeg",
"https://i5.walmartimages.com/asr/51a25adc-cf16-4e7f-97a8-922bac5faf63.2b67de210537c0ec4e1d0f717ec4d9da.jpeg",
"https://i5.walmartimages.com/asr/5025eda4-7b9b-40c3-80d1-6a2b57164ab1.de64bdc4a7c969e57dce967d1e73bb9f.jpeg",
"https://i5.walmartimages.com/asr/917f4091-d33b-459f-9f72-046cd8c0488a.2d21eaea698c0e8efcda22a704ed58b1.jpeg",
"https://i5.walmartimages.com/asr/560dffc7-453f-4a10-9690-c6f05df08c5a.3494b06a1a62c519d48ce0a0937756b8.jpeg"
],
"title": "Chefman Turbofry 8 Qt Air Fryer w/ Digital Controls & Windowed Basket - Stainless Steel",
"price": "$67.99",
"listing_sales_volume_of_month": 14994,
"listing_sales_of_month": "$1019442.06",
"brand": "Chefman",
"seller": "Chefman Direct",
"shipedby": "Fulfillment by Merchant",
"wfs_fee": 0,
"reviews_count": 496,
"ratings": 4.5,
"number_of_star": [1, 18, 2, 3, 3, 22, 4, 44],
"node_tree": [],
"label": [],
"popular_pick": true,
"clearance": false,
"reduced_price": false,
"rollback": false,
"flash_deal": false,
"weight": 0,
"variants": null
},
{
"product_id": "14678059894",
"parent_product_id": "14678059894",
"photo": [
"https://i5.walmartimages.com/seo/Chefman-Air-Fryer-1500W-6-Quart-4-Functions-with-Touch-Controls-Stainless-Steel_0ccae75c-daa2-4d52-a1d4-63b5f20f42c3.52b088aed447be6063d85850d455ebd5.jpeg",
"https://i5.walmartimages.com/asr/6be8aefc-2525-4c51-8d0a-6d9fc5241427.2c00dbe92bdf832ea76c89e5dd3709b0.jpeg",
"https://i5.walmartimages.com/asr/c509d374-ea53-457a-a894-dc14183f04d6.96ee957a6892ddc8841d2f0cfe16c3ce.jpeg",
"https://i5.walmartimages.com/asr/14cb027a-f602-4cc8-aa60-1e6be1ba5366.a7bf1be85a8e1190302109de99f42744.jpeg",
"https://i5.walmartimages.com/asr/014ba5ab-4905-431a-babe-567f4a464766.7eab401c23f3bfd212419271598dec80.jpeg",
"https://i5.walmartimages.com/asr/0276ab72-2447-4685-ac6d-fafa5d7e2eb5.efce969f8012561f64a346ae03b4793b.jpeg",
"https://i5.walmartimages.com/asr/d80d8848-3c63-4160-8488-79d42f98373d.62acbdce0724d8e514447fca98c9c4e5.jpeg"
],
"title": "Chefman Air Fryer 1500W, 6 Quart, 4 Functions with Touch Controls, Stainless Steel",
"price": "$64.97",
"listing_sales_volume_of_month": 13916,
"listing_sales_of_month": "$904122.52",
"brand": "Chefman",
"seller": "Walmart",
"shipedby": "WFS",
"wfs_fee": 0,
"reviews_count": 14263,
"ratings": 4.6,
"number_of_star": [1, 487, 2, 165, 3, 714, 4, 2006],
"node_tree": [],
"label": [],
"popular_pick": true,
"clearance": false,
"reduced_price": false,
"rollback": false,
"flash_deal": false,
"weight": 0,
"variants": null
}
]
}See Errors and rate limits for error payloads, request tracing, and rate-limit headers.