{"id":9476,"date":"2024-11-14T11:55:12","date_gmt":"2024-11-14T11:55:12","guid":{"rendered":"https:\/\/scrapingdog.com\/?p=9476"},"modified":"2025-11-24T12:42:11","modified_gmt":"2025-11-24T12:42:11","slug":"scrape-amazon-reviews","status":"publish","type":"post","link":"https:\/\/www.scrapingdog.com\/blog\/scrape-amazon-reviews\/","title":{"rendered":"Web Scraping Amazon Reviews using Python"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"9476\" class=\"elementor elementor-9476\" data-elementor-post-type=\"post\">\n\t\t\t\t<div class=\"elementor-element elementor-element-2633f62 e-flex e-con-boxed e-con e-parent\" data-id=\"2633f62\" data-element_type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-5e27dc8 elementor-widget elementor-widget-html\" data-id=\"5e27dc8\" data-element_type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<!-- Gutenberg \u201cCustom HTML\u201d block -->\r\n<div style=\"\r\n  background:#d9f4e5;\r\n  border-left:4px solid #1d9b6c;\r\n  padding:18px 24px;\r\n  margin:24px 0;\r\n  border-radius:6px;\r\n  font-family:'Montserrat',sans-serif;\r\n  font-size:18px;\r\n  line-height:1.65;\r\n  color:#1a1a1a;\">\r\n  <p style=\"margin:0 0 8px 0;font-weight:600;\">TL;DR<\/p>\r\n\r\n  <ul style=\"margin:0; padding-left:20px;\">\r\n    <li>Amazon now gates reviews behind login; this guide uses <strong>Scrapingdog\u2019s Amazon Reviews API<\/strong> to scrape at scale.<\/li>\r\n    <li>Python (<code>requests<\/code>) returns JSON (<code>user<\/code>, <code>title<\/code>, <code>rating<\/code>, <code>review<\/code>) and loops pages to collect more.<\/li>\r\n    <li>Save results to <code>reviews.csv<\/code> with <code>pandas<\/code>; full code shown.<\/li>\r\n    <li>Trial includes 1,000 free credits to test.<\/li>\r\n  <\/ul>\r\n<\/div>\r\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-97e4394 font-color-green elementor-widget elementor-widget-text-editor\" data-id=\"97e4394\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Understanding <a href=\"https:\/\/www.lupagedigital.com\/blog\/sentiment-analysis-python\/\" target=\"_blank\" rel=\"noopener\">customer sentiment<\/a> through product reviews has become a critical factor for success. Among various platforms, Amazon stands out with its extensive range of products and hence reviews accompanying each listing.<\/p><p>Web scraping Amazon reviews can give valuable feedback, enabling detailed sentiment analysis of products within the same category. By extracting and analyzing these insights, businesses, and developers can mold their offerings to better meet consumer needs and preferences.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-8528246 e-flex e-con-boxed e-con e-parent\" data-id=\"8528246\" data-element_type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-5e3edad font-color-green elementor-widget elementor-widget-text-editor\" data-id=\"5e3edad\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>In this blog, we will scrape reviews from one of the products.\u00a0We will collect details like reviews posted by the user, his rating, his user name, etc.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-f54c6df e-flex e-con-boxed e-con e-parent\" data-id=\"f54c6df\" data-element_type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-594568a elementor-widget elementor-widget-heading\" data-id=\"594568a\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Limitations of scraping Amazon reviews simply with Python<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-984b628 font-color-green elementor-widget elementor-widget-text-editor\" data-id=\"984b628\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Scraping Amazon reviews simply with Python will lead you to the login screen.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-2dd6b14 elementor-widget elementor-widget-image\" data-id=\"2dd6b14\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img fetchpriority=\"high\" decoding=\"async\" width=\"605\" height=\"726\" src=\"https:\/\/www.scrapingdog.com\/wp-content\/uploads\/2024\/08\/amazon-login-screen.webp\" class=\"attachment-large size-large wp-image-19551\" alt=\"amazon login screen\" srcset=\"https:\/\/www.scrapingdog.com\/wp-content\/uploads\/2024\/08\/amazon-login-screen.webp 605w, https:\/\/www.scrapingdog.com\/wp-content\/uploads\/2024\/08\/amazon-login-screen-250x300.webp 250w\" sizes=\"(max-width: 605px) 100vw, 605px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-a18de34 font-color-green elementor-widget elementor-widget-text-editor\" data-id=\"a18de34\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p id=\"d266\" class=\"pw-post-body-paragraph lh li fq lj b lk ll lm ln lo lp lq lr ls lt lu lv lw lx ly lz ma mb mc md me fj bk\" data-selectable-paragraph=\"\">To overcome this we have to use an\u00a0<a class=\"af mt\" href=\"https:\/\/www.scrapingdog.com\/amazon-reviews-api\/\" target=\"_blank\" rel=\"noopener ugc nofollow\">Amazon reviews scraping API<\/a>.\u00a0Scrapingdog\u00a0can help you scrape millions of such pages without getting blocked. It will handle IP rotations and retries for you so that you can focus on data collection.<\/p><p id=\"76ac\" class=\"pw-post-body-paragraph lh li fq lj b lk ll lm ln lo lp lq lr ls lt lu lv lw lx ly lz ma mb mc md me fj bk\" data-selectable-paragraph=\"\">Let\u2019s see how you can scrape reviews from Amazon using Scrapingdog with ease.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-ab1432b font-color-green elementor-widget elementor-widget-text-editor\" data-id=\"ab1432b\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<h3 id=\"b3e9\" class=\"mu mv fq bf mw mx my mz na nb nc nd ne nf ng nh ni nj nk nl nm nn no np nq nr bk\">Requirements<\/h3><p id=\"7f23\" class=\"pw-post-body-paragraph lh li fq lj b lk ns lm ln lo nt lq lr ls nu lu lv lw nv ly lz ma nw mc md me fj bk\" data-selectable-paragraph=\"\">Recently Amazon changed something at their end and due to that you can no longer scrape Amazon product reviews until you are logged in. To bypass that login wall we are going to use\u00a0<a class=\"af mt\" href=\"https:\/\/www.scrapingdog.com\/amazon-reviews-api\/\" target=\"_blank\" rel=\"nofollow noopener\">Amazon Review Scraper API<\/a>\u00a0offered by Scrapingdog to scrape reviews of any product at scale. You can sign up for the\u00a0<a class=\"af mt\" href=\"https:\/\/api.scrapingdog.com\/register\" target=\"_blank\" rel=\"noopener ugc nofollow\">trial<\/a>. The trial will provide you with 1000 free credits which are enough for testing the service.<\/p><p id=\"330d\" class=\"pw-post-body-paragraph lh li fq lj b lk ll lm ln lo lp lq lr ls lt lu lv lw lx ly lz ma mb mc md me fj bk\" data-selectable-paragraph=\"\">Other than that you need Python\u00a0<code class=\"cx ny nz oa ob b\">3.x<\/code>. If it is not installed already on your computer then you can do that from\u00a0<a class=\"af mt\" href=\"https:\/\/www.python.org\/downloads\/\" target=\"_blank\" rel=\"noopener ugc nofollow\">here<\/a>.<\/p><p id=\"2e3e\" class=\"pw-post-body-paragraph lh li fq lj b lk ll lm ln lo lp lq lr ls lt lu lv lw lx ly lz ma mb mc md me fj bk\" data-selectable-paragraph=\"\">Now, create a folder by any name you like, and then install the\u00a0<code class=\"cx ny nz oa ob b\">requests<\/code>\u00a0library using\u00a0<code class=\"cx ny nz oa ob b\">pip<\/code>.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-dba4d88 elementor-widget elementor-widget-code-highlight\" data-id=\"dba4d88\" data-element_type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"prismjs-default copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-python line-numbers\">\n\t\t\t\t<code readonly=\"true\" class=\"language-python\">\n\t\t\t\t\t<xmp>mkdir amazon-reviews\r\npip install requests<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-97b12e6 font-color-green elementor-widget elementor-widget-text-editor\" data-id=\"97b12e6\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Create a Python file by any name. I am naming the file as\u00a0<code class=\"cx ny nz oa ob b\">reviews.py<\/code>. We will write our script in this file.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-5b6b677 elementor-widget elementor-widget-heading\" data-id=\"5b6b677\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Scraping Amazon Reviews<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-c291e9f font-color-green elementor-widget elementor-widget-text-editor\" data-id=\"c291e9f\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p id=\"9a01\" class=\"pw-post-body-paragraph lh li fq lj b lk ns lm ln lo nt lq lr ls nu lu lv lw nv ly lz ma nw mc md me fj bk\" data-selectable-paragraph=\"\">For this tutorial, we are going to scrape reviews of\u00a0<a class=\"af mt\" href=\"https:\/\/www.amazon.com\/dp\/B0CTKXMQXK?th=1\" target=\"_blank\" rel=\"nofollow noopener\">this<\/a>\u00a0product. You can find all the reviews of this product\u00a0<a class=\"af mt\" href=\"https:\/\/www.amazon.com\/Echo-Charlie-Slim-Minimalist-Wallet\/product-reviews\/B0CTKXMQXK\/ref=cm_cr_dp_d_show_all_btm?ie=UTF8&amp;reviewerType=all_reviews\" target=\"_blank\" rel=\"nofollow noopener\">here<\/a>. If you read the\u00a0<a class=\"af mt\" href=\"https:\/\/docs.scrapingdog.com\/amazon-scraper-api\/amazon-reviews-api\" target=\"_blank\" rel=\"nofollow noopener\">documentation<\/a>\u00a0of Amazon review scraper API you will find that you can either pass\u00a0<a class=\"af mt\" href=\"https:\/\/www.amazon.com\/Echo-Charlie-Slim-Minimalist-Wallet\/product-reviews\/B0CTKXMQXK\/ref=cm_cr_dp_d_show_all_btm?ie=UTF8&amp;reviewerType=all_reviews\" target=\"_blank\" rel=\"noopener ugc nofollow\">this<\/a>\u00a0complete URL to the API or you can pass the asin code of the product along with the Amazon domain.<\/p><p data-selectable-paragraph=\"\">By retrieving all reviews with the API, sellers can also identify those that breach Amazon\u2019s rules, allowing them to take steps to <a href=\"https:\/\/tracefuse.ai\/blog\/how-to-remove-a-negative-review-on-amazon\/\" target=\"_blank\" rel=\"noopener\">delete bad Amazon reviews<\/a> efficiently. Let\u2019s first take a look at the dashboard.<\/p><p id=\"f309\" class=\"pw-post-body-paragraph lh li fq lj b lk ll lm ln lo lp lq lr ls lt lu lv lw lx ly lz ma mb mc md me fj bk\" data-selectable-paragraph=\"\">Let\u2019s first take a look at the dashboard.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-056da0c elementor-widget elementor-widget-image\" data-id=\"056da0c\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" width=\"800\" height=\"261\" src=\"https:\/\/www.scrapingdog.com\/wp-content\/uploads\/2024\/08\/amaozn-dashboard-1024x334.webp\" class=\"attachment-large size-large wp-image-19553\" alt=\"amazon dashboard\" srcset=\"https:\/\/www.scrapingdog.com\/wp-content\/uploads\/2024\/08\/amaozn-dashboard-1024x334.webp 1024w, https:\/\/www.scrapingdog.com\/wp-content\/uploads\/2024\/08\/amaozn-dashboard-300x98.webp 300w, https:\/\/www.scrapingdog.com\/wp-content\/uploads\/2024\/08\/amaozn-dashboard-768x251.webp 768w, https:\/\/www.scrapingdog.com\/wp-content\/uploads\/2024\/08\/amaozn-dashboard.webp 1400w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-627d326 font-color-green elementor-widget elementor-widget-text-editor\" data-id=\"627d326\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>If you put the asin code of the product\u00a0<em class=\"ol\">B0CTKXMQXK<\/em>\u00a0and\u00a0<em class=\"ol\">.com<\/em>\u00a0as domain in the form then you will get this data.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-a79f121 elementor-widget elementor-widget-image\" data-id=\"a79f121\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" width=\"800\" height=\"349\" src=\"https:\/\/www.scrapingdog.com\/wp-content\/uploads\/2024\/08\/1_RwrOEOjDflVSGXM9ITKVPQ-1024x447.webp\" class=\"attachment-large size-large wp-image-19554\" alt=\"\" srcset=\"https:\/\/www.scrapingdog.com\/wp-content\/uploads\/2024\/08\/1_RwrOEOjDflVSGXM9ITKVPQ-1024x447.webp 1024w, https:\/\/www.scrapingdog.com\/wp-content\/uploads\/2024\/08\/1_RwrOEOjDflVSGXM9ITKVPQ-300x131.webp 300w, https:\/\/www.scrapingdog.com\/wp-content\/uploads\/2024\/08\/1_RwrOEOjDflVSGXM9ITKVPQ-768x335.webp 768w, https:\/\/www.scrapingdog.com\/wp-content\/uploads\/2024\/08\/1_RwrOEOjDflVSGXM9ITKVPQ.webp 1400w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-0d722c0 font-color-green elementor-widget elementor-widget-text-editor\" data-id=\"0d722c0\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p id=\"6e17\" class=\"pw-post-body-paragraph lh li fq lj b lk ll lm ln lo lp lq lr ls lt lu lv lw lx ly lz ma mb mc md me fj bk\" data-selectable-paragraph=\"\">You got a beautiful JSON response with details like title, user name, rating, etc. Now, let&#8217;s implement the same thing in the Python code with the\u00a0<a class=\"af mt\" href=\"https:\/\/www.amazon.com\/Echo-Charlie-Slim-Minimalist-Wallet\/product-reviews\/B0CTKXMQXK\/ref=cm_cr_dp_d_show_all_btm?ie=UTF8&amp;reviewerType=all_reviews\" target=\"_blank\" rel=\"noopener ugc nofollow\">review URL<\/a>.<\/p><p id=\"191f\" class=\"pw-post-body-paragraph lh li fq lj b lk ll lm ln lo lp lq lr ls lt lu lv lw lx ly lz ma mb mc md me fj bk\" data-selectable-paragraph=\"\">You can copy the Python code directly from the dashboard itself.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-20df113 elementor-widget elementor-widget-code-highlight\" data-id=\"20df113\" data-element_type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"prismjs-default copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-python line-numbers\">\n\t\t\t\t<code readonly=\"true\" class=\"language-python\">\n\t\t\t\t\t<xmp>  import requests\r\n  \r\n  api_key = \"Your-api-key\"\r\n  url = \"https:\/\/api.scrapingdog.com\/amazon\/reviews\"\r\n  \r\n  params = {\r\n      \"api_key\": api_key,\r\n      \"url\": \"https:\/\/www.amazon.com\/Echo-Charlie-Slim-Minimalist-Wallet\/product-reviews\/B0CTKXMQXK\/ref=cm_cr_dp_d_show_all_btm?ie=UTF8&reviewerType=all_reviews\"      \r\n  }\r\n  \r\n  response = requests.get(url, params=params)\r\n  \r\n  if response.status_code == 200:\r\n      data = response.json()\r\n      print(data)\r\n  else:\r\n      print(f\"Request failed with status code: {response.status_code}\")<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-ed79c94 font-color-green elementor-widget elementor-widget-text-editor\" data-id=\"ed79c94\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p id=\"ae6b\" class=\"pw-post-body-paragraph lh li fq lj b lk ll lm ln lo lp lq lr ls lt lu lv lw lx ly lz ma mb mc md me fj bk\" data-selectable-paragraph=\"\">Do not forget to add your own API key in the above code. This code makes a GET request to the\u00a0<code class=\"cx ny nz oa ob b\">\/reviews<\/code>\u00a0endpoint of Scrapingdog and extracts JSON data from it. If the status code of the response is\u00a0<code class=\"cx ny nz oa ob b\">200<\/code> then it prints the reviews and if it is not then it prints a custom error message. Let\u2019s run the code.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-90b8319 elementor-widget elementor-widget-image\" data-id=\"90b8319\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"430\" src=\"https:\/\/www.scrapingdog.com\/wp-content\/uploads\/2024\/08\/1_QN1998M0tT4Hj9ST7mO8zg.webp\" class=\"attachment-large size-large wp-image-19555\" alt=\"\" srcset=\"https:\/\/www.scrapingdog.com\/wp-content\/uploads\/2024\/08\/1_QN1998M0tT4Hj9ST7mO8zg.webp 916w, https:\/\/www.scrapingdog.com\/wp-content\/uploads\/2024\/08\/1_QN1998M0tT4Hj9ST7mO8zg-300x161.webp 300w, https:\/\/www.scrapingdog.com\/wp-content\/uploads\/2024\/08\/1_QN1998M0tT4Hj9ST7mO8zg-768x413.webp 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-bb11db8 font-color-green elementor-widget elementor-widget-text-editor\" data-id=\"bb11db8\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>I got the JSON response with the reviews on the first page. You can run a\u00a0<code class=\"cx ny nz oa ob b\">for<\/code>\u00a0loop in the above code to change the page numbers in the URL to extract all the reviews of any product with the help of API.<\/p><p>Here&#8217;s a video tutorial on how you can use <a href=\"https:\/\/www.scrapingdog.com\/amazon-reviews-api\/\" target=\"_blank\" rel=\"noopener\">Amazon Review API<\/a> from Scrapingdog.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-8016259 elementor-widget elementor-widget-video\" data-id=\"8016259\" data-element_type=\"widget\" data-settings=\"{&quot;youtube_url&quot;:&quot;https:\\\/\\\/youtu.be\\\/FIGo3pvx7oc&quot;,&quot;video_type&quot;:&quot;youtube&quot;,&quot;controls&quot;:&quot;yes&quot;}\" data-widget_type=\"video.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-wrapper elementor-open-inline\">\n\t\t\t<div class=\"elementor-video\"><\/div>\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-f247b61 font-color-green elementor-widget elementor-widget-text-editor\" data-id=\"f247b61\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<h3 id=\"44f2\" class=\"mu mv fq bf mw mx my mz na nb nc nd ne nf ng nh ni nj nk nl nm nn no np nq nr bk\">Storing data to CSV<\/h3>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-724886a elementor-widget elementor-widget-image\" data-id=\"724886a\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"702\" height=\"201\" src=\"https:\/\/www.scrapingdog.com\/wp-content\/uploads\/2024\/08\/1_IUcu1bsgSI_sQj7sdF-BfA.webp\" class=\"attachment-large size-large wp-image-19556\" alt=\"\" srcset=\"https:\/\/www.scrapingdog.com\/wp-content\/uploads\/2024\/08\/1_IUcu1bsgSI_sQj7sdF-BfA.webp 702w, https:\/\/www.scrapingdog.com\/wp-content\/uploads\/2024\/08\/1_IUcu1bsgSI_sQj7sdF-BfA-300x86.webp 300w\" sizes=\"(max-width: 702px) 100vw, 702px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-9fb900b e-flex e-con-boxed e-con e-parent\" data-id=\"9fb900b\" data-element_type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-437fe4d font-color-green elementor-widget elementor-widget-text-editor\" data-id=\"437fe4d\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\tLet\u2019s say you want to store all the\u00a0<strong class=\"lj fr\">user name<\/strong>,\u00a0<strong class=\"lj fr\">title<\/strong>,\u00a0<strong class=\"lj fr\">rating<\/strong>,\u00a0<strong class=\"lj fr\">review<\/strong>\u00a0and\u00a0<strong class=\"lj fr\">extension<\/strong>\u00a0properties inside a CSV file then it can be easily done through\u00a0<code class=\"cx ny nz oa ob b\"><\/code><a class=\"af mt\" href=\"https:\/\/pandas.pydata.org\/\" target=\"_blank\" rel=\"noopener ugc nofollow\"><code>Pandas<\/code><\/a>\u00a0Library. You can download this library inside your folder.\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-99d83c3 elementor-widget elementor-widget-code-highlight\" data-id=\"99d83c3\" data-element_type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"prismjs-default copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-python line-numbers\">\n\t\t\t\t<code readonly=\"true\" class=\"language-python\">\n\t\t\t\t\t<xmp>pip install pandas<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-dd9b1cb e-flex e-con-boxed e-con e-parent\" data-id=\"dd9b1cb\" data-element_type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-b075536 font-color-green elementor-widget elementor-widget-text-editor\" data-id=\"b075536\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Once done you can use this library and run a for loop inside the\u00a0<code class=\"cx ny nz oa ob b\">customer_reviews<\/code>\u00a0array to reach each and every individual array.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-be69a18 elementor-widget elementor-widget-code-highlight\" data-id=\"be69a18\" data-element_type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"prismjs-default copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-python line-numbers\">\n\t\t\t\t<code readonly=\"true\" class=\"language-python\">\n\t\t\t\t\t<xmp>import requests\r\nimport pandas as pd\r\n\r\nobj={}\r\nl=[]\r\napi_key = \"your-api-key\"\r\nurl = \"https:\/\/api.scrapingdog.com\/amazon\/reviews\"\r\n\r\nparams = {\r\n  \"api_key\": api_key,\r\n  \"asin\": \"B0CTKXMQXK\",\r\n  \"domain\": \"com\",\r\n  \"page\": \"1\"\r\n}\r\n\r\nresponse = requests.get(url, params=params)\r\n\r\nif response.status_code == 200:\r\n  data = response.json()\r\n  # print(data)\r\n  for i in range(0,len(data['customer_reviews'])):\r\n          obj['Name']=data['customer_reviews'][i]['user']\r\n          obj['Title']=data['customer_reviews'][i]['title']\r\n          obj['Verified']=data['customer_reviews'][i]['extension']\r\n          obj['Rating']=data['customer_reviews'][i]['rating']\r\n          obj['Review']=data['customer_reviews'][i]['review']\r\n          l.append(obj)\r\n          obj={}\r\n  df = pd.DataFrame(l)\r\n  df.to_csv('reviews.csv', index=False, encoding='utf-8')\r\nelse:\r\n  print(f\"Request failed with status code: {response.status_code}\")<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-60d6a34 e-flex e-con-boxed e-con e-parent\" data-id=\"60d6a34\" data-element_type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-d56d4ef font-color-green elementor-widget elementor-widget-text-editor\" data-id=\"d56d4ef\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Once you run this code a file by the name\u00a0<code class=\"cx ny nz oa ob b\">reviews.csv<\/code>\u00a0will be created inside your folder.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-785e7ee elementor-widget elementor-widget-image\" data-id=\"785e7ee\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"109\" src=\"https:\/\/www.scrapingdog.com\/wp-content\/uploads\/2024\/08\/1_tAgEKsL7XNaidQzIKtyf6A-1024x140.webp\" class=\"attachment-large size-large wp-image-19557\" alt=\"\" srcset=\"https:\/\/www.scrapingdog.com\/wp-content\/uploads\/2024\/08\/1_tAgEKsL7XNaidQzIKtyf6A-1024x140.webp 1024w, https:\/\/www.scrapingdog.com\/wp-content\/uploads\/2024\/08\/1_tAgEKsL7XNaidQzIKtyf6A-300x41.webp 300w, https:\/\/www.scrapingdog.com\/wp-content\/uploads\/2024\/08\/1_tAgEKsL7XNaidQzIKtyf6A-768x105.webp 768w, https:\/\/www.scrapingdog.com\/wp-content\/uploads\/2024\/08\/1_tAgEKsL7XNaidQzIKtyf6A.webp 1400w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-d47585c e-flex e-con-boxed e-con e-parent\" data-id=\"d47585c\" data-element_type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-083f058 elementor-widget elementor-widget-heading\" data-id=\"083f058\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Conclusion<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-633b879 font-color-green elementor-widget elementor-widget-text-editor\" data-id=\"633b879\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p id=\"78df\" class=\"pw-post-body-paragraph lh li fq lj b lk ns lm ln lo nt lq lr ls nu lu lv lw nv ly lz ma nw mc md me fj bk\" data-selectable-paragraph=\"\">We saw how using Python and Amazon reviews scraper API you can easily scrape reviews of any product at scale. Scraping Amazon reviews without a scraper is not possible anymore. So, if you are scraping reviews for commercial purposes at scale then using a scraper API is a must.<\/p><p id=\"c2f2\" class=\"pw-post-body-paragraph lh li fq lj b lk ll lm ln lo lp lq lr ls lt lu lv lw lx ly lz ma mb mc md me fj bk\" data-selectable-paragraph=\"\">If you like this article then do not forget to share this article with your friends and followers on social media.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-36639bc elementor-widget elementor-widget-heading\" data-id=\"36639bc\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Additional Resources<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-96656f7 font-color-green elementor-widget elementor-widget-text-editor\" data-id=\"96656f7\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<ul><li><a href=\"https:\/\/www.scrapingdog.com\/blog\/build-amazon-price-tracker\/\" target=\"_blank\" rel=\"noreferrer noopener\" data-type=\"link\" data-id=\"https:\/\/www.scrapingdog.com\/blog\/build-amazon-price-tracker\/\">How To Build an Amazon Price Tracker<\/a><\/li><li><a href=\"https:\/\/www.scrapingdog.com\/blog\/scrape-amazon\/\">How To Scrape Amazon Product Data using Python<\/a><\/li><li><a href=\"https:\/\/www.scrapingdog.com\/webscraping-problems\/amazon-captcha-bypass-and-avoid-ip-ban\/\">How To Bypass Captcha When Scraping Amazon<\/a><\/li><li><a href=\"https:\/\/www.scrapingdog.com\/blog\/scrape-ebay\/\" target=\"_blank\" rel=\"noreferrer noopener\" data-type=\"link\" data-id=\"https:\/\/www.scrapingdog.com\/blog\/scrape-ebay\/\">How To Scrape eBay using Python<\/a><\/li><li><a href=\"https:\/\/www.scrapingdog.com\/blog\/scrape-walmart\/\" target=\"_blank\" rel=\"noreferrer noopener\" data-type=\"link\" data-id=\"https:\/\/www.scrapingdog.com\/blog\/scrape-walmart\/\">Scrape Walmart using Python<\/a><\/li><li><a href=\"https:\/\/www.scrapingdog.com\/blog\/web-scraping-myntra\/\" data-type=\"link\" data-id=\"https:\/\/www.scrapingdog.com\/blog\/web-scraping-myntra\/\">How To Scrape Myntra using Python<\/a><\/li><\/ul>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-c38c46b e-con-full web-scraping-right-con elementor-hidden-desktop elementor-hidden-tablet e-flex e-con e-child\" data-id=\"c38c46b\" data-element_type=\"container\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;,&quot;sticky&quot;:&quot;top&quot;,&quot;sticky_on&quot;:[&quot;desktop&quot;,&quot;tablet&quot;],&quot;sticky_parent&quot;:&quot;yes&quot;,&quot;sticky_offset&quot;:0,&quot;sticky_effects_offset&quot;:0}\">\n\t\t<div class=\"elementor-element elementor-element-1c447a7 e-con-full e-flex e-con e-child\" data-id=\"1c447a7\" data-element_type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-a645a8f elementor-widget elementor-widget-heading\" data-id=\"a645a8f\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h4 class=\"elementor-heading-title elementor-size-default\">Web Scraping with Scrapingdog<\/h4>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-3d20bb6 elementor-widget elementor-widget-text-editor\" data-id=\"3d20bb6\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\tScrape the web without the hassle of getting blocked\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-b6e26b4 e-con-full e-flex e-con e-child\" data-id=\"b6e26b4\" data-element_type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-92a57e6 elementor-align-justify elementor-widget elementor-widget-button\" data-id=\"92a57e6\" data-element_type=\"widget\" data-widget_type=\"button.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<div class=\"elementor-button-wrapper\">\n\t\t\t\t\t<a class=\"elementor-button elementor-button-link elementor-size-sm\" href=\"https:\/\/api.scrapingdog.com\/register\" target=\"_blank\" rel=\"noopener\">\n\t\t\t\t\t\t<span class=\"elementor-button-content-wrapper\">\n\t\t\t\t\t\t\t\t\t<span class=\"elementor-button-text\">Try for Free<\/span>\n\t\t\t\t\t<\/span>\n\t\t\t\t\t<\/a>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-3bf4623 elementor-align-justify elementor-widget elementor-widget-button\" data-id=\"3bf4623\" data-element_type=\"widget\" data-widget_type=\"button.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<div class=\"elementor-button-wrapper\">\n\t\t\t\t\t<a class=\"elementor-button elementor-button-link elementor-size-sm\" href=\"https:\/\/share.hsforms.com\/1ex4xYy1pTt6rrqFlRAquwQ4h1b2\" target=\"_blank\" rel=\"noopener\">\n\t\t\t\t\t\t<span class=\"elementor-button-content-wrapper\">\n\t\t\t\t\t\t\t\t\t<span class=\"elementor-button-text\">Contact sales<\/span>\n\t\t\t\t\t<\/span>\n\t\t\t\t\t<\/a>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-9b7ee2a e-con-full e-flex e-con e-child\" data-id=\"9b7ee2a\" data-element_type=\"container\">\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>In this blog we have used Amazon Review Scraper API and Python to extract review data at scale.<\/p>\n","protected":false},"author":5,"featured_media":19561,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"categories":[93,25],"tags":[],"class_list":["post-9476","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-amazone","category-blog"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.scrapingdog.com\/wp-json\/wp\/v2\/posts\/9476","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.scrapingdog.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.scrapingdog.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.scrapingdog.com\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.scrapingdog.com\/wp-json\/wp\/v2\/comments?post=9476"}],"version-history":[{"count":3,"href":"https:\/\/www.scrapingdog.com\/wp-json\/wp\/v2\/posts\/9476\/revisions"}],"predecessor-version":[{"id":31572,"href":"https:\/\/www.scrapingdog.com\/wp-json\/wp\/v2\/posts\/9476\/revisions\/31572"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.scrapingdog.com\/wp-json\/wp\/v2\/media\/19561"}],"wp:attachment":[{"href":"https:\/\/www.scrapingdog.com\/wp-json\/wp\/v2\/media?parent=9476"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.scrapingdog.com\/wp-json\/wp\/v2\/categories?post=9476"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.scrapingdog.com\/wp-json\/wp\/v2\/tags?post=9476"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}