{
  "data": {
    "id": "Age1VbMfI0AKGdbhI",
    "actId": "9Kt0zUt1GB6OQF3OB",
    "userId": "zq8lKbpLzTjGDayPC",
    "startedAt": "2026-11-21T09:47:00.621Z",
    "finishedAt": "2026-11-21T09:47:03.899Z",
    "status": "SUCCEEDED",
    "meta": {
      "origin": "CLI"
    },
    "stats": {
      "durationMillis": 3198,
      "runTimeSecs": 3.198,
      "computeUnits": 0.0035533333333333333,
      "imageSizeBytes": 319235072
    },
    "options": {
      "useCache": true,
      "betaPackages": false,
      "memoryMbytes": 4096,
      "diskMbytes": 8192
    },
    "createdByOrganizationMemberUserId": "GK9YjZRyQZVzOdoH5",
    "exitCode": 0,
    "inputSchema": "{\n  \"title\": \"Daraz Scraper Input\",\n  \"description\": \"Search Daraz by keyword, or browse a real Daraz category. Filter by price range, rating, and sort order across the Pakistan, Bangladesh, Sri Lanka, and Nepal storefronts.\",\n  \"type\": \"object\",\n  \"schemaVersion\": 1,\n  \"properties\": {\n    \"mode\": {\n      \"title\": \"Mode\",\n      \"type\": \"string\",\n      \"description\": \"What to fetch: search keywords, browse a category, or crawl one or more Daraz category/search URLs.\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"search\",\n        \"category\",\n        \"urls\"\n      ],\n      \"enumTitles\": [\n        \"Search products by keyword\",\n        \"Browse by category\",\n        \"Crawl category or search URLs\"\n      ],\n      \"default\": \"search\",\n      \"prefill\": \"search\"\n    },\n    \"countrySite\": {\n      \"title\": \"Country site\",\n      \"type\": \"string\",\n      \"description\": \"Which Daraz storefront to scrape.\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"pk\",\n        \"bd\",\n        \"lk\",\n        \"np\"\n      ],\n      \"enumTitles\": [\n        \"Pakistan — daraz.pk\",\n        \"Bangladesh — daraz.com.bd\",\n        \"Sri Lanka — daraz.lk\",\n        \"Nepal — daraz.com.np\"\n      ],\n      \"default\": \"pk\",\n      \"prefill\": \"pk\"\n    },\n    \"searchQuery\": {\n      \"title\": \"Search query\",\n      \"type\": \"string\",\n      \"description\": \"Free-text keyword (mode=search). Also used to narrow results within a category when mode=category.\",\n      \"editor\": \"textfield\",\n      \"default\": \"mobile phone\",\n      \"prefill\": \"mobile phone\"\n    },\n    \"searchQueries\": {\n      \"title\": \"Search queries (bulk)\",\n      \"type\": \"array\",\n      \"description\": \"Optional list of keywords for mode=search. Each keyword is crawled independently; results merge into one dataset with duplicates removed and the total capped by `maxItems`. When empty, `searchQuery` is used.\",\n      \"editor\": \"stringList\",\n      \"items\": {\n        \"type\": \"string\"\n      }\n    },\n    \"category\": {\n      \"title\": \"Category\",\n      \"type\": \"string\",\n      \"description\": \"Daraz category to browse (mode=category).\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"phones-tablets\",\n        \"computing\",\n        \"camera\",\n        \"home-appliances\",\n        \"fashion\",\n        \"shoes-clothing\",\n        \"jewellery-watches-eyewear\",\n        \"beauty-health\",\n        \"mother-baby\",\n        \"furniture-decor\",\n        \"home-improvement-tools\",\n        \"grocers-shop\",\n        \"sports-travel\",\n        \"motors-vehicles\",\n        \"books-games-music\"\n      ],\n      \"enumTitles\": [\n        \"Mobiles & Tablets\",\n        \"Computers & Laptops\",\n        \"Cameras\",\n        \"Home Appliances\",\n        \"Fashion\",\n        \"Shoes & Clothing\",\n        \"Watches, Sunglasses & Jewellery\",\n        \"Health & Beauty\",\n        \"Mother & Baby\",\n        \"Furniture & Decor\",\n        \"Tools, DIY & Outdoor\",\n        \"Groceries\",\n        \"Sports & Outdoors\",\n        \"Motors & Vehicles\",\n        \"Media, Music & Books\"\n      ],\n      \"default\": \"phones-tablets\",\n      \"prefill\": \"phones-tablets\"\n    },\n    \"startUrls\": {\n      \"title\": \"Category or search URLs\",\n      \"type\": \"array\",\n      \"description\": \"Daraz category pages (e.g. `https://www.daraz.pk/smartphones/`), catalog/search pages (e.g. `https://www.daraz.pk/catalog/?q=airpods`), or both. Filters present in a URL (price, rating, sort, keyword) are preserved. Product-detail pages and other domains are ignored. Used by mode=urls, and optionally alongside a keyword or category crawl.\",\n      \"editor\": \"stringList\",\n      \"items\": {\n        \"type\": \"string\"\n      }\n    },\n    \"brand\": {\n      \"title\": \"Brand\",\n      \"type\": \"string\",\n      \"description\": \"Only keep products whose brand exactly matches this name (case-insensitive), e.g. `Dell`, `Samsung`, `Nike`. Matched against the brand Daraz shows on the listing — leave empty to include all brands. Narrower than a dropdown because Daraz doesn't expose a fixed, query-independent brand list.\",\n      \"editor\": \"textfield\"\n    },\n    \"shippedFrom\": {\n      \"title\": \"Shipped from\",\n      \"type\": \"string\",\n      \"description\": \"Only keep products shipped from this region (case-insensitive exact match), e.g. `Punjab`, `Sindh`, `Local`, `Overseas` (Pakistan); `Dhaka`, `Chattogram` (Bangladesh); `Western`, `Southern` (Sri Lanka); `Bagmati Province` (Nepal). Matches Daraz's own \\\"Shipped From\\\" filter — leave empty to include all regions.\",\n      \"editor\": \"textfield\"\n    },\n    \"freeShippingOnly\": {\n      \"title\": \"Free shipping only\",\n      \"type\": \"boolean\",\n      \"description\": \"Only keep products that show a free-shipping / free-delivery badge.\",\n      \"default\": false,\n      \"prefill\": false\n    },\n    \"inStockOnly\": {\n      \"title\": \"In stock only\",\n      \"type\": \"boolean\",\n      \"description\": \"Only keep products Daraz currently reports as in stock.\",\n      \"default\": false,\n      \"prefill\": false\n    },\n    \"minPrice\": {\n      \"title\": \"Min price\",\n      \"type\": \"integer\",\n      \"description\": \"Drop products priced below this amount (in the storefront's local currency).\",\n      \"minimum\": 0,\n      \"maximum\": 100000000\n    },\n    \"maxPrice\": {\n      \"title\": \"Max price\",\n      \"type\": \"integer\",\n      \"description\": \"Drop products priced above this amount (in the storefront's local currency).\",\n      \"minimum\": 0,\n      \"maximum\": 100000000\n    },\n    \"minRating\": {\n      \"title\": \"Minimum rating\",\n      \"type\": \"string\",\n      \"description\": \"Only include products with at least this star rating.\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"0\",\n        \"1\",\n        \"2\",\n        \"3\",\n        \"4\",\n        \"5\"\n      ],\n      \"enumTitles\": [\n        \"Any rating\",\n        \"1 star & up\",\n        \"2 stars & up\",\n        \"3 stars & up\",\n        \"4 stars & up\",\n        \"5 stars only\"\n      ],\n      \"default\": \"0\",\n      \"prefill\": \"0\"\n    },\n    \"sortBy\": {\n      \"title\": \"Sort order\",\n      \"type\": \"string\",\n      \"description\": \"Result ordering, matching Daraz's own sort options.\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"popularity\",\n        \"priceasc\",\n        \"pricedesc\"\n      ],\n      \"enumTitles\": [\n        \"Popularity (best match)\",\n        \"Price: low to high\",\n        \"Price: high to low\"\n      ],\n      \"default\": \"popularity\",\n      \"prefill\": \"popularity\"\n    },\n    \"includeDetails\": {\n      \"title\": \"Include product details\",\n      \"type\": \"boolean\",\n      \"description\": \"Open each product page to add its full description, category path, all image URLs, and stock availability. Adds one extra request per emitted product; listing fields are still returned when a detail page cannot be read.\",\n      \"default\": false,\n      \"prefill\": false\n    },\n    \"maxItems\": {\n      \"title\": \"Max items\",\n      \"type\": \"integer\",\n      \"description\": \"Hard cap on the number of products emitted across all keywords and URLs in the run.\",\n      \"minimum\": 1,\n      \"maximum\": 2000,\n      \"default\": 50,\n      \"prefill\": 3\n    },\n    \"proxyConfiguration\": {\n      \"title\": \"Proxy configuration\",\n      \"type\": \"object\",\n      \"description\": \"Daraz's product-listing API accepts plain datacenter traffic, so the free AUTO group is sufficient. Left on by default for IP diversity across large runs.\",\n      \"editor\": \"proxy\",\n      \"prefill\": {\n        \"useApifyProxy\": true\n      },\n      \"default\": {\n        \"useApifyProxy\": true\n      }\n    }\n  },\n  \"required\": [\n    \"mode\",\n    \"countrySite\"\n  ]\n}",
    "readme": "# Daraz South Asia Product & Price Finder\n\nSearch **Daraz** — South Asia's largest online marketplace, covering Pakistan (daraz.pk), Bangladesh (daraz.com.bd), Sri Lanka (daraz.lk), and Nepal (daraz.com.np). Search products by keyword or browse Daraz's real category taxonomy (Mobiles & Tablets, Fashion, Health & Beauty, Groceries, and more), then filter by price range, star rating, and sort order. No login or cookies required.\n\n## What this actor does\n\n- **Three modes:** `search` (one keyword or a bulk list), `category` (browse Daraz's real navigation categories), and `urls` (crawl category, catalog, or search URLs you paste)\n- **Four storefronts:** Pakistan, Bangladesh, Sri Lanka, Nepal — pick per run, or let URL hosts choose their own\n- **Filters:** min/max price, minimum star rating, sort order (popularity / price low-high / price high-low), brand, shipped-from region, free-shipping only, in-stock only\n- **Rich product data:** price, discount %, rating, review count, units sold, seller, shipping origin, SKU, promo badges, and product images\n- **Optional detail enrichment:** full description, category path, complete image gallery, and availability from each product page\n- **Deduplicated and paginated:** merged keyword/URL runs never emit the same product twice; every keyword/URL gets a fair share of `maxItems`, with unused budget carried forward to later sources; pagination stops at `maxItems`, Daraz's `noMorePages` flag, or ten repeated pages\n- **Empty fields are omitted**\n\n## Output per product\n\n- `productId` — Daraz's internal item ID\n- `title` — product listing title\n- `price`, `priceFormatted` — numeric price and the storefront-formatted string (e.g. `Rs. 116,000`)\n- `originalPrice`, `discountPercentage` — only present when the item is on sale\n- `currency` — ISO code for the storefront (`PKR` / `BDT` / `LKR` / `NPR`)\n- `rating`, `reviewCount` — only present when the product has reviews\n- `itemsSoldText`, `itemsSold` — units sold, as shown and parsed to a number\n- `brand`, `brandId`, `sku`, `skuId`\n- `sellerName`, `sellerId`\n- `shippedFrom` — origin province/region as shown on the listing\n- `imageUrl` — primary product image\n- `productUrl` — canonical product page link\n- `inStock`, `isSponsored`, `freeShipping`\n- `badges`, `badgeText` — normalized promo labels (free shipping, coins, voucher, mall, campaign, flash sale) and their display text\n- `categoryIds` — Daraz's internal category IDs for the product\n- `countrySite`, `countryName` — which storefront the record came from (`pk` / `bd` / `lk` / `np`)\n- `description`, `categoryPath`, `imageUrls`, `availability` — only with `includeDetails`\n- `recordType: \"product\"`, `scrapedAt`\n\n## Input\n\n| Field | Type | Default | Description |\n|---|---|---|---|\n| `mode` | string | `search` | `search` (keyword), `category` (browse), or `urls` (paste URLs) |\n| `countrySite` | string | `pk` | `pk` / `bd` / `lk` / `np` — which Daraz storefront |\n| `searchQuery` | string | `mobile phone` | Free-text keyword (mode=search; also narrows results within `mode=category` — clear it to browse a whole category) |\n| `searchQueries` | array | – | Bulk keyword list for mode=search; merged, deduplicated, and capped by `maxItems` |\n| `category` | string | `phones-tablets` | Category to browse (mode=category) — see the dropdown for the full list |\n| `startUrls` | array | – | Daraz category/catalog/search URLs; URL filters are preserved. Used by mode=urls and alongside keyword/category crawls |\n| `brand` | string | – | Only keep products whose brand exactly matches this name (case-insensitive), e.g. `Samsung` |\n| `shippedFrom` | string | – | Only keep products shipped from this region (case-insensitive exact match), e.g. `Punjab`, `Dhaka` |\n| `freeShippingOnly` | boolean | `false` | Only keep products with a free-shipping badge |\n| `inStockOnly` | boolean | `false` | Only keep products Daraz currently reports as in stock |\n| `minPrice` | int | – | Drop products priced below this amount (local currency) |\n| `maxPrice` | int | – | Drop products priced above this amount (local currency) |\n| `minRating` | string | `0` | `0` (any) to `5` (5 stars only) |\n| `sortBy` | string | `popularity` | `popularity` / `priceasc` / `pricedesc` |\n| `includeDetails` | boolean | `false` | Add description, category path, gallery, and availability from each product page |\n| `maxItems` | int | `50` | Hard cap on emitted records across all keywords and URLs (1–2000); when several sources run, each gets a fair share and unused budget carries forward |\n| `proxyConfiguration` | object | `{\"useApifyProxy\": true}` | Apify proxy config (AUTO datacenter group is sufficient) |\n\n### Example: keyword search with price range\n\n```json\n{\n  \"mode\": \"search\",\n  \"countrySite\": \"pk\",\n  \"searchQuery\": \"wireless earbuds\",\n  \"minPrice\": 1000,\n  \"maxPrice\": 5000,\n  \"sortBy\": \"priceasc\",\n  \"maxItems\": 50\n}\n```\n\n### Example: browse a category, highly rated only\n\n```json\n{\n  \"mode\": \"category\",\n  \"countrySite\": \"bd\",\n  \"category\": \"beauty-health\",\n  \"minRating\": \"4\",\n  \"sortBy\": \"popularity\",\n  \"maxItems\": 100\n}\n```\n\n### Example: Nepal storefront, price high to low\n\n```json\n{\n  \"mode\": \"category\",\n  \"countrySite\": \"np\",\n  \"category\": \"computing\",\n  \"sortBy\": \"pricedesc\",\n  \"maxItems\": 30\n}\n```\n\n### Example: Sri Lanka search, narrow by keyword within a category\n\n```json\n{\n  \"mode\": \"category\",\n  \"countrySite\": \"lk\",\n  \"category\": \"sports-travel\",\n  \"searchQuery\": \"badminton\",\n  \"maxItems\": 40\n}\n```\n\n### Example: bulk keywords in one run\n\n```json\n{\n  \"mode\": \"search\",\n  \"countrySite\": \"pk\",\n  \"searchQueries\": [\"wireless earbuds\", \"bluetooth speaker\", \"power bank\"],\n  \"minRating\": \"4\",\n  \"maxItems\": 90\n}\n```\n\n### Example: crawl pasted category and search URLs\n\n```json\n{\n  \"mode\": \"urls\",\n  \"startUrls\": [\n    \"https://www.daraz.pk/smartphones/\",\n    \"https://www.daraz.com.bd/catalog/?q=airpods&sort=priceasc\"\n  ],\n  \"maxItems\": 80\n}\n```\n\n### Example: keyword search with full product detail\n\n```json\n{\n  \"mode\": \"search\",\n  \"countrySite\": \"np\",\n  \"searchQuery\": \"gas stove\",\n  \"includeDetails\": true,\n  \"maxItems\": 10\n}\n```\n\n## Use cases\n\n- **Price monitoring** — track pricing and discounts on specific products or categories across South Asian markets\n- **Market research** — compare product assortments and pricing between Pakistan, Bangladesh, Sri Lanka, and Nepal storefronts\n- **Competitor analysis** — monitor seller listings, ratings, and units-sold signals for a category\n- **Deal discovery** — filter by discount and rating to surface the best-value listings\n- **Catalog enrichment** — pull structured product data (images, brand, seller) for downstream cataloging\n\n## Data Source / Limitations\n\n- Data comes from Daraz's own product-listing endpoint (the same one that powers the on-site search and category pages) — no scraping of unofficial mirrors or third-party resellers.\n- Daraz's public search results page (`/catalog/`) is excluded by the site's `robots.txt`; this actor accesses it directly like the many third-party Daraz scrapers already on the market, and does not bypass any login, paywall, or CAPTCHA.\n- `sortBy` only exposes the three sort orders Daraz's own UI provides (`popularity`, `priceasc`, `pricedesc`) — Daraz does not offer a distinct \"newest\" sort on product listings, so it is not included.\n- `minRating` filters to Daraz's own rating buckets. Because most listings for a given search cluster at 4+ stars, low thresholds (1–3) and \"any rating\" often return very similar result sets — this reflects Daraz's actual rating distribution, not a bug.\n- Category names and slugs reflect Daraz's real, currently-live navigation taxonomy as of the last verification pass; Daraz occasionally renames or merges categories.\n- `brand` and `shippedFrom` are exact-match (case-insensitive) text filters rather than dropdowns — Daraz's brand and shipping-region lists differ per category/storefront and aren't a fixed, query-independent set, so they can't be enumerated reliably.\n- `startUrls` accepts category, catalog, and search pages only. Product-detail pages and non-Daraz domains are ignored; trial loads of unknown or retired category slugs are skipped without failing the run.\n- `includeDetails` opens one product page per emitted record. If a detail page is briefly rate-limited, that record still ships with its listing fields and the detail-only fields are simply absent.\n- Daraz reports the same headline `totalResults` for some listing endpoints and can return short pages before the real end of results; pagination therefore follows the site's exhaustion signal and `maxItems`, never a short-page guess.\n- Daraz serves at most 4,080 products for one search/category page (`102` pages of `40`), and its category endpoint occasionally re-serves an earlier page instead of advancing. To get deeper coverage, partition one query into several narrower runs (categories, price bands, keywords, or storefronts); this actor stops safely after ten repeated pages instead of looping.\n- `includeDetails` reads the product page's cookieless Product JSON-LD: description, category path, image gallery, SKU/MPN, and availability. Daraz's product JSON-LD does not carry the live charged price (only the struck-through list price), so `price`, `originalPrice`, and `discountPercentage` always come from the listing payload.\n- Customer review text, seller-profile metrics, and variant-level SKU pricing live on separate Daraz surfaces and are not part of this actor; `rating`, `reviewCount`, and `itemsSold` are the listing-level signals Daraz publishes.\n- Product-detail URLs are not accepted as crawl sources; `startUrls` takes category, catalog, and search pages, and `includeDetails` enriches the resulting listing records.\n- Daraz rate-limits a single IP after roughly 20–30 rapid listing requests. This actor rotates Apify proxy sessions every ten requests and, if the block persists, saves everything already scraped and says so in the run status instead of failing silently.\n\n## FAQ\n\n**Is this affiliated with Daraz?**  No. This is an independent, third-party actor that reads Daraz's public product-listing data. It is not endorsed by or affiliated with Daraz or Alibaba Group.\n\n**Do I need a Daraz account, login, or API key?**  No. All modes work without authentication.\n\n**Which countries are supported?**  Pakistan (`daraz.pk`), Bangladesh (`daraz.com.bd`), Sri Lanka (`daraz.lk`), and Nepal (`daraz.com.np`) — pick via `countrySite`.\n\n**Can I combine keyword search with a category?**  Yes — set `mode` to `category` and also fill in `searchQuery` to narrow results to that keyword within the chosen category.\n\n**Why do some products have no `rating` or `reviewCount`?**  Those fields are omitted when a product has no reviews yet — Daraz doesn't show a rating for unreviewed listings.\n\n**Why is `originalPrice` sometimes missing?**  It's only included when the product is actively discounted. Full-price listings only have `price`.\n\n**How many products can one run return?**  Up to `maxItems` (2,000) across all keywords and URLs, as long as Daraz serves them. Daraz caps a single query/category at 4,080 products; for deeper coverage, split the query into narrower runs by category, price band, or keyword.\n\n**Does `includeDetails` fill every product?**  It fills every product whose detail page answers normally. If a detail page is briefly rate-limited or unavailable, that row still ships with its listing fields and the detail-only fields are simply omitted.\n\n**How fresh is the data?**  Real-time — every run queries Daraz's live listing endpoint directly.\n\n**What does `itemsSoldText` vs `itemsSold` mean?**  `itemsSoldText` is Daraz's own display string (e.g. `\"16.1K sold\"`); `itemsSold` is that same value parsed into a plain number (`16100`) for easier filtering and sorting.\n",
    "actorDefinition": {
      "actorSpecification": 1,
      "name": "daraz-south-asia-product-and-price-finder",
      "title": "Daraz South Asia Product & Price Finder",
      "description": "Search Daraz products by keyword or category across the Pakistan, Bangladesh, Sri Lanka, and Nepal storefronts, with price, rating, brand and shipping filters.",
      "version": "1.0",
      "buildTag": "latest",
      "dockerfile": "../Dockerfile",
      "readme": "# Daraz South Asia Product & Price Finder\n\nSearch **Daraz** — South Asia's largest online marketplace, covering Pakistan (daraz.pk), Bangladesh (daraz.com.bd), Sri Lanka (daraz.lk), and Nepal (daraz.com.np). Search products by keyword or browse Daraz's real category taxonomy (Mobiles & Tablets, Fashion, Health & Beauty, Groceries, and more), then filter by price range, star rating, and sort order. No login or cookies required.\n\n## What this actor does\n\n- **Three modes:** `search` (one keyword or a bulk list), `category` (browse Daraz's real navigation categories), and `urls` (crawl category, catalog, or search URLs you paste)\n- **Four storefronts:** Pakistan, Bangladesh, Sri Lanka, Nepal — pick per run, or let URL hosts choose their own\n- **Filters:** min/max price, minimum star rating, sort order (popularity / price low-high / price high-low), brand, shipped-from region, free-shipping only, in-stock only\n- **Rich product data:** price, discount %, rating, review count, units sold, seller, shipping origin, SKU, promo badges, and product images\n- **Optional detail enrichment:** full description, category path, complete image gallery, and availability from each product page\n- **Deduplicated and paginated:** merged keyword/URL runs never emit the same product twice; every keyword/URL gets a fair share of `maxItems`, with unused budget carried forward to later sources; pagination stops at `maxItems`, Daraz's `noMorePages` flag, or ten repeated pages\n- **Empty fields are omitted**\n\n## Output per product\n\n- `productId` — Daraz's internal item ID\n- `title` — product listing title\n- `price`, `priceFormatted` — numeric price and the storefront-formatted string (e.g. `Rs. 116,000`)\n- `originalPrice`, `discountPercentage` — only present when the item is on sale\n- `currency` — ISO code for the storefront (`PKR` / `BDT` / `LKR` / `NPR`)\n- `rating`, `reviewCount` — only present when the product has reviews\n- `itemsSoldText`, `itemsSold` — units sold, as shown and parsed to a number\n- `brand`, `brandId`, `sku`, `skuId`\n- `sellerName`, `sellerId`\n- `shippedFrom` — origin province/region as shown on the listing\n- `imageUrl` — primary product image\n- `productUrl` — canonical product page link\n- `inStock`, `isSponsored`, `freeShipping`\n- `badges`, `badgeText` — normalized promo labels (free shipping, coins, voucher, mall, campaign, flash sale) and their display text\n- `categoryIds` — Daraz's internal category IDs for the product\n- `countrySite`, `countryName` — which storefront the record came from (`pk` / `bd` / `lk` / `np`)\n- `description`, `categoryPath`, `imageUrls`, `availability` — only with `includeDetails`\n- `recordType: \"product\"`, `scrapedAt`\n\n## Input\n\n| Field | Type | Default | Description |\n|---|---|---|---|\n| `mode` | string | `search` | `search` (keyword), `category` (browse), or `urls` (paste URLs) |\n| `countrySite` | string | `pk` | `pk` / `bd` / `lk` / `np` — which Daraz storefront |\n| `searchQuery` | string | `mobile phone` | Free-text keyword (mode=search; also narrows results within `mode=category` — clear it to browse a whole category) |\n| `searchQueries` | array | – | Bulk keyword list for mode=search; merged, deduplicated, and capped by `maxItems` |\n| `category` | string | `phones-tablets` | Category to browse (mode=category) — see the dropdown for the full list |\n| `startUrls` | array | – | Daraz category/catalog/search URLs; URL filters are preserved. Used by mode=urls and alongside keyword/category crawls |\n| `brand` | string | – | Only keep products whose brand exactly matches this name (case-insensitive), e.g. `Samsung` |\n| `shippedFrom` | string | – | Only keep products shipped from this region (case-insensitive exact match), e.g. `Punjab`, `Dhaka` |\n| `freeShippingOnly` | boolean | `false` | Only keep products with a free-shipping badge |\n| `inStockOnly` | boolean | `false` | Only keep products Daraz currently reports as in stock |\n| `minPrice` | int | – | Drop products priced below this amount (local currency) |\n| `maxPrice` | int | – | Drop products priced above this amount (local currency) |\n| `minRating` | string | `0` | `0` (any) to `5` (5 stars only) |\n| `sortBy` | string | `popularity` | `popularity` / `priceasc` / `pricedesc` |\n| `includeDetails` | boolean | `false` | Add description, category path, gallery, and availability from each product page |\n| `maxItems` | int | `50` | Hard cap on emitted records across all keywords and URLs (1–2000); when several sources run, each gets a fair share and unused budget carries forward |\n| `proxyConfiguration` | object | `{\"useApifyProxy\": true}` | Apify proxy config (AUTO datacenter group is sufficient) |\n\n### Example: keyword search with price range\n\n```json\n{\n  \"mode\": \"search\",\n  \"countrySite\": \"pk\",\n  \"searchQuery\": \"wireless earbuds\",\n  \"minPrice\": 1000,\n  \"maxPrice\": 5000,\n  \"sortBy\": \"priceasc\",\n  \"maxItems\": 50\n}\n```\n\n### Example: browse a category, highly rated only\n\n```json\n{\n  \"mode\": \"category\",\n  \"countrySite\": \"bd\",\n  \"category\": \"beauty-health\",\n  \"minRating\": \"4\",\n  \"sortBy\": \"popularity\",\n  \"maxItems\": 100\n}\n```\n\n### Example: Nepal storefront, price high to low\n\n```json\n{\n  \"mode\": \"category\",\n  \"countrySite\": \"np\",\n  \"category\": \"computing\",\n  \"sortBy\": \"pricedesc\",\n  \"maxItems\": 30\n}\n```\n\n### Example: Sri Lanka search, narrow by keyword within a category\n\n```json\n{\n  \"mode\": \"category\",\n  \"countrySite\": \"lk\",\n  \"category\": \"sports-travel\",\n  \"searchQuery\": \"badminton\",\n  \"maxItems\": 40\n}\n```\n\n### Example: bulk keywords in one run\n\n```json\n{\n  \"mode\": \"search\",\n  \"countrySite\": \"pk\",\n  \"searchQueries\": [\"wireless earbuds\", \"bluetooth speaker\", \"power bank\"],\n  \"minRating\": \"4\",\n  \"maxItems\": 90\n}\n```\n\n### Example: crawl pasted category and search URLs\n\n```json\n{\n  \"mode\": \"urls\",\n  \"startUrls\": [\n    \"https://www.daraz.pk/smartphones/\",\n    \"https://www.daraz.com.bd/catalog/?q=airpods&sort=priceasc\"\n  ],\n  \"maxItems\": 80\n}\n```\n\n### Example: keyword search with full product detail\n\n```json\n{\n  \"mode\": \"search\",\n  \"countrySite\": \"np\",\n  \"searchQuery\": \"gas stove\",\n  \"includeDetails\": true,\n  \"maxItems\": 10\n}\n```\n\n## Use cases\n\n- **Price monitoring** — track pricing and discounts on specific products or categories across South Asian markets\n- **Market research** — compare product assortments and pricing between Pakistan, Bangladesh, Sri Lanka, and Nepal storefronts\n- **Competitor analysis** — monitor seller listings, ratings, and units-sold signals for a category\n- **Deal discovery** — filter by discount and rating to surface the best-value listings\n- **Catalog enrichment** — pull structured product data (images, brand, seller) for downstream cataloging\n\n## Data Source / Limitations\n\n- Data comes from Daraz's own product-listing endpoint (the same one that powers the on-site search and category pages) — no scraping of unofficial mirrors or third-party resellers.\n- Daraz's public search results page (`/catalog/`) is excluded by the site's `robots.txt`; this actor accesses it directly like the many third-party Daraz scrapers already on the market, and does not bypass any login, paywall, or CAPTCHA.\n- `sortBy` only exposes the three sort orders Daraz's own UI provides (`popularity`, `priceasc`, `pricedesc`) — Daraz does not offer a distinct \"newest\" sort on product listings, so it is not included.\n- `minRating` filters to Daraz's own rating buckets. Because most listings for a given search cluster at 4+ stars, low thresholds (1–3) and \"any rating\" often return very similar result sets — this reflects Daraz's actual rating distribution, not a bug.\n- Category names and slugs reflect Daraz's real, currently-live navigation taxonomy as of the last verification pass; Daraz occasionally renames or merges categories.\n- `brand` and `shippedFrom` are exact-match (case-insensitive) text filters rather than dropdowns — Daraz's brand and shipping-region lists differ per category/storefront and aren't a fixed, query-independent set, so they can't be enumerated reliably.\n- `startUrls` accepts category, catalog, and search pages only. Product-detail pages and non-Daraz domains are ignored; trial loads of unknown or retired category slugs are skipped without failing the run.\n- `includeDetails` opens one product page per emitted record. If a detail page is briefly rate-limited, that record still ships with its listing fields and the detail-only fields are simply absent.\n- Daraz reports the same headline `totalResults` for some listing endpoints and can return short pages before the real end of results; pagination therefore follows the site's exhaustion signal and `maxItems`, never a short-page guess.\n- Daraz serves at most 4,080 products for one search/category page (`102` pages of `40`), and its category endpoint occasionally re-serves an earlier page instead of advancing. To get deeper coverage, partition one query into several narrower runs (categories, price bands, keywords, or storefronts); this actor stops safely after ten repeated pages instead of looping.\n- `includeDetails` reads the product page's cookieless Product JSON-LD: description, category path, image gallery, SKU/MPN, and availability. Daraz's product JSON-LD does not carry the live charged price (only the struck-through list price), so `price`, `originalPrice`, and `discountPercentage` always come from the listing payload.\n- Customer review text, seller-profile metrics, and variant-level SKU pricing live on separate Daraz surfaces and are not part of this actor; `rating`, `reviewCount`, and `itemsSold` are the listing-level signals Daraz publishes.\n- Product-detail URLs are not accepted as crawl sources; `startUrls` takes category, catalog, and search pages, and `includeDetails` enriches the resulting listing records.\n- Daraz rate-limits a single IP after roughly 20–30 rapid listing requests. This actor rotates Apify proxy sessions every ten requests and, if the block persists, saves everything already scraped and says so in the run status instead of failing silently.\n\n## FAQ\n\n**Is this affiliated with Daraz?**  No. This is an independent, third-party actor that reads Daraz's public product-listing data. It is not endorsed by or affiliated with Daraz or Alibaba Group.\n\n**Do I need a Daraz account, login, or API key?**  No. All modes work without authentication.\n\n**Which countries are supported?**  Pakistan (`daraz.pk`), Bangladesh (`daraz.com.bd`), Sri Lanka (`daraz.lk`), and Nepal (`daraz.com.np`) — pick via `countrySite`.\n\n**Can I combine keyword search with a category?**  Yes — set `mode` to `category` and also fill in `searchQuery` to narrow results to that keyword within the chosen category.\n\n**Why do some products have no `rating` or `reviewCount`?**  Those fields are omitted when a product has no reviews yet — Daraz doesn't show a rating for unreviewed listings.\n\n**Why is `originalPrice` sometimes missing?**  It's only included when the product is actively discounted. Full-price listings only have `price`.\n\n**How many products can one run return?**  Up to `maxItems` (2,000) across all keywords and URLs, as long as Daraz serves them. Daraz caps a single query/category at 4,080 products; for deeper coverage, split the query into narrower runs by category, price band, or keyword.\n\n**Does `includeDetails` fill every product?**  It fills every product whose detail page answers normally. If a detail page is briefly rate-limited or unavailable, that row still ships with its listing fields and the detail-only fields are simply omitted.\n\n**How fresh is the data?**  Real-time — every run queries Daraz's live listing endpoint directly.\n\n**What does `itemsSoldText` vs `itemsSold` mean?**  `itemsSoldText` is Daraz's own display string (e.g. `\"16.1K sold\"`); `itemsSold` is that same value parsed into a plain number (`16100`) for easier filtering and sorting.\n",
      "input": {
        "title": "Daraz Scraper Input",
        "description": "Search Daraz by keyword, or browse a real Daraz category. Filter by price range, rating, and sort order across the Pakistan, Bangladesh, Sri Lanka, and Nepal storefronts.",
        "type": "object",
        "schemaVersion": 1,
        "properties": {
          "mode": {
            "title": "Mode",
            "type": "string",
            "description": "What to fetch: search keywords, browse a category, or crawl one or more Daraz category/search URLs.",
            "editor": "select",
            "enum": [
              "search",
              "category",
              "urls"
            ],
            "enumTitles": [
              "Search products by keyword",
              "Browse by category",
              "Crawl category or search URLs"
            ],
            "default": "search",
            "prefill": "search"
          },
          "countrySite": {
            "title": "Country site",
            "type": "string",
            "description": "Which Daraz storefront to scrape.",
            "editor": "select",
            "enum": [
              "pk",
              "bd",
              "lk",
              "np"
            ],
            "enumTitles": [
              "Pakistan — daraz.pk",
              "Bangladesh — daraz.com.bd",
              "Sri Lanka — daraz.lk",
              "Nepal — daraz.com.np"
            ],
            "default": "pk",
            "prefill": "pk"
          },
          "searchQuery": {
            "title": "Search query",
            "type": "string",
            "description": "Free-text keyword (mode=search). Also used to narrow results within a category when mode=category.",
            "editor": "textfield",
            "default": "mobile phone",
            "prefill": "mobile phone"
          },
          "searchQueries": {
            "title": "Search queries (bulk)",
            "type": "array",
            "description": "Optional list of keywords for mode=search. Each keyword is crawled independently; results merge into one dataset with duplicates removed and the total capped by `maxItems`. When empty, `searchQuery` is used.",
            "editor": "stringList",
            "items": {
              "type": "string"
            }
          },
          "category": {
            "title": "Category",
            "type": "string",
            "description": "Daraz category to browse (mode=category).",
            "editor": "select",
            "enum": [
              "phones-tablets",
              "computing",
              "camera",
              "home-appliances",
              "fashion",
              "shoes-clothing",
              "jewellery-watches-eyewear",
              "beauty-health",
              "mother-baby",
              "furniture-decor",
              "home-improvement-tools",
              "grocers-shop",
              "sports-travel",
              "motors-vehicles",
              "books-games-music"
            ],
            "enumTitles": [
              "Mobiles & Tablets",
              "Computers & Laptops",
              "Cameras",
              "Home Appliances",
              "Fashion",
              "Shoes & Clothing",
              "Watches, Sunglasses & Jewellery",
              "Health & Beauty",
              "Mother & Baby",
              "Furniture & Decor",
              "Tools, DIY & Outdoor",
              "Groceries",
              "Sports & Outdoors",
              "Motors & Vehicles",
              "Media, Music & Books"
            ],
            "default": "phones-tablets",
            "prefill": "phones-tablets"
          },
          "startUrls": {
            "title": "Category or search URLs",
            "type": "array",
            "description": "Daraz category pages (e.g. `https://www.daraz.pk/smartphones/`), catalog/search pages (e.g. `https://www.daraz.pk/catalog/?q=airpods`), or both. Filters present in a URL (price, rating, sort, keyword) are preserved. Product-detail pages and other domains are ignored. Used by mode=urls, and optionally alongside a keyword or category crawl.",
            "editor": "stringList",
            "items": {
              "type": "string"
            }
          },
          "brand": {
            "title": "Brand",
            "type": "string",
            "description": "Only keep products whose brand exactly matches this name (case-insensitive), e.g. `Dell`, `Samsung`, `Nike`. Matched against the brand Daraz shows on the listing — leave empty to include all brands. Narrower than a dropdown because Daraz doesn't expose a fixed, query-independent brand list.",
            "editor": "textfield"
          },
          "shippedFrom": {
            "title": "Shipped from",
            "type": "string",
            "description": "Only keep products shipped from this region (case-insensitive exact match), e.g. `Punjab`, `Sindh`, `Local`, `Overseas` (Pakistan); `Dhaka`, `Chattogram` (Bangladesh); `Western`, `Southern` (Sri Lanka); `Bagmati Province` (Nepal). Matches Daraz's own \"Shipped From\" filter — leave empty to include all regions.",
            "editor": "textfield"
          },
          "freeShippingOnly": {
            "title": "Free shipping only",
            "type": "boolean",
            "description": "Only keep products that show a free-shipping / free-delivery badge.",
            "default": false,
            "prefill": false
          },
          "inStockOnly": {
            "title": "In stock only",
            "type": "boolean",
            "description": "Only keep products Daraz currently reports as in stock.",
            "default": false,
            "prefill": false
          },
          "minPrice": {
            "title": "Min price",
            "type": "integer",
            "description": "Drop products priced below this amount (in the storefront's local currency).",
            "minimum": 0,
            "maximum": 100000000
          },
          "maxPrice": {
            "title": "Max price",
            "type": "integer",
            "description": "Drop products priced above this amount (in the storefront's local currency).",
            "minimum": 0,
            "maximum": 100000000
          },
          "minRating": {
            "title": "Minimum rating",
            "type": "string",
            "description": "Only include products with at least this star rating.",
            "editor": "select",
            "enum": [
              "0",
              "1",
              "2",
              "3",
              "4",
              "5"
            ],
            "enumTitles": [
              "Any rating",
              "1 star & up",
              "2 stars & up",
              "3 stars & up",
              "4 stars & up",
              "5 stars only"
            ],
            "default": "0",
            "prefill": "0"
          },
          "sortBy": {
            "title": "Sort order",
            "type": "string",
            "description": "Result ordering, matching Daraz's own sort options.",
            "editor": "select",
            "enum": [
              "popularity",
              "priceasc",
              "pricedesc"
            ],
            "enumTitles": [
              "Popularity (best match)",
              "Price: low to high",
              "Price: high to low"
            ],
            "default": "popularity",
            "prefill": "popularity"
          },
          "includeDetails": {
            "title": "Include product details",
            "type": "boolean",
            "description": "Open each product page to add its full description, category path, all image URLs, and stock availability. Adds one extra request per emitted product; listing fields are still returned when a detail page cannot be read.",
            "default": false,
            "prefill": false
          },
          "maxItems": {
            "title": "Max items",
            "type": "integer",
            "description": "Hard cap on the number of products emitted across all keywords and URLs in the run.",
            "minimum": 1,
            "maximum": 2000,
            "default": 50,
            "prefill": 3
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Daraz's product-listing API accepts plain datacenter traffic, so the free AUTO group is sufficient. Left on by default for IP diversity across large runs.",
            "editor": "proxy",
            "prefill": {
              "useApifyProxy": true
            },
            "default": {
              "useApifyProxy": true
            }
          }
        },
        "required": [
          "mode",
          "countrySite"
        ]
      },
      "output": {
        "actorOutputSchemaVersion": 1,
        "title": "Daraz South Asia Product & Price Finder Output",
        "description": "Daraz products with title, price, discount, rating, seller, badges, SKU, shipping origin, and product URL across the Pakistan, Bangladesh, Sri Lanka, and Nepal storefronts. Optional detail enrichment adds description, category path, image gallery, and availability.",
        "properties": {
          "products": {
            "type": "string",
            "title": "Daraz products",
            "description": "Dataset containing all scraped Daraz products.",
            "template": "{{links.apiDefaultDatasetUrl}}/items"
          }
        }
      },
      "storages": {
        "dataset": {
          "actorSpecification": 1,
          "views": {
            "overview": {
              "title": "Products",
              "transformation": {
                "fields": [
                  "title",
                  "price",
                  "currency",
                  "rating",
                  "reviewCount",
                  "brand",
                  "sku",
                  "freeShipping",
                  "inStock",
                  "countrySite",
                  "productUrl"
                ]
              },
              "display": {
                "component": "table",
                "properties": {}
              }
            }
          }
        }
      },
      "environmentVariables": {}
    },
    "buildNumber": "1.0.2",
    "imageDigest": "901961347c70bd91dd3ecd78b60300ea1e762ab899573de98b1e11e299f957cc",
    "actVersion": {
      "sourceType": "SOURCE_FILES",
      "buildTag": "latest",
      "versionNumber": "1.0"
    },
    "usage": {
      "ACTOR_COMPUTE_UNITS": 0.0035533333333333333
    }
  }
}