Walmart
Walmart.com search results priced and stocked for a chosen store or zip code, and product catalog records by item id.
Call these actions with your String API key; see Authentication. Every call answers with the envelope described in Responses & errors, whose data holds the rows below.
- Site:
walmart - Version:
1.0.0 - Reads from:
walmart.com
| Action | Description | Listed price |
|---|---|---|
search | Search walmart.com by keyword or category, 40 results a page, with each result's price, stock status and fulfillment at one store: chosen by store number, or the nearest to a zip code. Also returns rating, reviews, seller, category, image and whether the placement is sponsored. | Billed per request at your plan's rates |
products | Read walmart.com product records by item id or URL: name, brand, description, images, rating, review count and order limit, 40 items per request. With a store number or zip code, each item's price, stock status and fulfillment at that store too, at one more request per item. | Billed per request at your plan's rates |
search
Search walmart.com by keyword or category, 40 results a page, with each result's price, stock status and fulfillment at one store: chosen by store number, or the nearest to a zip code. Also returns rating, reviews, seller, category, image and whether the placement is sponsored.
POST https://request.usestring.ai/v1/integrations/walmart/searchInput
Unknown fields are rejected.
| Field | Type | Description |
|---|---|---|
query | string | Search terms, as typed in walmart.com's search box. One of query or categoryId is required. |
categoryId | string | A walmart.com category id, such as 976759_976794_4879140 from a /browse/ URL. |
storeId | string | The Walmart store number to price and stock results for. One of storeId or zipcode is required. Matches ^\d{1,6}$. |
zipcode | string | A US zip code; results are priced and stocked for the nearest Walmart store, which each row names. Matches ^\d{5}$. |
sort | best_match price_low price_high rating_high new | best_match (the default), price_low, price_high, rating_high or new. |
pages | integer | How many pages of 40 results to read, from 1 to 25. From 1 to 25. |
Output
data is an array of rows, one per result. Each row has:
| Field | Type | Description |
|---|---|---|
itemId | string | — |
url | string | null | — |
name | string | null | — |
brand | string | null | Often null in search results, for grocery especially; the products action names it. |
gtin | string | null | The GTIN, when Walmart sends one, which it often does not. |
price | number | null | The selling price at the store, in USD. |
wasPrice | number | null | — |
unitPrice | string | null | The price per unit as Walmart shows it, such as $46.26/lb. |
rating | number | null | — |
reviewCount | integer | null | — |
availability | string | null | Walmart's stock status at the store, such as IN_STOCK or OUT_OF_STOCK. |
fulfillment | string[] | How the store offers the item, such as PICKUP or DELIVERY. |
sellerName | string | null | — |
category | string | null | The category path, such as Home Page/Food/Coffee/Ground Coffee. |
imageUrl | string | null | — |
isSponsored | boolean | — |
storeId | string | The requested store; warnings report pages whose fulfillment does not confirm it. |
storeName | string | null | The store's name, when a zip code was resolved to it. |
page | integer | — |
position | integer | The result's position across the pages read, from 1. |
Example
curl https://request.usestring.ai/v1/integrations/walmart/search \
-H "Authorization: Bearer $STRING_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"query": "milk",
"storeId": "3520"
}'data starts with these rows:
[
{
"itemId": "10450114",
"url": "https://www.walmart.com/ip/Great-Value-Whole-Vitamin-D-Milk-Gallon-Plastic-Jug-128-Fl-Oz/10450114",
"name": "Great Value Whole Vitamin D Milk, Gallon",
"brand": null,
"gtin": null,
"price": 4.25,
"wasPrice": null,
"unitPrice": "$1.06/qt",
"rating": 4.6,
"reviewCount": 413860,
"availability": "IN_STOCK",
"fulfillment": ["DELIVERY", "PICKUP"],
"sellerName": "Walmart.com",
"category": "Home Page/Food/Dairy & Eggs/Milk/Dairy Milk/Whole Milk",
"imageUrl": "https://i5.walmartimages.com/seo/Great-Value-Whole-Vitamin-D-Milk-Gallon-Plastic-Jug-128-Fl-Oz_6a7b09b4-f51d-4bea-a01c-85767f1b481a.86876244397d83ce6cdedb030abe6e4a.jpeg",
"isSponsored": false,
"storeId": "3520",
"storeName": null,
"page": 1,
"position": 1
},
{
"itemId": "10450118",
"url": "https://www.walmart.com/ip/Great-Value-Milk-Whole-Vitamin-D-Half-Gallon-Plastic-Jug-64oz/10450118",
"name": "Great Value Milk Whole Vitamin D, Half Gallon, 64 fl oz",
"brand": null,
"gtin": null,
"price": 2.57,
"wasPrice": null,
"unitPrice": "$1.29/qt",
"rating": 4.6,
"reviewCount": 124423,
"availability": "IN_STOCK",
"fulfillment": ["DELIVERY", "PICKUP"],
"sellerName": "Walmart.com",
"category": "Home Page/Food/Dairy & Eggs/Milk/Dairy Milk/Whole Milk",
"imageUrl": "https://i5.walmartimages.com/seo/Great-Value-Milk-Whole-Vitamin-D-Half-Gallon-Plastic-Jug-64oz_52ec45c4-586d-42c0-a42c-93218631e277.ec8d19bdf634f97445cbf455eac874a8.jpeg",
"isSponsored": false,
"storeId": "3520",
"storeName": null,
"page": 1,
"position": 2
}
]Requests and billing
- Requests: 1–3 Web Access requests per result page, plus up to 1 setup request per call.
- Billing:
passthrough. Each request the action makes bills at its own rate on your plan; there is no separate charge for the action. See Pricing.
products
Read walmart.com product records by item id or URL: name, brand, description, images, rating, review count and order limit, 40 items per request. With a store number or zip code, each item's price, stock status and fulfillment at that store too, at one more request per item.
POST https://request.usestring.ai/v1/integrations/walmart/productsInput
Unknown fields are rejected.
| Field | Type | Description |
|---|---|---|
items | string[] | Required. Walmart item ids, or walmart.com /ip/ product URLs. 1 to 300 entries. |
storeId | string | A Walmart store number to price and stock each item at. Omit storeId and zipcode for catalog fields only. Matches ^\d{1,6}$. |
zipcode | string | A US zip code; each item is priced and stocked at the nearest Walmart store, which each row names. Matches ^\d{5}$. |
Output
data is an array of rows, one per result. Each row has:
| Field | Type | Description |
|---|---|---|
itemId | string | — |
url | string | null | — |
name | string | null | — |
brand | string | null | — |
rating | number | null | — |
reviewCount | integer | null | — |
shortDescription | string | null | — |
imageUrls | string[] | — |
orderLimit | integer | null | — |
price | number | null | With a store, the selling price there, in USD; null when the store does not list the item. |
wasPrice | number | null | — |
unitPrice | string | null | The price per unit as Walmart shows it, such as $1.06/qt. |
availability | string | null | With a store, Walmart's stock status there, such as IN_STOCK. |
fulfillment | string[] | With a store, how it offers the item, such as PICKUP or DELIVERY. |
storeId | string | null | The store the price and stock are for; null without a store. |
storeName | string | null | The store's name, when a zip code was resolved to it. |
Example
curl https://request.usestring.ai/v1/integrations/walmart/products \
-H "Authorization: Bearer $STRING_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"items": ["10450114", "https://www.walmart.com/ip/Great-Value-Pure-Granulated-Sugar-4-lb/10315162"],
"storeId": "3520"
}'data starts with these rows:
[
{
"itemId": "10450114",
"url": "https://www.walmart.com/ip/Great-Value-Whole-Vitamin-D-Milk-Gallon-Plastic-Jug-128-Fl-Oz/10450114",
"name": "Great Value Whole Vitamin D Milk, Gallon",
"brand": "Great Value",
"rating": 4.6,
"reviewCount": 413860,
"shortDescription": "<p>Great Value Whole Vitamin D Milk brings rich, creamy flavor to your everyday routine in a way your whole family can enjoy. This smooth and satisfying milk is a great choice for pouring over cereal, adding to coffee, or enjoying by the glass. It is fortified with vitamin D to help support your daily nutrition while delivering the full taste you expect from whole milk. This pasteurized and homogenized milk offers consistent quality you can rely on from the first pour to the last. Keep it on hand for cooking, baking, and making quick meals at home. Great Value Whole Vitamin D Milk brings rich, satisfying flavor to every pour.</p><p>Great Value products provide families with affordable, high-quality grocery and household consumable options. With our wide range of product categories spanning grocery and household consumables, we offer you a variety of products for your family's needs. Our products are conveniently available online and in Walmart stores nationwide, allowing you to stock up and save money at the same time.</p><br />",
"imageUrls": ["https://i5.walmartimages.com/seo/Great-Value-Whole-Vitamin-D-Milk-Gallon-Plastic-Jug-128-Fl-Oz_6a7b09b4-f51d-4bea-a01c-85767f1b481a.86876244397d83ce6cdedb030abe6e4a.jpeg", "https://i5.walmartimages.com/asr/8303e63c-0cc1-41e7-a9eb-55d2d03b1ac9.698a6f318317cca9d12cba9e98e6f877.jpeg", "https://i5.walmartimages.com/asr/0063811a-9643-487b-9689-f2e91bbc9724.550888bf37443989a33e59617d1acf2e.jpeg", "https://i5.walmartimages.com/asr/95581b66-3ee2-462e-ab85-3cefe6f553b7.08961fe271f933ba3c75677aa41b655c.jpeg", "https://i5.walmartimages.com/asr/b0e027e1-59da-48dd-8a6c-61ee8e22f702.f6b22144d7a991c059c2345c1ce95104.jpeg", "https://i5.walmartimages.com/asr/7183bb68-e256-48d1-b310-7d7b2f3f9ee0.fb91f804ed9c906286d231efea9c16a0.jpeg", "https://i5.walmartimages.com/asr/ddc617f6-9e77-4054-98b5-7babcb4d8f8a.01ebf3207c5ab263d76520d11d6684a0.jpeg"],
"orderLimit": 12,
"price": 4.25,
"wasPrice": null,
"unitPrice": "$1.06/qt",
"availability": "IN_STOCK",
"fulfillment": ["DELIVERY", "PICKUP"],
"storeId": "3520",
"storeName": null
},
{
"itemId": "10315162",
"url": "https://www.walmart.com/ip/Great-Value-Pure-Granulated-Sugar-4-lb/10315162",
"name": "Great Value Pure Granulated Sugar, 4 lbs",
"brand": "Great Value",
"rating": 4.7,
"reviewCount": 154347,
"shortDescription": "Great Value Pure Granulated Sugar is an all-purpose pantry staple for everyday cooking and baking. The finely granulated, free-flowing texture makes it easy to measure, pour, and blend into recipes and drinks. Use it for table service, preserving, canning, and sweetening beverages, or keep it on hand for cookies, cakes, pies, muffins, candies, syrups, and other homemade favorites. This single-ingredient sugar is also Gluten-Free and Kosher, giving you a simple, versatile option for your kitchen.",
"imageUrls": ["https://i5.walmartimages.com/seo/Great-Value-Pure-Granulated-Sugar-4-lb_0697b95e-eb68-4da1-afce-499793e190ac.267330310c7c523c5f187e59f93d3cd4.jpeg", "https://i5.walmartimages.com/asr/cb2d484f-4ff0-4853-9d40-d9f3109d20fe.863fb1c03c960573ce11557845834066.jpeg", "https://i5.walmartimages.com/asr/6c0c2d2a-8547-4721-a3d2-79a0442ee643.681132a71bb6b133610855b2666dbe69.jpeg", "https://i5.walmartimages.com/asr/70656fad-cf93-49fd-9c7f-31dd8a4e18e8.c0161950d8b69f84af6cfb81eb5e0c5c.jpeg", "https://i5.walmartimages.com/asr/d883c5d6-94cc-48af-b8a1-6ddc0dc1ea79.e33544ca0bffb2e351bca0e83ab49bf1.jpeg", "https://i5.walmartimages.com/asr/b1263876-aa20-4ce6-9788-abfa307511d2.5434312dd9f9ffa5c128e666618c039d.jpeg"],
"orderLimit": 12,
"price": 2.97,
"wasPrice": null,
"unitPrice": "74.3 ¢/lb",
"availability": "IN_STOCK",
"fulfillment": ["DELIVERY", "PICKUP"],
"storeId": "3520",
"storeName": null
}
]Requests and billing
- Requests: 0–4 Web Access requests per entry in
items, plus up to 1 setup request per call. - Billing:
passthrough. Each request the action makes bills at its own rate on your plan; there is no separate charge for the action. See Pricing.