# IndiaMart Supplier Scraper (`shahidirfan/indiamart-supplier-scraper`) Actor

Extract IndiaMART supplier, manufacturer, and product data at scale. Collect business names, contact details, product listings, prices, locations, and company profiles for B2B lead generation, supplier sourcing, market research, and competitor analysis.

- **URL**: https://apify.com/shahidirfan/indiamart-supplier-scraper.md
- **Developed by:** [Shahid Irfan](https://apify.com/shahidirfan) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

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

## 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

### What does IndiaMART Supplier Scraper do?

IndiaMART Supplier Scraper collects products from IndiaMART category listings together with the supplier behind each product: company name, profile link, city, years on IndiaMART, rating and review count. Every item also carries the full specification table the listing shows (valve type, body material, port size, pressure rating and so on), the price and unit, and the product image.

Give it a category listing URL such as `https://dir.indiamart.com/impcat/industrial-valves.html` and it returns one dataset row per product. It reads the structured listing data IndiaMART embeds in the page, so the fields are exact rather than guessed from page text.

### Why use IndiaMART Supplier Scraper?

- **Supplier data, not just product names.** Company, city, years in business, rating and review count arrive with every product, which is what sourcing and lead research actually need.
- **Specification tables stay structured.** All specification pairs from the listing (for example `Valve Size: 2 inch`, `Body Material: Cast Iron`) come back as a JSON object you can filter on.
- **Prices as text and as numbers.** `price` keeps IndiaMART's wording (`₹ 1,050/Piece`), `priceValue` is a number and `priceUnit` is the unit, so sheets and databases can sort and compare.
- **No browser rendering in your budget.** The actor reads listing data over HTTP; a run of a few hundred products finishes in seconds and costs a fraction of a browser-based scraper.
- **Repeat-safe.** Duplicate products and duplicate input URLs are dropped by IndiaMART's own product id, so a dataset never contains the same product twice.

### What data can you extract?

| Field             | Type    | Example                                                               |
| ----------------- | ------- | --------------------------------------------------------------------- |
| `productId`       | integer | `20577909012`                                                         |
| `productName`     | string  | `Safety Valves`                                                       |
| `productUrl`      | string  | `https://www.indiamart.com/proddetail/safety-valves-20577909012.html` |
| `imageUrl`        | string  | product photo URL                                                     |
| `price`           | string  | `₹ 9,000/Piece`                                                       |
| `priceValue`      | number  | `9000`                                                                |
| `priceUnit`       | string  | `Piece`                                                               |
| `supplierName`    | string  | `Sri Venkat Engineers`                                                |
| `supplierUrl`     | string  | supplier page or company website                                      |
| `city`            | string  | `Chennai`                                                             |
| `yearsInBusiness` | number  | `12`                                                                  |
| `rating`          | number  | `4.3`                                                                 |
| `reviewCount`     | integer | `118`                                                                 |
| `specifications`  | object  | `{"Brand": "Sri Venkat Engineers", "Material": "CS/SS"}`              |
| `sourceUrl`       | string  | the listing URL the item came from                                    |

Suppliers who quote on request have `price`, `priceValue` and `priceUnit` set to `null`; no value is invented. Products that a supplier lists only in their catalogue have no product page, so `productUrl` is `null` while `supplierUrl` still points to the supplier.

### How to use IndiaMART Supplier Scraper

1. Open the IndiaMART category you care about, for example Industrial Valves at `https://dir.indiamart.com/impcat/industrial-valves.html`.
2. Paste that URL into **IndiaMART listing URLs**. City listings such as `https://dir.indiamart.com/delhi/industrial-valves.html` are also accepted, and you can add as many URLs as you need.
3. Set **Maximum products** and **Maximum page loads per URL**, then start the run.
4. Download the dataset as JSON, CSV or Excel, or read it through the Apify API.

| Input                | Type             | Default                                                   | Meaning                                       |
| -------------------- | ---------------- | --------------------------------------------------------- | --------------------------------------------- |
| `urls`               | array of strings | `https://dir.indiamart.com/impcat/industrial-valves.html` | Category or city listing pages to scrape      |
| `maxResults`         | integer          | `20`                                                      | Stop after this many products across all URLs |
| `maxPages`           | integer          | `10`                                                      | Page loads per URL (28 products each)         |
| `proxyConfiguration` | object           | Apify Proxy, RESIDENTIAL, country IN                      | IndiaMART blocks datacenter addresses         |

**A residential proxy is required.** IndiaMART answers datacenter and unproxied cloud addresses with HTTP 403 or HTTP 429. Any residential proxy works; an Indian exit returns the full Indian catalogue, while an exit in another country returns a reduced export catalogue. The default input selects Apify Proxy with the residential group in India.

To run the actor locally, use `apify run`, which passes your logged-in proxy credentials. A plain `npm start` needs `APIFY_TOKEN` in the environment so the SDK can fetch the proxy password.

### Usage examples

#### Scrape one category

```json
{
    "urls": ["https://dir.indiamart.com/impcat/industrial-valves.html"],
    "maxResults": 100,
    "maxPages": 10
}
```

#### Combine a category with city listings

```json
{
    "urls": [
        "https://dir.indiamart.com/impcat/industrial-valves.html",
        "https://dir.indiamart.com/delhi/industrial-valves.html",
        "https://dir.indiamart.com/mumbai/industrial-valves.html"
    ],
    "maxResults": 300,
    "maxPages": 6
}
```

#### Collect a small sample for a price check

```json
{
    "urls": ["https://dir.indiamart.com/delhi/industrial-valves.html"],
    "maxResults": 30,
    "maxPages": 2
}
```

### Sample output

One item from a real run on the Industrial Valves category:

```json
{
    "productId": 20577909012,
    "productName": "Safety Valves",
    "productUrl": "https://www.indiamart.com/proddetail/safety-valves-20577909012.html",
    "imageUrl": "https://5.imimg.com/data5/ON/MF/QE/SELLER-9395033/safety-valves-1000x1000.jpg",
    "price": "₹ 9,000/Piece",
    "priceValue": 9000,
    "priceUnit": "Piece",
    "supplierName": "Sri Venkat Engineers",
    "supplierUrl": "https://www.srivenkatengineers.com/",
    "city": "Chennai",
    "yearsInBusiness": 12,
    "rating": 4.3,
    "reviewCount": 118,
    "specifications": {
        "BODY BANNET  CAP": "CI / CS / SS - 304 / SS - 316 / BRASS / GUN METAL",
        "Spring": "SPRING STEEL",
        "Lever": "STEEL",
        "Internals": "SS-410 / SS-304 /SS-316 / Brass",
        "Brand": "Sri Venkat Engineers",
        "Material": "CS/SS"
    },
    "sourceUrl": "https://dir.indiamart.com/impcat/industrial-valves.html"
}
```

### Tips for best results

- **Expect about 44 unique products per category URL.** IndiaMART serves 28 products per page load and reshuffles the selection each time, with heavy overlap. The actor keeps requesting until new products stop appearing, which on Industrial Valves gives roughly 44 unique products. Add more listing URLs to collect more.
- **Scale with URLs, not page loads.** A run over 33 category and city URLs collected 1,416 products in about two minutes and peaked at 81 MB of memory, so long lists of URLs are the cheap way to grow a dataset.
- **Use city listings for depth.** A city page is a separate listing with its own supplier pool; Delhi alone lists 2,032 Industrial Valve products.
- **Paste listing URLs only.** Search result URLs (`/search.mp`) and product detail pages are rejected with a clear message.
- **Keep the residential proxy on.** Turning it off makes IndiaMART answer with HTTP 429 and the run stops with a proxy hint.
- **Sort and filter on `priceValue`, not `price`.** The text form keeps the supplier's wording. Price ranges such as `₹ 1,000 - 5,000/Piece` keep the full text in `price` and leave `priceValue` empty, because a range has no single number.
- **Deduplicate suppliers yourself.** One supplier can appear with several products; group by `supplierName` or `supplierUrl`.

### FAQ

**How many products can one run return?**
As many as its URLs allow, capped by `maxResults`. One category URL yields about 44 unique products because of how IndiaMART shuffles its listing; each extra city or category URL adds its own pool.

**Why is a residential proxy needed?**
IndiaMART refuses datacenter IP ranges. Apify's datacenter proxies receive HTTP 403, and an unproxied cloud address receives HTTP 429. Any residential address gets through; an Indian exit is served the full catalogue, while other countries are shown a smaller export catalogue.

**Does it collect phone numbers or email addresses?**
No. Only data printed on the public listing: product, price, specifications, supplier name, supplier link, city, years in business, rating and review count.

**Are prices current?**
Prices are copied from the listing at run time. IndiaMART prices are indicative and often change; treat them as quotes on request rather than fixed prices.

**Can I run it on a schedule?**
Yes. Apify Schedules work well for a daily or weekly refresh of the same category URLs, and each run writes a fresh dataset.

**What happens when a URL is wrong?**
A non-IndiaMART URL or a page without listing data fails the run immediately and names the rejected URL, so no partial dataset is mistaken for a complete one.

### Integrations

Datasets can be exported to JSON, CSV, Excel or XML, read through the Apify API, and connected to Google Sheets, Google Drive, Slack, Make, Zapier or n8n with Apify's built-in integrations. Webhooks fire when a run finishes, which is the usual way to load fresh supplier data into a CRM or sourcing sheet.

### Support

Questions, missing fields or a listing page that returns nothing: open an issue on the actor page or contact Shahid Irfan through Apify. Include the run id and the listing URL.

### Legal notice

This actor collects data that IndiaMART publishes on public listing pages. IndiaMART's terms of service and local law still apply to how you use the data. Do not use it to send unsolicited messages, and respect IndiaMART's rate limits by keeping runs small and infrequent.

# Actor input Schema

## `urls` (type: `array`):

Category listing URLs to scrape, for example https://dir.indiamart.com/impcat/industrial-valves.html. City listings such as https://dir.indiamart.com/delhi/industrial-valves.html work too. Duplicate URLs are scraped once.

## `maxResults` (type: `integer`):

Stop after this many products are scraped across all URLs.

## `maxPages` (type: `integer`):

IndiaMART returns 28 products per page load and reshuffles them on every request. Each page load adds new products until the listing stops producing them.

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

IndiaMART blocks datacenter IPs. Any residential proxy works; an Indian exit returns the full Indian catalogue, other countries return a reduced export catalogue.

## Actor input object example

```json
{
  "urls": [
    "https://dir.indiamart.com/impcat/industrial-valves.html"
  ],
  "maxResults": 20,
  "maxPages": 10,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "IN"
  }
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

# 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 = {
    "urls": [
        "https://dir.indiamart.com/impcat/industrial-valves.html"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("shahidirfan/indiamart-supplier-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 = { "urls": ["https://dir.indiamart.com/impcat/industrial-valves.html"] }

# Run the Actor and wait for it to finish
run = client.actor("shahidirfan/indiamart-supplier-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 '{
  "urls": [
    "https://dir.indiamart.com/impcat/industrial-valves.html"
  ]
}' |
apify call shahidirfan/indiamart-supplier-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,shahidirfan/indiamart-supplier-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/dHyJJI8nglQF0gsqj/builds/go2pYUoXmtdtz9eMf/openapi.json
