Automated Amazon Product Monitoring with Python and SellerMagnet

Automating Amazon Product Monitoring with Python and SellerMagnet

By Sarah Davis | July 10, 2025

Automating Amazon Product Monitoring with Python and SellerMagnet

In the dynamic world of e-commerce, staying ahead of the competition on Amazon requires more than just intuition. It demands data-driven insights, timely updates, and efficient monitoring of product performance. For businesses aiming for competitive analysis, inventory management, and comprehensive market research, automating these processes is crucial. This is where Python and the SellerMagnet API come into play.

SellerMagnet provides an enterprise-grade Amazon data API that allows you to programmatically access and monitor vital product information. By leveraging Python, you can automate tasks such as tracking price changes, monitoring sales ranks, and analyzing competitor strategies. Let's explore how to use SellerMagnet's API to achieve this.

Why Automate Amazon Product Monitoring?

Automating your Amazon product monitoring offers several key benefits:

  • Real-time Data: Access up-to-the-minute information on product performance.
  • Competitive Advantage: Monitor competitor pricing and strategies to adjust your own tactics.
  • Inventory Management: Keep track of stock levels and predict demand more accurately.
  • Market Research: Gather data to identify trends and opportunities in the Amazon marketplace.
  • Efficiency: Save time and resources by automating repetitive tasks.

Getting Started with SellerMagnet API

To begin, you'll need an API key from SellerMagnet. Once you have your key, you can start making API requests using Python. Here's a basic example of how to retrieve product statistics using the /amazon-product-statistics endpoint:


import requests

api_key = "YOUR_API_KEY"
asin = "B08N5WRWNW"  # Example ASIN
marketplace_id = "A1PA6795UKMFR9"  # Example Marketplace ID (Germany)

url = f"https://sellermagnet-api.com/amazon-product-statistics?api_key={api_key}&asin={asin}&marketplaceId={marketplace_id}"

response = requests.get(url)

if response.status_code == 200:
    data = response.json()
    print(data)
else:
    print(f"Error: {response.status_code} - {response.text}")

Example Response:


{
  "success": true,
  "data": {
    "asin": "B0CLTBHXWQ",
    "productTitle": "Playstation 5 Console Edizione Digital Slim",
    "buyBoxPrice": 41800,
    "buyBoxFulfillment": "FBM",
    "buyBoxSellerIdHistory": [
      [
        "2025-06-14 17:08:00",
        "A2I59UVTUWUFH0"
      ]
    ],
    "categoryTree": [
      {
        "catId": 412603031,
        "name": "Videogiochi"
      },
      {
        "catId": 20904349031,
        "name": "PlayStation 5"
      },
      {
        "catId": 20904364031,
        "name": "Console"
      }
    ],
    "graphs": {
      "amazonAsSellerPriceHistory": "https://sellermagnet-api-webspace.s3.eu-central-1.amazonaws.com/amazon/api/charts/B0CLTBHXWQ/1749913774/B0CLTBHXWQ_amazon_price_1749913773.png",
      "lowestFBAPriceHistory": "https://sellermagnet-api-webspace.s3.eu-central-1.amazonaws.com/amazon/api/charts/B0CLTBHXWQ/1749913776/B0CLTBHXWQ_fba_price_1749913773.png",
      "lowestFBMPriceHistory": "https://sellermagnet-api-webspace.s3.eu-central-1.amazonaws.com/amazon/api/charts/B0CLTBHXWQ/1749913775/B0CLTBHXWQ_fbm_price_1749913773.png",
      "monthlySoldHistory": "https://sellermagnet-api-webspace.s3.eu-central-1.amazonaws.com/amazon/api/charts/B0CLTBHXWQ/1749913778/B0CLTBHXWQ_monthly_sold_1749913773.png",
      "productRatingHistory": "https://sellermagnet-api-webspace.s3.eu-central-1.amazonaws.com/amazon/api/charts/B0CLTBHXWQ/1749913777/B0CLTBHXWQ_rating_1749913773.png"
    },
    "listedSince": "2023-12-30 01:00:00",
    "lowestFBAPrice": 44999,
    "lowestFBMPrice": 41700,
    "marketplaceId": "APJ6JRA9NG5V4",
    "marketplaceNewPriceHistory": [
      [
        "2025-06-14",
        41700
      ]
    ],
    "offers": {
      "A11IL2PNWYJU7H": {
        "isFBA": true,
        "lastUpdated": "2025-06-14 17:08:00",
        "priceHistory": [
          [
            "2025-06-14 06:22:00",
            44999,
            0
          ]
        ],
        "stockHistory": [
          [
            "2025-05-29 11:32:00",
            1
          ]
        ]
      },
      "A12FLY25DT7QO0": {
        "isFBA": false,
        "lastUpdated": "2025-06-14 17:08:00",
        "priceHistory": [
          [
            "2025-06-09 15:32:00",
            41800,
            0
          ]
        ],
        "stockHistory": [
          [
            "2025-06-14 13:34:00",
            49
          ]
        ]
      },
      "A18KSDUE00UP6J": {
        "isFBA": false,
        "lastUpdated": "2025-06-14 17:08:00",
        "priceHistory": [
          [
            "2025-05-29 11:32:00",
            42890,
            0
          ]
        ],
        "stockHistory": [
          [
            "2025-05-30 18:30:00",
            3
          ]
        ]
      }
    },
    "productReviewAverage": 4.7,
    "productTotalReviews": 3129,
    "rootCategory": {
      "id": 412603031,
      "name": "Videogiochi"
    },
    "stats": {
      "amazonAsSellerPriceHistory": [
        [
          "2025-06-14",
          44999
        ]
      ],
      "buyBoxPriceHistory": [
        [
          "2025-06-13",
          41700
        ]
      ],
      "monthlySoldHistory": [
        [
          "2025-06",
          1000
        ]
      ],
      "productRatingCountHistory": [
        [
          "2025-06-14 15:28:00",
          3129
        ]
      ],
      "productRatingHistory": [
        [
          "2025-02-02 01:30:00",
          4.7
        ]
      ],
      "salesRankHistory": [
        [
          "2025-06-14 01:58:00",
          15
        ]
      ]
    }
  }
}

Practical Use Cases and Examples

1. Price Monitoring and Alerting

Track price fluctuations of specific products and receive alerts when the price drops below a certain threshold. This allows you to capitalize on opportunities and adjust your pricing strategy accordingly.


import requests
import time

api_key = "YOUR_API_KEY"
asin = "B08N5WRWNW"
marketplace_id = "A1PA6795UKMFR9"
price_threshold = 50.00  # Set your desired price threshold

def check_price(asin, marketplace_id, api_key):
    url = f"https://sellermagnet-api.com/amazon-product-statistics?api_key={api_key}&asin={asin}&marketplaceId={marketplace_id}"
    response = requests.get(url)
    if response.status_code == 200:
        data = response.json()
        price = data['data']['buyBoxPrice'] / 100.0  # Convert cents to dollars
        print(f"Current price for ASIN {asin}: ${price}")
        if price < price_threshold:
            print(f"Alert: Price for ASIN {asin} is below threshold: ${price}")
            # Add your alerting logic here (e.g., send an email)
        return price
    else:
        print(f"Error: {response.status_code} - {response.text}")
        return None

while True:
    check_price(asin, marketplace_id, api_key)
    time.sleep(3600)  # Check every hour

2. Sales Rank Tracking

Monitor the sales rank of your products to understand their performance over time. A lower sales rank indicates better sales performance.


import requests
import time

api_key = "YOUR_API_KEY"
asin = "B08N5WRWNW"
marketplace_id = "A1PA6795UKMFR9"

def get_sales_rank(asin, marketplace_id, api_key):
    url = f"https://sellermagnet-api.com/amazon-product-statistics?api_key={api_key}&asin={asin}&marketplaceId={marketplace_id}"
    response = requests.get(url)
    if response.status_code == 200:
        data = response.json()
        sales_rank = data['data']['bestSellerRank']
        print(f"Current sales rank for ASIN {asin}: {sales_rank}")
        return sales_rank
    else:
        print(f"Error: {response.status_code} - {response.text}")
        return None

while True:
    get_sales_rank(asin, marketplace_id, api_key)
    time.sleep(86400)  # Check every day

3. Competitor Monitoring

Keep an eye on your competitors by tracking their pricing, stock levels, and seller reviews. This can help you identify opportunities to gain a competitive edge.


import requests

api_key = "YOUR_API_KEY"
asin = "B08N5WRWNW"
marketplace_id = "A1PA6795UKMFR9"

def get_competitor_data(asin, marketplace_id, api_key):
    url = f"https://sellermagnet-api.com/amazon-product-offers?api_key={api_key}&asin={asin}&marketplaceId={marketplace_id}"
    response = requests.get(url)
    if response.status_code == 200:
        data = response.json()
        offers = data['data']['offers']
        for offer in offers:
            print(f"Seller: {offer['sellerName']}, Price: {offer['totalPrice']}, Condition: {offer['condition']}")
        return offers
    else:
        print(f"Error: {response.status_code} - {response.text}")
        return None

get_competitor_data(asin, marketplace_id, api_key)

4. ASIN/EAN Conversion

Convert between ASIN and EAN identifiers for product identification and management.


import requests

api_key = "YOUR_API_KEY"
asin = "B08N5WRWNW"
marketplace_id = "A1PA6795UKMFR9"
conversion_direction = "asin-to-ean"

def convert_asin_to_ean(asin, marketplace_id, conversion_direction, api_key):
    url = f"https://sellermagnet-api.com/amazon-asin-converter?api_key={api_key}&asin={asin}&marketplaceId={marketplace_id}&conversion_direction={conversion_direction}"
    response = requests.get(url)
    if response.status_code == 200:
        data = response.json()
        ean_list = data['data']['eanList']
        print(f"EAN list for ASIN {asin}: {ean_list}")
        return ean_list
    else:
        print(f"Error: {response.status_code} - {response.text}")
        return None

convert_asin_to_ean(asin, marketplace_id, conversion_direction, api_key)

SellerMagnet API Endpoints for Automation

Here’s a quick overview of some useful SellerMagnet API endpoints for automating your Amazon product monitoring:

Benefits of Using SellerMagnet

  • Comprehensive Data: Access a wide range of product and seller information.
  • Reliable API: Ensure consistent and accurate data retrieval.
  • Easy Integration: Seamlessly integrate with your existing systems using Python.
  • Scalable Solution: Handle large volumes of data for extensive monitoring.

Conclusion

Automating Amazon product monitoring with Python and the SellerMagnet API empowers businesses to make informed decisions, stay competitive, and optimize their strategies. By leveraging the power of data, you can unlock new opportunities and drive success in the ever-evolving e-commerce landscape.

Ready to get started? Visit SellerMagnet to explore our pricing plans and try our API for free. Don't forget to check our Documentation and Code Examples for more details.

Back to Blog