daraz-scraper-api
v1.0.1
Published
A simple unofficial Daraz API scraper to search for products and get details.
Readme
daraz-scraper-api
An unofficial API scraper for Daraz to search and extract product data.
Installation
npm install daraz-scraper-apiUsage
const { searchDaraz } = require('daraz-scraper-api');
async function run() {
try {
const products = await searchDaraz("smart watch");
console.log(products);
} catch (error) {
console.error(error);
}
}
run();Response Format
[
{
"title": "Product Title",
"price": "Rs. 1,000",
"originalPrice": "Rs. 1,500",
"discount": "33%",
"rating": "4.5",
"sold": "100",
"location": "Colombo",
"image": "https://...",
"link": "https://..."
}
]