API Hop

Guides

Walmart Product & Reviews API: Python Guide

Walmart Product API Python guide: query store inventory, seller offers, and customer reviews at $0.0003/call with no seller approval or monthly fees.

Reviewed:

Walmart’s official Marketplace API only serves approved sellers managing their own listings and orders. It does not let external developers pull real-time pricing, store inventory, or customer reviews across arbitrary competitor SKUs. With the API Hop Walmart Data API, four synchronous GET endpoints—covering product search, item specifications, store-level seller offers, and customer reviews—run at a flat $0.0003 per successful request ($0.30 per 1,000 calls) with no seller verification, so you can build a Python price and review tracker for walmart.com and walmart.com.mx in 10 minutes.

Key Takeaways

  • Official Walmart APIs block public catalog scraping: Both the Walmart Marketplace API and Affiliate programs require partner approval and restrict queries to authorized seller catalogs, making them unsuitable for cross-store competitor price tracking or public review mining.
  • Four GET endpoints at a flat $0.0003 per call: GET /v1/walmart/search, /v1/walmart/product, /v1/walmart/product/sellers, and /v1/walmart/reviews all bill $0.0003 per successful request (300 credits) with zero monthly subscription.
  • US and Mexico storefronts plus store-level pricing: Switch between walmart.com and walmart.com.mx via walmart_domain, and pass store_id to retrieve local store stock and delivered pricing.
  • Strict input validation and billable empty results: /product/sellers requires both id and a positive store_id, while /search requires query or cat_id. Upstream errors and 60-second timeouts release your credit hold, whereas valid empty responses (results: []) still bill one call.
  • $10 minimum top-up covers 33,333 requests: A non-expiring $10 prepaid balance on the API Hop Pricing page works worldwide via USDT/USDC crypto, Brazil PIX, and Indonesia QRIS/GoPay/DANA with no US credit card required.

Five Ways to Pull Walmart Product and Review Data in 2026

Compare onboarding barriers, billing rules, and 10,000-request cost across the main ways developers access Walmart catalog and pricing data (verified 2026-11-29):

Access RouteAccess Barrier & FocusBilling ModelEst. Cost for 10,000 RequestsMain Limitation
Official Walmart Marketplace APIRequires seller onboarding & OAuth signature reviewFree for own-store operations$0 (restricted to own catalog)Limited to managing your own SKUs and orders; cannot scrape arbitrary sellers or reviews
SerpApi (walmart engines)Self-serve signupMonthly subscription (Starter $25/mo for 1,000; Developer $75/mo for 5,000)$100.00–$150.00Unused monthly quota expires; separate calls per page and product endpoint
Oxylabs (Walmart Web Scraper API)Self-serve signupMonthly credit bundles (Starter $15/mo, Basic $100/mo)~$5.00–$15.00Tied to recurring monthly renewal; JS rendering or extra options burn more credits
Apify (Walmart Scraper Actors)Self-serve signupPlatform fee (Starter $29/mo) + per-item rate (~$3.50/1K products)~$35.00+ (plus compute units)Asynchronous actor cold starts slow down real-time price checks
API Hop Walmart APISelf-serve, instant Bearer keyPay-as-you-go $0.0003 / successful request ($0 monthly fee)$3.00Read-only public data (no listing edits); client handles pagination loops

Prerequisites

Prepare three items before running your first Walmart API query:

  1. API Hop Key: Register on the API Hop Pricing page and create a Bearer key. Credits are prepaid pay-as-you-go ($10 minimum top-up, never expire) with no US credit card or business KYC needed, supporting USDT/USDC crypto alongside Brazil PIX and Indonesia QRIS/GoPay/DANA.
  2. Local Runtime: Python 3.9+ with requests, or standard curl.
  3. Contract Reference: Bookmark the Walmart API Overview and Walmart Endpoint Reference for exact regex patterns and field rules.
pip install -U requests
export APIHOP_API_KEY="sk-your-apihop-key"

Walmart API Quickstart: First Call in 2 Minutes

All Walmart endpoints accept GET query parameters only, forbid request bodies, and require Authorization: Bearer headers. Run a quick search for "coffee" ($0.0003):

curl --get "https://api.apihop.ai/v1/walmart/search" \
  -H "Authorization: Bearer $APIHOP_API_KEY" \
  --data-urlencode "query=coffee" \
  --data-urlencode "page=1"

Successful calls preserve the upstream JSON structure and numeric precision (illustrative envelope below; live matches populate content, while zero-match queries return an empty array):

{
  "success": true,
  "request_id": "example-request",
  "data": {
    "format": "json",
    "content": {
      "results": []
    }
  }
}

Minimal 10-Line Python Example

Fetch full details for product ID 510561525 and print the diagnostic request ID:

import os
import requests

resp = requests.get(
    "https://api.apihop.ai/v1/walmart/product",
    headers={"Authorization": f"Bearer {os.environ['APIHOP_API_KEY']}"},
    params={"id": "510561525"},
    timeout=60,
)
resp.raise_for_status()
print("X-Request-Id:", resp.headers.get("X-Request-Id"), "success:", resp.json().get("success"))

Expected output: X-Request-Id: req_... success: True.

Step-by-Step Guide: Search, Specs, Sellers, and Reviews

Production price monitors and catalog intelligence tools typically chain four calls: discover items by keyword or category, fetch item specifications, inspect store-specific seller offers, and pull filtered reviews.

Step 1: Filter Search Results by Price, Store, and Domain ($0.0003/call)

GET /v1/walmart/search accepts query or cat_id (underscore-delimited US category IDs), along with min_price, max_price, nd_en (NextDay delivery, US only), and walmart_domain (walmart.com or walmart.com.mx):

import os
import requests

search_params = {
    "query": "espresso machine",
    "walmart_domain": "walmart.com",
    "min_price": 80,
    "max_price": 300,
    "sort": "best_seller",
    "include_filters": "true",
    "page": 1,
}
r = requests.get(
    "https://api.apihop.ai/v1/walmart/search",
    headers={"Authorization": f"Bearer {os.environ['APIHOP_API_KEY']}"},
    params=search_params,
    timeout=60,
)
r.raise_for_status()
print("Search status:", r.json().get("success"), "req:", r.headers.get("X-Request-Id"))

Expected output: Search status: True req: .... Extract each product’s numeric string id from data.content for the next three endpoints.

Step 2: Pull Product Specs and Local Store Stock ($0.0003/call)

Pass the numeric id to GET /v1/walmart/product for full specs, titles, and pricing. Adding an optional store_id (1 to 10 digits) scopes stock availability and pricing to a specific brick-and-mortar store:

import os
import requests

r = requests.get(
    "https://api.apihop.ai/v1/walmart/product",
    headers={"Authorization": f"Bearer {os.environ['APIHOP_API_KEY']}"},
    params={"id": "510561525", "store_id": "100", "device": "desktop"},
    timeout=60,
)
r.raise_for_status()
print("Product loaded:", r.json().get("success"), "req:", r.headers.get("X-Request-Id"))

Expected output: Product loaded: True req: ....

Step 3: Check Third-Party Seller Offers by Store ($0.0003/call)

To monitor Buy Box pricing or third-party marketplace sellers, call GET /v1/walmart/product/sellers. Both id and store_id (^[1-9][0-9]{0,9}$) are required on this endpoint:

import os
import requests

r = requests.get(
    "https://api.apihop.ai/v1/walmart/product/sellers",
    headers={"Authorization": f"Bearer {os.environ['APIHOP_API_KEY']}"},
    params={"id": "10543894", "store_id": "100", "zero_trace": "true"},
    timeout=60,
)
r.raise_for_status()
print("Sellers loaded:", r.json().get("success"), "req:", r.headers.get("X-Request-Id"))

Expected output: Sellers loaded: True req: .... Setting zero_trace=true prevents the gateway from archiving the source HTML or parsed JSON payload.

Step 4: Pull Customer Reviews by Star Rating and Sort Order ($0.0003/call)

For sentiment mining or defect tracking, query GET /v1/walmart/reviews. Filter by rating (1 to 5) and sort (relevancy, helpful, submission-desc, submission-asc, rating-desc, rating-asc) across page 1 to 100:

import os
import requests

r = requests.get(
    "https://api.apihop.ai/v1/walmart/reviews",
    headers={"Authorization": f"Bearer {os.environ['APIHOP_API_KEY']}"},
    params={"id": "510561525", "rating": 1, "sort": "submission-desc", "page": 1},
    timeout=60,
)
r.raise_for_status()
print("Reviews loaded:", r.json().get("success"), "req:", r.headers.get("X-Request-Id"))

Expected output: Reviews loaded: True req: ....

Complete Working Python Example

This production-ready script chains a search call with product specs, store seller offers, and 1-star recent reviews while handling 429 exponential backoff and request tracing (total run cost: 4 × $0.0003 = $0.0012):

import os
import time
import requests

BASE_URL = "https://api.apihop.ai"
API_KEY = os.environ["APIHOP_API_KEY"]
HEADERS = {"Authorization": f"Bearer {API_KEY}"}


def call_walmart(endpoint: str, params: dict, max_retries: int = 3) -> dict:
    url = f"{BASE_URL}{endpoint}"
    for attempt in range(max_retries):
        resp = requests.get(url, headers=HEADERS, params=params, timeout=60)
        req_id = resp.headers.get("X-Request-Id", "-")
        if resp.status_code == 200:
            body = resp.json()
            if body.get("success"):
                return body
            raise RuntimeError(f"API returned failure ({req_id}): {body}")
        if resp.status_code == 429 and attempt < max_retries - 1:
            wait_s = 2 ** attempt
            time.sleep(wait_s)
            continue
        if resp.status_code in (400, 401, 402, 403, 405):
            raise RuntimeError(f"Client/billing error HTTP {resp.status_code} ({req_id}): {resp.text}")
        if resp.status_code >= 500 and attempt < max_retries - 1:
            time.sleep(2 ** attempt)
            continue
        resp.raise_for_status()
    raise RuntimeError(f"Exhausted retries for {endpoint}")


def run_audit(query: str, product_id: str, store_id: str) -> None:
    search_res = call_walmart("/v1/walmart/search", {"query": query, "page": 1})
    product_res = call_walmart("/v1/walmart/product", {"id": product_id, "store_id": store_id})
    sellers_res = call_walmart("/v1/walmart/product/sellers", {"id": product_id, "store_id": store_id})
    reviews_res = call_walmart(
        "/v1/walmart/reviews",
        {"id": product_id, "rating": 1, "sort": "submission-desc", "page": 1},
    )
    print("Search request_id:", search_res.get("request_id"))
    print("Product request_id:", product_res.get("request_id"))
    print("Sellers request_id:", sellers_res.get("request_id"))
    print("Reviews request_id:", reviews_res.get("request_id"))


if __name__ == "__main__":
    run_audit(query="coffee", product_id="510561525", store_id="100")

Endpoint Parameters Summary

Summary of required fields, common filters, and validation constraints across all four Walmart endpoints (verified 2026-11-29, $0.0003/request):

Endpoint PathRequired ParamsCommon Optional FiltersKey Validation Rules
GET /v1/walmart/searchquery or cat_id (at least one)page (1–100), walmart_domain, sort, min_price, max_price, store_id, nd_en, facetmin_price <= max_price; cat_id, soft_sort, and nd_en are US-only
GET /v1/walmart/productid (^[0-9]{1,30}$)store_id (^[0-9]{1,10}$), device, zero_traceid must be a numeric string; empty strings or non-digits fail
GET /v1/walmart/product/sellersid + store_id (^[1-9][0-9]{0,9}$)device, zero_tracestore_id cannot be 0 or omitted; missing values return 400
GET /v1/walmart/reviewsid (^[0-9]{1,30}$)page (1–100), rating (1–5), sort, device, zero_tracesort accepts relevancy, helpful, submission-*, rating-*

Error Handling and Billing Rules

Log X-Request-Id on every response and handle non-200 status codes as follows:

HTTP StatusMeaningBilling ImpactRecommended Action
400Invalid query value, missing required field, or rule conflictNot billedCheck id, store_id, min_price <= max_price, and query OR cat_id in Walmart Endpoint Reference
401Missing or invalid Bearer API keyNot billedVerify APIHOP_API_KEY and Authorization header
402Insufficient prepaid balanceNot billedTop up on the API Hop Pricing page and retry
403Key unauthorized or endpoint unavailableNot billedInspect key permissions and active gateway status in console
405Non-GET method such as POST sentNot billedSwitch to GET with query parameters and body = null
429Rate or concurrency limit triggeredNot billedSlow down concurrency with exponential backoff (1s, 2s, 4s)
5xxUpstream outage or 60-second timeoutHold releasedNo auto-retry or double charge; keep X-Request-Id and retry later

Common Issues and Gotchas

  1. Omitting required store_id on /product/sellers: While store_id is optional on /v1/walmart/product, it is strictly required on /v1/walmart/product/sellers (^[1-9][0-9]{0,9}$, e.g., "100"). Passing "0" or leaving it blank triggers HTTP 400.
  2. Using US-only options on walmart.com.mx: When targeting Mexico via walmart_domain=walmart.com.mx, sort only supports price_low, price_high, and best_match. Fields like cat_id, soft_sort, and nd_en apply exclusively to walmart.com.
  3. Sending unsupported gateway flags: The contract explicitly rejects html, output, json_restrictor, and no_cache, as well as any request body or duplicate/unknown query parameters, returning HTTP 400.
  4. Assuming empty search results are free: Unlike 5xx errors or timeouts that release reserved credits, a 200 response with results: [] completes an upstream lookup and bills $0.0003. Leave spelling=true enabled to avoid typos causing empty scans.
  5. Formatting facet filters: Join multiple key:value filter pairs with double pipes (||) and keep the encoded string under 4,096 UTF-8 bytes.

Cost Estimation and Budget Math

All four Walmart endpoints share a flat $0.0003 per successful call (300 credits), yielding a predictable workload formula:

$$\text{Total Cost} = (N_{\text{search}} + N_{\text{product}} + N_{\text{sellers}} + N_{\text{reviews}}) \times $0.0003$$

Two concrete e-commerce workloads (verified 2026-11-29):

  • Scenario A: Full audit of 1,000 SKUs (1 product + 1 seller + 1 review page each) Total calls = $1{,}000 \times 3 = 3{,}000$, costing $3{,}000 \times $0.0003 = \mathbf{$0.90}$. On Apify at ~$3.50/1K items plus a $29 Starter plan, the same baseline starts above $32.
  • Scenario B: Daily price and store-offer tracking for 500 SKUs (30 days) Total calls = $500 \times 2 \times 30 = 30{,}000$, totaling $30{,}000 \times $0.0003 = \mathbf{$9.00/\text{month}}$.
  • Minimum test entry: A $10 non-expiring deposit on the API Hop Pricing page covers 33,333 Walmart API requests.

What to Watch Next

  • Cross-retailer price matching: Your same API Hop balance also unlocks Amazon, Home Depot, and eBay endpoints in the API Hop Data APIs catalog, letting you compare SKU prices across major US retailers under one key.
  • Automated review clustering with LLMs: Pipe /v1/walmart/reviews JSON directly into DeepSeek or Claude under the same wallet to classify product defects without juggling separate vendor bills.

FAQ

Is the Walmart API free?

Walmart’s official Marketplace API has no per-call fee for approved sellers managing their own listings, but it cannot scrape competitor prices or public reviews across Walmart’s catalog. API Hop’s Walmart Data API has no free tier or monthly fee; a $10 non-expiring prepaid deposit on the API Hop Pricing page covers 33,333 requests at $0.0003 per call.

How much does the Walmart Product & Reviews API cost?

All four API Hop Walmart endpoints (search, product, product/sellers, reviews) bill a flat $0.0003 per successful request (300 credits), or $0.30 per 1,000 calls. Upstream failures and 60-second timeouts release credit holds, while valid empty responses bill one call.

Can individual developers use it without a US credit card or seller account?

Yes. API Hop requires no Walmart seller approval, business KYC, or US credit card. You can top up pay-as-you-go credits via USDT/USDC crypto, Brazil PIX, and Indonesia QRIS, GoPay, or DANA.

Which Walmart marketplaces are supported?

GET /v1/walmart/search supports walmart.com (US) and walmart.com.mx (Mexico) via walmart_domain. Keep in mind that cat_id, soft_sort, and nd_en only work on walmart.com, and Mexico sort only accepts price_low, price_high, and best_match.

How many review pages can /v1/walmart/reviews fetch?

The page parameter accepts integers from 1 to 100, and you can combine it with rating (1–5) and sort to target specific review segments. Each page request bills $0.0003.