Automating Amazon Market Insights with SellerMagnetAPI and Python

Automating Amazon Market Insights with SellerMagnetAPI and Python

By John Smith | July 16, 2025

Automating Amazon Market Insights with SellerMagnetAPI and Python

In today's competitive e-commerce landscape, Amazon businesses and market analysts require real-time, accurate data to make informed decisions. Manually collecting and analyzing this data is time-consuming and prone to errors. SellerMagnet API (https://sellermagnet-api.com) provides an enterprise-grade solution for automating Amazon market insights using Python. This blog post will guide you through practical use cases and examples, demonstrating how to leverage SellerMagnet API for competitive analysis, inventory management, and market research.

Note: The blog post thumbnail will be auto-generated using SellerMagnet’s internal image generation API.

Why Automate Amazon Market Insights?

Automating data collection and analysis offers several key advantages:

  • Real-time Data: Access up-to-the-minute information on product pricing, sales rank, and competitor activity.
  • Scalability: Process large volumes of data quickly and efficiently.
  • Accuracy: Eliminate human error in data collection and analysis.
  • Cost-Effectiveness: Reduce manual labor and improve resource allocation.
  • Informed Decision-Making: Gain actionable insights to optimize pricing strategies, inventory management, and marketing campaigns.

Getting Started with SellerMagnetAPI

To begin, you'll need a SellerMagnet API key. You can Try Free on our platform.

Prerequisites:

  • Python 3.6+
  • `requests` library: Install using pip install requests

Practical Use Cases and Examples

1. Competitive Analysis: Tracking Product Statistics

The Amazon Product Statistics endpoint allows you to retrieve detailed statistics for an Amazon product, including sales rank, review counts, and pricing history. This information is crucial for understanding your competitors' performance and identifying market trends.

Endpoint: /amazon-product-statistics

Method: GET

Parameters:

  • asin (required): Product ASIN (e.g., "B08N5WRWNW")
  • marketplaceId (required): Marketplace ID (e.g., "A1PA6795UKMFR9")
  • api_key (required): Your API key
  • graphs (optional): Generate visually graphs for history data

Python Code Example:


import requests

api_key = 'YOUR_API_KEY'
asin = 'B08N5WRWNW'
marketplace_id = 'A1PA6795UKMFR9'

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

try:
    response = requests.get(url)
    response.raise_for_status()  # Raises HTTPError for bad requests (4XX, 5XX)
    data = response.json()
    print(data)
except requests.exceptions.HTTPError as errh:
    print(f"HTTP Error: {errh}")
except requests.exceptions.ConnectionError as errc:
    print(f"Connection Error: {errc}")
except requests.exceptions.Timeout as errt:
    print(f"Timeout Error: {errt}")
except requests.exceptions.RequestException as err:
    print(f"Request Error: {err}")

Response Example:


{
  "success": true,
  "data": {
    "asin": "B0CLTBHXWQ",
    "amazonPrice": 41800,
    "bestSellerRank": 15,
    "buyBoxPrice": 41800,
    "buyBoxFulfillment": "FBM",
    "buyBoxSellerIdHistory": [
      [
        "2025-06-14 17:08:00",
        "A2I59UVTUWUFH0"
      ]
    ],
    "salesRankHistory": [
      [
        "2025-06-14 01:58:00",
        15
      ]
    ],
    "trackingSince": "2023-12-30"
    "graphs": {
          "priceTrend": [
            {
              "timestamp": "2025-06-14T17:08:00",
              "price": 41800
            }
          ],
          "rankTrend": [
            {
              "timestamp": "2025-06-14T17:08:00",
              "rank": 15
            }
          ]
        },
  }
}

This allows you to track price fluctuations and sales rank changes over time, which can inform your pricing and marketing strategies.

2. Inventory Management: Converting ASINs to EANs

The Amazon ASIN Converter endpoint is useful for managing inventory across different platforms. It allows you to convert between ASIN and EAN identifiers.

Endpoint: /amazon-asin-converter

Method: GET

Parameters:

  • asin (required): ASIN or EAN to convert (e.g., "B08N5WRWNW" or "9781234567890")
  • marketplaceId (required): Marketplace ID (e.g., "A1PA6795UKMFR9")
  • conversion_direction (required): Conversion direction: "asin-to-ean" or "ean-to-asin"
  • api_key (required): Your API key

Python Code Example:


import requests

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

url = f'https://sellermagnet-api.com/amazon-asin-converter?asin={asin}&marketplaceId={marketplace_id}&conversion_direction={conversion_direction}&api_key={api_key}'

try:
    response = requests.get(url)
    response.raise_for_status()
    data = response.json()
    print(data)
except requests.exceptions.HTTPError as errh:
    print(f"HTTP Error: {errh}")
except requests.exceptions.ConnectionError as errc:
    print(f"Connection Error: {errc}")
except requests.exceptions.Timeout as errt:
    print(f"Timeout Error: {errt}")
except requests.exceptions.RequestException as err:
    print(f"Request Error: {err}")

Response Example:


{
  "success": true,
  "data": {
    "asin": "B0CLTBHXWQ",
    "eanList": [
      "0711719577294"
    ],
    "listedSince": "2023-12-30 01:00:00",
    "productTitle": "Playstation 5 Console Edizione Digital Slim"
  }
}

3. Market Research: Analyzing Seller Reviews

Understanding customer sentiment towards sellers is crucial for making informed purchasing decisions and identifying potential partners. The Get Amazon Seller Review endpoint allows you to fetch review details for a specific Amazon seller.

Endpoint: /amazon-seller-review

Method: GET

Parameters:

  • sellerId (required): Seller ID (e.g., "A1B2C3D4E5F6G7")
  • marketplaceId (required): Marketplace ID (e.g., "A1PA6795UKMFR9")
  • api_key (required): Your API key

Python Code Example:


import requests

api_key = 'YOUR_API_KEY'
seller_id = 'A1CWSGXIR635I6'
marketplace_id = 'ATVPDKIKX0DER'

url = f'https://sellermagnet-api.com/amazon-seller-review?sellerId={seller_id}&marketplaceId={marketplace_id}&api_key={api_key}'

try:
    response = requests.get(url)
    response.raise_for_status()
    data = response.json()
    print(data)
except requests.exceptions.HTTPError as errh:
    print(f"HTTP Error: {errh}")
except requests.exceptions.ConnectionError as errc:
    print(f"Connection Error: {errc}")
except requests.exceptions.Timeout as errt:
    print(f"Timeout Error: {errt}")
except requests.exceptions.RequestException as err:
    print(f"Request Error: {err}")

Response Example:


{
  "success": true,
  "data": {
    "marketplace": {
      "ATVPDKIKX0DER": {
        "last5Reviews": [
          {
            "dateRated": "By gary kraus on June 5, 2025.",
            "reviewText": "great",
            "starRating": "5 out of 5 stars"
          }
        ],
        "sellerFeedback": {
          "30": {
            "rating": "3.3",
            "reviewsCount": "7"
          }
        }
      }
    },
    "sellerId": "A1CWSGXIR635I6"
  }
}

4. Product Details: Retrieving Product Information

The Get Amazon Product endpoint retrieves comprehensive product details, including ASIN, title, description, images, and pricing. This data is essential for building product catalogs and monitoring product listings.

Endpoint: /amazon-product-lookup

Method: GET

Parameters:

  • asin (required): Product ASIN (e.g., 'B08N5WRWNW')
  • marketplaceId (required): Marketplace ID (e.g., 'A1PA6795UKMFR9')
  • api_key (required): Your API key

Python Code Example:


import requests

api_key = 'YOUR_API_KEY'
asin = 'B0CL61F39H'
marketplace_id = 'ATVPDKIKX0DER'

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

try:
    response = requests.get(url)
    response.raise_for_status()
    data = response.json()
    print(data)
except requests.exceptions.HTTPError as errh:
    print(f"HTTP Error: {errh}")
except requests.exceptions.ConnectionError as errc:
    print(f"Connection Error: {errc}")
except requests.exceptions.Timeout as errt:
    print(f"Timeout Error: {errt}")
except requests.exceptions.RequestException as err:
    print(f"Request Error: {err}")

Response Example:


{
  "success": true,
  "data": {
    "productInfo": {
      "additionalDetails": {
        "ASIN": "B0CL61F39H",
        "Batteries": "1 Lithium Ion batteries required. (included)"
      },
      "asin": "B0CL61F39H",
      "bestsellerRanks": {
        "main_category": {
          "name": "Video Games",
          "rank": 31
        }
      },
      "bulletPoints": [
        "Model Number CFI-2000"
      ],
      "buyBoxInfo": {
        "currencyCode": "USD",
        "currencyName": "United States Dollar",
        "currencySymbol": "$",
        "price": 444.99,
        "sellerId": "A3853PJW50SJG8"
      },
      "categories": {
        "bestsellerCategory": [
          {
            "id": "20972781011",
            "index": 1,
            "name": "PlayStation 5",
            "url": "https://www.amazon.com/b/ref=dp_bc_2?ie=UTF8&node=20972781011"
          }
        ],
        "rootCategory": {
          "id": "468642",
          "name": "Video Games",
          "url": "https://www.amazon.com/computer-video-games-hardware-accessories/b/ref=dp_bc_1?ie=UTF8&node=468642"
        }
      },
      "description": [
        "Model Number CFI-2000"
      ],
      "details": {
        "ASIN": "B0CL61F39H",
        "Batteries": "1 Lithium Ion batteries required. (included)"
      },
      "hasAPlusContent": true,
      "images": [
        "https://m.media-amazon.com/images/I/41ECK5cY-2L._SL1000_.jpg"
      ],
      "link": "https://www.amazon.com/dp/B0CL61F39H",
      "listedSinceDate": "2023-12-10",
      "mainImage": "https://m.media-amazon.com/images/I/31kTNmpm6vL.jpg",
      "marketplaceId": "ATVPDKIKX0DER",
      "reviews": {
        "averageRating": 4.7,
        "reviewSummary": "4.7 out of 5 stars",
        "totalReviews": 7092
      },
      "title": "PlayStation
c5 console (slim)",
      "variations": [
        {
          "asin": "B0F6968Y5G",
          "attributes": {
            "Pattern Name": "PS5 w/ Black Ops Bundle",
            "Style": "PlayStation
c5 Digital Edition (slim)"
          }
        }
      ],
      "videos": [
        "https://m.media-amazon.com/S/vse-vms-transcoding-artifact-us-east-1-prod/8af0ddf1-55f5-4e71-9463-39602c3edbae/default.jobtemplate.hls.m3u8"
      ]
    }
  }
}

5. Monitoring Product Offers and Pricing

The Get Amazon Product Offers endpoint provides a list of offers for a specific product, including price, seller, condition, and inventory details. This is useful for tracking competitor pricing and inventory levels.

Endpoint: /amazon-product-offers

Method: GET

Parameters:

  • asin (required): Product ASIN (e.g., 'B08N5WRWNW')
  • marketplaceId (required): Marketplace ID (e.g., 'A1PA6795UKMFR9')
  • geo_location (optional): Detailed Geo Location ZIP CODE
  • api_key (required): Your API key

Python Code Example:


import requests

api_key = 'YOUR_API_KEY'
asin = 'B0CL61F39H'
marketplace_id = 'ATVPDKIKX0DER'

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

try:
    response = requests.get(url)
    response.raise_for_status()
    data = response.json()
    print(data)
except requests.exceptions.HTTPError as errh:
    print(f"HTTP Error: {errh}")
except requests.exceptions.ConnectionError as errc:
    print(f"Connection Error: {errc}")
except requests.exceptions.Timeout as errt:
    print(f"Timeout Error: {errt}")
except requests.exceptions.RequestException as err:
    print(f"Request Error: {err}")

Response Example:


{
  "success": true,
  "data": {
    "asin": "B0CL61F39H",
    "buyBox": {
      "condition": "New",
      "deliveryDate": "2025-06-28",
      "fulfillmentType": "FBA",
      "inventory": 30,
      "positivePercentage": 0,
      "priceWithoutShipping": 499,
      "sellerId": "Amazon",
      "sellerName": "Amazon",
      "shippingPrice": 0,
      "totalPrice": 499,
      "totalReviews": 0
    },
    "currency": {
      "code": "USD",
      "name": "United States Dollar",
      "symbol": "$"
    },
    "marketplaceId": "ATVPDKIKX0DER",
    "offers": [
      {
        "condition": "New",
        "deliveryDate": "2025-06-28",
        "fulfillmentType": "FBA",
        "inventory": 30,
        "positivePercentage": 0,
        "priceWithoutShipping": 499,
        "sellerId": "Amazon",
        "sellerName": "Amazon",
        "shippingPrice": 0,
        "totalPrice": 499,
        "totalReviews": 0
      }
    ],
    "productLink": "https://www.amazon.com/dp/B0CL61F39H",
    "productMainImage": "https://m.media-amazon.com/images/I/31kTNmpm6vL.jpg",
    "productTitle": "PlayStation
c5 console (slim)"
  }
}

6. Finding Bestsellers in a Category

Identify trending products and market opportunities with the Get Amazon Bestsellers endpoint, which retrieves the top-selling products in a specific category.

Endpoint: /amazon-bestsellers

Method: GET

Parameters:

  • category_id (required): Category ID (e.g., "electronics")
  • marketplaceId (required): Marketplace ID (e.g., "A1PA6795UKMFR9")
  • count (optional): Number of results (max 50, default 30)
  • api_key (required): Your API key

Python Code Example:


import requests

api_key = 'YOUR_API_KEY'
category_id = 'electronics'
marketplace_id = 'A1PA6795UKMFR9'

url = f'https://sellermagnet-api.com/amazon-bestsellers?category_id={category_id}&marketplaceId={marketplace_id}&api_key={api_key}'

try:
    response = requests.get(url)
    response.raise_for_status()
    data = response.json()
    print(data)
except requests.exceptions.HTTPError as errh:
    print(f"HTTP Error: {errh}")
except requests.exceptions.ConnectionError as errc:
    print(f"Connection Error: {errc}")
except requests.exceptions.Timeout as errt:
    print(f"Timeout Error: {errt}")
except requests.exceptions.RequestException as err:
    print(f"Request Error: {err}")

Response Example:


{
  "category": "electronics",
  "bestsellers": [
    {
      "asin": "B08N5WRWNW",
      "rank": 1,
      "title": "Top Product"
    }
  ]
}

7. Estimating Product Sales

Get insights into product performance with the Amazon Product Estimate Sales endpoint, which provides estimated sales data for a given ASIN.

Endpoint: /amazon-product-search-estimated-sells

Method: GET

Parameters:

  • asin (required): Product ASIN (e.g., "B08N5WRWNW")
  • marketplaceId (required): Marketplace ID (e.g., "A1PA6795UKMFR9")
  • api_key (required): Your API key

Python Code Example:


import requests

api_key = 'YOUR_API_KEY'
asin = 'B08N5WRWNW'
marketplace_id = 'A1PA6795UKMFR9'

url = f'https://sellermagnet-api.com/amazon-product-search-estimated-sells?asin={asin}&marketplaceId={marketplace_id}&api_key={api_key}'

try:
    response = requests.get(url)
    response.raise_for_status()
    data = response.json()
    print(data)
except requests.exceptions.HTTPError as errh:
    print(f"HTTP Error: {errh}")
except requests.exceptions.ConnectionError as errc:
    print(f"Connection Error: {errc}")
except requests.exceptions.Timeout as errt:
    print(f"Timeout Error: {errt}")
except requests.exceptions.RequestException as err:
    print(f"Request Error: {err}")

Response Example:


{
  "success": true,
  "data": {
    "asin": "B08N5WRWNW",
    "estimated_monthly_sales": 121
  }
}

Advanced Automation with DataPipeline

For more sophisticated automation, consider using SellerMagnet's DataPipeline to schedule regular data extraction and analysis. This allows you to build custom dashboards and reports, providing a comprehensive view of your market landscape.

Additional Resources

  • Documentation: Comprehensive guide to all API endpoints and parameters.
  • Code Examples: Ready-to-use code snippets in Python and other languages.
  • API Status: Check the current status and performance of the SellerMagnet API.
  • Pricing: Discover flexible pricing plans tailored to your business needs.
  • Contact: Reach out to our support team for assistance.

Conclusion

Automating Amazon market insights with SellerMagnet API and Python empowers businesses and market analysts to make data-driven decisions, optimize strategies, and gain a competitive edge. By leveraging the API's powerful endpoints, you can unlock valuable insights into product performance, competitor activity, and customer sentiment. Start exploring the SellerMagnet API today and transform your Amazon business!

Ready to get started? Try Free now!

Back to Blog