Amazon Price Tracker
Amazon Price Tracker is a web application that allows you to track the prices of products on Amazon.
Table of Contents
Features
- Fetches and tracks the prices of products on Amazon.
- Supports both new and used prices.
- Provides a simple API to retrieve price information.
Getting Started
Prerequisites
Before you begin, ensure you have met the following requirements:
- Go installed on your local machine.
- Gin framework for web application.
Installation
-
Clone the repository:
git clone https://github.com/missuo/AmazonPriceTracker
cd AmazonPriceTracker
-
Build and run the application:
go build main.go
./main
Usage
Once the application is running, you can access it through a web browser. Here are the available routes:
Example API request:
GET /price?link=https://www.amazon.com/dp/<product-id>
API Endpoint
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.
Contributing
Contributions are welcome! If you would like to contribute to this project, please open an issue or create a pull request.
License
This project is licensed under the Apache License.