The Amazon Search API is a robust Node.js application tailored for searching and extracting product data from Amazon's website. It's designed to aid developers in acquiring detailed product information for use in data analysis, market research, and e-commerce applications.
- Advanced Data Search: Retrieves comprehensive product information, including names, prices, descriptions, ratings, and reviews.
- Flexible Search Parameters: Users can specify search criteria such as keywords, categories, or specific products.
- JSON and CSV Data Output: Delivers search results in both JSON and CSV formats for versatile data handling.
- Reliable Error Handling: Effectively manages common issues like network interruptions or website structure changes.
- Responsible Search Practices: Implements rate limiting and IP rotation to maintain compliance with Amazon's website policies.
Prerequisites include Node.js (version 14 or higher). Clone the repository:
git clone https://github.com/solletivivek/amazone-search-api.git
cd amazon-search-api
Install necessary dependencies:
npm install
Run the search process:
node index.js
To customize searches, modify the config.json
with your desired search parameters.
Update the config.json
file to set up your search preferences:
{
"searchUrl": "https://www.amazon.com",
"searchKeywords": ["electronics", "latest books"],
"outputFormat": "json",
"proxySettings": {
"enableProxy": true,
"proxyList": ["http://example-proxy.com:8080", "http://another-proxy.com:8080"]
}
}
- GET
/search
: Starts the search operation based on configured parameters. - GET
/results
: Retrieves the latest search results in the chosen format.
Contributions to improve or expand the API are highly appreciated:
- Fork the repository.
- Create a new branch for your feature or fix.
- Make your changes.
- Push to your branch.
- Create a pull request.
Additional documentation, located in the docs
folder, includes detailed information on advanced configurations, proxy management, and troubleshooting.
The Amazon Search API is intended solely for educational and research purposes. Ensure compliance with Amazon's terms of service and legal guidelines, as unauthorized data retrieval may breach these terms.