Búsqueda de productos de Walmart
Utiliza la API de Búsqueda de productos de Walmart para integración de API para ecommerce. Consulta los parámetros, los campos de respuesta y los ejemplos de código.
/v1 /walmart /products /searchEjemplos de datos de la API
Consulta el cuerpo de la solicitud y la estructura completa de la respuesta de este endpoint.
{
"keyword": "air fryer",
"searchBy": "name"
}{
"request_id": "86572046-a990-5941-aaa8-bd604d94bdac",
"data": [
{
"product_id": "11350566851",
"parent_product_id": "7L6C0DXUVMZR",
"photo": [
"https://i5.walmartimages.com/seo/Ninja-Crispi-Glass-Air-Fryer-4-Qt-1500-Watts-3-in-1-White_2f49f5b6-dc7a-43ef-b903-60148b541a85.f4743a19d7838f3f42b7289ac6903e25.jpeg",
"https://i5.walmartimages.com/asr/942aa939-d135-484c-ab41-e645ee099dda.8ce5481d678bd12aae4cc9b2a369aca5.jpeg",
"https://i5.walmartimages.com/asr/ed1bc8a0-d47d-42c0-a167-9cefe3e6170c.9da822d5eb858ac4ce9d4c03cab3f315.jpeg",
"https://i5.walmartimages.com/asr/62b426e2-2511-4843-99a4-0d90281c119b.b251f1ef1c668146db23b3db2a021f42.jpeg",
"https://i5.walmartimages.com/asr/9c42930c-23ea-43d2-9bb8-9c369455ae86.3b0dacec606d08749f3745952fcfb1f1.jpeg",
"https://i5.walmartimages.com/asr/7bbac8f4-e273-4cc5-9945-cc090fac6c48.db24ccb54ee687215411d34aa5206c61.jpeg",
"https://i5.walmartimages.com/asr/b5e22489-1812-4ff5-906c-8a4ef6caa60e.8185f831f875b753a13ea6647fa77308.jpeg",
"https://i5.walmartimages.com/asr/432a3619-7fba-4d5d-935e-36c5d56657c1.3aadbd7347240fcc087a25e2c356b001.jpeg"
],
"title": "Ninja Crispi Glass Air Fryer 4-Qt, 3-in-1, Non-Toxic, Air Fry Recrisp, Portable, Dishwasher Safe, FN090 White",
"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": [],
"attribute": null,
"label": [],
"popular_pick": false,
"clearance": false,
"reduced_price": false,
"rollback": false,
"flash_deal": false,
"weight": 0,
"variants": null,
"first_reviews_date": null
},
{
"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": [],
"attribute": null,
"label": [],
"popular_pick": true,
"clearance": false,
"reduced_price": false,
"rollback": false,
"flash_deal": false,
"weight": 0,
"variants": null,
"first_reviews_date": null
}
]
}Esta página documenta el contrato público de Ecommerce Data API. Conserva los nombres de campos, las rutas y los ejemplos técnicos para que puedas integrarla directamente.
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/search
The request and response fields below match the current public contract.
Mapeo de la API
| Item | Value |
|---|---|
| MCP Code | walmart_products_search |
Llamada rápida
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/search \
--header "Content-Type: application/json" \
--header "X-API-Key: ${ECOMMERCE_DATA_API_KEY}" \
--data '{
"keyword": "air fryer",
"searchBy": "name"
}'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 Search" endpoint from Ecommerce Data API into the current repository. Make the changes directly instead of only returning sample code.
API documentation: https://ecommercedataapi.com/es/docs/walmart/products-search
Endpoint: POST https://ecommercedataapi.com/v1/walmart/products/search
API key environment variable: ECOMMERCE_DATA_API_KEY
Example request:
{
"keyword": "air fryer",
"searchBy": "name"
}
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/search',
{
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-API-Key': process.env.ECOMMERCE_DATA_API_KEY,
},
body: JSON.stringify({
keyword: 'air fryer',
searchBy: 'name',
}),
}
);
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/search",
headers={
"Content-Type": "application/json",
"X-API-Key": os.environ["ECOMMERCE_DATA_API_KEY"],
},
json={
"keyword": "air fryer",
"searchBy": "name",
},
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 |
searchBy | String | No | What the keyword names: name (product name), seller or brand. | name |
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; pass as productId to detail, content and trend queries. | 11350566851 |
parent_product_id | String | Parent product ID (the master product ID the variation belongs to). | 7L6C0DXUVMZR |
photo | Array | Array of product image URLs (main image first). | - |
title | String | Product title. | Ninja Crispi Glass Air Fryer 4-Qt, 3-in-1, Non-Toxic, Air Fry Recrisp, Portable, Dishwasher Safe, FN090 White |
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 (includes Walmart 1P). | Walmart |
shipedby | String | Shipping method (e.g. WFS = Walmart Fulfillment Services). | 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 (in 1-5 star order, each value is the count of reviews at that star). | - |
node_tree | Array | Category path and date array, 4 items per group: [category name, nodeId, date, rank] (may contain multiple historical groups). | - |
attribute | String | Product attribute key-value pairs (every two elements form a key and value pair). | - |
label | Array | Array of product labels (e.g. bestsell, savewith). | - |
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 |
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 pairs (every two elements form a key and value pair, e.g. ["Actual Color","Black"]). | - |
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). | - |
first_reviews_date | String | Date of the first review (yyyy-MM-dd). | - |
Response example
{
"request_id": "86572046-a990-5941-aaa8-bd604d94bdac",
"data": [
{
"product_id": "11350566851",
"parent_product_id": "7L6C0DXUVMZR",
"photo": [
"https://i5.walmartimages.com/seo/Ninja-Crispi-Glass-Air-Fryer-4-Qt-1500-Watts-3-in-1-White_2f49f5b6-dc7a-43ef-b903-60148b541a85.f4743a19d7838f3f42b7289ac6903e25.jpeg",
"https://i5.walmartimages.com/asr/942aa939-d135-484c-ab41-e645ee099dda.8ce5481d678bd12aae4cc9b2a369aca5.jpeg",
"https://i5.walmartimages.com/asr/ed1bc8a0-d47d-42c0-a167-9cefe3e6170c.9da822d5eb858ac4ce9d4c03cab3f315.jpeg",
"https://i5.walmartimages.com/asr/62b426e2-2511-4843-99a4-0d90281c119b.b251f1ef1c668146db23b3db2a021f42.jpeg",
"https://i5.walmartimages.com/asr/9c42930c-23ea-43d2-9bb8-9c369455ae86.3b0dacec606d08749f3745952fcfb1f1.jpeg",
"https://i5.walmartimages.com/asr/7bbac8f4-e273-4cc5-9945-cc090fac6c48.db24ccb54ee687215411d34aa5206c61.jpeg",
"https://i5.walmartimages.com/asr/b5e22489-1812-4ff5-906c-8a4ef6caa60e.8185f831f875b753a13ea6647fa77308.jpeg",
"https://i5.walmartimages.com/asr/432a3619-7fba-4d5d-935e-36c5d56657c1.3aadbd7347240fcc087a25e2c356b001.jpeg"
],
"title": "Ninja Crispi Glass Air Fryer 4-Qt, 3-in-1, Non-Toxic, Air Fry Recrisp, Portable, Dishwasher Safe, FN090 White",
"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": [],
"attribute": null,
"label": [],
"popular_pick": false,
"clearance": false,
"reduced_price": false,
"rollback": false,
"flash_deal": false,
"weight": 0,
"variants": null,
"first_reviews_date": null
},
{
"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": [],
"attribute": null,
"label": [],
"popular_pick": true,
"clearance": false,
"reduced_price": false,
"rollback": false,
"flash_deal": false,
"weight": 0,
"variants": null,
"first_reviews_date": null
}
]
}See Errors and rate limits for error payloads, request tracing, and rate-limit headers.