# IndiaMART Product & Supplier Search Scraper | Pay per result (`s7_studio/indiamart-product-supplier-scraper`) Actor

Search IndiaMART by keyword and city to get product listings with pricing, specs, images, and supplier company details (location, verification badges, years on platform). Pay per result.

- **URL**: https://apify.com/s7\_studio/indiamart-product-supplier-scraper.md
- **Developed by:** [S7 Studio](https://apify.com/s7_studio) (community)
- **Categories:** E-commerce, Lead generation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.50 / 1,000 indiamart product & supplier search scraper | pay per results

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?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## IndiaMART Product & Supplier Search Scraper

Search **IndiaMART**, India's largest B2B marketplace, by keyword and city. Returns product listings — name, price, specifications, images, minimum order quantity — together with the supplier company's location, verification badges (GST, TrustSEAL), and years on the platform. Pay per result.

### What you get

Parity fields (≥ the champion actor in this niche):

`productName`, `companyName`, `priceDisplay`, `priceNumeric`, `currency`, `unit`, `city`, `state`, `supplierUrl`, `productUrl`, `image`, `rating`, `ratingCount`, `isTrustSeal`, `isGstVerified`, `yearsOnPlatform`, `isVerifiedExporter`, `specifications` (list of `{name, value}`), `minOrderQuantity`, `images`, `description`, `company` (`{name, address, exportTo, score}`), `category`, `query`, `rank`, `scrapedAt`

Every record carries all of the above keys — missing data is `null`/`[]`, never a dropped key. `rating`/`ratingCount` are frequently `null` because IndiaMART's own search results don't always expose a review score for a given listing — a real source gap, not a parsing failure.

### How it works

1. `GET dir.indiamart.com/search.mp?ss=<query>&cq=<city>&start=<offset>` through an Apify RESIDENTIAL proxy exit in India (`apifyProxyCountry: "IN"`) — this is a protected target: a non-Indian exit IP gets redirected to a generic interstitial instead of real results.
2. Parse the product/company records embedded in the page's own JSON state first (stable keys — survives a visual re-skin); fall back to structural HTML card discovery only when no such JSON is present.
3. Normalize each raw record to the flat parity schema above and push + charge one `product-result` PPE event per result. Records missing `productName`/`companyName` are never pushed or charged.

### Input

| Parameter | Type | Default | Description |
|---|---|---|---|
| `searchQueries` | array of string | `["laptop"]` | Keywords to search |
| `location` | string | `""` (nationwide) | City filter, e.g. `"Chennai"` |
| `maxResultsPerQuery` | integer | 20 | Max results per query |
| `minPrice` / `maxPrice` | integer | — | Best-effort price-range filter (approximate) |
| `proxyConfiguration` | object | RESIDENTIAL/IN | Apify proxy settings — a residential India exit is required for reliable access |

### Pricing

Pay-per-result (PPE), one `product-result` charge per returned product listing.

### Legal note

IndiaMART product-search pages are publicly browsable listings (no login required). This actor reads only public catalog and supplier-directory fields already shown to anonymous visitors — it does not reveal phone numbers, emails, or GST numbers behind a login, and it never triggers a "Get Best Price" / RFQ lead submission to the supplier.

# Actor input Schema

## `searchQueries` (type: `array`):

List of keywords to search on IndiaMART (e.g. "laptop").

## `location` (type: `string`):

City to filter search results to (e.g. "Chennai"). Leave empty for nationwide search across India.

## `maxResultsPerQuery` (type: `integer`):

Maximum number of product records to return per search query. Each result = one PPE charge.

## `minPrice` (type: `integer`):

Best-effort minimum price filter (approximate — applied post-parse when the site doesn't honor it directly).

## `maxPrice` (type: `integer`):

Best-effort maximum price filter (approximate — applied post-parse when the site doesn't honor it directly).

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

Apify proxy settings. This target requires a residential proxy exit in India (IN) for reliable access.

## Actor input object example

```json
{
  "searchQueries": [
    "laptop"
  ],
  "location": "Chennai",
  "maxResultsPerQuery": 20,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "IN"
  }
}
```

# Actor output Schema

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

Dataset containing IndiaMART product records (productName, companyName, priceDisplay, priceNumeric, specifications, images, company, ...).

# 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 = {
    "searchQueries": [
        "laptop"
    ],
    "location": "Chennai",
    "maxResultsPerQuery": 20,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "IN"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("s7_studio/indiamart-product-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 = {
    "searchQueries": ["laptop"],
    "location": "Chennai",
    "maxResultsPerQuery": 20,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "IN",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("s7_studio/indiamart-product-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 '{
  "searchQueries": [
    "laptop"
  ],
  "location": "Chennai",
  "maxResultsPerQuery": 20,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "IN"
  }
}' |
apify call s7_studio/indiamart-product-supplier-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,s7_studio/indiamart-product-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/0POZMhkkgaFukgEy8/builds/wpV5WqAmczp0G7Bxt/openapi.json
