🥳加入Scrapeless 社区申请免费试用以访问我们强大的网页抓取工具包!
返回博客

如何使用Python抓取亚马逊产品数据、卖家信息和搜索数据

Emily Chen
Emily Chen

Advanced Data Extraction Specialist

23-Dec-2024

在快节奏的电商世界中,保持竞争力意味着能够访问实时数据。**亚马逊抓取API**是直接从亚马逊提取关键见解的关键工具。以下是亚马逊数据抓取对企业至关重要的原因:

**- 追踪价格趋势:**了解竞争对手的价格并调整您的策略。

**- 监控库存水平:**随时了解产品供应情况和库存波动。

**- 分析客户反馈:**利用产品评论来改善您的产品和客户体验。

**- 获取市场情报:**识别新兴产品和市场趋势以保持领先地位。

根据Statista最近的一份报告,超过55%的在线购物者从亚马逊开始他们的购物之旅,这使得企业收集和利用这些数据至关重要。使用亚马逊抓取API,您可以访问这些丰富的信息,以优化定价,改进您的产品列表,并做出数据驱动的决策,从而在竞争激烈的市场中获得竞争优势。

亚马逊抓取数据的实际用例

借助亚马逊抓取API,企业可以高效地收集和分析大量的亚马逊数据,从而获得推动更明智决策的关键见解。根据Gartner报告,数据驱动的公司更有可能做出更快、更好的决策,这对于寻求规模化的企业尤其重要。

以下是亚马逊抓取数据的一些实际用例,以及每个用例如何直接使您受益:

1. 竞争性价格分析

通过抓取亚马逊的产品页面以获取价格信息,企业可以实时全面了解竞争对手的价格。这使您可以快速调整定价策略,保持竞争力,甚至实施动态定价以最大化盈利能力。

2. 市场趋势预测

凭借亚马逊庞大的产品目录,识别新兴市场趋势可能具有挑战性。通过抓取产品类别和畅销书列表,企业可以尽早确定高需求产品。这有助于您预测消费者偏好的变化,根据市场需求调整库存,并通过在其他人之前利用趋势来获得竞争优势。

3. 产品研究和改进

亚马逊上的客户评论提供了宝贵的反馈信息。抓取产品页面的评论可以揭示消费者痛点和产品缺陷的见解。通过分析这些反馈,您可以优化您自己的产品,确保您的产品满足客户期望,并改善您的市场定位。

4. 库存管理

通过跟踪不同卖家产品的可用性,亚马逊抓取API可以帮助您掌握库存水平。这可以提醒您库存短缺或库存过多的情况,使您可以相应地调整您的供应链运营,并避免错过销售机会或库存过剩的成本。

5. 用于SEO和广告的关键词研究

抓取亚马逊数据还为**关键词研究提供了宝贵的见解。通过分析流行的产品搜索词,品牌可以优化其亚马逊产品列表,使其更容易被潜在客户发现。这对于提升您的自然排名**和投放更有效的亚马逊PPC广告至关重要。

通过利用这些用例,企业可以做出数据驱动的决策,从而提高客户满意度,提高运营效率,并最终推动销售。借助亚马逊抓取API,您可以释放数据的力量,从而在竞争激烈的电商市场中保持领先地位。

您可能还需要:如何抓取Shopee数据:分步指南

如何抓取亚马逊关键词搜索结果

抓取亚马逊的关键词搜索结果是增强产品可见性和优化产品列表的一种有效方法。通过收集亚马逊搜索结果中的数据,您可以获得有关趋势关键词、搜索量和竞争对手策略的关键见解。在本部分中,我们将向您展示如何使用基于Python的方法和亚马逊抓取API来抓取亚马逊关键词,使您可以提取有价值的搜索数据以完善您的SEO策略。

众所周知,您可以直接在亚马逊的搜索框中输入相应的关键词,以获得与关键词对应的产品页面数据。详情如下:

输入相应的关键词获取页面信息

如上图所示,当您输入关键词“iphone”时,将搜索出iphone产品信息的默认第一页。使用Scrapeless,我们将向您反馈相应页面产品的详细信息。具体步骤如下:

步骤1. **登录Scrapeless**后,系统会自动为您生成相应的ApiKey。您可以点击API Key Management>View API Key。
查看API Key

步骤2. 点击Scraping API > 选择Amazon进入亚马逊抓取页面。
amazon Scraping API

步骤3. 选择对应抓取页面的URL。

在上面的URL中,将“iphone”替换为您要搜索的关键词,将“3”替换为您要查询的页码。当然,页码不是必需的,如果不可用,我们将默认查询第一页。

步骤4. 在Scrapeless中,我们将生成相应的API接口代码,输入相应的关键词,然后点击开始抓取运行代码即可直接获取相应页面的数据。
点击开始抓取

Scrapeless返回数据的局部截取:

{ Copy
  "url": "https://www.amazon.com/s?k=iphone&page=2",
  "currentPage": "2",   
  "totalPage": 20,
  "keyword": "iphone",
  "result": {
    "paid": [
      {
        "pos": 3,
        "url": "https://www.amazon.com/dp/B0D9TCKQWQ",
        "asin": "B0D9TCKQWQ",
        "price": "$17.99",
        "title": "SponsoredSponsored You’re seeing this ad based on the product’s relevance to your search query.Leave ad feedback  [2-Pack ] LAXYA USB C Wall Charger, 40W Fast USB C Charger Block, 4-Port PD Power Adapter + QC Wall Plug Multiport Type C Charging Block Cube Compatible with iPhone16/15/14/13 Pro XS/XR,iPad Samsung",
        "rating": "4.6 out of 5 stars",
        "is_prime": false,
        "url_image": "/sspa/click?ie=UTF8\u0026spc=MToxMzQyMjk1MDM3NDIyMzYxOjE3MzQ5MTY5MDI6c3BfYXRmX25leHQ6MzAwNDg5NTUwNzAxOTAyOjowOjo\u0026url=%2FLAXYA-Multiport-Charging-Compatible-iPhone16%2Fdp%2FB0D9TCKQWQ%2Fref%3Dsr_1_17_sspa%3Fdib%3DeyJ2IjoiMSJ9.U8G5xDCuSHnEM5drfNuNIktTzoJ7BKeGrovtVewZhsYHIFNoPSR-0VGxOz7x8cwPjPm04v8FcoFigvIu44dyt7Nu9NlhJW6q3Q0yM7Xpchem9XFeUXXMsQwKJD_HO-ojfHIoXuDdVVm-HwCgt6ZY7-Y8Irrr3HiOIurTpuyGPyFJSwWlP-wlyrb9o7jYUIi1lTa5rMbPoTYkGukPeNY3kUgK7bNn2TbowMLCYz5Jd1I.NUb-Pc6yqmRBvhXb5EPEV-MLu0SoP6HwLfcR7i8uaqc%26dib_tag%3Dse%26keywords%3Diphone%26qid%3D1734916902%26sr%3D8-17-spons%26sp_csd%3Dd2lkZ2V0TmFtZT1zcF9hdGZfbmV4dA%26psc%3D1",
        "best_seller": false,
        "price_upper": "$17.99",
        "is_sponsored": true,
        "manufacturer": "",
        "pricing_count": 1,
        "reviews_count": 13,
        "price_strikethrough": "",
        "shipping_information": "FREE delivery Mon, Dec 30 on $35.00 of items shipped by Amazon"
      }
    ],
    "organic": [
      {
        "pos": 6,
        "url": "https://www.amazon.com/dp/B0BGQS8YV4",
        "asin": "B0BGQS8YV4",
        "price": "$397.00",
        "title": "Apple iPhone 13, 128GB, Pink - Unlocked (Renewed Premium)",
        "rating": "4.3 out of 5 stars",
        "is_prime": false,
        "url_image": "/iPhone-13-128GB-Pink-Unlocked/dp/B0BGQS8YV4/ref=sr_1_19?dib=eyJ2IjoiMSJ9.U8G5xDCuSHnEM5drfNuNIktTzoJ7BKeGrovtVewZhsYHIFNoPSR-0VGxOz7x8cwPjPm04v8FcoFigvIu44dyt7Nu9NlhJW6q3Q0yM7Xpchem9XFeUXXMsQwKJD_HO-ojfHIoXuDdVVm-HwCgt6ZY7-Y8Irrr3HiOIurTpuyGPyFJSwWlP-wlyrb9o7jYUIi1lTa5rMbPoTYkGukPeNY3kUgK7bNn2TbowMLCYz5Jd1I.NUb-Pc6yqmRBvhXb5EPEV-MLu0SoP6HwLfcR7i8uaqc\u0026dib_tag=se\u0026keywords=iphone\u0026qid=1734916902\u0026sr=8-19",
        "best_seller": false,
        "price_upper": "$397.00",
        "is_sponsored": false,
        "manufacturer": "",
        "pricing_count": 1,
        "reviews_count": 1548,
        "price_strikethrough": "$459.00",
        "shipping_information": "FREE delivery Fri, Jan 3Only 1 left in stock - order soon."
      }
    ]
  },
  "totalResultsCount": 18
}

💡值得注意的是,在我们返回的数据中,result中的paid是亚马逊广告赞助推荐的产品,而organic是亚马逊普通算法推荐的内容。

如何抓取亚马逊产品数据

接下来,我们将深入探讨如何抓取亚马逊产品数据,这是优化您的电商业务的另一个关键步骤。

下图显示了我们获取产品数据的详细信息页面:
如何抓取亚马逊产品数据

在上一节中提到的关键词查询返回的每个产品数据中,都有一个url字段,它是对应具体产品详情的url。

如果我们想获取产品的详细信息,我们可以从关键词查询返回的数据中获取url。当然,如果您知道要查询的产品的asin,也可以自行定义选择URL。
如何抓取亚马逊产品数据

复制相应的URL到亚马逊,即可获取对应的产品页面:
复制相应的URL到亚马逊

在scraperless中选择product,然后填写关键词查询返回的URL,生成获取产品详情的对应代码。
获取产品详情

最终返回的产品详情如下:

{ Copy
  "title": "[2-Pack ] LAXYA USB C Wall Charger, 40W Fast USB C Charger Block, 4-Port PD Power Adapter + QC Wall Plug Multiport Type C Charging Block Cube Compatible with iPhone16/15/14/13 Pro XS/XR,iPad Samsung",
  "seller_name": "Amazon",
  "brand": "",
  "description": "About this item                     【2-Pack 4-ports Charging Block】This 40w Charging Block Multiport wall charger has 2 USB-C ports and 2 USB-A ports.It can fast charge you multiple devices at the same time, including cell phones, Iphone,tablets, mobile power and headphones and game consoles, etc.It minimizes waiting time and saves you a lot of space and making your desktop more tidy.close-match0     【High-Speed Charging】:This fast wall charging plug has a maximum output of 40W.And when you connect 4 devices,power will be distribued efficiently between ports to ensure you get the best charge to minimize waiting time.his charger meets the QC3.0 and PD fast charging protocols ITCharge your iPhone series models up to 3X faster than original 5W Charger     【Universal Compatibility】: This type c wall charger isalmost all electronic devices,,charging adapter for iPhone 16/16 Pro/15/15 Pro Max/14/13/12/11/SE3/XR/XS Max/X/8 Plus, iPad Air/Pro/Mini, AirPods Pro, Samsung Galaxy S24/S23/S23/ S21 Ultra, Tablet, PC Tablet, Google Nexus Tablet, and other digital devices.     【Compact and Portable】The compact design of this charger makes it easy to carry with you wherever you go, ensuring you always have power on the move. If you have any problems with the charger block, please feel to contact us.     【Safe & Reliable】: Built-in security features protect your devices from overcharging, overheating, and short-circuiting, providing a safe charging experience.Additionally, two pieces of heat dissipating silicone are added on both sides to ensure even heat dissipation during charging of the charger. close match       \n                     ›  See more product details",
  "initial_price": "",
  "final_price": "$17.99",
  "availability": "In Stock",
  "reviews_count": "13",
  "categories": [
    "Cell Phones & Accessories",
    "Accessories",
    "Chargers & Power Adapters",
    "Wall Chargers"
  ],
  "asin": "B0D9TCKQWQ",
  "buybox_seller": "Amazon",
  "number_of_sellers": 1,
  "root_bs_rank": "56,002",
  "answered_questions": 0,
  "domain": "https://www.amazon.com",
  "images_count": 0,
  "url": "https://www.amazon.com/dp/B0D9TCKQWQ",
  "video_count": 1,
  "image_url": "https://m.media-amazon.com/images/I/513m0czV0lL._AC_SL1500_.jpg",
  "item_weight": "2.32 ounces",
  "rating": "4.6",
  "product_dimensions": "2.1 x 1.1 x 1.8 inches",
  "seller_id": "ATVPDKIKX0DER",
  "date_first_available": "July 21, 2024",
  "discount": "",
  "model_number": "CDF40W001",
  "manufacturer": "Gu Mai Meng (Shenzhen) Business Co., Ltd",
  "department": "Cell Phones & Accessories",
  "plus_content": true,
  "upc": "",
  "video": true,
  "top_review": "Works as it should!",
  "variations": null,
  "delivery": "FREE delivery Monday, December 30 on orders shipped by Amazon over $35",
  "features": [
    "【2-Pack 4-ports Charging Block】This 40w Charging Block Multiport wall charger has 2 USB-C ports and 2 USB-A ports.It can fast charge you multiple devices at the same time, including cell phones, Iphone,tablets, mobile power and headphones and game consoles, etc.It minimizes waiting time and saves you a lot of space and making your desktop more tidy.close-match0",
    "【High-Speed Charging】:This fast wall charging plug has a maximum output of 40W.And when you connect 4 devices,power will be distribued efficiently between ports to ensure you get the best charge to minimize waiting time.his charger meets the QC3.0 and PD fast charging protocols ITCharge your iPhone series models up to 3X faster than original 5W Charger",
    "【Universal Compatibility】: This type c wall charger isalmost all electronic devices,,charging adapter for iPhone 16/16 Pro/15/15 Pro Max/14/13/12/11/SE3/XR/XS Max/X/8 Plus, iPad Air/Pro/Mini, AirPods Pro, Samsung Galaxy S24/S23/S23/ S21 Ultra, Tablet, PC Tablet, Google Nexus Tablet, and other digital devices.",
    "【Compact and Portable】The compact design of this charger makes it easy to carry with you wherever you go, ensuring you always have power on the move. If you have any problems with the charger block, please feel to contact us.",
    "【Safe & Reliable】: Built-in security features protect your devices from overcharging, overheating, and short-circuiting, providing a safe charging experience.Additionally, two pieces of heat dissipating silicone are added on both sides to ensure even heat dissipation during charging of the charger. close match"
  ],
  "format": "",
  "buybox_prices": {
    "discount": "",
    "final_price": "$17.99",
    "initial_price": "",
    "unit_price": ""
  },
  "parent_asin": "B0D9TCKQWQ",
  "input_asin": "B0D9TCKQWQ",
  "ingredients": null,
  "origin_url": "https://www.amazon.com",
  "bought_past_month": "50+ bought in past month",
  "is_available": true,
  "root_bs_category": "Cell Phones & Accessories",
  "bs_category": "Cell Phone Wall Chargers",
  "bs_rank": "",
  "badge": "",
  "subcategory_rank": {
    "subcategory_name": "Cell Phone Wall Chargers",
    "subcategory_rank": ""
  },
  "amazon_choice": false,
  "images": null,
  "product_details": [
    {
      "type": "Product Dimensions",
      "values": "2.1 x 1.1 x 1.8 inches"
    },
    {
      "type": "Item Weight",
      "values": "2.32 ounces"
    },
    {
      "type": "ASIN",
      "values": "B0D9TCKQWQ"
    },
    {
      "type": "Item model number",
      "values": "CDF40W001"
    },
    {
      "type": "Customer Reviews",
      "values": "4.6 out of 5 stars"
    },
    {
      "type": "Best Sellers Rank",
      "values": "#56,002 in Cell Phones & Accessories (See Top 100 in Cell Phones & Accessories)"
    },
    {
      "type": "Date First Available",
      "values": "July 21, 2024"
    },
    {
      "type": "Manufacturer",
      "values": "Gu Mai Meng (Shenzhen) Business Co., Ltd"
    }
  ],
  "prices_breakdown": {
    "deal_type": "",
    "list_price": "",
    "typical_price": ""
  },
  "country_of_origin": "",
  "from_the_brand": null,
  "product_description": [
    {
      "type": "image",
      "url": "https://images-na.ssl-images-amazon.com/images/G/01/x-locale/common/grey-pixel.gif"
    },
    {
      "type": "image",
      "url": "https://images-na.ssl-images-amazon.com/images/G/01/x-locale/common/grey-pixel.gif"
    },
    {
      "type": "image",
      "url": "https://images-na.ssl-images-amazon.com/images/G/01/x-locale/common/grey-pixel.gif"
    },
    {
      "type": "image",
      "url": "https://images-na.ssl-images-amazon.com/images/G/01/x-locale/common/grey-pixel.gif"
    },
    {
      "type": "image",
      "url": "https://images-na.ssl-images-amazon.com/images/G/01/x-locale/common/grey-pixel.gif"
    },
    {
      "type": "image",
      "url": "https://images-na.ssl-images-amazon.com/images/G/01/x-locale/common/grey-pixel.gif"
    }
  ],
  "seller_url": "https://www.amazon.com/gp/help/seller/at-a-glance.html/ref=dp_merchant_link?ie=UTF8&seller=A3HORIVEY1JJ14&asin=B0D9TCKQWQ&ref_=dp_merchant_link&isAmazonFulfilled=1",
  "customer_says": "",
  "sustainability_features": null,
  "climate_pledge_friendly": false,
  "videos": [
    "https://www.amazon.com/vdp/046fe17b6de24513b2c5dc2df4606933"
  ],
  "other_sellers_prices": null,
  "downloadable_videos": [
    "https://m.media-amazon.com/images/S/vse-vms-transcoding-artifact-us-east-1-prod/de0f6426-b5bf-4a69-bb48-79c033a7aed5/default.jobtemplate.hls.m3u8"
  ]
}

🔔 您是否为如何快速准确地获取亚马逊产品数据、卖家信息和搜索数据而头疼?使用**Scrapeless亚马逊抓取API**,您可以轻松抓取大量亚马逊数据,帮助您进行市场分析、竞争对手研究和价格优化。

如何抓取亚马逊卖家信息

根据上面产品详情返回的数据,您可以找到seller_url字段,这是对应产品的商家的字段。通过seller_url,您可以直接访问相应商家的详细信息。

当然,如果您知道卖家ID,也可以自己构建URL,如下所示:

示例:https://www.amazon.com/sp?seller=AESX3141EPI7X

只需将“AESX3141EPI7X”更改为您要访问的卖家ID。
如何抓取亚马逊卖家信息

在Scrapeless亚马逊抓取API中,我们也可以替换Url和Action来获取卖家的详细信息。
如何抓取亚马逊卖家信息

以下是Scrapeless亚马逊抓取API返回的卖家详细信息:

{ Copy
  "url": "https://www.amazon.com/gp/help/seller/at-a-glance.html/ref=dp_merchant_link?ie=UTF8\u0026seller=AESX3141EPI7X\u0026asin=B0BGQS8YV4\u0026ref_=dp_merchant_link",
  "seller_id": "AESX3141EPI7X",
  "seller_name": "XXX",
  "description": "About Seller XXX Supply 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-14XX 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": "Very nice \u0026 the price is right!",
      "date": "By Rich D on December 22, 2024."
    },
    {
      "starts": "1 out of 5 stars",
      "text": "this is the worst reseller I ever had on Amazon, I received the package only with the charger worth $9 \u0026 did not include the watch that I paid over $200. I have...\n                this is the worst reseller I ever had on Amazon, I received the package only with the charger worth $9 \u0026 did not include the watch that I paid over $200. I have still not received my refund!!!!!",
      "date": "By Dr. Phil on December 22, 2024."
    },
    {
      "starts": "5 out of 5 stars",
      "text": "The watch arrived in perfect shape.",
      "date": "By Phindog on December 22, 2024."
    },
    {
      "starts": "5 out of 5 stars",
      "text": "The package arrived earlier than expected! Prompt and courteous.",
      "date": "By Christine Jacobs on December 22, 2024."
    },
    {
      "starts": "1 out of 5 stars",
      "text": "Use caution buying from this seller. They botched my return and I lost $275 to this seller and they will not respond. Amazon will not help me. First time losing...\n                Use caution buying from this seller. They botched my return and I lost $275 to this seller and they will not respond. Amazon will not help me. First time losing money on Amazon. BEWARE OF SELLER AND RETURN POLICY",
      "date": "By Amazon Customer on December 22, 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, Kanga Supply 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 Kanga Supply 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 Kanga Supply's Privacy Policy.",
  "privacy_policy": "Kanga Supply 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 Kanga Supply through the Amazon.com Site unless explicitly indicated as such in the ordering process. Items ordered from Kanga Supply 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 Kanga Supply 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.",
}
json Copy
{
  "products_link": "https://www.amazon.com/s?ie=UTF8&marketplaceID=ATVPDKIKX0DER&me=AESX3141EPI7X",
  "business_name__DUPLICATE": "ADN GLOBAL LLC",
  "business_address__DUPLICATE": "502 Jersey Ave,STE A,NEW BRUNSWICK,NJ,08901,US",
  "rating_positive": "89%好评",
  "brands": "",
  "feedbacks_percentages": {
    "star_1": "7%",
    "star_2": "2%",
    "star_3": "2%",
    "star_4": "11%",
    "star_5": "79%"
  },
  "rating_count_m12": "1,164",
  "rating_count_m3": "279",
  "rating_count_lifetime": "21,125",
  "rating_count_m1": "129",
  "country": "美国",
  "email": "",
  "timestamp": "2024-12-23"
}

在Scrapeless,我们仅访问公开数据,同时严格遵守适用的法律、法规和网站隐私政策。 本博客内容仅用于演示目的,不涉及任何非法或侵权行为。 对于使用本博客或第三方链接的信息,我们不做任何保证,也不承担任何责任。 在参与任何抓取活动之前,请咨询您的法律顾问并查看目标网站的服务条款或获取必要的权限。

最受欢迎的文章

目录