# DMart Scraper — India Grocery Prices, MRP & Stock (`yugenox/dmart-grocery-scraper`) Actor

Scrape DMart Ready (dmart.in) by keyword and store, PIN code or city: product name, brand, pack size, MRP, DMart price, saving, unit price, stock, category, image and link — one row per pack size per store. No login.

- **URL**: https://apify.com/yugenox/dmart-grocery-scraper.md
- **Developed by:** [Yugenox Corp](https://apify.com/yugenox) (community)
- **Categories:** E-commerce, Business
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.50 / 1,000 products

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## DMart Scraper: India grocery prices, MRP and stock

Scrape **DMart Ready** (dmart.in), the online store of India's DMart supermarkets. Search by keyword in one or many DMart stores and get every product with its **MRP, DMart price, saving, unit price (₹ per litre / kg), pack size, stock status, brand, category, image and link**. One row per pack size per store, so you can compare prices between cities, between pack sizes and over time. Pick stores by **store ID, PIN code or city**. No login, no cookies, no account.

### What you get

| | |
|---|---|
| **Product** | Product name with and without the pack size, brand, DMart product ID, SKU ID, article number, image, product link |
| **Pack size** | Variant (`1 L`, `5 kg`, `1 L x 12 U` …), what it measures (volume, weight, quantity), how many pack sizes the product has, which one DMart shows first |
| **Price** | MRP, DMart price, saving in ₹ and %, unit price exactly as DMart shows it (`₹ 73.00 / 1 L`) as a number plus its unit, currency |
| **Stock** | In stock now (yes/no, DMart's own rule), stock status, maximum quantity per order |
| **Category** | Top category, sub-category and product type (`Dairy & Beverages > Dairy > Milk`), veg / non-veg mark, DMart tags, offer text |
| **Context** | Store ID, the store's city and state, the PIN code you asked for, the keyword and the product's rank in DMart's results |

### How to use it

1. Enter one or more **keywords**: `milk`, `basmati rice`, `atta`, `Surf Excel`, `Amul`, `toor dal` …
2. Choose **where**: store IDs (e.g. `10151` Mumbai), **PIN codes** (e.g. `400104`, `560034`) or **cities** (e.g. `Mumbai`, `Bengaluru`, `Ahmedabad`). Prices and stock differ by store. Leave all three empty to use store 10151 (Mumbai).
3. Set **Max products** and run. Every keyword is searched in every store you chose.

Options: **Max products per search** (spread a big run evenly over keywords and stores), **Include out-of-stock products** (on by default), **Sort** (relevance, price low→high, price high→low, discount).

#### Input examples

The first 20 milk products in a Mumbai store:

```json
{
  "keywords": ["milk"],
  "storeIds": ["10151"],
  "maxItems": 20
}
```

Compare rice, atta and dal prices across every DMart Ready store in three cities, cheapest first, 50 per search:

```json
{
  "keywords": ["basmati rice", "atta", "toor dal"],
  "cities": ["Mumbai", "Bengaluru", "Ahmedabad"],
  "sortBy": "price_low_high",
  "maxItemsPerSearch": 50,
  "maxItems": 0
}
```

What a customer at a given PIN code can order right now:

```json
{
  "keywords": ["Surf Excel", "Tide", "Ariel"],
  "pincodes": ["560034"],
  "includeOutOfStock": false
}
```

#### Cities and stores

DMart Ready delivers from stores in Mumbai, Thane, Navi Mumbai, Kalyan, Palghar, Pune, Nagpur, Kolhapur, Ahmedabad, Anand, Vadodara, Surat, Bengaluru, Belagavi, Hyderabad, Khammam, Visakhapatnam, Vijayawada, Indore, Bhopal, Raipur, Bhilai, Jaipur, Chandigarh, Ghaziabad and Chennai. A PIN code or city that DMart Ready doesn't serve is skipped with a note in the run's status. The online range differs a lot between stores: big-city stores list thousands of products, a few stores list very few.

### Output example

One real row (milk at store 10151, Mumbai), trimmed:

```json
{
  "storeId": "10151",
  "storeCity": "Mumbai",
  "storeState": "Maharashtra",
  "searchQuery": "milk",
  "position": 1,
  "productId": "694006",
  "skuId": "11866",
  "name": "Amul Taaza Toned Milk : 1 L",
  "productName": "Amul Taaza Toned Milk",
  "brand": "Amul",
  "variant": "1 L",
  "variantCount": 2,
  "mrp": 77,
  "price": 73,
  "saving": 4,
  "savingPercent": 5,
  "currency": "INR",
  "unitPrice": 73,
  "unitPriceUnit": "1 L",
  "unitPriceText": "₹ 73.00 / 1 L",
  "inStock": true,
  "stockStatus": "IN_STOCK",
  "maxOrderQuantity": 15,
  "foodType": "veg",
  "categoryPath": "Dairy & Beverages > Dairy > Milk",
  "imageUrl": "https://cdn.dmart.in/images/products/JUL130000010xx6JUL26vvG1l_5_P.jpg",
  "url": "https://www.dmart.in/product/amul-taaza-toned-milk?selectedProd=11866",
  "scrapedAt": "2026-10-30T05:08:25.502Z"
}
```

The same product's 12-pack comes as its own row (`"variant": "1 L x 12 U"`, `"mrp": 924`, `"price": 894`, `"unitPrice": 74.5`). Every row has every field; missing values are `null`. Download as JSON, CSV, Excel or via the API.

### Use cases

- **Price intelligence**: track MRP, selling price and discount for your brand and competitors' brands, store by store.
- **Quick-commerce and retail benchmarking**: compare DMart prices with Blinkit, Zepto, BigBasket or your own store.
- **Assortment and availability**: see which pack sizes a store lists and what is out of stock.
- **Regional pricing**: the same product in Mumbai, Bengaluru and Ahmedabad side by side.
- **FMCG and market research**: build a catalogue of a category with brands, pack sizes and unit prices.

### Pricing

Pay per event:

- **$1.50 per 1,000 products** (one product = one pack size at one store, saved to your dataset).
- **$0.0002 per search with no new products**: a keyword × store search that DMart answered but that added nothing to your dataset (no results in that store, or everything was already saved by another keyword). A search that saves at least one product is never charged this.
- **$0.002 per run start.**

Examples: the 20-product example above costs about $0.032; 10,000 products cost about $15. Set **Maximum cost per run** in the run options and the run stops there — you are never charged past it.

### Tips

- Prices and stock are per store: use **cities** or **PIN codes** to cover a region, and **Max products per search** to keep big runs balanced.
- Use **Sort: price low→high** with a small Max products per search to get the cheapest options for each keyword.
- Schedule the actor daily or weekly to build a price history; `skuId` + `storeId` identify a row across runs.
- Keep the default Apify Proxy (datacenter); it comes with every Apify plan.

### FAQ

**Is it legal to scrape DMart?**
This Actor only collects publicly available data: product listings that anyone can see on dmart.in without an account — names, brands, pack sizes, prices, stock and categories. Collecting publicly available data is generally legal, but you're responsible for how you use it, including India's DPDP Act and other laws that apply to you, as well as DMart's terms. If you're unsure, check with a lawyer. More on this: [Is web scraping legal?](https://blog.apify.com/is-web-scraping-legal/)

**Does it access any private data?**
No. Everything comes from what DMart shows any visitor without logging in: product listings only. It never touches accounts, carts, orders or any customer data, and it follows the site's robots.txt.

**Why does the same product have several rows?**
One row per pack size (SKU) and per store, because each pack size has its own MRP, price and stock, and prices differ between stores.

**What is a store ID and how do I find one?**
DMart Ready prices each product per store, numbered like `10151`. You don't need to know them: give PIN codes or city names and the actor finds the right stores. Store IDs appear in every row, so you can reuse them.

**A search returned nothing — why?**
That store has no match for the keyword (some stores list only a small range online), or the spelling differs from DMart's. The run's status names empty searches and shows DMart's spelling suggestion when it has one.

**Why is the unit price empty for some products?**
The unit price is the one DMart prints under the price, in DMart's own unit (per 1 L, per 1 kg, sometimes per 1 ml or 1 g). DMart doesn't show one for every pack size; then `unitPrice` is `null`, and `variant` plus `price` still give you the pack size and its price.

**What happens if DMart is down or refuses the requests?**
The run stops with a plain message, keeps what it saved and charges nothing for products it didn't deliver.

**Can I get more fields?**
Every field DMart shows in its search results is in the output. Tell us in the Issues tab if you need something else.

*This Actor is not affiliated with, endorsed by or sponsored by Avenue Supermarts Ltd. (DMart).*

# Actor input Schema

## `keywords` (type: `array`):

What to search for on DMart Ready, e.g. "milk", "basmati rice", "Surf Excel", "atta", "Amul". Each keyword is a separate search in every store you choose.

## `storeIds` (type: `array`):

DMart Ready store numbers, e.g. 10151 (Mumbai), 10680 (Pune), 10677 (Bengaluru), 10682 (Hyderabad), 10681 (Ahmedabad). Prices and stock differ by store. Leave all three store fields empty to use 10151 (Mumbai).

## `pincodes` (type: `array`):

Optional: 6-digit Indian PIN codes, e.g. 400104 or 560034. Each is matched to the DMart Ready store that delivers there (PIN codes DMart Ready doesn't serve are skipped with a note).

## `cities` (type: `array`):

Optional: search every DMart Ready store in these cities, e.g. Mumbai, Pune, Bengaluru, Hyderabad, Ahmedabad, Surat, Vadodara, Nagpur, Indore, Bhopal, Jaipur, Chandigarh, Chennai, Thane, Navi Mumbai, Visakhapatnam, Vijayawada, Raipur.

## `maxItems` (type: `integer`):

Maximum number of rows for the whole run (one row = one pack size at one store). 0 = no limit.

## `maxItemsPerSearch` (type: `integer`):

Cap for each keyword × store search, so a big run is spread over all your keywords and stores. 0 = every result of each search.

## `includeOutOfStock` (type: `boolean`):

Keep products that are out of stock at the store (inStock = false). Turn off to save only what can be ordered right now.

## `sortBy` (type: `string`):

Order of DMart's results — it matters when you cap the number of products.

## `proxyConfiguration` (type: `object`):

Apify Proxy (datacenter) is the default and comes with every Apify plan. If connections to DMart keep failing on datacenter IPs, the run switches to residential proxies when your account has them.

## Actor input object example

```json
{
  "keywords": [
    "milk"
  ],
  "storeIds": [
    "10151"
  ],
  "maxItems": 20,
  "maxItemsPerSearch": 0,
  "includeOutOfStock": true,
  "sortBy": "relevance",
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `results` (type: `string`):

All scraped products (one row per pack size per store).

## `run` (type: `string`):

Status and statistics for this run.

## `report` (type: `string`):

RUN_REPORT: how the run ended, searches, counts, requests and proxy use.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "keywords": [
        "milk"
    ],
    "storeIds": [
        "10151"
    ],
    "maxItems": 20,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("yugenox/dmart-grocery-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "keywords": ["milk"],
    "storeIds": ["10151"],
    "maxItems": 20,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("yugenox/dmart-grocery-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "keywords": [
    "milk"
  ],
  "storeIds": [
    "10151"
  ],
  "maxItems": 20,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call yugenox/dmart-grocery-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,yugenox/dmart-grocery-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/btSgnah59svKYSD4J/builds/LDygRhvRNbqMsfKrQ/openapi.json
