# TradeIndia Scraper — Supplier Leads (`redomic/tradeindia-supplier-leads-scraper`) Actor

One run returns TradeIndia supplier leads: company, product, city, published price in INR or USD, MOQ, badges and product URL. Search by keyword, open product pages for public company facts, or monitor price and MOQ changes since your last run.

- **URL**: https://apify.com/redomic/tradeindia-supplier-leads-scraper.md
- **Developed by:** [Redomic](https://apify.com/redomic) (community)
- **Categories:** Lead generation, E-commerce
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.40 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/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

## TradeIndia scraper: supplier leads, price and MOQ

One row is one TradeIndia product listing from a logged-out supplier page. It carries the seller company, product name, city and state, the published price with its currency and unit, the minimum order quantity, business type, badges and the product URL. Detail mode also returns the seller's public company facts: GSTIN, business address, website, year established and the published turnover band. Buyers use it to build a supplier list, compare published rates by city, and refresh a price sheet each week. Set `onlyNewSinceLastRun` and a scheduled search returns just the suppliers you have not had before, so a weekly list never repeats a company. In monitor mode the same keyword returns only rows whose price, currency, MOQ, unit, stock or badges changed since the last run, so a scheduled watch stays cheap on quiet days.

### Who uses it

- **Procurement managers** who shortlist Indian suppliers for a component and need published rates and MOQs in one sheet.
- **Import and export teams** who track one product across cities and want to see when a seller's quote moves.
- **Sourcing agencies** that keep a dated supplier watchlist and send price changes to a client each morning.

### What you get

A search for "basmati rice" on 27 November 2026 returned these rows. Values are exactly as the Actor returns them; a dash means the seller published no value for that field.

| Product | Company | City | State | Price | Price amount | Currency | Price unit | MOQ | Business type |
|---|---|---|---|---|---:|---|---|---|---|
| 1121 White Sella Basmati Rice | Nexus International | Ahmedabad | Gujarat | 80.0 INR (Approx.) | 80.0 | INR | Kilograms/Kilograms | 25 | Manufacturer | Supplier |
| 1509 Steam Basmati Rice | Vibhor Foods | Karnal | Haryana | 75.0 INR (Approx.) | 75.0 | INR | Kilograms/Kilograms | 5000 | Manufacturer | Supplier |
| Golden Sella Basmati Rice | KUR OVERSEAS | East Godavari Dist. | Andhra Pradesh | 100 INR (Approx.) | 100.0 | INR | Kilograms/Kilograms | 100 | Supplier | Exporter |
| Best Quality Long Grain 1121 White Sella Basmati Rice | SRI PARVATHI EXPORTS | Chennai | Tamil Nadu | 1085 USD ($) (Approx.) | 1085.0 | USD | — | 100mt | Manufacturer | Distributor |
| 1121 Raw Basmati Rice | SHREE KRISHNA RICE MILLS | Karnal | Haryana | 1135 USD ($) (Approx.) | 1135.0 | USD | Ton/Tons | 25 | Manufacturer | Supplier |

`priceUnit` is one published unit per row, such as `Kilograms/Kilograms` or `Piece/Pieces`. When a listing repeats the same unit on the page, the Actor keeps a single clean value instead of a comma-joined string.

A detail run on a rice mill listing the same day returned these company facts:

| Company | GSTIN | Established | Turnover band | Website | Business address |
|---|---|---:|---|---|---|
| AATOMIZE MANUFACTURING PRIVATE LIMITED | 24AARCA5519J1ZE | 2000 | Rs 35 Crores | https://www.pulverizer.co | Plot No. 6/7, Padavla Road, Captain Tractor Street, Veraval, Rajkot, Gujarat, 360024, India |

Each row also carries `id`, `url`, `productLong`, `description`, `category`, `priceApprox`, `priceMinAmount`, `priceMaxAmount`, `priceOnRequest`, `priceUnit`, `measureUnit`, `country`, `establishedYear`, `productScore`, `imageUrl`, `source` and `scrapedAt`, plus the public badges `trustStamp`, `tiVerified`, `premiumSeller`, `superSeller`, `bestSeller`, `madeInIndia`, `inStock`, `isManufacturer`, `isExporter`, `isSupplier` and `isTrader`. Price is a number in `priceAmount` with an ISO currency code in `priceCurrency`. When a seller asks you to request a price, `priceOnRequest` is true and `priceAmount` is null. We do not fill in a number the seller did not publish.

The four business badges follow the business type TradeIndia publishes on that listing, so a row marked `Manufacturer | Supplier` is a manufacturer and a supplier, not an exporter and a trader as well. They reflect the listing you see, not every type the seller account once registered.

Detail mode adds `gstin`, `businessAddress`, `website`, `turnoverBand`, `memberSince`, `brand`, `extraImages`, `specifications` and `tradeInformation` from the product and seller pages. It does not add emails, phone numbers or contact people. A company that does not publish a turnover band or a website simply has no such field in its row.

#### A supplier list that never repeats a company

With `onlyNewSinceLastRun` on, a first search for "basmati rice" with `maxItems: 28` returned 26 supplier rows on 27 November 2026, beginning with these two:

| Product | Company | City | Price | MOQ |
|---|---|---|---|---:|
| 1121 White Sella Basmati Rice | Nexus International | Ahmedabad | 80.0 INR (Approx.) | 25 |
| 1509 Steam Basmati Rice | Vibhor Foods | Karnal | 75.0 INR (Approx.) | 5000 |

The same search the next day returned no rows and charged nothing. Its status row reads:

| Query | Status | Rows | Reason |
|---|---|---:|---|
| basmati rice | ok | 0 | 2 off-title listings skipped; 26 supplier rows already seen in earlier runs |

A supplier that appears on the page later comes back as a new row. This flag keeps a list fresh; choose monitor mode when you need to hear that the price or MOQ of a supplier you already have has moved.

### Why this Actor

The watchlist is the product. Each run compares today's listings with the ones saved from the same keyword in a named store. A row comes back with `changeType: new`, `changed` or `removed` and, for a changed row, `previousPriceText`, `previousMoq`, `previousProduct` and `previousCompany`. The saved row also holds `firstSeen`, the day we first saw that listing. The fingerprint covers price, currency, MOQ, unit, stock and the published badges, so a quiet day produces no rows and no charge.

The first run records what is on the page. From the second run on you get only the deltas. Unchanged rows are free, and removed rows are reported without a charge. If the watch is new, the run says so in its status record instead of billing you for a full snapshot as if it were an alert.

`maxItems` is an upper limit after filters. The Actor keeps turning pages until it has that many matching rows, the keyword runs out, or `maxPages` stops it. Rows are deduplicated by product id across pages and runs. The status record carries `totalMatches`, the count TradeIndia reports for the keyword, so you know how many suppliers exist before you collect them.

Search and monitor keep only listings whose product title contains every word of your keyword, so a `basmati rice` run does not bill you for rice mills or Sona Masoori rice. A TradeIndia category is not trusted here: the site files some non-basmati rice under that category. If no title matches every word, the run returns the closest titles instead of an empty dataset and says so in its status row.

Status rows live in the run's STATUS record, not in the dataset. Each keyword, and each product URL in detail mode, gets one row with `_status`, an `ok`, `partial`, `empty` or `failed` value and a reason when something went wrong. A keyword that matches nothing, or a dead product URL, is reported and still succeeds. With `onlyNewSinceLastRun` on, the status row also carries `skipped`, the number of listings already delivered for that keyword. The dataset holds result rows only. A run that returns zero rows charges zero events.

### Three modes

| Mode | What you get | Good for |
|---|---|---|
| `search` (default) | Supplier rows for a keyword, with price, MOQ, city and badges | Building a supplier list or a price sheet |
| `detail` | The same fields plus GSTIN, business address, website, year established, turnover band, specifications and trade information from product URLs | Checking one seller or a short list |
| `monitor` | Only new, changed and removed rows since the last run of the same keyword | A dated price and MOQ watchlist |

### Price

$3.00 per 1,000 result rows in search and detail mode. In monitor mode you pay $3.00 per 1,000 new or changed rows. Unchanged rows, removed rows, status rows and summary rows are free. A keyword returning 28 supplier rows costs $0.084. A watch that finds no changes costs nothing.

### How to run it

The quickest run needs only a keyword:

```json
{ "query": "basmati rice", "maxItems": 100 }
```

To narrow by place or product category, add filters. They apply while pages are collected, so `maxItems` counts only matching rows:

```json
{ "query": "basmati rice", "city": "Karnal", "category": "1121 basmati rice", "maxItems": 50 }
```

For a single product page, set detail mode and paste the URL into Product URLs:

```json
{
  "mode": "detail",
  "productUrls": [
    { "url": "https://www.tradeindia.com/products/1121-white-sella-basmati-rice-9329845.html" }
  ]
}
```

### Watchlist recipe: schedule, webhook, spreadsheet

1. Save a task with `mode: "monitor"`, a keyword such as `basmati rice`, and `maxItems: 200`.
2. In Apify Console, add a daily Schedule for that task.
3. Add a "run succeeded" webhook to Slack, Make or n8n, or connect the dataset to Google Sheets.
4. Read `changeType` and `previousPriceText` to see what moved. A day with no changes produces no rows and no charge.

Each keyword keeps its own watchlist. Two people watching the same keyword have independent histories and separate charges.

### Input

| Field | Default | What it does |
|---|---|---|
| `mode` | `search` | `search`, `detail` or `monitor`. |
| `query` | `basmati rice` | TradeIndia product keyword, e.g. `rice mill plant`. A manufacturer page URL also works. Used by search and monitor. |
| `category` | none | Keeps listings whose TradeIndia category contains this text. |
| `city` | none | Keeps suppliers whose city contains this text. |
| `onlyNewSinceLastRun` | `false` | In search mode, skip listings already delivered for this keyword. A quiet run returns no rows and no charge. |
| `productUrls` | none | Product page URLs for detail mode, as `[{"url": "..."}]`. |
| `maxItems` | `100` | Maximum result rows, up to 5,000, counted after filters. |
| `maxPages` | `100` | Safety cap on pages fetched in one run. Each page holds 28 suppliers. |
| `proxy` | Apify proxy | Proxy settings. Switch to a residential group if the site challenges datacenter traffic. |

### Output fields

`id`, `url`, `query`, `company`, `product`, `productLong`, `description`, `category`, `priceText`, `priceAmount`, `priceCurrency`, `priceApprox`, `priceMinAmount`, `priceMaxAmount`, `priceOnRequest`, `moq`, `priceUnit`, `measureUnit`, `city`, `state`, `country`, `businessType`, `establishedYear`, `productScore`, `imageUrl`, `source`, `trustStamp`, `tiVerified`, `premiumSeller`, `superSeller`, `bestSeller`, `madeInIndia`, `inStock`, `isManufacturer`, `isExporter`, `isSupplier`, `isTrader`, `scrapedAt`.

Detail mode adds `gstin`, `businessAddress`, `website`, `turnoverBand`, `memberSince`, `brand`, `extraImages`, `specifications` and `tradeInformation`.

Monitor mode adds `changeType`, `firstSeen`, and, on changed rows, `previousPriceText`, `previousMoq`, `previousProduct` and `previousCompany`. Removed rows carry the last published company, product, price and MOQ we saved.

`query` is the keyword you supplied. It is on every search and monitor row, so status rows and result rows line up in an export. Detail rows carry the `url` you supplied instead.

### FAQ

**Does TradeIndia have an API?**
Not a public one for supplier search. This Actor reads the same public logged-out pages and JSON the site uses itself, then returns flat rows.

**Do I get emails, phone numbers or contact names?**
No. The Actor never reads or returns personal contact data, WhatsApp, social links or contact people. It returns the public company name, address, GSTIN, website, year established, turnover band, badges and the product listing URL.

**Will I get the same suppliers in every weekly run?**
Only if you leave `onlyNewSinceLastRun` off. With it on, each keyword remembers the listings already sent to you and the next run returns only new ones. If you want to know when a price or MOQ changes on a supplier you already have, use monitor mode instead.

**Why is the price empty on some rows?**
TradeIndia shows "price on request" for some listings. Those rows set `priceOnRequest` to true and leave `priceAmount` null. We do not guess a number.

**Why did I get fewer rows than `maxItems`?**
The keyword has fewer matches, a filter removed the rest, or `maxPages` stopped the run first. The status record reports the match count TradeIndia published and why the run stopped.

**Is scraping TradeIndia legal?**
The Actor reads public pages without logging in and collects no personal contact data. Check TradeIndia's terms and your local law before using the data.

### हिंदी में

यह Actor TradeIndia के सार्वजनिक उत्पाद पृष्ठों से कंपनी, शहर, कीमत, न्यूनतम ऑर्डर मात्रा और उत्पाद लिंक पंक्तियों में निकालता है। `monitor` मोड केवल वे पंक्तियाँ देता है जिनकी कीमत, MOQ या स्टॉक पिछले रन के बाद बदली हो। कोई निजी संपर्क जानकारी नहीं ली जाती।

### Use it from AI agents (MCP) and Python

**AI agents.** Add this Actor as a tool in Claude, Cursor, VS Code or any MCP client through the Apify MCP server. The agent reads the input schema, so a plain request is enough.

```json
{
  "mcpServers": {
    "tradeindia-supplier-leads-scraper": {
      "url": "https://mcp.apify.com?tools=redomic/tradeindia-supplier-leads-scraper",
      "headers": {
        "Authorization": "Bearer <YOUR_APIFY_TOKEN>"
      }
    }
  }
}
```

**Python.** `pip install apify-client`, then:

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("redomic/tradeindia-supplier-leads-scraper").call(run_input={"query": "basmati rice", "mode": "search", "maxItems": 28})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
```

### More from us

- [Allabolag Scraper - Swedish Company Data](https://apify.com/redomic/allabolag-company-scraper): Scrape allabolag.se for Swedish company financials, industry, status and board role titles by search, org number or URL
- [Ashby Jobs Scraper with Salaries](https://apify.com/redomic/ashby-jobs-monitor): Ashby jobs scraper for any startup careers board (OpenAI, Ramp, Notion and thousands more), with salary ranges as numbers: min, max, currency, period, plus equity and bonus flags
- [ATS Jobs Search: Workday, Greenhouse, Lever & Ashby API](https://apify.com/redomic/ats-jobs-search): Search 750,000+ open jobs from 23,000+ companies on Workday, Greenhouse, Lever, Ashby, SmartRecruiters, Workable and 3 more ATS in one run
- [Blocket Scraper: Car Monitor](https://apify.com/redomic/blocket-se-scraper): Blocket scraper for car dealers and flippers: export Bil and Torget rows with price, make, model, year, mileage and seller
- [Closed Jobs Tracker: Expired Jobs & Time to Fill](https://apify.com/redomic/closed-jobs-tracker): Search jobs taken down at 22,000+ companies we check daily: the day each closed, how many days it was open (a time-to-fill proxy when the posting date is known) and closures by company
- [DBA.dk Scraper](https://apify.com/redomic/dba-scraper): A dba scraper for Danish classifieds: one run returns DBA.dk listings with title, price in DKK, condition, category, image and seller
- [Expired Jobs API: Dated Closures From 8 ATS](https://apify.com/redomic/expired-jobs-daily): One run returns dated expired jobs: company, title, firstSeen, lastSeen, closedOn, absentObservations, URL and an asOf/n/historyCeilingDays receipt
- [FMCSA Carrier Scraper](https://apify.com/redomic/fmcsa-carriers): An FMCSA scraper for freight brokers and trucking-insurance sellers
- [Foodpanda Scraper: Dated Menu Price Drops & Watchlist](https://apify.com/redomic/foodpanda-scraper): Foodpanda vendor listings and dish-level menus with dated price history and new/changed/removed monitoring across SG, MY, PH, HK, TW, PK and BD
- [Free-Work Jobs Scraper](https://apify.com/redomic/free-work-jobs-scraper): Free-Work jobs scraper for French IT recruiters: freelance informatique missions with TJM day rates, annual pay, skills and remote mode
- [Google Jobs Scraper - Job Postings API](https://apify.com/redomic/google-jobs): Google Jobs and job postings scraper: get job title, company, location, posted date, salary, full description and every apply link for any search
- [Google Trends API: Trending Now & Interest Over Time](https://apify.com/redomic/google-trends): Trending-now searches and new-trends alerts/monitoring per country with the news behind them, plus interest over time, interest by region, and related and rising queries for any keyword
- [GovDeals Scraper](https://apify.com/redomic/govdeals-scraper): Search and monitor GovDeals government surplus auctions for fleet trucks, equipment and more
- [GrabFood Restaurant Scraper](https://apify.com/redomic/grabfood-restaurant-scraper): Scrape GrabFood restaurants and menus by keyword, category or delivery pin across Southeast Asian markets
- [Greenhouse Jobs Monitor & Scraper](https://apify.com/redomic/greenhouse-jobs-monitor): Monitor Greenhouse jobs from any company careers board (Airbnb, Stripe, Discord and thousands more)
- [Job Postings Dataset: 750k+ Open Jobs, Updated Daily](https://apify.com/redomic/job-postings-dataset): 750,000+ open jobs from 23,000+ company career sites (Workday, Greenhouse, Lever, Ashby and 5 more ATS), updated daily with first-seen and closed dates
- [Lever Jobs Scraper & Salaries](https://apify.com/redomic/lever-jobs-monitor): Lever jobs scraper for any company's careers page (Palantir, Spotify, Zoox, Shield AI and thousands more): flat rows with title, team, location, workplace, commitment, apply link, salary as numbers and the full description merged
- [Marktplaats Scraper - Dutch Classifieds](https://apify.com/redomic/marktplaats-nl): A marktplaats scraper for resellers, car dealers and analysts: export listings from Marktplaats.nl with title, price in EUR, condition, seller, location and images
- [Mercari Scraper](https://apify.com/redomic/mercari-sold-comps): Search Mercari Japan for live listings and sold prices
- [Myntra Product Scraper](https://apify.com/redomic/myntra-scraper): Myntra scraper for product prices, MRP, discounts, ratings and stock
- [Otodom Scraper: Poland Property Listings & Price Monitor](https://apify.com/redomic/otodom-scraper): Scrape Otodom.pl property listings in Poland
- [Otomoto.pl Scraper](https://apify.com/redomic/otomoto-scraper): Scrape Otomoto.pl Polish car listings: one run returns used-car rows with price, make, model, year, mileage, fuel, gearbox, seller and URL
- [Personio Jobs Scraper](https://apify.com/redomic/personio-jobs): Scrape open jobs from Personio company career pages (jobs.personio.de/.com XML feeds)
- [Salary Data API: Pay Ranges by Job Title & Level](https://apify.com/redomic/salary-data): Get salary benchmarks (p10-p90, annualised, with n) and pay ranges from 199,000 employer-posted jobs at 9,600+ companies, updated daily
- [SIRET Company Scraper](https://apify.com/redomic/siret-company-scraper): Build B2B lead lists and support KYB due diligence with official SIRENE/RNE data as spreadsheet rows: SIRET lookup, NAF code, address, directors and financials
- [SUUMO Scraper - Japan Property Listings](https://apify.com/redomic/suumo-scraper): Scrape SUUMO Japan property listings from search URLs for rentals (賃貸) and sales
- [Talabat Scraper — Menus, Prices & Delivery Fees](https://apify.com/redomic/talabat-scraper): Restaurant and menu data from Talabat's 8 MENA markets as flat rows
- [Tecnoempleo Jobs Scraper](https://apify.com/redomic/tecnoempleo-jobs): Scrape Tecnoempleo IT job offers in Spain by keyword, province or remote mode
- [Ulta Scraper](https://apify.com/redomic/ulta-scraper): Scrape Ulta Beauty products by search or category with prices, ratings, reviews, and availability
- [Wolt Restaurant Scraper](https://apify.com/redomic/wolt-restaurant-scraper): One run returns Wolt restaurants with ratings, ETA, delivery fees, prices and full menus as clean flat rows
- [Workday Jobs Scraper](https://apify.com/redomic/workday-jobs): Search and monitor public Workday (myworkdayjobs.com) job postings

# Changelog

This Actor's version history is a separate document: https://apify.com/redomic/tradeindia-supplier-leads-scraper/changelog.md

# Actor input Schema

## `mode` (type: `string`):

search returns supplier rows for a keyword; detail opens product URLs for the full company block; monitor returns only new, changed and removed rows since the last run.

## `query` (type: `string`):

The TradeIndia product keyword, e.g. 'basmati rice' or 'rice mill plant'. A manufacturer page URL also works. Used by search and monitor mode.

## `category` (type: `string`):

Keep only listings whose TradeIndia category contains this text, e.g. '1121 basmati rice'.

## `city` (type: `string`):

Keep only suppliers in this city, e.g. 'Ahmedabad'. Applied while pages are collected, so maxItems is honoured after filtering.

## `onlyNewSinceLastRun` (type: `boolean`):

In search mode, skip product listings already delivered for this keyword on an earlier run. The first run records the suppliers it finds; later runs return only new ones, so a scheduled weekly list never repeats a company. A quiet run returns no rows and no charge. Monitor mode handles price and MOQ changes instead.

## `productUrls` (type: `array`):

TradeIndia product page URLs for detail mode, e.g. https://www.tradeindia.com/products/1121-white-sella-basmati-rice-9329845.html.

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

Maximum result rows to return, up to 5000. Pagination keeps going past the first page until this many rows are collected.

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

Safety cap on how many result pages are fetched in one run. 28 suppliers are on each page.

## `proxy` (type: `object`):

Proxy configuration. Apify proxy is used by default; switch to a residential group if the site challenges datacenter traffic.

## Actor input object example

```json
{
  "mode": "search",
  "query": "basmati rice",
  "category": "",
  "city": "",
  "onlyNewSinceLastRun": false,
  "productUrls": [
    {
      "url": "https://www.tradeindia.com/products/1121-white-sella-basmati-rice-9329845.html"
    }
  ],
  "maxItems": 100,
  "maxPages": 100,
  "proxy": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

All result rows from the default dataset.

# 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 = {
    "mode": "search",
    "query": "basmati rice",
    "category": "",
    "city": "",
    "onlyNewSinceLastRun": false,
    "productUrls": [
        {
            "url": "https://www.tradeindia.com/products/1121-white-sella-basmati-rice-9329845.html"
        }
    ],
    "proxy": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("redomic/tradeindia-supplier-leads-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 = {
    "mode": "search",
    "query": "basmati rice",
    "category": "",
    "city": "",
    "onlyNewSinceLastRun": False,
    "productUrls": [{ "url": "https://www.tradeindia.com/products/1121-white-sella-basmati-rice-9329845.html" }],
    "proxy": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("redomic/tradeindia-supplier-leads-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 '{
  "mode": "search",
  "query": "basmati rice",
  "category": "",
  "city": "",
  "onlyNewSinceLastRun": false,
  "productUrls": [
    {
      "url": "https://www.tradeindia.com/products/1121-white-sella-basmati-rice-9329845.html"
    }
  ],
  "proxy": {
    "useApifyProxy": true
  }
}' |
apify call redomic/tradeindia-supplier-leads-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,redomic/tradeindia-supplier-leads-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/3MuvI08Tw1CA90V7Q/builds/Sn5lrsEm9xRwzkChk/openapi.json
