ScraperCompany · APIs · Pricing · Docs · llms.txt · Get an API key

Walmart API Walmart

Walmart API for product search, prices and reviews

Search walmart.com and get each item as JSON: item ID, name, brand, price, rating, review count and whether it is sponsored. Then page through an item’s reviews with Walmart’s own rating summary.

$4.00 per 1,000 calls with a credit pack, down to $1.20 on the Scale plan 500 free calls, no card. Failed calls are free. Then $20 for 10,000 credits, or plans from $39 a month. Free calls cover endpoints up to 30 credits a call.Checked More e-commerce data
POST /v1/walmart/search 2 credits
{
  "search_parameters": {
    "engine": "walmart_search",
    "q": "bathrobe"
  },
  "products": [
    {
      "item_id": "5255687930",
      "name": "Black Womens Robe, Fleece Plush Soft Fluffy Bathrobe, S/M",
      "brand": "Pavilia",
      "price": 19.99,
      "currency": "USD",
      "rating": 4.4,
      "ratings_count": 2484,
      "url": "https://www.walmart.com/ip/PAVILIA-Black-Women-Robe-5255687930",
  …

Brands, retailers and pricing teams track what Walmart charges and how its customers rate products, often next to Amazon. Walmart’s developer APIs are built for its sellers, suppliers, advertisers and affiliates, not for reading the catalog at large. This API reads the public search and review pages and returns the data Walmart’s own store uses: about 40 items per search page and up to 50 pages, in Walmart’s sort orders, with sponsored items labelled rather than removed.

Every item has a numeric item ID, the same number that ends its walmart.com URL, and the reviews endpoint takes it. Reviews come 10 per page in Walmart’s own orders (most relevant, most helpful, newest, highest or lowest rating) with the Verified Purchase badge. Every page also carries the item’s rating summary: the average, the total, the count and percentage at each star level, and the share of reviewers who recommend it. Walmart’s M/D/YYYY dates are returned as ISO dates.

What you get

item_id
Walmart’s numeric item ID, the number at the end of the product URL, which the reviews call takes
name, brand, url
product name, brand and walmart.com link
price, currency
the current price and its currency
rating, ratings_count
average rating and number of reviews shown on the result
sponsored
true for paid placements, which keep their position in the results
aggregated_count
the number of matching items Walmart reports for the search
summary
average, total, per-star counts and percentages, and recommended_pct
reviews[]
rating, title, text, ISO date, author and labels such as Verified Purchase

One call, structured JSON

POST /v1/walmart/search, 2 credits per successful call.

curl -X POST "https://api.scrapercompany.com/v1/walmart/search" \
  -H "x-api-key: $SCRAPERCOMPANY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "q": "bathrobe"
  }'
Response (trimmed)
{
  "search_parameters": {
    "engine": "walmart_search",
    "q": "bathrobe"
  },
  "products": [
    {
      "item_id": "5255687930",
      "name": "Black Womens Robe, Fleece Plush Soft Fluffy Bathrobe, S/M",
      "brand": "Pavilia",
      "price": 19.99,
      "currency": "USD",
      "rating": 4.4,
      "ratings_count": 2484,
      "url": "https://www.walmart.com/ip/PAVILIA-Black-Women-Robe-5255687930",
      "image": "https://i5.walmartimages.com/seo/PAVILIA-Black-Women-Robe_482875EB",
      "sponsored": false
    },
    {
      "item_id": "17299362344",
      "name": "Mainstays Fleece Bathrobe, Unisex, Adult",
      "brand": "Mainstays",
      "price": 16.98,
      "currency": "USD",
      "rating": 4.5,
      "ratings_count": 1290,
      "url": "https://www.walmart.com/ip/Mainstays-Fleece-Bathrobe-17299362344",
      "sponsored": true
    }
  ],
  "aggregated_count": 387,
  "total": 2,
  "meta": {
    "source": "walmart_search",
    "elapsed_s": 1.344
  }
}

Every field, documented before you buy

What one POST /v1/walmart/search call returns: 14 fields with their type and a value from the example above, then every input the call takes.

In the response

FieldTypeExampleWhat it is
productsarray
products[].item_idstring"5255687930"
products[].namestring"Black Womens Robe, Fleece Plush Soft Fl…"Name as the site shows it.
products[].brandstring"Pavilia"
products[].pricenumber19.99The price as the site shows it, in currency.
products[].currencystring"USD"ISO 4217 currency code of the prices.
products[].ratingnumber4.4Average rating on the site’s own scale.
products[].ratings_countinteger2484Number of ratings behind the average.
products[].urlstring"https://www.walmart.com/ip/PAVILIA-Blac…"Address of the page the data came from.
products[].imagestring"https://i5.walmartimages.com/seo/PAVILI…"Address of the main image.
products[].sponsoredbooleanfalse
aggregated_countinteger387The number of matching items Walmart reports for the search

Arrays show their first item; every item has the same fields. Full schema in the API reference

In the request

InputTypeRequiredWhat it does
qstringRequiredSearch query.Min length 1, max length 200.
pageintegerOptionalResult page.Default 1. Min 1, max 50.
sortstring | nullOptionalWalmart's own sort= value; omit for Walmart's default.

Endpoints and price per call

Credits per successful call, and what 1,000 calls cost: from a credit pack down to the Scale plan. Failed requests cost nothing.

EndpointWhat it returnsCreditsPer 1,000 calls
Product search
POST /v1/walmart/search
One page of about 40 items for a keyword, in Walmart’s sort orders2 credits$4.00 – $1.20
Reviews
POST /v1/walmart/reviews
One page of 10 reviews for an item, with its rating summary2 credits$4.00 – $1.20

See all plans

Your first call in three steps

  1. 01

    Get an API key

    Create an account and verify your email, then copy a key from the dashboard. The free trial is 500 free calls, once, no card needed.

  2. 02

    Send POST /v1/walmart/search

    Put the key in the x-api-key header and pass q. Every other input is optional and listed above.

  3. 03

    Read the JSON

    The answer is one JSON object with products, aggregated_count, total and meta, typed and named the same way on every call. A failed call costs 0 credits, so retrying is free.

Limits and coverage

Where it works
walmart.com, USD
  • Up to 50 pages deep (page)
  • An unknown item, and a product with no offers, is not charged.

Is it legal to scrape Walmart?

It depends on what you collect and what you do with it. Here is what the API does, and what stays with you once the data is yours.

Public pages only

The API reads what Walmart shows anyone who opens the page without signing in. It uses no account and opens nothing behind a paywall.

Facts are not the same as content

A price on a date, a rating or a count is a fact, and copyright does not protect facts. Review text, photos, descriptions and transcripts belong to their authors or the site. Counting, scoring or summarising them is a different use from republishing them, and republishing usually needs permission.

Databases have their own right in the EU and UK

Whoever invested in building a database there can stop others taking a substantial part of it, and repeated extraction of small parts can add up to a substantial part. Collect the fields and dates you need, not a copy of Walmart.

Personal data is yours to handle

Product reviews carry reviewer names; classifieds can carry a seller’s name or contact details. If you keep it, the GDPR and UK GDPR apply to people in Europe and the UK, and other places have their own privacy laws: you need a lawful basis, must tell people you hold their data unless an exemption applies, should collect no more than you need, and should delete it on a schedule. The simplest route is not to keep it: drop names and handles before you store anything. A hashed name is still personal data.

The site’s terms, and ours

The terms of use of Walmart may limit automated access to it or reuse of its data. Our Terms make you responsible for how you use the data you collect, for following the terms of the sites it comes from, for data protection law, and for having the rights you need.

This is general information, not legal advice. For a specific use, ask a lawyer where you operate. Walmart is a trademark of its owner. ScraperCompany is independent: not affiliated with or endorsed by Walmart, and this is not an official Walmart API.

Frequently asked questions

Read next

Guides

Does Walmart have a public API?

Not for reading the catalog at large. Walmart’s developer portal offers Marketplace APIs for sellers and solution providers, Supplier APIs for companies that sell to Walmart directly, and advertising and carrier APIs; Walmart I/O offers an Affiliates API for publishers who promote Walmart products. ScraperCompany is independent of Walmart: this API reads the public walmart.com search and review pages and needs no partner account.

How do I find a Walmart item ID?

Every search result carries item_id. It is also the number at the end of a walmart.com product URL (for walmart.com/ip/PAVILIA-Black-Women-Robe-5255687930 it is 5255687930). Pass it to the reviews endpoint.

How many reviews can I get for an item?

Walmart serves reviews 10 per page and page goes up to 100, so up to 1,000 reviews per sort order. Each page is one call. The rating summary with per-star counts comes with every page, so one call is enough for an item’s rating breakdown.

Are sponsored products included?

Yes, labelled. Sponsored items stay in the position Walmart shows them, with sponsored set to true, so you can measure paid placement or filter it out.

How do sorting and paging work in search?

Each page returns about 40 items and page goes up to 50. sort takes Walmart’s own orders: best match, price low to high or high to low, highest rating, best sellers and newest. An empty page is free.

Do failed requests cost credits?

No. A failed or blocked call (any 4xx or 5xx response) costs 0 credits, and so does a search page that comes back empty. You pay only for successful results.

How do I get an API key?

Create an account on the sign-up page and verify your email. You get a free trial of 500 free calls, once, no card needed; for everything else, and after the trial, buy a credit pack (from $20) or pick a plan. You create and rotate keys yourself in the dashboard.

More APIs on the same key

All APIs
Amazon API

Search amazon.com the way a shopper does and get each result as JSON: ASIN, title, price, rating, ratings count and whether it is sponsored. Then read a product’s star breakdown and the reviews Amazon features on its page.

Craigslist API

Pass a Craigslist city and search words, and get every result Craigslist shows for that search, up to about 350 in one call: title, price in the local currency, neighbourhood and the listing link.

Web scraping API

Send a URL, get the page back as HTML, markdown or text. If an attempt does not return the page, the request is tried again automatically, and you pay only for a page that comes back with content.

Screenshot API

Send a URL, get back an image of the page as a visitor sees it, after its JavaScript has run and its images have loaded. Pick the size, the format and what to capture: the viewport, the whole page or one element.

Start with 500 free calls

Create an account and verify your email: your own API keys and 500 free calls, once, no card needed. When you need more, pay $20 as you go or pick a plan from $39 a month.

No card needed. Then $20 for 10,000 credits, or plans from $39 a month.