Skip to main content
ScrapingRabbit

Blog · · 4 min read

Get Walmart Product Search Results With an API

Search Walmart as JSON: title, price, rating, review count, seller and stock status. Working code, how to drop duplicate listings, and the limits.

Walmart search results show what is selling and at what price. Shoppers compare them, and sellers watch them to price their own listings. This guide shows how to read one search with a single GET request, what each field means, and a small trap to avoid: the same product can appear twice in one page.

Send what you would type into Walmart's search box. Every call needs an API key. New accounts get 100 free credits and a first key is created automatically on sign-up (it is shown once on the dashboard). Sign in at scrapingrabbit.com/login, then send the key in the x-api-key header (a Bearer token also works). The code below reads it from the SCRAPINGRABBIT_API_KEY environment variable, so no key is ever written into your code.

curl -H "x-api-key: $SCRAPINGRABBIT_API_KEY" "https://api.scrapingrabbit.com/v1/walmart/search?query=air%20fryer"

A successful call costs 1 credit, as the OpenAPI file lists it. It returns one page of results. Prices and stock change often, and some listings show a price range or no price at all.

A shortened real answer, read on 3 December 2026 (three of the products, with the long image and return-policy fields left out):

{
  "success": true,
  "data": {
    "query": "air fryer",
    "totalResults": 2107,
    "products": [
      {
        "title": "Chefman Air Fryer 1500W, 6 Quart, 4 Functions with Touch Controls, Stainless Steel",
        "usItemId": "14678059894",
        "rating": 4.6,
        "review_count": 14515,
        "seller_name": "Walmart.com",
        "availability_status": "IN_STOCK",
        "current_price": "$64.97",
        "before_price": "",
        "price_range_string": "",
        "sponsored": false
      },
      {
        "title": "Chefman TurboFry 2-Quart Digital Air Fryer, Compact Design for Quick Meals, Dishwasher-Safe – Black",
        "usItemId": "17284765594",
        "rating": 4.5,
        "review_count": 4531,
        "seller_name": "Chefman Direct",
        "availability_status": "IN_STOCK",
        "current_price": "$27.99",
        "before_price": "",
        "price_range_string": "",
        "sponsored": false
      },
      {
        "title": "Beautiful 3 Qt Air Fryer, White Icing with TurboCrisp™ Technology",
        "usItemId": "16102721121",
        "rating": 4.7,
        "review_count": 12806,
        "seller_name": "Walmart.com",
        "availability_status": "IN_STOCK",
        "current_price": "$44.96",
        "before_price": "",
        "price_range_string": "",
        "sponsored": false
      }
    ]
  }
}

Each product also has a canonicalUrl, a thumbnail, a seller_id, a shipping field and a returnPolicy object. In this read the shipping and return-policy values were empty or null, so do not build on them without checking your own results.

What the fields mean

FieldMeaning
totalResultsHow many matches Walmart reports for the query
products[].titleThe listing title as Walmart shows it
products[].usItemIdWalmart's item id, the key to join or dedupe on
products[].current_priceThe price as text, such as $64.97
products[].before_priceThe earlier price when Walmart shows a markdown, otherwise empty
products[].price_range_stringA range when the listing has variants with different prices, otherwise empty
products[].rating and review_countAverage stars and number of reviews
products[].seller_nameWho sells it, which can be Walmart or a marketplace seller
products[].availability_statusStock state, IN_STOCK in these examples
products[].sponsoredWhether the slot is an ad

The price is text, so turn it into a number before you compare: remove the dollar sign and any commas.

Read it in code

async function walmartSearch(query) {
  const url = `https://api.scrapingrabbit.com/v1/walmart/search?query=${encodeURIComponent(query)}`;
  const res = await fetch(url, { headers: { "x-api-key": process.env.SCRAPINGRABBIT_API_KEY } });
  const body = await res.json();
  if (!body.success) return [];

  const seen = new Set();
  return body.data.products
    .filter((p) => (seen.has(p.usItemId) ? false : seen.add(p.usItemId)))
    .map((p) => ({
      id: p.usItemId,
      title: p.title,
      price: Number(p.current_price.replace(/[$,]/g, "")) || null,
      rating: p.rating,
      reviews: p.review_count,
    }));
}

const items = await walmartSearch("air fryer");
const deals = items.filter((p) => p.price !== null && p.price < 50 && p.rating >= 4.5);
console.log(deals.length, "listings under $50 rated 4.5 or more");

The code drops repeated usItemId values, turns the price text into a number, and keeps null when a listing has no price so a missing price is never treated as zero. In the first 25 products we read, 25 slots held 24 different items, because the 13 QT HoninJoy fryer appeared twice. Three of them cost under 50 dollars and were rated 4.5 or more.

The same in Python:

import os
import requests

res = requests.get(
    "https://api.scrapingrabbit.com/v1/walmart/search",
    params={"query": "air fryer"},
    headers={"x-api-key": os.environ["SCRAPINGRABBIT_API_KEY"]},
    timeout=90,
)
body = res.json()
if body["success"]:
    seen = set()
    for product in body["data"]["products"]:
        if product["usItemId"] in seen:
            continue
        seen.add(product["usItemId"])
        print(product["current_price"], product["rating"], product["title"][:60])

Find what shoppers type first

To find which searches are worth running, use the Walmart autocomplete endpoint. It returns the suggestions Walmart shows as a shopper types, for 1 credit. Suggestions show what is popular, not how many searches happen, and they can differ over time. A common flow is to take a few suggestions for your product area and run the product search on each.

Things to plan for

  • One page per search. Check totalResults to see how much you are missing.
  • Duplicates happen. Dedupe on usItemId before you rank or count.
  • Prices can be missing or a range. Handle empty current_price and a filled price_range_string.
  • Prices and stock change often. Store the time you read them.
  • Walmart can block a lookup. If you see an error, try again. Failed calls are not charged.
  • Calls take a few seconds. Set a generous timeout, as the Python example does.
  • Rate limits and credits. Each key is limited per minute: 10 requests on the free plan, 60 on Starter, 120 on Pro and 300 on Scale. Every successful call costs credits, so cache each search.
  • Always check success. A failed request returns success: false, a code such as RATE_LIMITED or INVALID_API_KEY, and a message.

Try it without code

The free Walmart product search works in the browser with no key and shows these results for a query you type. The free Walmart keyword tool shows the autocomplete suggestions.

Try it yourself

Frequently asked questions

Does the search return every result Walmart has?

No. It returns one page of results per search. The answer also has a totalResults number, so you can see how many matches Walmart reports and decide whether one page is enough.

Why does a product sometimes appear twice?

Walmart's own page can list the same item in more than one slot. In the answer we read, one air fryer showed up at positions 2 and 18 with the same usItemId. Drop repeats by usItemId before you count or rank anything.

Can the call fail?

Yes. Walmart sometimes blocks a lookup. If you see an error, try again. Failed calls are not charged.

More guides