Skip to content

About

Walmart Scraper API by Piloterr: product, reviews, search, seller, suggest data from Walmart as structured JSON. Python, TypeScript, cURL, PHP, C#, Go, Java, Ruby examples.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Walmart Scraper API by Piloterr – scrape Walmart data as JSON

Walmart Scraper API

Discord Get API key API docs License: MIT

The Piloterr Walmart Scraper API lets you extract public data from Walmart as clean, structured JSON — no proxies, headless browsers or HTML parsing to maintain. Endpoints available in production:

  • Walmart Product API — Walmart product by URL or item id.
  • Walmart Reviews API — Walmart reviews by item id or URL.
  • Walmart Search API — Search Walmart by keyword or search URL.
  • Walmart Seller API — Walmart seller by catalog id or URL.
  • Walmart Suggest API — Get Walmart.com search autocomplete suggestions for a keyword via browser rendering, with optional US ZIP code localization.

Use it for price monitoring, assortment tracking, competitor analysis, product research or catalog enrichment.

Endpoint Path Credits What you get
Walmart Product API /v2/walmart/product 2 Walmart product by URL or item id. Returns price, specifications, images, fulfillment options, seller offers, and a review summary.
Walmart Reviews API /v2/walmart/reviews 2 Walmart reviews by item id or URL. Returns the star breakdown, highlighted reviews, mentions, and one page of customer reviews.
Walmart Search API /v2/walmart/search 1 Search Walmart by keyword or search URL. Returns product cards with offer price, unit price, rating, seller, shipping flags, and pagination.
Walmart Seller API /v2/walmart/seller 2 Walmart seller by catalog id or URL. Returns the seller profile and one page of that seller's products.
Walmart Suggest API /v2/walmart/suggest 2 Get Walmart.com search autocomplete suggestions for a keyword via browser rendering, with optional US ZIP code localization.

Table of contents

How it works

  1. Create a free Piloterr account and copy your API key from the dashboard.
  2. Send a GET (or POST) request to https://api.piloterr.com/v2/... with the header x-api-key: YOUR_API_KEY.
  3. Receive structured JSON — Piloterr handles rendering, proxies, retries and parsing.
export PILOTERR_API_KEY="your-api-key"
pip install requests        # Python
# TypeScript: Node.js 18+ (native fetch), run with `npx tsx file.ts`

Every endpoint accepts both GET (query string) and POST (JSON body with the same fields).

Walmart Product API

Walmart product by URL or item id. Returns price, specifications, images, fulfillment options, seller offers, and a review summary.

GET | POST https://api.piloterr.com/v2/walmart/product · 2 credits per request · Full reference

Request parameters

Parameter Type Required Description
query string ✅ Walmart product URL or numeric item id.
return_page_source boolean — When true, return {"result": html} instead of the parsed product.

Python example

import json
import os
import requests

response = requests.get(
    "https://api.piloterr.com/v2/walmart/product",
    headers={"x-api-key": os.environ["PILOTERR_API_KEY"]},
    params={
        "query": "138762768",
    },
    timeout=120,
)
response.raise_for_status()
data = response.json()

print(json.dumps(data, indent=2, ensure_ascii=False)[:2000])

TypeScript example

type WalmartProduct = {
  upc?: string;
  brand?: string;
  title?: string;
  images?: string[];
  offers?: {
    price?: number;
    seller_id?: string;
    catalog_seller_id?: number;
    seller_display_name?: string;
  }[];
  rating?: number;
  reviews?: number;
  in_stock?: boolean;
  location?: {
    city?: string;
    store_id?: string;
    postal_code?: string;
    province_code?: string;
  };
  offer_id?: string;
  price_map?: {
    price?: number;
    currency?: string;
    unit_price?: number;
  };
  seller_id?: string;
  categories?: {
    url?: string;
    name?: string;
  }[];
  offer_type?: string;
  product_id?: string;
  us_item_id?: string;
  ingredients?: string;
  seller_name?: string;
  manufacturer?: string;
  max_quantity?: number;
  min_quantity?: number;
  product_type?: string;
  pickup_option?: {
    location?: string;
    available?: boolean;
    pickup_time?: string;
  };
  return_policy?: {
    text?: string;
    returnable?: boolean;
    window_days?: number;
    free_returns?: boolean;
  };
  delivery_option?: {
    location?: string;
    available?: boolean;
    delivery_time?: string;
  };
  [key: string]: unknown;
};

const params = new URLSearchParams({
  "query": "138762768",
});

const response = await fetch(`https://api.piloterr.com/v2/walmart/product?${params}`, {
  headers: { "x-api-key": process.env.PILOTERR_API_KEY! },
});
if (!response.ok) throw new Error(`Piloterr error ${response.status}: ${await response.text()}`);

const data = (await response.json()) as WalmartProduct;

console.log(JSON.stringify(data, null, 2).slice(0, 2000));
POST variant
POST https://api.piloterr.com/v2/walmart/product
x-api-key: YOUR_API_KEY
Content-Type: application/json

{"query": "138762768"}

Output example

Example response from the API reference, abridged — real values depend on the page you scrape.

{
  "upc": "633148100556",
  "brand": "Tajín",
  "title": "Tajin Clasico Seasoning, 14oz",
  "images": [
    "https://i5.walmartimages.com/seo/Tajin-Clasic-Seasoning-14oz_43068286-8eb0-473a-85f6-cfb0abb49ed4.d1a27b02dd8ba9152fc9996ff7ba47b8.jpeg",
    "https://i5.walmartimages.com/asr/13ebc469-9f41-48bf-a3a0-72eaa58e87c5.0fd396dfda5de41c6558ebe567d1867e.jpeg"
  ],
  "offers": [
    {
      "price": 6.97,
      "seller_id": "F55CDC31AB754BB68FE0B39041159D63",
      "catalog_seller_id": 0,
      "seller_display_name": "Walmart.com"
    }
  ],
  "rating": 4.8,
  "reviews": 349,
  "in_stock": true,
  "location": {
    "city": "Sacramento",
    "store_id": "3081",
    "postal_code": "95829",
    "province_code": "CA"
  },
  "offer_id": "1411C88C3ED647149334D64A014ACA93",
  "price_map": {
    "price": 6.97,
    "currency": "USD",
    "unit_price": 0.498
  },
  "seller_id": "F55CDC31AB754BB68FE0B39041159D63",
  "categories": [
    {
      "url": "https://www.walmart.com/cp/food/976759",
      "name": "Food"
    },
    {
      "url": "https://www.walmart.com/cp/pantry/976794",
      "name": "Pantry"
    }
  ],
  "offer_type": "STORE_ONLY",
  "product_id": "62WJXF0JF5Z9",
  "us_item_id": "138762768",
  "ingredients": "chili peppers, sea salt, citric acid, contains 0.5% or less of dehydrated lime juice, silicon dioxide (to prevent caking)",
  "seller_name": "example",
  "manufacturer": "Tajín",
  "max_quantity": 12,
  "min_quantity": 1,
  "product_type": "Mixed Spices & Seasonings",
  "pickup_option": {
    "location": "Sacramento Supercenter",
    "available": true,
    "pickup_time": "2026-11-15T09:00:00.000-08:00"
  },
  "return_policy": {
    "text": "Free 90-day returns",
    "returnable": true,
    "window_days": 90,
    "free_returns": true
  },
  "delivery_option": {
    "location": "Sacramento, 95829",
    "available": true,
    "delivery_time": "2026-11-15T16:00:00.000Z"
  }
}

Response fields

Field Type Description
upc string
brand string
title string
images string[]
offers[] object[]
offers[].price number
offers[].seller_id string
offers[].catalog_seller_id integer
offers[].seller_display_name string
rating number
reviews integer
in_stock boolean
location object
location.city string
location.store_id string
location.postal_code string
location.province_code string
offer_id string
price_map object
price_map.price number
price_map.currency string
price_map.unit_price number
seller_id string
categories[] object[]
categories[].url string

Walmart Reviews API

Walmart reviews by item id or URL. Returns the star breakdown, highlighted reviews, mentions, and one page of customer reviews.

GET | POST https://api.piloterr.com/v2/walmart/reviews · 2 credits per request · Full reference

Request parameters

Parameter Type Required Description
query string ✅ Item id, product URL, or reviews URL.
page number — Page number, starting at 1.
sort string — Review sort.
return_page_source boolean — When true, return {"result": html} instead of the parsed reviews.

Python example

import json
import os
import requests

response = requests.get(
    "https://api.piloterr.com/v2/walmart/reviews",
    headers={"x-api-key": os.environ["PILOTERR_API_KEY"]},
    params={
        "query": "138762768",
    },
    timeout=120,
)
response.raise_for_status()
data = response.json()

print(json.dumps(data, indent=2, ensure_ascii=False)[:2000])

TypeScript example

type WalmartReviews = {
  product?: {
    url?: string;
    name?: string;
    categories?: {
      url?: string;
      name?: string;
    }[];
  };
  ratings?: {
    count?: number;
    stars?: number;
  }[];
  reviews?: {
    text?: string;
    rating?: number;
    position?: number;
    seller_name?: string;
    customer_type?: string[];
    user_nickname?: string;
    negative_feedback?: number;
    positive_feedback?: number;
    review_submission_time?: string;
  }[];
  pagination?: {
    next?: string;
    page?: number;
    per_page?: number;
    total_pages?: number;
    total_results?: number;
  };
  total_count?: number;
  top_mentions?: {
    name?: string;
    count?: number;
  }[];
  top_negative?: {
    text?: string;
    title?: string;
    rating?: number;
    seller_name?: string;
    customer_type?: string[];
    user_nickname?: string;
    negative_feedback?: number;
    positive_feedback?: number;
    review_submission_time?: string;
  };
  top_positive?: {
    text?: string;
    rating?: number;
    seller_name?: string;
    customer_type?: string[];
    user_nickname?: string;
    negative_feedback?: number;
    positive_feedback?: number;
    review_submission_time?: string;
  };
  overall_rating?: number;
  reviews_with_text?: number;
  recommended_percentage?: number;
};

const params = new URLSearchParams({
  "query": "138762768",
});

const response = await fetch(`https://api.piloterr.com/v2/walmart/reviews?${params}`, {
  headers: { "x-api-key": process.env.PILOTERR_API_KEY! },
});
if (!response.ok) throw new Error(`Piloterr error ${response.status}: ${await response.text()}`);

const data = (await response.json()) as WalmartReviews;

console.log(JSON.stringify(data, null, 2).slice(0, 2000));
POST variant
POST https://api.piloterr.com/v2/walmart/reviews
x-api-key: YOUR_API_KEY
Content-Type: application/json

{"query": "138762768"}

Output example

Example response from the API reference, abridged — real values depend on the page you scrape.

{
  "product": {
    "url": "https://www.walmart.com/ip/Tajin-Clasic-Seasoning-14oz/138762768",
    "name": "Tajin Clasico Seasoning, 14oz",
    "categories": [
      {
        "url": "https://www.walmart.com/cp/food/976759",
        "name": "Food"
      },
      {
        "url": "https://www.walmart.com/cp/pantry/976794",
        "name": "Pantry"
      }
    ]
  },
  "ratings": [
    {
      "count": 11,
      "stars": 1
    },
    {
      "count": 3,
      "stars": 2
    }
  ],
  "reviews": [
    {
      "text": "We ordered 5, but only delivered 4.",
      "rating": 5,
      "position": 1,
      "seller_name": "example",
      "customer_type": [
        "VerifiedPurchaser"
      ],
      "user_nickname": "Jia",
      "negative_feedback": 0,
      "positive_feedback": 0,
      "review_submission_time": "9/27/2025"
    },
    {
      "text": "delivery was accurate! and packaged nicely!",
      "title": "😷😷😷☺️☺️☺️😁😁😁...thank you!",
      "rating": 5,
      "position": 2,
      "seller_name": "example",
      "customer_type": [
        "VerifiedPurchaser"
      ],
      "user_nickname": "Oneitha",
      "negative_feedback": 0,
      "positive_feedback": 0,
      "review_submission_time": "12/13/2023"
    }
  ],
  "pagination": {
    "next": "https://www.walmart.com/reviews/product/138762768?sort=relevancy&page=2",
    "page": 1,
    "per_page": 10,
    "total_pages": 3,
    "total_results": 22
  },
  "total_count": 349,
  "top_mentions": [
    {
      "name": "For Fruit",
      "count": 3
    },
    {
      "name": "Flavor",
      "count": 1
    }
  ],
  "top_negative": {
    "text": "I did not receive this item.",
    "title": "Missing item.",
    "rating": 1,
    "seller_name": "example",
    "customer_type": [
      "VerifiedPurchaser"
    ],
    "user_nickname": "iris",
    "negative_feedback": 0,
    "positive_feedback": 0,
    "review_submission_time": "2/28/2026"
  },
  "top_positive": {
    "text": "We ordered 5, but only delivered 4.",
    "rating": 5,
    "seller_name": "example",
    "customer_type": [
      "VerifiedPurchaser"
    ],
    "user_nickname": "Jia",
    "negative_feedback": 0,
    "positive_feedback": 0,
    "review_submission_time": "9/27/2025"
  },
  "overall_rating": 4.8,
  "reviews_with_text": 22,
  "recommended_percentage": 75
}

Response fields

Field Type Description
product object
product.url string
product.name string
product.categories[] object[]
ratings[] object[]
ratings[].count integer
ratings[].stars integer
reviews[] object[]
reviews[].text string
reviews[].rating integer
reviews[].position integer
reviews[].seller_name string
reviews[].customer_type string[]
reviews[].user_nickname string
reviews[].negative_feedback integer
reviews[].positive_feedback integer
reviews[].review_submission_time string
pagination object
pagination.next string
pagination.page integer
pagination.per_page integer
pagination.total_pages integer
pagination.total_results integer
total_count integer
top_mentions[] object[]

Walmart Search API

Search Walmart by keyword or search URL. Returns product cards with offer price, unit price, rating, seller, shipping flags, and pagination.

GET | POST https://api.piloterr.com/v2/walmart/search · 1 credit per request · Full reference

Request parameters

Parameter Type Required Description
query string ✅ Keyword or a Walmart search URL.
page number — Page number, starting at 1.
return_page_source boolean — When true, return {"result": html} instead of the parsed cards.

Python example

import json
import os
import requests

response = requests.get(
    "https://api.piloterr.com/v2/walmart/search",
    headers={"x-api-key": os.environ["PILOTERR_API_KEY"]},
    params={
        "query": "bread",
    },
    timeout=120,
)
response.raise_for_status()
data = response.json()

print(json.dumps(data, indent=2, ensure_ascii=False)[:2000])

TypeScript example

type WalmartSearch = {
  query?: string;
  results?: {
    title?: string;
    rating?: number;
    reviews?: number;
    low_stock?: boolean;
    seller_id?: string;
    sponsored?: boolean;
    thumbnail?: string;
    product_id?: string;
    us_item_id?: string;
    description?: string;
    seller_name?: string;
    out_of_stock?: boolean;
    product_type?: string;
    free_shipping?: boolean;
    primary_offer?: {
      currency?: string;
      offer_id?: string;
      offer_price?: number;
    };
    snap_eligible?: boolean;
    price_per_unit?: {
      unit?: string;
      amount?: string;
    };
    product_page_url?: string;
    two_day_shipping?: boolean;
    additional_sellers?: number;
    availability_status?: string;
    multiple_options_available?: boolean;
    free_shipping_with_walmart_plus?: boolean;
  }[];
  location?: {
    city?: string;
    store_id?: string;
    postal_code?: string;
    province_code?: string;
  };
  pagination?: {
    next?: string;
    page?: number;
    per_page?: number;
    total_pages?: number;
    total_results?: number;
  };
};

const params = new URLSearchParams({
  "query": "bread",
});

const response = await fetch(`https://api.piloterr.com/v2/walmart/search?${params}`, {
  headers: { "x-api-key": process.env.PILOTERR_API_KEY! },
});
if (!response.ok) throw new Error(`Piloterr error ${response.status}: ${await response.text()}`);

const data = (await response.json()) as WalmartSearch;

console.log(JSON.stringify(data, null, 2).slice(0, 2000));
POST variant
POST https://api.piloterr.com/v2/walmart/search
x-api-key: YOUR_API_KEY
Content-Type: application/json

{"query": "bread"}

Output example

Example response from the API reference, abridged — real values depend on the page you scrape.

{
  "query": "bread",
  "results": [
    {
      "title": "Artesano Original Bread, 20 oz",
      "rating": 4.6,
      "reviews": 6794,
      "low_stock": false,
      "seller_id": "F55CDC31AB754BB68FE0B39041159D63",
      "sponsored": true,
      "thumbnail": "https://i5.walmartimages.com/seo/Artesano-Original-Bread-20-oz_01388876-640a-4344-8563-53546da54f9a.71b053a91e953e5c41060f674f8decc4.jpeg…",
      "product_id": "2QPNQB69IOK6",
      "us_item_id": "19883461746",
      "description": "",
      "seller_name": "example",
      "out_of_stock": false,
      "product_type": "Breads & Buns",
      "free_shipping": false,
      "primary_offer": {
        "currency": "USD",
        "offer_id": "5CF8B0E4C3F1392485141A67B961BA75",
        "offer_price": 3.86
      },
      "snap_eligible": true,
      "price_per_unit": {
        "unit": "each",
        "amount": "19.3 ¢/oz"
      },
      "product_page_url": "https://www.walmart.com/ip/Artesano-Original-Bread-20-oz/19883461746?classType=REGULAR&athbdg=L1600",
      "two_day_shipping": false,
      "additional_sellers": 1,
      "availability_status": "In stock",
      "multiple_options_available": false,
      "free_shipping_with_walmart_plus": false
    },
    {
      "title": "New York Bakery Real Garlic Texas Toast, 8 Count, Frozen Bread",
      "rating": 4.7,
      "reviews": 15158,
      "low_stock": false,
      "seller_id": "F55CDC31AB754BB68FE0B39041159D63",
      "sponsored": true,
      "thumbnail": "https://i5.walmartimages.com/seo/New-York-Bakery-Real-Garlic-Texas-Toast-11-25-oz-8-Count-Frozen_3ab0e4a0-6747-4e1e-83e8-0cc9fc5bd16b.26a…",
      "product_id": "1RDU7FV5UP2S",
      "us_item_id": "10805037",
      "description": "",
      "seller_name": "example",
      "out_of_stock": false,
      "product_type": "Breads & Buns",
      "free_shipping": false,
      "primary_offer": {
        "currency": "USD",
        "offer_id": "7DD61A7A27F244BC97B965C9AE6AB629",
        "offer_price": 3.12
      },
      "snap_eligible": true,
      "price_per_unit": {
        "unit": "each",
        "amount": "27.6 ¢/oz"
      },
      "product_page_url": "https://www.walmart.com/ip/New-York-Bakery-Real-Garlic-Texas-Toast-11-25-oz-8-Count-Frozen/10805037?classType=REGULAR&athbdg=L1600",
      "two_day_shipping": false,
      "availability_status": "In stock",
      "multiple_options_available": false,
      "free_shipping_with_walmart_plus": false
    }
  ],
  "location": {
    "city": "Sacramento",
    "store_id": "3081",
    "postal_code": "95829",
    "province_code": "CA"
  },
  "pagination": {
    "next": "https://www.walmart.com/search?q=bread&page=2",
    "page": 1,
    "per_page": 48,
    "total_pages": 12,
    "total_results": 2219
  }
}

Response fields

Field Type Description
query string
results[] object[]
results[].title string
results[].rating number
results[].reviews integer
results[].low_stock boolean
results[].seller_id string
results[].sponsored boolean
results[].thumbnail string
results[].product_id string
results[].us_item_id string
results[].description string
results[].seller_name string
results[].out_of_stock boolean
results[].product_type string
results[].free_shipping boolean
results[].primary_offer object
results[].snap_eligible boolean
results[].price_per_unit object
results[].product_page_url string
results[].two_day_shipping boolean
results[].additional_sellers integer
results[].availability_status string
results[].multiple_options_available boolean
results[].free_shipping_with_walmart_plus boolean

Walmart Seller API

Walmart seller by catalog id or URL. Returns the seller profile and one page of that seller's products.

GET | POST https://api.piloterr.com/v2/walmart/seller · 2 credits per request · Full reference

Request parameters

Parameter Type Required Description
query string ✅ Catalog seller id or seller URL.
page number — Page number, starting at 1.
sort string — Product sort.
facet string — Attribute filter. Separate pairs with ||.
return_page_source boolean — When true, return {"result": html} instead of the parsed seller.

Python example

import json
import os
import requests

response = requests.get(
    "https://api.piloterr.com/v2/walmart/seller",
    headers={"x-api-key": os.environ["PILOTERR_API_KEY"]},
    params={
        "query": "11271",
    },
    timeout=120,
)
response.raise_for_status()
data = response.json()

print(json.dumps(data, indent=2, ensure_ascii=False)[:2000])

TypeScript example

type WalmartSeller = {
  seller?: {
    link?: string;
    logo?: string;
    name?: string;
    email?: string;
    phone?: string;
    banner?: string;
    rating?: number;
    status?: string;
    address?: string;
    reviews?: number;
    seller_id?: string;
    pro_seller?: boolean;
    description?: string;
    seller_type?: string;
    catalog_seller_id?: number;
    reviews_with_text?: number;
  };
  results?: {
    title?: string;
    rating?: number;
    reviews?: number;
    low_stock?: boolean;
    seller_id?: string;
    sponsored?: boolean;
    thumbnail?: string;
    product_id?: string;
    us_item_id?: string;
    description?: string;
    seller_name?: string;
    out_of_stock?: boolean;
    product_type?: string;
    free_shipping?: boolean;
    primary_offer?: {
      offer_id?: string;
      min_price?: number;
      was_price?: number;
      offer_price?: number;
    };
    snap_eligible?: boolean;
    product_page_url?: string;
    two_day_shipping?: boolean;
    catalog_seller_id?: number;
    additional_sellers?: number;
    availability_status?: string;
    multiple_options_available?: boolean;
    free_shipping_with_walmart_plus?: boolean;
  }[];
  location?: {
    city?: string;
    store_id?: string;
    postal_code?: string;
    province_code?: string;
  };
  pagination?: {
    next?: string;
    page?: number;
    per_page?: number;
    total_pages?: number;
    total_results?: number;
  };
};

const params = new URLSearchParams({
  "query": "11271",
});

const response = await fetch(`https://api.piloterr.com/v2/walmart/seller?${params}`, {
  headers: { "x-api-key": process.env.PILOTERR_API_KEY! },
});
if (!response.ok) throw new Error(`Piloterr error ${response.status}: ${await response.text()}`);

const data = (await response.json()) as WalmartSeller;

console.log(JSON.stringify(data, null, 2).slice(0, 2000));
POST variant
POST https://api.piloterr.com/v2/walmart/seller
x-api-key: YOUR_API_KEY
Content-Type: application/json

{"query": "11271"}

Output example

Example response from the API reference, abridged — real values depend on the page you scrape.

{
  "seller": {
    "link": "example",
    "logo": "example",
    "name": "example",
    "email": "example",
    "phone": "example",
    "banner": "example",
    "rating": 0,
    "status": "example",
    "address": "example",
    "reviews": 0,
    "seller_id": "example",
    "pro_seller": false,
    "description": "example",
    "seller_type": "example",
    "catalog_seller_id": 0,
    "reviews_with_text": 0
  },
  "results": [
    {
      "title": "UGG GRADE SCHOOL Tasman II GS \"Chestnut\" 1019066K CHE 1019066K CHE from Stadium Goods",
      "rating": 4.4,
      "reviews": 5,
      "low_stock": false,
      "seller_id": "2FF206E13EDA4FC48EDDA0AA401D6857",
      "sponsored": false,
      "thumbnail": "https://i5.walmartimages.com/seo/UGG-GRADE-SCHOOL-Tasman-II-GS-Chestnut-1019066K-CHE-1019066K-CHE-from-Stadium-Goods_af3fc477-6ba0-4b8d-8…",
      "product_id": "518O2ZW1LH42",
      "us_item_id": "19702708682",
      "description": "K Tasman II \"Antilope\" 1019066 K ALP Manufacturer SKU: 1019066 K ALP Colorway: Antilope Every product we sell is verified by our expert t…",
      "seller_name": "example",
      "out_of_stock": false,
      "product_type": "Casual & Dress Shoes",
      "free_shipping": true,
      "primary_offer": {
        "offer_id": "C26EFB130D5536058670C71C6C373B91",
        "min_price": 73.96,
        "was_price": 85.91,
        "offer_price": 73.96
      },
      "snap_eligible": false,
      "product_page_url": "https://www.walmart.com/ip/UGG-GRADE-SCHOOL-Tasman-II-GS-Chestnut-1019066K-CHE-1019066K-CHE-from-Stadium-Goods/19702708682?classType=VARI…",
      "two_day_shipping": false,
      "catalog_seller_id": 11271,
      "additional_sellers": 35,
      "availability_status": "In stock",
      "multiple_options_available": true,
      "free_shipping_with_walmart_plus": false
    }
  ],
  "location": {
    "city": "Sacramento",
    "store_id": "3081",
    "postal_code": "95829",
    "province_code": "CA"
  },
  "pagination": {
    "next": "https://www.walmart.com/seller/11271/cp/shopall?sort=best_match&page=2",
    "page": 1,
    "per_page": 40,
    "total_pages": 25,
    "total_results": 31719
  }
}

Response fields

Field Type Description
seller object
seller.link string
seller.logo string
seller.name string
seller.email string
seller.phone string
seller.banner string
seller.rating number
seller.status string
seller.address string
seller.reviews integer
seller.seller_id string
seller.pro_seller boolean
seller.description string
seller.seller_type string
seller.catalog_seller_id integer
seller.reviews_with_text integer
results[] object[]
results[].title string
results[].rating number
results[].reviews integer
results[].low_stock boolean
results[].seller_id string
results[].sponsored boolean
results[].thumbnail string

Walmart Suggest API

Get Walmart.com search autocomplete suggestions for a keyword via browser rendering, with optional US ZIP code localization.

GET | POST https://api.piloterr.com/v2/walmart/suggest · 2 credits per request · Full reference

Request parameters

Parameter Type Required Description
query string ✅ Search keyword for Walmart autocomplete suggestions.
zipcode string — Optional US ZIP code to localize Walmart store and inventory context for suggestions.

Python example

import json
import os
import requests

response = requests.get(
    "https://api.piloterr.com/v2/walmart/suggest",
    headers={"x-api-key": os.environ["PILOTERR_API_KEY"]},
    params={
        "query": "apples",
    },
    timeout=120,
)
response.raise_for_status()
data = response.json()

print(json.dumps(data, indent=2, ensure_ascii=False)[:2000])

TypeScript example

type WalmartSuggest = {
  results?: {
    url?: string;
    type?: string;
    image_url?: string;
    analytics_fm?: number;
    display_name?: string;
  }[];
};

const params = new URLSearchParams({
  "query": "apples",
});

const response = await fetch(`https://api.piloterr.com/v2/walmart/suggest?${params}`, {
  headers: { "x-api-key": process.env.PILOTERR_API_KEY! },
});
if (!response.ok) throw new Error(`Piloterr error ${response.status}: ${await response.text()}`);

const data = (await response.json()) as WalmartSuggest;

console.log(JSON.stringify(data, null, 2).slice(0, 2000));
POST variant
POST https://api.piloterr.com/v2/walmart/suggest
x-api-key: YOUR_API_KEY
Content-Type: application/json

{"query": "apples"}

Output example

Example response from the API reference, abridged — real values depend on the page you scrape.

{
  "results": [
    {
      "url": "query=apples&typeahead=apples",
      "type": "QUERY",
      "image_url": "https://i5.walmartimages.com/asr/bcfd9451-a73b-411f-84e3-1d866f833ae8.3e996f05a24facfa2ac526d6c631401d.jpeg",
      "analytics_fm": 5,
      "display_name": "apples"
    },
    {
      "url": "query=applesauce&typeahead=apples",
      "type": "QUERY",
      "image_url": "https://i5.walmartimages.com/asr/d71c007b-3ae2-433f-9ca2-41906af71500.bff31e2bb8bdfddd3bd46ae00f50135d.jpeg",
      "analytics_fm": 5,
      "display_name": "applesauce"
    }
  ]
}

Response fields

Field Type Description
results[] object[]
results[].url string
results[].type string
results[].image_url string
results[].analytics_fm integer
results[].display_name string

Code examples in other languages

Ready-to-run examples live in the examples/ folder. Each one reads your key from the PILOTERR_API_KEY environment variable.

Language Product Reviews Search Seller Suggest
cURL (Bash) product reviews search seller suggest
PHP product reviews search seller suggest
C# product reviews search seller suggest
Go product reviews search seller suggest
Java product reviews search seller suggest
Ruby product reviews search seller suggest
Node.js product reviews search seller suggest

Practical use cases

  • Price monitoring — Track prices, promotions and availability over time to react to competitors.
  • Assortment & catalog tracking — Follow new products, delisted items and category changes.
  • Competitor analysis — Benchmark ranges, brands and positioning across retailers.
  • Product research — Spot best-sellers and trends from search results.
  • Catalog enrichment — Pull titles, images and attributes into your PIM or marketplace listings.

Why Piloterr?

  • No infrastructure — no proxies, headless browsers or CAPTCHA solving to run yourself.
  • Structured JSON — stable, documented fields instead of brittle HTML selectors.
  • Pay per request — transparent credit cost per endpoint, failed requests are retried for you.
  • One API key, hundreds of sources — Walmart plus many other e-commerce, search and company data endpoints in the Piloterr library.
  • Any language — plain HTTPS + JSON, with examples for Python, TypeScript, cURL, PHP, C#, Go, Java, Ruby and Node.js.

FAQ

Is it legal to scrape Walmart?

Collecting publicly available data is generally allowed in many jurisdictions, but rules depend on your country, the data you collect and how you use it. Avoid personal data unless you have a lawful basis, respect the website's terms where they apply, and get legal advice for your specific use case. This is not legal advice.

Do I need proxies or a headless browser?

No. Piloterr handles rendering, proxy rotation and retries on its side. You only send an HTTPS request with your x-api-key header and receive JSON.

How much does a request cost?

Credits per call: /v2/walmart/product 2, /v2/walmart/reviews 2, /v2/walmart/search 1, /v2/walmart/seller 2, /v2/walmart/suggest 2. See the Piloterr website for plans.

What data does the Walmart API return?

Each endpoint returns structured JSON: Walmart Product — upc, brand, title, images, offers[], offers[].price; Walmart Reviews — product, product.url, product.name, product.categories[], ratings[], ratings[].count; Walmart Search — query, results[], results[].title, results[].rating, results[].reviews, results[].low_stock; Walmart Seller — seller, seller.link, seller.logo, seller.name, seller.email, seller.phone.

How do I paginate Walmart results?

Use the page parameter and keep requesting while the response indicates more results.

Can I get the raw HTML instead of JSON?

Yes. Set return_page_source=true and the response becomes {"result": "..."} with the page source.

Which languages are supported?

Any language that can make an HTTP request. This README shows Python and TypeScript; the examples/ folder contains cURL, PHP, C#, Go, Java, Ruby and Node.js.

Official SDKs

Use Piloterr from your own language with a typed client:

SDK Package Install
Node.js @piloterr/sdk npm install @piloterr/sdk
Python piloterr pip install piloterr
Go piloterr-go go get github.com/piloterr/piloterr-go
.NET Piloterr dotnet add package Piloterr
Ruby piloterr gem install piloterr
PHP piloterr/sdk composer require piloterr/sdk
Java piloterr-java build from source, see its README
CLI @piloterr/cli npm install -g @piloterr/cli
MCP server @piloterr/mcp npx -y @piloterr/mcp

Related scrapers

Support


Piloterr
Built by Piloterr — web scraping APIs for e-commerce, search, real estate and more, one API key.

Walmart is a trademark of its respective owner. This repository is not affiliated with or endorsed by Walmart. Examples are released under the MIT license.

About

Walmart Scraper API by Piloterr: product, reviews, search, seller, suggest data from Walmart as structured JSON. Python, TypeScript, cURL, PHP, C#, Go, Java, Ruby examples.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors