Scrapingdog
HomePricingSupportLogin
  • Documentation
  • Web Scraping API
    • Request Customization
      • Javascript Rendering
        • Wait when rendering Javascript
      • Custom Headers
      • Premium Residential Proxies
      • Geotargeting
      • Sessions
  • POST Request
  • Google Search Scraper API
    • Google Country Parameter: Supported Google Countries
    • Supported Google Countries via cr parameter
    • Google Domains Page
    • Google Language Page
    • Google LR Language Page
  • Google Maps API
    • Google Maps Posts API
    • Google Maps Photos API
    • Google Maps Reviews API
    • Google Maps Places API
  • Google Trends API
    • Google Trends Autocomplete API
    • Google Trends Trending Now API
  • Google Images API
  • Google News API
    • Google News API 2.0
  • Google Shopping API
  • Google Product API
  • Google Videos API
  • Google Shorts API
  • Google Autocomplete API
  • Google Scholar API
    • Google Scholar Profiles API
    • Google Scholar Author API
      • Google Scholar Author Citation API
    • Google Scholar Cite API
  • Google Finance API
  • Google Lens API
  • Google Jobs API
  • Google Local API
  • Google Patents API
    • Google Patent Details API
  • Bing Search Scraper API
  • Amazon Scraper API
    • Amazon Product Scraper
    • Amazon Search Scraper
    • Amazon Reviews API
    • Amazon Autocomplete Scraper
  • Instagram Scraper API
  • Linkedin Scraper API
    • Person Profile Scraper
    • Company Profile Scraper
  • Linkedin Jobs Scraper
    • Scrape Linkedin Jobs
    • Scrape LinkedIn Job Overview
  • Yelp Scraper API
  • Twitter Scraping API
    • X Scraping API 2.0
  • Indeed Scraper API
  • Zillow Scraper API
  • Youtube Scraper API
    • Youtube Search API
    • YouTube Transcripts API
  • Walmart Scraper API
    • Walmart Product Scraper
    • Walmart Search Scraper
    • Walmart Reviews Scraper
  • Screenshot API
  • Webhook Integration
  • Datacenter Proxies
  • Account API
Powered by GitBook
On this page
  • Parameters
  • API Example
  • Response
  1. Walmart Scraper API

Walmart Reviews Scraper

This API can be used for scraping any reviews page from Walmart. All you need is the URL of that reviews page.

You have to send a GET request to https://api.scrapingdog.com/walmart/reviews with the below given parameters.

Parameters

Parameter
Description

api_key

required

Your personal API key. Available on your dashboard. Type: String

url

required

The Walmart Reviews URL. Type: String

API Example

curl "https://api.scrapingdog.com/walmart/reviews?api_key=5eaa61a6e562fc52fe763tr516e4653&url=https://www.walmart.com/reviews/product/317408869"
import requests

url = "https://api.scrapingdog.com/walmart/reviews"
params = {
    "api_key": "5eaa61a6e562fc52fe763tr516e4653",
    "url": "https://www.walmart.com/reviews/product/317408869"
}

response = requests.get(url, params=params)

if response.status_code == 200:
    data = response.json()
    print(data)
else:
    print(f"Request failed with status code {response.status_code}")
const axios = require('axios');

const url = 'https://api.scrapingdog.com/walmart/reviews';
const params = {
  api_key: '5eaa61a6e562fc52fe763tr516e4653',
  url: 'https://www.walmart.com/reviews/product/317408869'
};

axios
  .get(url, { params })
  .then((response) => {
    if (response.status === 200) {
      const data = response.data;
      console.log(data);
    } else {
      console.log(`Request failed with status code ${response.status}`);
    }
  })
  .catch((error) => {
    console.error('Request failed with an error:', error);
  });
<?php

$apiUrl = 'https://api.scrapingdog.com/walmart/reviews';
$apiKey = '5eaa61a6e562fc52fe763tr516e4653';
$url= 'https://www.walmart.com/reviews/product/317408869';

$queryString = http_build_query([
    'api_key' => $apiKey,
    'url' => $url
]);

$fullUrl = $apiUrl . '?' . $queryString;

$ch = curl_init($fullUrl);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

$response = curl_exec($ch);
$httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE);

if ($httpCode == 200) {
    $data = json_decode($response, true);
    print_r($data);
} else {
    echo "Request failed with status code $httpCode\n";
}

curl_close($ch);
?>
require 'net/http'
require 'json'

api_url = 'https://api.scrapingdog.com/walmart/reviews'
api_key = '5eaa61a6e562fc52fe763tr516e4653'
url = 'https://www.walmart.com/reviews/product/317408869'

params = {
  'api_key' => api_key,
  'url' => url
}

uri = URI(api_url)
uri.query = URI.encode_www_form(params)

response = Net::HTTP.get_response(uri)

if response.is_a?(Net::HTTPSuccess)
  data = JSON.parse(response.body)
  puts data
else
  puts "Request failed with status code #{response.code}"
end
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;

public class Main {
    public static void main(String[] args) {
        String apiURL = "https://api.scrapingdog.com/walmart/reviews";
        String apiKey = "5eaa61a6e562fc52fe763tr516e4653";
        String url = "https://www.walmart.com/reviews/product/317408869";

        try {
            // Create the URL with query parameters
            URL url = new URL(apiURL + "?api_key=" + apiKey + "&url=" + url);
            HttpURLConnection connection = (HttpURLConnection) url.openConnection();

            // Set the request method to GET
            connection.setRequestMethod("GET");

            // Get the response code
            int responseCode = connection.getResponseCode();

            if (responseCode == 200) {
                // Read the response data
                BufferedReader reader = new BufferedReader(new InputStreamReader(connection.getInputStream()));
                String line;
                StringBuilder response = new StringBuilder();

                while ((line = reader.readLine()) != null) {
                    response.append(line);
                }
                reader.close();

                // Print the response data
                System.out.println(response.toString());
            } else {
                System.out.println("Request failed with response code: " + responseCode);
            }
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}

Response

{
    "product": {
        "name": "ESPN MB2 Junior Size Football Pack: Includes Kicking Tee and Pump",
        "url": "https://www.walmart.com/ip/ESPN-MB2-Junior-Size-Football-Pack-Includes-Kicking-Tee-and-Pump/317408869",
        "category": {
            "path": [
                {
                    "name": "Sports & Outdoors",
                    "url": "/cp/sports-outdoors/4125"
                },
                {
                    "name": "Sports",
                    "url": "/cp/sports/4161"
                },
                {
                    "name": "Football Gear & Equipment",
                    "url": "/cp/football-gear-equipment/434036"
                },
                {
                    "name": "Footballs",
                    "url": "/cp/footballs/1075724"
                },
                {
                    "name": "Junior Footballs",
                    "url": "/cp/junior-footballs/2930223"
                }
            ]
        },
        "overall_rating": 4.5,
        "total_count": 187,
        "ratings": [
            {
                "stars": 1,
                "count": 12
            },
            {
                "stars": 2,
                "count": 7
            },
            {
                "stars": 3,
                "count": 7
            },
            {
                "stars": 4,
                "count": 19
            },
            {
                "stars": 5,
                "count": 142
            }
        ],
        "top_positive": {
            "title": "Great football for young children",
            "text": "Football is great for young children. My son is 6 and he is able to grip and throw the ball. The material is great to use outside as it will be durable for wear and tear weather in the street or on grass. I received this product at a discount in exchange for my honest opinion.",
            "rating": 4,
            "positive_feedback": 0,
            "negative_feedback": 0,
            "review_submission_time": "11/21/2024",
            "user_nickname": "Joseph",
            "customer_type": [
                "VerifiedPurchaser"
            ]
        },
        "top_negative": {
            "title": "😡😡😡😡",
            "text": "The item itself was a good choice however my package was thrown into the yard during a rain storm instead of leaving it by the door like my instructions say to . The packaging got wet and ruined. This is the 2nd bad experience I have had this holiday season ordering from here.",
            "rating": 1,
            "positive_feedback": 0,
            "negative_feedback": 0,
            "review_submission_time": "12/17/2023",
            "user_nickname": "jennifer",
            "customer_type": [
                "VerifiedPurchaser"
            ]
        },
        "reviews": [
            {
                "position": 1,
                "title": "ESPN football",
                "text": "I also bought this from my grandson he was probably 14 15 months old back then during football season and he loves the football too he'll bring it outside and try to throw it to me he's got a pretty darn good arm for a little guy!",
                "rating": 5,
                "positive_feedback": 0,
                "negative_feedback": 0,
                "review_submission_time": "7/29/2024",
                "user_nickname": "Geraldine",
                "customer_type": [
                    "VerifiedPurchaser"
                ]
            },
            {
                "position": 2,
                "title": "Child's Christmas gift",
                "text": "I bought this football for my oldest Great Grandson who's 7 years old. He absolutely loved his gift and he had everyone throwing the football with him. This was a winner of a gift for him. I'm very satisfied with my purchase of this item. Thank You.",
                "rating": 5,
                "positive_feedback": 0,
                "negative_feedback": 0,
                "review_submission_time": "12/14/2024",
                "user_nickname": "GalDibo",
                "customer_type": [
                    "VerifiedPurchaser"
                ]
            },
            {
                "position": 3,
                "title": "The Best Junior Football",
                "text": "This is a really nice football. I love the red and black accents. It comes with a tee and pump for a complete set. It's a good size for my 6 year old.",
                "rating": 5,
                "positive_feedback": 0,
                "negative_feedback": 0,
                "review_submission_time": "12/6/2023",
                "user_nickname": null,
                "customer_type": [
                    "VerifiedPurchaser"
                ]
            },
            {
                "position": 4,
                "title": "Great football for young children",
                "text": "Football is great for young children. My son is 6 and he is able to grip and throw the ball. The material is great to use outside as it will be durable for wear and tear weather in the street or on grass. I received this product at a discount in exchange for my honest opinion.",
                "rating": 4,
                "positive_feedback": 0,
                "negative_feedback": 0,
                "review_submission_time": "11/21/2024",
                "user_nickname": "Joseph",
                "customer_type": [
                    "VerifiedPurchaser"
                ]
            },
            {
                "position": 5,
                "title": "great buy",
                "text": "the ball and stand work well. the pump is nice to have . the pin to pump it up stores nicely in the bandle until my kids tried to do it and bent the pin. would suggest and buy again!",
                "rating": 4,
                "positive_feedback": 0,
                "negative_feedback": 0,
                "review_submission_time": "9/4/2024",
                "user_nickname": "Jake",
                "customer_type": [
                    "VerifiedPurchaser"
                ]
            },
            {
                "position": 6,
                "title": null,
                "text": "box was beat up item was almost falling out. I would have really appreciated it being in a bag, it was a birthday gift for my son. instead of it being a surprise for him, he was handed directly to him without a bag! 😔",
                "rating": 4,
                "positive_feedback": 0,
                "negative_feedback": 0,
                "review_submission_time": "3/14/2024",
                "user_nickname": "mary",
                "customer_type": [
                    "VerifiedPurchaser"
                ]
            },
            {
                "position": 7,
                "title": null,
                "text": "The ball is great, and the children loved it. The box comes with a pump and kick stand, but the tip for the pump was missing. So, there is no way to pump air in the ball. I don't know if this was an open box. it's unfortunate because it's a great product.",
                "rating": 3,
                "positive_feedback": 0,
                "negative_feedback": 0,
                "review_submission_time": "12/31/2024",
                "user_nickname": "Ab1knobi",
                "customer_type": [
                    "VerifiedPurchaser"
                ]
            },
            {
                "position": 8,
                "title": null,
                "text": "Cover wore off the ball far to quick.",
                "rating": 3,
                "positive_feedback": 0,
                "negative_feedback": 0,
                "review_submission_time": "10/18/2024",
                "user_nickname": "Sandra",
                "customer_type": [
                    "VerifiedPurchaser"
                ]
            },
            {
                "position": 9,
                "title": "😡😡😡😡",
                "text": "The item itself was a good choice however my package was thrown into the yard during a rain storm instead of leaving it by the door like my instructions say to . The packaging got wet and ruined. This is the 2nd bad experience I have had this holiday season ordering from here.",
                "rating": 1,
                "positive_feedback": 0,
                "negative_feedback": 0,
                "review_submission_time": "12/17/2023",
                "user_nickname": "jennifer",
                "customer_type": [
                    "VerifiedPurchaser"
                ]
            },
            {
                "position": 10,
                "title": "Football set is not worth the price.",
                "text": "Cheaper ball pump that snapped off the first time we used it and the football tee is completely useless. The football itself is good but accessories do not add to the purchase. Would not purchase again. Not worth it!",
                "rating": 1,
                "positive_feedback": 0,
                "negative_feedback": 0,
                "review_submission_time": "1/13/2024",
                "user_nickname": null,
                "customer_type": [
                    "VerifiedPurchaser"
                ]
            }
        ]
    }
}

PreviousWalmart Search ScraperNextScreenshot API

Last updated 2 months ago