API reference · E-commerce
Walmart Product Search
Search Walmart retail inventory by keyword query. Returns product cards, prices, seller information, and stock status.
Example
curl -X POST 'https://api.serpbase.dev/walmart/search' \
-H "Content-Type: application/json" \
-H 'X-API-Key: YOUR_API_KEY' \
--max-time 60 \
-d '{"query":"coffee maker"}'{
"status": 0,
"credits_charged": 2,
"request_id": "r-4b27fe8a36d9ac303a5da7dd",
"product_id": "walmart_search",
"query": "coffee maker",
"action": "search",
"page": 1,
"pagination": {
"page": 1,
"total_results": "10429"
},
"products": [
{
"availability": "In stock",
"id": "1VBPWK95CE2G",
"link": "https://www.walmart.com/ip/Keurig-K-Express-Essentials-Black-Single-Serve-K-Cup-Pod-Coffee-Maker/125…",
"media": [
{
"image_url": "https://i5.walmartimages.com/seo/Keurig-K-Express-Essentials-Black-Single-Serve-K-Cup-Pod-Coffee-Mak…",
"type": "image",
"url": "https://i5.walmartimages.com/seo/Keurig-K-Express-Essentials-Black-Single-Serve-K-Cup-Pod-Coffee-Mak…"
}
],
"offers": [
{
"availability": "In stock",
"id": "081BC8B3995B323A892D60234C8C3D8B",
"product_id": "1VBPWK95CE2G",
"seller": {
"id": "F55CDC31AB754BB68FE0B39041159D63",
"name": "Walmart.com"
}
}
],
"position": 1,
"product_type": "VARIANT",
"rating": 4.4,
"reviews_count": "14528",
"seller": {
"id": "F55CDC31AB754BB68FE0B39041159D63",
"name": "Walmart.com"
},
"sponsored": true,
"title": "Keurig K-Express Essentials Black Single-Serve K-Cup Pod Coffee Maker",
"url": "https://www.walmart.com/ip/Keurig-K-Express-Essentials-Black-Single-Serve-K-Cup-Pod-Coffee-Maker/125…",
"us_item_id": "12516374178"
}
],
"source": "walmart",
"url": "https://www.walmart.com/search?page=1&q=coffee+maker"
}Parameters
formatMore
markdown returns the same result as Markdown text (text/markdown) for language models: no envelope, no duplicate alias fields, no inline images. Same credits; failures keep the JSON envelope.
querycountryMore
Use one spelling at a time; the API validates the parameters and values supported by this product.
cursorMore
Use one spelling at a time; the API validates the parameters and values supported by this product.
deviceMore
Use one spelling at a time; the API validates the parameters and values supported by this product.
glMore
Use one spelling at a time; the API validates the parameters and values supported by this product.
hlMore
Use one spelling at a time; the API validates the parameters and values supported by this product.
htmlMore
Use one spelling at a time; the API validates the parameters and values supported by this product.
languageMore
Use one spelling at a time; the API validates the parameters and values supported by this product.
limitMore
Use one spelling at a time; the API validates the parameters and values supported by this product.
markdownMore
Use one spelling at a time; the API validates the parameters and values supported by this product.
mobileMore
Use one spelling at a time; the API validates the parameters and values supported by this product.
numMore
Use one spelling at a time; the API validates the parameters and values supported by this product.
pageMore
Use one spelling at a time; the API validates the parameters and values supported by this product.
qMore
Use one spelling at a time; the API validates the parameters and values supported by this product.
The sample shows example parameters, not the complete request contract. Known fields are validated by the API; additional parameters are allowed.
What comes back
The fields are those in the response above; every endpoint also carries status, credits_charged and request_id.
If it fails
A failed request has a non-zero status and an error, and is not charged. The ones you will see here:
1000A parameter is missing or wrongFix the request1020No credits leftTop up1029Over your requests per secondWait Retry-After seconds1502 · 1504The source could not be read this timeRetry