The Walmart Search Scraper allows you to retrieve structured data from Walmart based on specific search queries. With this endpoint, you can access product details such as:

  • Product Name, Price, and Discounts
  • Ratings, Reviews, and Popularity Metrics
  • Product Links and Images
  • Related Searches and Sponsored Products
  • This API is useful for a variety of applications, including market analysis, competitive research, and monitoring sponsored products’ visibility.

Example Use Cases:

  • Market Analysis: Identify popular products and analyze trends in specific categories.
  • Ad Performance: Monitor and evaluate sponsored product visibility for your campaigns or competitors.

Supported Query Parameters

PARAMETERTYPEDEFAULTDESCRIPTION
query requiredstringThe search term you want to query on Walmart. Must be URL-encoded. Example: Wireless+Headphones.
urlstring <uri>The URL of the search results page to retrieve. Example: https://www.walmart.com/search?q=Wireless+Headphones.
tldstring.comThe top-level domain of the Walmart website. Supported examples: .com, .ca
outputstringjsonThe format of the response. Supported values: json, csv.

How to Setup

Request the search endpoint with your desired query:

https://ecommerce.api.zenrows.com/v1/targets/walmart/search/{query}?apikey=YOUR_ZENROWS_API_KEY

Code Examples

Note: should be URL-encoded.

Response Example

{
    "pagination": {
        "current_page": 2,
        "next_page": "https:\/\/www.walmart.com\/search?q=iphone+15&page=2",
        "previous_page": "https:\/\/www.walmart.com\/search?q=iphone+15&page=1"
    },
    "products_list": [
        {
            "discount": true,
            "is_sponsored": true,
            "price": 999.99,
            "price_before_discount": 1899.99,
            "price_currency_code": "USD",
            "price_currency_symbol": "$",
            "product_image": "https:\/\/i5.walmartimages.com\/asr\/12345678-90ab-cdef-1234-567890abcdef.9d9d9d9d9d9d.jpg",
            "product_name": "iPhone 15",
            "product_url": "https:\/\/www.walmart.com\/ip\/101010101",
            "rating_score": 4.5,
            "review_count": 5000
        }
    ],
    "query": "iphone 15",
    "related_searches": [
        {
            "query": "iphone 15 pro"
        }
    ]
}

Troubleshooting and FAQs