Amazon Price Tracker is a web application that allows you to track the prices of products on Amazon.
- Fetches and tracks the prices of products on Amazon.
- Supports both new and used prices.
- Provides a simple API to retrieve price information.
Before you begin, ensure you have met the following requirements:
- Go installed on your local machine.
- Gin framework for web application.
-
Clone the repository:
git clone https://github.com/missuo/AmazonPriceTracker cd AmazonPriceTracker
-
Build and run the application:
go build main.go ./main
Once the application is running, you can access it through a web browser. Here are the available routes:
-
/
: Home route that displays a welcome message. -
/price
: Price tracking route. You can provide a product link or ID as a query parameter to get the price information.
Example API request:
GET /price?link=https://www.amazon.com/dp/<product-id>
The API endpoint for retrieving product price information is:
GET /price?link=<Amazon-product-link>&id=<Amazon-product-id>
link
: The Amazon product link (e.g.,https://www.amazon.com/dp/<product-id>
).id
: (Optional) The Amazon product ID. If provided, it will be used instead of extracting the ID from the link.
Contributions are welcome! If you would like to contribute to this project, please open an issue or create a pull request.
This project is licensed under the Apache License.