API Documentation
This API allows you to scrape and compare PC component prices from multiple Bangladeshi e-commerce sites. Use it to build price comparison tools, PC building applications, or to monitor price changes.
Endpoints
GET
Search Products
/api/products
Search for products across all supported retailers.
Parameters:
- queryrequired - Search term
- limitoptional - Maximum number of products per retailer (default: 20)
Example Request:
GET /api/products?query=ryzen&limit=10
Example Response:
{ "products": [ { "name": "AMD Ryzen 5 5600X Processor", "price": "৳ 17,500", "image": "https://www.startech.com.bd/image/cache/catalog/processor/amd/5600x/5600x-500x500.jpg", "availability": "In Stock", "source": "Startech", "url": "https://www.startech.com.bd/amd-ryzen-5-5600x-processor" }, { "name": "AMD Ryzen 7 5800X Processor", "price": "৳ 27,500", "image": "https://www.startech.com.bd/image/cache/catalog/processor/amd/5800x/5800x-500x500.jpg", "availability": "In Stock", "source": "Startech", "url": "https://www.startech.com.bd/amd-ryzen-7-5800x-processor" }, // More products... ] }
GET
Get Components by Type
/api/components
Get PC components by type from all supported retailers.
Parameters:
- typerequired - Component type (cpu, cpu-cooler, motherboard, memory, storage, video-card, case, power-supply, monitor)
- searchoptional - Search term to filter results
- limitoptional - Maximum number of components per retailer (default: 20)
Example Request:
GET /api/components?type=cpu&search=ryzen&limit=10
Example Response:
{ "components": [ { "name": "AMD Ryzen 5 5600X Processor", "price": "৳ 17,500", "image": "https://www.startech.com.bd/image/cache/catalog/processor/amd/5600x/5600x-500x500.jpg", "availability": "In Stock", "source": "Startech", "url": "https://www.startech.com.bd/amd-ryzen-5-5600x-processor", "specs": { "Cores": "6", "Threads": "12", "Clock Speed": "3.7GHz", "Cache": "35MB Cache" } }, { "name": "AMD Ryzen 7 5800X Processor", "price": "৳ 27,500", "image": "https://www.techlandbd.com/image/cache/catalog/processor/amd/ryzen-7-5800x/amd-ryzen-7-5800x-processor-1-500x500.jpg", "availability": "In Stock", "source": "Techland", "url": "https://www.techlandbd.com/amd-ryzen-7-5800x-processor", "specs": { "Cores": "8", "Threads": "16", "Clock Speed": "3.8GHz", "Cache": "36MB Cache" } }, // More components... ] }
GET
Cross-Site Search
/api/cross-site-search
Find similar products across different retailers for price comparison.
Parameters:
- queryrequired - Product name to search for
- excludeSourceoptional - Retailer to exclude from results
- limitoptional - Maximum number of products per retailer (default: 10)
Example Request:
GET /api/cross-site-search?query=Ryzen%205%205600X&excludeSource=Startech
Example Response:
{ "crossSiteProducts": { "Techland": { "name": "AMD Ryzen 5 5600X Processor", "price": "৳ 17,800", "image": "https://www.techlandbd.com/image/cache/catalog/processor/amd/ryzen-5-5600x/amd-ryzen-5-5600x-processor-1-500x500.jpg", "availability": "In Stock", "source": "Techland", "url": "https://www.techlandbd.com/amd-ryzen-5-5600x-processor" }, "UltraTech": { "name": "AMD Ryzen 5 5600X Processor", "price": "৳ 17,600", "image": "https://www.ultratech.com.bd/image/cache/catalog/processor/amd/5600x/5600x-500x500.jpg", "availability": "In Stock", "source": "UltraTech", "url": "https://www.ultratech.com.bd/amd-ryzen-5-5600x-processor" }, "Potaka IT": { "name": "AMD Ryzen 5 5600X Processor", "price": "৳ 17,900", "image": "https://www.potakait.com/image/cache/catalog/processor/amd/5600x/5600x-500x500.jpg", "availability": "Out of Stock", "source": "Potaka IT", "url": "https://www.potakait.com/amd-ryzen-5-5600x-processor" }, "PC House": { "name": "AMD Ryzen 5 5600X Processor", "price": "৳ 17,700", "image": "https://www.pchouse.com.bd/image/cache/catalog/processor/amd/5600x/5600x-500x500.jpg", "availability": "In Stock", "source": "PC House", "url": "https://www.pchouse.com.bd/amd-ryzen-5-5600x-processor" }, "Skyland": { "name": "AMD Ryzen 5 5600X Processor", "price": "৳ 17,500", "image": "https://www.skyland.com.bd/image/cache/catalog/processor/amd/5600x/5600x-500x500.jpg", "availability": "In Stock", "source": "Skyland", "url": "https://www.skyland.com.bd/amd-ryzen-5-5600x-processor" } } }
Supported Retailers
- Startech
- Techland
- UltraTech
- Potaka IT
- PC House
- Skyland
Response Format
All endpoints return JSON responses with the following structure:
{ "products": [ { "name": "Product Name", "price": "৳ 12,500", "image": "https://example.com/image.jpg", "availability": "In Stock", "source": "Retailer Name", "url": "https://retailer.com/product" }, // More products... ] }
For the components endpoint, products may also include a specs
object with additional details.