DEV Community

Cover image for How to Scrape Amazon Sellers: Python Guide 2025
Scraper0024
Scraper0024

Posted on

How to Scrape Amazon Sellers: Python Guide 2025

Amazon is the world's largest e-commerce site, with countless products and millions of customers. No wonder retailers want in on the action.

The Amazon store page helps these retailers do market research. It shows details about the store on Amazon and can serve as a guide to perfecting your own store information. However, it's hard to keep track of all the details on a shopping site like Amazon.

This is where web scraping APIs are a great solution - eliminating all the manual labor possible. No more manually scrolling and writing down product prices and store information that you think you should remember! Use the powerful Amazon Scraping API to make scraping easy!

In this tutorial, we'll look at how to scrape Amazon store details using the API with Python.

Let's get started!

Why do we scrape Amazon sellers?

  1. Competitive Intelligence
  2. Market and Trend Analysis
  3. Pricing Strategy Optimization
  4. Product Research and Selection
  5. Customer Insights and Sentiment Analysis
  6. Supply Chain and Supplier Research
  7. Monitor Sales Performance

What is Scrapeless and Why choose it for Amazon sellers scraping?

Scrapeless is a powerful API tool. It can be seamlessly integrated with Python and is designed to meet the needs of developers and non-developers.

It simplifies the entire process of crawling Amazon sellers' data, allowing users to easily and reliably extract a variety of valid information from the Amazon platform.

Whether you are a beginner just starting to scrape data or an experienced developer looking for an efficient scraping solution, Scrapeless provides simple and powerful functions to meet your needs.

Advantages of Scrapeless๏ผš

๐ŸŒ 1. Unique IP Rotation Technology

When scraping data from e-commerce platforms such as Amazon, frequent requests often lead to IP blocking and scraping failures. Scrapeless's built-in IP rotation technology automatically changes the IP address on each request, effectively preventing blocking.

๐Ÿ”’ 2. Automated CAPTCHA Detection and Bypass

Amazon often triggers CAPTCHA or anti-bot challenges, especially when scraping large amounts of Amazon data. Scrapeless can automatically detect and bypass CAPTCHA, reducing the need for manual intervention. This feature can significantly increase the success rate of your Amazon scraping Python project, with a CAPTCHA resolution rate of over 99%.

โšก 3. Efficient Scraping Speed

Speed is one of its core advantages. With optimized code structure and concurrent scraping capabilities, Scrapeless can significantly improve data scraping efficiency when you scrape Amazon data, making it an ideal choice for using Amazon scraping Python tools.

๐Ÿš€ 4. Continuous Scraping Ability

For users who need long-term and stable crawling of data, Scrapeless provides excellent stability. It can continuously crawl thousands of records without common crashes or failures, ensuring that your Amazon crawler Python can run seamlessly for a long time.

๐Ÿ› ๏ธ 5. Easy-to-Use API and Visual Interface

Scrapeless provides an intuitive API that enables developers to quickly crawl Amazon data and retrieve necessary product details. For non-technical users, it also provides a simple interface and sample code to lower the threshold of use. More than 90% of users highly praise Scrapeless's ease of use, making it an ideal choice for anyone who wants to create an Amazon crawler in Python without in-depth programming.

How to scrape Amazon sellers using Scrapeless API?

scrape Amazon sellers

According to the data returned by the product details above, you can find the seller_url field, which is the field of the merchant corresponding to the product. Through seller_url, you can directly access the detailed information of the corresponding merchant.

Of course, if you know the seller ID, you can also build the URL yourself, as follows:

Let's take https://www.amazon.com/sp?seller=AESX3141EPI7X as an example

You only need to change "AESX3141EPI7X" to the seller ID you want to access.

Step 1. Get your API key

After logging in to Scrapeless, the system will automatically generate the corresponding ApiKey for you. You can

  • click "API Key Management"
  • And then "View API Key"

Get your API key

Step 2. Integrate our code into your project

Only 2 operations you need to do:

  1. Replace with your target seller url
  2. Input your API key
import json
import requests

class Payload:
    def __init__(self, actor, input_data):
        self.actor = actor
        self.input = input_data

def send_request():
    host = "api.scrapeless.com"
    url = f"https://{host}/api/v1/scraper/request"
    token = "" ## input your API token

    headers = {
        "x-api-token": token
    }

    input_data = {
        "action": "seller",
        "url": "https://www.amazon.com/sp?seller=AESX3141EPI7X" ## replace with your target seller's url
    }

    payload = Payload("scraper.amazon", input_data)

    json_payload = json.dumps(payload.__dict__)

    response = requests.post(url, headers=headers, data=json_payload)

    if response.status_code != 200:
        print("Error:", response.status_code, response.text)
        return

    print("body", response.text)

if __name__ == "__main__":
    send_request()
Enter fullscreen mode Exit fullscreen mode
  • You can find more languages in API documentation. To make the above project more specific, the original Python code is:
import requests
import json

url = "https://api.scrapeless.com/api/v1/scraper/request"

payload = json.dumps({
   "actor": "scraper.amazon",
   "input": {
      "url": "",
      "action": "seller"
   }
})
headers = {
   'Content-Type': 'application/json'
}

response = requests.request("POST", url, headers=headers, data=payload)

print(response.text)
Enter fullscreen mode Exit fullscreen mode

Step 3. Start crawling and get the output

The following seller details are returned by the Scrapeless Amazon Scraping API:

{
  "url": "https://www.amazon.com/sp?seller=AESX3141EPI7X",
  "seller_id": "AESX3141EPI7X",
  "seller_name": "XXX",
  "description": "About SellerXXX is proud to offer you the best quality products with the best quality service. Customer satisfaction is our number #1 priority! If you have any questions or concerns about your order, please don't hesitate to contact us at: 1-844-637-1400 Our customer service hours are Monday thru Friday, 10 AM - 5 PM Eastern Time. Looking forward to hearing from you!",
  "detailed_info": [
    {
      "title": "Business Name:",
      "value": "ADN GLOBAL LLC"
    },
    {
      "title": "Business Address:",
      "value": "502 Jersey Ave,STE A,NEW BRUNSWICK,NJ,08901,US"
    }
  ],
  "feedbacks": [
    {
      "starts": "5 out of 5 stars",
      "text": "good",
      "date": "By Yenny albarracin on December 26, 2024."
    },
    {
      "starts": "4 out of 5 stars",
      "text": "Aurticulo en buen estado y muy eficiente en la entrega",
      "date": "By Juan D. on December 26, 2024."
    },
    {
      "starts": "4 out of 5 stars",
      "text": "Good experience was received on time",
      "date": "By Symon Harry on December 25, 2024."
    },
    {
      "starts": "5 out of 5 stars",
      "text": "Itโ€™s a gift",
      "date": "By Patty T. on December 25, 2024."
    },
    {
      "starts": "1 out of 5 stars",
      "text": "Disappointed with service. Order in November and gift will not be here before Christmas. My child will be so disappointed.",
      "date": "By Rosey M. on December 24, 2024."
    }
  ],
  "stars": "4.5 out of 5 stars",
  "return_policy": "To get information about the Return and Refund policies that may apply, please refer to Amazonโ€™s Return and Refund policy.To initiate a return, visit Amazon's Online Return Center to request a return authorization from the seller. For any issues with your return, if the product was shipped by the seller, you can get help here.",
  "shipping_policies": "Unless noted otherwise in the ordering pipeline, XXX ships all items within two days of receiving an order. You will receive notification of any delay or cancellation of your order.",
  "privacy_security": "Amazon knows that you care how information about you is used and shared, and we appreciate your trust that we will do so carefully and sensibly. By visiting Amazon.com, you are accepting the practices described in Amazon.com's Privacy Policy . In addition, we want you to be aware that Amazon.com will provide XXX with information related to your transactions involving their products (including, for example, your name, address, products you purchase, and transaction amount), and that such information will be subject to XXX's Privacy Policy.",
  "privacy_policy": "XXX values the privacy of your personal data. For more information see Amazon.com's Privacy Policy .",
  "tax_info": "Sales tax is not separately calculated and collected in connection with items ordered from XXX through the Amazon.com Site unless explicitly indicated as such in the ordering process. Items ordered from XXX may be subject to tax in certain states, based on the state to which the order is shipped. If an item is subject to sales tax, in accordance with state tax laws, the tax is generally calculated on the total selling price of each individual item, including shipping and handling charges, gift-wrap charges and other service charges, less any applicable discounts. If tax is separately calculated and collected in connection with items ordered from XXX through the Amazon.com Site, the tax amounts that appear during the ordering process are estimated - the actual taxes that will be charged to your credit card will be calculated at the time your order is processed and will appear in your order confirmation notification.",
  "help_content": "For questions about a charge that has been made to your credit card, please contact Amazon. Questions about how to place an order? Search Amazon Help.",
  "products_link": "https://www.amazon.com/s?ie=UTF8&marketplaceID=ATVPDKIKX0DER&me=AESX3141EPI7X",
  "business_name__DUPLICATE": "XXX",
  "business_address__DUPLICATE": "XXX",
  "rating_positive": "90% positive",
  "brands": "",
  "feedbacks_percentages": {
    "star_1": "7%",
    "star_2": "2%",
    "star_3": "2%",
    "star_4": "11%",
    "star_5": "79%"
  },
  "rating_count_m12": "1,143",
  "rating_count_m3": "276",
  "rating_count_lifetime": "21,128",
  "rating_count_m1": "118",
  "country": "US",
  "email": "",
  "timestamp": "2024-12-26"
}
Enter fullscreen mode Exit fullscreen mode

Scrapeless Dashboard: the easiest way to scrape Amazon seller

The above Python steps may be troublesome for many people. In order to reduce the burden of enterprise crawling, Scrapeless Dashboard has saved you the troublesome request initiation process. You can easily crawl seller information with just a few simple clicks and configurations.

Keep scrolling now!

Step 1. Log in to Scrapeless

Step 2. Click "Scraping API" and select "Amazon" to enter the Amazon scraping page.

Amazon scraping page

Step 3. Copy the target seller url and input it into the box. Switch the "Action" to "Seller" and then click the "Start Scraping" button.

Start Scraping

On the tool page, you can select the type of data to crawl:

  • Seller: Crawl seller information, including seller name, rating, contact information, etc.
  • Product: Crawl product details such as title, price, rating, comments, etc.
  • Keywords: Crawl keywords related to the product to help you analyze the product's SEO and market trends.

Step 4. After the crawling is completed, you can view the crawled data in the right panel. The results will be displayed in a clear format for easy analysis.

crawled data

If you need to crawl other products, click Continue to enter a new Amazon link and repeat the above steps.

The Bottom Lines

While there are multiple ways to scrape Amazon seller pages, it can be a bit difficult to do it by coding it yourself. You need to manually set up browser automation to make it work, as well as parse out fields from the retrieved HTML.

It's time to lighten all the burdens and scrape data easily! Use the powerful Scrapeless Amazon Scraping API to achieve simple, efficient, accurate, fast, stable, and secure data scraping.

Top comments (0)