Daraz

Daraz

by rigelbytes

Scrape product listings from Daraz.pk with the custom query, optional proxy, and pagination for e-commerce insights.

620 runs
90 users
Try This Actor

Opens on Apify.com

About Daraz

Scrape product listings from Daraz.pk with the custom query, optional proxy, and pagination for e-commerce insights.

What does this actor do?

Daraz is a web scraping and automation tool available on the Apify platform. It's designed to help you extract data and automate tasks efficiently in the cloud.

Key Features

  • Cloud-based execution - no local setup required
  • Scalable infrastructure for large-scale operations
  • API access for integration with your applications
  • Built-in proxy rotation and anti-blocking measures
  • Scheduled runs and webhooks for automation

How to Use

  1. Click "Try This Actor" to open it on Apify
  2. Create a free Apify account if you don't have one
  3. Configure the input parameters as needed
  4. Run the actor and download your results

Documentation

Daraz.pk Scraper by Rigel Bytes ## About the Scraper The Daraz.pk Scraper allows you to extract product listings and detailed information from Daraz, the largest e-commerce platform in Pakistan. Whether you're performing price comparisons, competitor analysis, or market research, this scraper will efficiently collect data like product details, prices, seller information, and more. ## Key Features - Extracts product details including name, price, rating, reviews, and availability. - Fetches seller information like seller name and location. - Optionally input a proxy for private and controlled scraping. - Scrape multiple pages of results by specifying the number of pages to extract. - Supports both JSON and CSV output formats. ## Use Cases - Price Monitoring: Track price changes across products. - Competitor Analysis: Gather insights about sellers, product availability, and ratings. - Market Research: Analyze trends across different product categories. ## Input Parameters - query (required): The search query (e.g., "laptop", "phone", "shoes"). - pages (optional): The number of pages to scrape (default: 1). - proxy (optional): Your own proxy to use during scraping (useful for large-scale scraping). ## Recommended Proxy Providers - ## Shifter - Reliable residential proxies all over the world. - Cheap rates - Order Shifter Now - Get 10% Off any product, use coupan rigelbytes-YoBB. - ## OxyLabs - 100M+ Proxies - Fastest proxies in the market - Real profile, human-like Residential IPs - Quality assurance framework for most reliable IPs - Get Proxies ## Learn More About Proxies ## 🙌 Why Buy Through Our Affiliate Link? - Exclusive Deals: Some providers may offer special discounts or bonuses when you use our link. - Support Our Work: Each purchase helps us maintain and improve the tools and services we provide. - No Extra Cost: You pay the same price, but part of it goes to supporting our efforts. ## API Request Examples ### Python shell from apify_client import ApifyClient # Initialize the ApifyClient with your API token client = ApifyClient("<YOUR_API_TOKEN>") # Prepare the Actor input run_input = { "query": "mouthwash", "pages": 3, "proxy": "http://username:password@proxyaddress:port" } # Run the Actor and wait for it to finish run = client.actor("rigelbytes/daraz").call(run_input=run_input) # Fetch and print Actor results from the run's dataset (if there are any) for item in client.dataset(run["defaultDatasetId"]).iterate_items(): print(item) ### Node.js shell import { ApifyClient } from 'apify-client'; // Initialize the ApifyClient with API token const client = new ApifyClient({ token: '<YOUR_API_TOKEN>', }); // Prepare Actor input const input = { "query": "mouthwash", "pages": 3, "proxy": "http://username:password@proxyaddress:port" }; (async () => { // Run the Actor and wait for it to finish const run = await client.actor("rigelbytes/daraz").call(input); // Fetch and print Actor results from the run's dataset (if any) console.log('Results from dataset'); const { items } = await client.dataset(run.defaultDatasetId).listItems(); items.forEach((item) => { console.dir(item); }); })(); ## cURL shell # Set API token API_TOKEN=<YOUR_API_TOKEN> # Prepare Actor input cat > input.json <<'EOF' { "query": "mouthwash", "pages": 3, "proxy": "http://username:password@proxyaddress:port" } EOF # Run the Actor curl "https://api.apify.com/v2/acts/rigelbytes/daraz/runs?token=$API_TOKEN" \ -X POST \ -d @input.json \ -H 'Content-Type: application/json' ## Output Output Image json { "name": { "format": "string", "label": "Name" }, "itemUrl": { "format": "link", "label": "URL" }, "image": { "format": "image", "label": "Primary Image" }, "price": { "format": "string", "label": "Price" }, "originalPriceShow": { "format": "string", "label": "Original Price Show" }, "priceShow": { "format": "string", "label": "Price (Unformatted)" }, "ratingScore": { "format": "string", "label": "Rating" }, "review": { "format": "string", "label": "Reviews" }, "nid": { "format": "string", "label": "Nid" }, "itemId": { "format": "link", "label": "Item ID" }, "isSmartImage": { "format": "boolean", "label": "Is Smart Image" }, "location": { "format": "string", "label": "Location" }, "sellerName": { "format": "string", "label": "Seller Name" }, "sellerId": { "format": "string", "label": "Seller ID" }, "brandName": { "format": "string", "label": "Brand Name" }, "brandId": { "format": "string", "label": "Brand ID" }, "cheapest_sku": { "format": "string", "label": "Cheapest SKU" }, "skuId": { "format": "string", "label": "SKU ID" }, "sku": { "format": "string", "label": "SKU" }, "showFeedBack": { "format": "boolean", "label": "Show Feedback" }, "inStock": { "format": "boolean", "label": "In Stock" }, "itemSoldCntShow": { "format": "string", "label": "Items Sold" }, "longImageDisplayable": { "format": "boolean", "label": "Long Image Displayable" }, "promotionId": { "format": "boolean", "label": "Promotion ID" }, "isSponsored": { "format": "boolean", "label": "Is Sponsored" }, "tItemType": { "format": "string", "label": "Item Type" }, "skuType": { "format": "string", "label": "SKU Type" }, "adFlag": { "format": "string", "label": "Ad Flag" }, "directSimilarUrl": { "format": "string", "label": "Direct Similar URL" }, "gridTitleLine": { "format": "string", "label": "Grid Title Line" }, "isFission": { "format": "string", "label": "Is Fission" }, "isBadgeAutoScroll": { "format": "boolean", "label": "Is Badge Auto Scroll" }, "showCart": { "format": "boolean", "label": "Show Cart" } } ## Requirements - An Apify account - Search Query. ## Understanding Proxies: When scraping data or browsing anonymously, proxies are essential. They act as intermediaries, masking your original IP address and allowing you to send requests from another location. ### Why Use Proxies? - Avoid IP Blocks: By routing requests through proxies, you prevent the target website from recognizing your IP as a scraper or spammer. - Access Geo-restricted Content: Proxies let you access content or websites restricted by location. - Enhance Anonymity: Hide your actual IP, ensuring privacy while scraping or browsing. ### Types of Proxies 1. Residential Proxies - Real IP addresses provided by ISPs to home users. - They mimic regular users, making them harder to detect. - Best for: Long-term, undetectable scraping, and avoiding blocks. 2. Data Center Proxies - IP addresses from servers in data centers. - Faster and cheaper than residential proxies but easier to detect and block. - Best for: High-speed scraping, but with a higher risk of detection. 3. Mobile Proxies - IPs provided by mobile carriers (3G/4G/5G networks). - Very difficult to detect, as they appear as regular mobile users. - Best for: Mobile-related scraping or avoiding sophisticated blocks. ### Rotating Proxies vs. Straight Proxies - Rotating Proxies: Every request you send goes through a different proxy, making it harder for websites to detect patterns. - Straight Proxies: All requests are sent through the same proxy, making it easier to track your IP. ## About Rigel Bytes Rigel Bytes specializes in web scraping, automation, and data analytics. We help businesses extract and leverage valuable data for informed decision-making. ## Contact Us Ready to unlock the power of data? Reach out to us at (contact@rigelbytes.com) or book an appointment with us to learn more about how we can help you achieve your data goals.

Categories

Common Use Cases

Market Research

Gather competitive intelligence and market data

Lead Generation

Extract contact information for sales outreach

Price Monitoring

Track competitor pricing and product changes

Content Aggregation

Collect and organize content from multiple sources

Ready to Get Started?

Try Daraz now on Apify. Free tier available with no credit card required.

Start Free Trial

Actor Information

Developer
rigelbytes
Pricing
Paid
Total Runs
620
Active Users
90
Apify Platform

Apify provides a cloud platform for web scraping, data extraction, and automation. Build and run web scrapers in the cloud.

Learn more about Apify

Need Professional Help?

Couldn't solve your problem? Hire a verified specialist on Fiverr to get it done quickly and professionally.

Find a Specialist

Trusted by millions | Money-back guarantee | 24/7 Support