A guide for integrating the Amazon Scraper API an amazon api from CognifyAPI to search products by ASIN and fetch real-time price, ASIN details, and Buy Box statistics from Amazon Marketplace with JSON results.
- API Documentation: Amazon Marketplace API Docs
- More Info: Amazon Marketplace API
- Official Website: CognifyAPI.com
- CognifyAPI Studio: Get an API key
- Search products by keyword.
- Use the alternate product-search endpoint.
- Retrieve product details by ASIN.
- Specify the Amazon domain and response currency.
| Endpoint | Description | Example parameters | Response example |
|---|---|---|---|
/amazon-product-search |
Search the product catalog. | product=laptop&domain=com¤cy=USD |
JSON sample |
/amazon-product-search-two |
Search products with the alternate search endpoint. | product=laptop&domain=com¤cy=USD |
JSON sample |
/amazon-product-details |
Retrieve a listing by ASIN. | asin=B0HGFTXXXM&domain=com¤cy=USD |
JSON sample |
These are endpoint-specific examples from the saved response fixtures. The product-search fixtures include only two products even though their result counts are higher, so they are not complete live result sets.
Base URL: https://api.cognifyapi.com
Send your API key in the x-cognifyapi-key header. Install Axios with npm install axios, set COGNIFY_API_KEY, then run index.js.
x-cognifyapi-key: YOUR_COGNIFY_API_KEY
{
"status": "success",
"query": {
"product": "laptop",
"domain": "com",
"currency": "USD"
},
"result": 22,
"productResults": [
{
"asin": "B0HNK4TKN3",
"title": "15.6 Inch Laptop Computer, N4020, 4GB DDR4 RAM, 128GB eMMC,with Windows 11",
"price": "$229.99",
"rating": "4.6",
"reviews": "2K",
"imageUrl": "https://m.media-amazon.com/images/I/71ZZSOpY3iL._AC_UY218_.jpg",
"productLink": "https://www.amazon.com/dp/B0HNK4TKN3"
}
]
}