DEV Community

Donny Nguyen
Donny Nguyen

Posted on • Originally published at rapidapi.com

Amazon Product Data API: Search, Compare, and Track Products

Amazon's official Product Advertising API requires an active Associates account with qualifying sales. For developers who just need product data for research, price tracking, or comparison tools — that's a barrier.

The Amazon Product Search API gives you Amazon product data without the Associates program requirement.

Quick Start

curl -X GET "https://amazon-product-search.p.rapidapi.com/amazon-product-search/search?query=wireless+headphones&limit=10" \
  -H "X-RapidAPI-Key: YOUR_API_KEY" \
  -H "X-RapidAPI-Host: amazon-product-search.p.rapidapi.com"
Enter fullscreen mode Exit fullscreen mode

Response:

{
  "results": [
    {
      "title": "Sony WH-1000XM5 Wireless Headphones",
      "price": "$278.00",
      "rating": 4.6,
      "reviews_count": 12450,
      "image": "https://images-na.ssl-images-amazon.com/...",
      "url": "https://amazon.com/dp/B09XS7JWHH"
    }
  ]
}
Enter fullscreen mode Exit fullscreen mode

Node.js — Product Comparison Tool

const axios = require('axios');

async function compareProducts(query) {
  const { data } = await axios.get(
    'https://amazon-product-search.p.rapidapi.com/amazon-product-search/search',
    {
      params: { query, limit: 15 },
      headers: {
        'X-RapidAPI-Key': process.env.RAPIDAPI_KEY,
        'X-RapidAPI-Host': 'amazon-product-search.p.rapidapi.com'
      }
    }
  );

  // Sort by best value (rating / price)
  const scored = data.results
    .filter(p => p.price && p.rating)
    .map(p => ({
      title: p.title.slice(0, 60),
      price: p.price,
      rating: p.rating,
      reviews: p.reviews_count,
      valueScore: (p.rating / parseFloat(p.price.replace('$',''))).toFixed(4)
    }))
    .sort((a, b) => b.valueScore - a.valueScore);

  return scored.slice(0, 5);
}

compareProducts('mechanical keyboard')
  .then(top5 => {
    console.log('Top 5 best value:');
    top5.forEach((p, i) => console.log(`${i+1}. ${p.title}${p.price} (${p.rating} stars)`));
  });
Enter fullscreen mode Exit fullscreen mode

Top 3 Use Cases

  1. Price Tracking — Monitor product prices over time and alert users to drops.
  2. Product Comparison — Build tools that compare ratings, reviews, and prices across options.
  3. Market Research — Analyze pricing trends and popular products in any category.

Pricing

Free tier for development and testing. Scale up with paid plans.

👉 Try the Amazon Product Search API free on RapidAPI


Related APIs by Donny Digital

Digital Products: Prompt Packs, Notion Templates & More on Gumroad

👉 Browse all APIs on RapidAPI

Top comments (0)