# India MCA Company Data Lookup by CIN or Name (`cliqtomedia/india-mca-company-data`) Actor

Look up Indian companies by CIN or name from public MCA data: status, capital, registration date, address, RoC, industry and current directors.

- **URL**: https://apify.com/cliqtomedia/india-mca-company-data.md
- **Developed by:** [Cliqto Media](https://apify.com/cliqtomedia) (community)
- **Categories:** 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.40 / 1,000 company records

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

Look up Indian companies by CIN (Corporate Identification Number) or by company name and get one clean row per company: status, capital, registration date, address, RoC, industry and current directors.

It is for KYC, sales and research teams who need public MCA company facts fast. The smallest run is one company name, like `Infosys`, and takes about a minute.

[![India MCA Company Lookup: enter a CIN or company name and get status, capital, RoC, industry and current directors](https://api.apify.com/v2/key-value-stores/3mQLJIu7pm37xX7g8/records/readme-hero-20261121.png)](https://console.apify.com/actors/nfx3y8jxLOxiZuYZ3/input)

### Table of contents

- [What it does](#what-it-does)
- [How it works](#how-it-works)
- [Quick start](#quick-start)
- [Use cases](#use-cases)
- [Input](#input)
- [Output](#output)
- [Pricing](#pricing)
- [Limits](#limits)
- [API, export and integrations](#api-export-and-integrations)
- [Troubleshooting](#troubleshooting)
- [FAQ](#faq)
- [Related Actors](#related-actors)
- [Support](#support)

### What it does

The Actor finds Indian companies registered with the Ministry of Corporate Affairs (MCA). You give it CINs, company names or company page URLs. For each company it saves one row with:

- CIN, company name and company status (for example Active or Strike Off);
- registration date, registration number, RoC (Registrar of Companies) and state;
- authorized and paid-up capital in Indian rupees, as numbers;
- company category, class and subcategory, listed or unlisted, main industry;
- registered address, last balance sheet date and last AGM date;
- current directors: name, DIN, role and appointment date.

The data comes from public company pages on InstaFinancials, a site that republishes MCA records. It is not a live query to the MCA portal, so a record can be a few days old. Each row has `lastUpdatedAt` and `sourceUrl`, so you can see the date and check the page.

#### Good fit

- Check that an Indian company exists and is Active before you sign a contract (KYC).
- Turn a list of company names into CINs, capital and RoC for your CRM.
- Get the current directors and their DIN for a company.
- Keep only companies in one state or with one status.

> **👉 [Try it now: open the input form](https://console.apify.com/actors/nfx3y8jxLOxiZuYZ3/input)**

### How it works

1. The Actor reads your CINs, names and URLs. A name goes to the public company search, which returns up to six matches.
2. For each company it opens the public company page and, if you want, the directors page. It skips companies that do not match your state or status filter.
3. It saves one row per company in the dataset. Names with no match and wrong values get their own short rows. A run summary (`RUN_SUMMARY`) shows the counts.

> **👉 [Try it now: open the input form](https://console.apify.com/actors/nfx3y8jxLOxiZuYZ3/input)**

### Quick start

[![Input form: box 1 Company CINs, box 2 Company names with Infosys, box 3 Maximum company rows](https://api.apify.com/v2/key-value-stores/3mQLJIu7pm37xX7g8/records/quick-start-form-20261121.png)](https://console.apify.com/actors/nfx3y8jxLOxiZuYZ3/input)

1. Open the **Input** tab. If you know the CIN, add it to **Company CINs** (box 1), for example `L85110KA1981PLC013115`.
2. Or add a name to **Company names** (box 2). The form already has `Infosys`.
3. Keep **Maximum company rows** at 20 or set a lower number (box 3). You pay only for saved company rows.
4. Click **Start**.
5. When the run ends, open the **Output** tab. The **Companies** table shows the CIN, name and status (box 4) and the capital in rupees (box 5).

   [![Output table: CIN, Company and Status columns (box 4) and Authorized and Paid Up Capital columns (box 5) for six Infosys companies](https://api.apify.com/v2/key-value-stores/3mQLJIu7pm37xX7g8/records/output-table-20261121.png)](https://api.apify.com/v2/key-value-stores/3mQLJIu7pm37xX7g8/records/output-table-20261121.png)

Expected result: six companies with "Infosys" in the name, INFOSYS LIMITED first, each with status, capital, RoC and directors.

> **👉 [Try it now: open the input form](https://console.apify.com/actors/nfx3y8jxLOxiZuYZ3/input)**

### Use cases

| Buyer job | Input path | Output entity | Key fields | Next integration |
| --- | --- | --- | --- | --- |
| KYC check of a supplier or client | `cins` | Company | `companyStatus`, `registrationDate`, `roc`, `activeCompliant` | Your KYC sheet or CRM through the API |
| Find the CIN for a company name | `companyNames` | Company | `cin`, `name`, `state`, `companyStatus` | CSV or Excel export |
| Get current directors | `cins` + `includeDirectors` | Company with directors | `directors[].name`, `directors[].din`, `directors[].designation` | Dataset API, Slack or Notion summary |
| Enrich a lead list with capital | `companyNames` + `maxItems` | Company | `authorizedCapitalInr`, `paidUpCapitalInr`, `activity` | CRM import |
| Keep only active companies in one state | `companyNames` + `state` + `status` | Company | `state`, `companyStatus` | Scheduled run, then export |

> **👉 [Try it now: open the input form](https://console.apify.com/actors/nfx3y8jxLOxiZuYZ3/input)**

### Input

#### Input fields

You need at least one of `cins`, `companyNames` or `startUrls`.

| Field | Plain name | Type | Required | Default / prefill | Allowed values | Effect | Example | Recommendation |
| --- | --- | --- | --- | --- | --- | --- | --- | --- |
| `cins` | Company CINs | list of text | one of three | empty | 21-character CIN | Opens this exact company | `L85110KA1981PLC013115` | Best when you know the CIN: one exact row |
| `companyNames` | Company names | list of text | one of three | prefill `["Infosys"]` | 3+ characters | Searches and saves up to six matches per name | `Infosys` | Use a full name to get the right company first |
| `startUrls` | Company page URLs | list of URLs | one of three | empty | InstaFinancials company page with a CIN | Opens the company from the URL | `https://www.instafinancials.com/company/x-L85110KA1981PLC013115` | Use when you already have the page link |
| `state` | State filter | text | no | empty | two-letter CIN state code | Keeps only companies from this state | `KA` | Use with names that match many companies |
| `status` | Company status filter | text | no | empty | status text from the source | Keeps only companies with this status | `Active` | Use to drop struck-off companies |
| `resultsPerName` | Matches per name | integer | no | 6 | 1–6 | How many search matches to save for each name | `1` | Set 1 for "best match only" |
| `includeDirectors` | Include public directors | true/false | no | true | true, false | Also reads the directors page | `false` | Turn off if you need only company facts |
| `maxItems` | Maximum company rows | integer | no | 20 | 1–20 | Most company rows saved and charged in one run | `5` | Lower it to cap the cost |
| `deliveryConnector` | Send results to | connector | no | empty | your MCP connector | Posts a short summary after the run | Slack | See [Send results to Slack or Notion](#send-results-to-slack-or-notion) |
| `deliveryTarget` | Notion page or channel | text | no | empty | Notion page link or Slack channel ID | Where the summary goes | `C0123456789` | Needed for Notion |

All three input lists together take at most 20 entries. The same CIN is saved once, even if it comes from two inputs. A wrong entry (not a CIN, a name shorter than three characters, or another site's URL) gets an `invalid_input` row, and the other entries still run. Fields the Actor does not know are listed in `RUN_SUMMARY.ignoredInputFields`.

#### Interacting settings

| When | Input A | Input B | Effective behavior | Example | Cost/result effect |
| --- | --- | --- | --- | --- | --- |
| A name has many matches | `companyNames` | `resultsPerName` | Saves up to this number of matches per name | `Infosys` + 1 | 1 row instead of 6 |
| Many inputs | `cins`, `companyNames` | `maxItems` | The run stops saving at `maxItems` rows | 10 names + `maxItems` 5 | At most 5 charged rows |
| Filter is set | `companyNames` | `state`, `status` | Companies that do not match are skipped and not charged | `Infosys` + `KA` | Fewer rows, lower cost |
| Run option is lower | `maxItems` | Apify **Max items** run option | The lower limit wins | `maxItems` 20, run option 3 | At most 3 charged rows |

#### Input examples

##### Look up one company by CIN

```json
{
  "cins": ["L85110KA1981PLC013115"]
}
```

Expected behavior: opens the INFOSYS LIMITED page and its directors page.
Expected output: one company row with `companyStatus`, `paidUpCapitalInr`, `roc` and nine current directors.
Limit or cost note: one start fee and one company row.

##### Active companies in one state

```json
{
  "companyNames": ["Infosys"],
  "state": "KA",
  "status": "Active",
  "includeDirectors": false
}
```

Expected behavior: searches "Infosys" and keeps only Active companies registered in Karnataka.
Expected output: company rows without directors.
Limit or cost note: skipped companies are not charged.

> **👉 [Try it now: open the input form](https://console.apify.com/actors/nfx3y8jxLOxiZuYZ3/input)**

### Output

#### Output fields

| Field | Meaning | Type | Can be empty? | Example / enum | Source / notes |
| --- | --- | --- | --- | --- | --- |
| `status` | Row type | text | no | `complete`, `not_found`, `invalid_input` | Only `complete` rows are charged |
| `cin` | Corporate Identification Number | text | no for `complete` | `L85110KA1981PLC013115` | From the company page |
| `name` | Company name | text | no for `complete` | `INFOSYS LIMITED` | |
| `companyStatus` | MCA company status | text | yes | `Active`, `Strike Off` | |
| `registrationDate` | Date of incorporation | date | yes | `1981-07-02` | YYYY-MM-DD |
| `authorizedCapitalInr` | Authorized share capital | number, INR | yes | `24000000000` | In rupees, not crores |
| `paidUpCapitalInr` | Paid-up capital | number, INR | yes | `20291382890` | `0` means the source shows ₹0.00 |
| `state` | State code from the CIN | text | no | `KA` | |
| `roc` | Registrar of Companies | text | yes | `ROC Bangalore` | |
| `address` | Registered address | text | yes | `ELECTRONICS CITY, ...` | As the source writes it |
| `activity` | Main line of business | text | yes | `Health And Social Work` | As the source writes it |
| `category`, `companyClass`, `subcategory` | Company type | text | yes | `Public Company` | |
| `nicCode`, `listingStatus` | Industry code and listing from the CIN | text | no | `85110`, `Listed` | |
| `registrationNumber` | Registration number | text | yes | `13115` | |
| `activeCompliant` | Active compliance status | text | yes | `ACTIVE compliant` | |
| `statusUnderCIRP` | Insolvency process status | text | yes | `null` | `null` when the source shows NA |
| `filingStatusLast2Years` | Filing status | text | yes | `null` | Often NA on the source |
| `previousNames` | Old company names | list | can be empty list | `[]` | |
| `balanceSheetDate`, `agmDate` | Last balance sheet and AGM | date | yes | `2026-03-31` | |
| `lastUpdatedAt` | When the source page was updated | date | yes | `2026-11-12` | Use it to judge freshness |
| `directors` | Current directors | list | can be empty list | see example | `name`, `din`, `designation`, `appointedOn` |
| `directorsStatus` | Did the directors page load | text | no | `complete`, `not_requested`, `unavailable` | |
| `sourceUrl` | Public page of the company | URL | no | `https://www.instafinancials.com/company/x-...` | |
| `query`, `queryType` | What you entered | text | no | `Infosys`, `name` | `cin`, `name` or `url` |
| `fetchedAt` | When the Actor read the page | date-time | no | `2026-11-21T07:10:00.344Z` | |

#### Output entities and surfaces

| Situation | Dataset/API/KVS/live view | Result shape | User action |
| --- | --- | --- | --- |
| Normal item | Dataset, **Companies** view | One row with `status: complete` | Open, export or call the Dataset API |
| Domain-empty result | Dataset | Row with `status: not_found`, `query` and `statusReason` | Check the spelling or try the CIN |
| Partial result | Dataset + `RUN_SUMMARY` | Saved rows stay; `RUN_SUMMARY.partial: true`, `unfinishedInputs` lists what was not done | Run again with the unfinished inputs |
| Technical failure or retry | `RUN_SUMMARY`, run log | Run status FAILED, `partial: true`, saved rows kept | Wait a few minutes and run the unfinished inputs again |

#### Output example

```json
{
  "status": "complete",
  "cin": "L85110KA1981PLC013115",
  "name": "INFOSYS LIMITED",
  "companyStatus": "Active",
  "category": "Company limited by shares",
  "companyClass": "Public Company",
  "subcategory": "Indian Non-Government Company",
  "registrationDate": "1981-07-02",
  "authorizedCapitalInr": 24000000000,
  "paidUpCapitalInr": 20291382890,
  "state": "KA",
  "roc": "ROC Bangalore",
  "address": "ELECTRONICS CITY,HOSUR ROAD, BANGALORE, NA, KARNATAKA, Karnataka 560100, India",
  "activity": "Health And Social Work",
  "nicCode": "85110",
  "listingStatus": "Listed",
  "registrationNumber": "13115",
  "activeCompliant": "ACTIVE compliant",
  "statusUnderCIRP": null,
  "filingStatusLast2Years": null,
  "previousNames": [],
  "balanceSheetDate": "2026-03-31",
  "agmDate": "2026-06-23",
  "lastUpdatedAt": "2026-11-12",
  "directors": [
    {
      "name": "BOBBY KANUBHAI PARIKH",
      "din": "00019437",
      "designation": "Director",
      "appointedOn": "2021-06-19"
    }
  ],
  "directorsStatus": "complete",
  "source": "InstaFinancials public company page",
  "sourceUrl": "https://www.instafinancials.com/company/x-L85110KA1981PLC013115",
  "fetchedAt": "2026-11-21T07:10:00.344Z",
  "query": "Infosys",
  "queryType": "name"
}
```

This example is trimmed: the real row has nine directors. `null` means the source page shows no value or NA. Text fields keep the source's wording, so `activity` can look strange for some companies. The Actor does not fix or guess values.

#### Send results to Slack or Notion

Pick your connector in the optional `deliveryConnector` field. After the run saves its data, the Actor posts a short summary (up to 25 rows and a link to the full dataset) there. Put a Notion page link or a Slack channel ID in `deliveryTarget`: in Notion every run is added on top of that one page, so your workspace does not fill up with new pages. Without a page link, Notion delivery is skipped and the log says so. A delivery error never fails the run and costs nothing extra. Connect a service once in Apify Console → MCP connectors.

#### Use case → fields

| Buyer job | Input path | Output entity | Key fields | Next integration |
| --- | --- | --- | --- | --- |
| KYC check | `cins` | Company | `companyStatus`, `activeCompliant`, `lastUpdatedAt` | KYC sheet |
| Name to CIN | `companyNames` | Company | `cin`, `name`, `state` | CRM import |
| Directors | `cins` | Company | `directors[].din`, `directors[].name` | Dataset API |

> **👉 [Try it now: open the input form](https://console.apify.com/actors/nfx3y8jxLOxiZuYZ3/input)**

### Pricing

#### Pricing unit

You pay per event:

- **Actor start:** $0.005 per run. The start fee scales with run memory (per GB); the default 256 MB run pays $0.005.
- **Company:** one saved `complete` company row. $0.002 on the Free plan, $0.0018 on Bronze, $0.0016 on Silver, $0.0014 on Gold and higher plans.

Directors are included in the company price. `not_found` and `invalid_input` rows are free. A valid search with no match, or a filter with no matching company, costs only the start fee. If a run stops early, you pay only for rows that were saved. A failed company never costs more than a saved one. Platform usage is paid by the developer, not by you.

#### Cost examples

| Scenario | Input scope | Expected item/event count | Base charge | Optional charge | Stop/cap behavior |
| --- | --- | ---: | ---: | ---: | --- |
| One CIN | 1 CIN | 1 company | $0.007 (Free) | none | — |
| One name (prefill) | `Infosys` | 6 companies | $0.017 (Free), $0.0134 (Gold) | none | `resultsPerName` caps matches |
| Full run | up to 20 inputs | 20 companies | $0.045 (Free), $0.033 (Gold) | none | Stops at `maxItems` |
| No match | 1 unknown name | 0 companies | $0.005 | none | — |

> **👉 [Try it now: open the input form](https://console.apify.com/actors/nfx3y8jxLOxiZuYZ3/input)**

### Limits

- At most 20 inputs and 20 company rows per run. For more companies, start more runs.
- A name search returns at most six matches. The Actor cannot list all companies of an industry or a state without a name.
- Directors are the current public directors only (name, DIN, role, appointment date). No past directors, no emails or phone numbers.
- No paid MCA documents, financial statements or charges.
- Data comes from InstaFinancials public pages, not a live MCA portal query. `lastUpdatedAt` shows when the source page was updated. The source's terms limit commercial reuse of its data; check them for your use.
- One run has a 300-second timeout. The Actor stops new work after about 3 minutes and keeps what it saved.
- The source sometimes asks for a human check. Then the run fails, keeps the saved rows and lists the unfinished inputs.

> **👉 [Try it now: open the input form](https://console.apify.com/actors/nfx3y8jxLOxiZuYZ3/input)**

### API, export and integrations

- **API:** start a run with the input JSON above and read the dataset items through the Apify API.
- **Export:** download the dataset as JSON, CSV, Excel, XML or RSS. The **Companies** view puts directors in flat columns.
- **Scheduling:** run the same CIN list on an Apify schedule to see status changes.
- **Webhooks / no-code:** use an Apify webhook or the Make, Zapier or n8n integrations when a run ends.
- **Slack / Notion:** see [Send results to Slack or Notion](#send-results-to-slack-or-notion).

#### Use with AI agents (MCP)

- MCP server URL with only this Actor: `https://mcp.apify.com?tools=cliqtomedia/india-mca-company-data`.
- Smallest useful input: `{"companyNames": ["Infosys"]}`, or one CIN in `cins`.
- Key output fields: `cin` (company ID), `companyStatus` (Active, Strike Off and others), `paidUpCapitalInr` (paid-up capital in rupees), `roc` (registrar), `directors` (current directors with DIN).
- A six-company run takes about 40 seconds and costs $0.017 on the Free plan. Limits: 20 inputs and 20 companies per run, six matches per name.

> **👉 [Try it now: open the input form](https://console.apify.com/actors/nfx3y8jxLOxiZuYZ3/input)**

### Troubleshooting

#### A name gives a `not_found` row

Symptom: the dataset has a row with `status: not_found`.
Likely reason: the public search has no company with this name, or the name is too short or misspelled.
Check: search the name on the source site, or find the CIN.
Action: try the full legal name (for example `Infosys Limited`) or use the CIN in `cins`.

#### I got fewer rows than I expected

Symptom: fewer companies than six per name.
Likely reason: `state` or `status` filters, `resultsPerName`, `maxItems`, or the same CIN found twice.
Check: `RUN_SUMMARY.filteredCount` and `limitReached`.
Action: clear the filters or raise `maxItems`.

#### The run failed after some rows

Symptom: run status FAILED, but the dataset has rows.
Likely reason: the source asked for a human check or did not answer in time.
Check: `RUN_SUMMARY.partial` and `RUN_SUMMARY.unfinishedInputs`.
Action: wait a few minutes and run only the unfinished inputs. Saved rows from the first run stay.

#### `directors` is empty

Symptom: `directors: []` with `directorsStatus: unavailable`.
Likely reason: the directors page did not load. The company row is still saved.
Action: run this CIN again later.

> **👉 [Try it now: open the input form](https://console.apify.com/actors/nfx3y8jxLOxiZuYZ3/input)**

### FAQ

#### Do I need an MCA login or an API key?

No. The Actor reads public pages. You need only an Apify account.

#### Why is paid-up capital 0 for some companies?

The source page shows ₹0.00 for them, often for struck-off companies. The Actor keeps the source value.

#### Is the data live from the MCA portal?

No. It comes from InstaFinancials public pages, which copy MCA records. Check `lastUpdatedAt`. For a legal filing, confirm the record on the MCA portal.

#### Why are there only nine directors for Infosys?

The public page lists current directors only. Past directors are not on that page.

> **👉 [Try it now: open the input form](https://console.apify.com/actors/nfx3y8jxLOxiZuYZ3/input)**

### Related Actors

- [France Company Search: SIREN, SIRET & VAT (Sirene)](https://apify.com/cliqtomedia/france-sirene-company-search) — the same company lookup for France by SIREN, SIRET or name.
- [Norway Company Register (Brreg) & Updates](https://apify.com/cliqtomedia/norway-brreg-company-register) — company register data for Norway.
- [Finland Company Register (PRH YTJ)](https://apify.com/cliqtomedia/finland-ytj-company-register) — company register data for Finland.
- [Crunchbase Scraper: Companies, Funding, News, No Login](https://apify.com/cliqtomedia/crunchbase-companies) — funding and company profiles for start-ups.

> **👉 [Try it now: open the input form](https://console.apify.com/actors/nfx3y8jxLOxiZuYZ3/input)**

### Support

For a bug, question or feature request, open the Actor's **Issues** tab on Apify. Include the run ID, the input mode (CIN, name or URL) and the error text from `RUN_SUMMARY`. Never send tokens, cookies or private data.

⭐ Found it useful? [Rate this Actor](https://apify.com/cliqtomedia/india-mca-company-data/reviews).
Something wrong? [Report a problem](https://apify.com/cliqtomedia/india-mca-company-data/issues) — we fix reported problems.

# Changelog

This Actor's version history is a separate document: https://apify.com/cliqtomedia/india-mca-company-data/changelog.md

# Actor input Schema

## `cins` (type: `array`):

Exact 21-character CINs, one per line. Example: L85110KA1981PLC013115.

## `companyNames` (type: `array`):

Find up to six company matches per name, from the public source search. Example: Infosys.

## `startUrls` (type: `array`):

Public InstaFinancials company page URLs with a CIN; use this instead of searching by name.

## `state` (type: `string`):

Keep companies in this Indian state. Use the two-letter CIN state code, such as KA or MH.

## `status` (type: `string`):

Keep only this company status, for example Active or Strike Off.

## `resultsPerName` (type: `integer`):

Maximum public search matches per company name. The source returns at most six.

## `includeDirectors` (type: `boolean`):

Also read public director names, DINs, roles and appointment dates. No personal contact details are collected.

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

Maximum charged company records across all inputs. The Apify run Max items limit can lower this.

## `deliveryConnector` (type: `string`):

Your Slack, Notion or other MCP connector. After the run the Actor posts a short summary there. Connect services once in Apify Console → MCP connectors.

## `deliveryTarget` (type: `string`):

Where to post the summary: a Notion page link (each run is added on top of that page) or a Slack channel ID. Notion needs a page here; without it the summary is not sent and the run summary says why.

## Actor input object example

```json
{
  "companyNames": [
    "Infosys"
  ],
  "resultsPerName": 6,
  "includeDirectors": true,
  "maxItems": 20
}
```

# Actor output Schema

## `companies` (type: `string`):

Company records in the default Dataset.

## `runSummary` (type: `string`):

Counts, source, limits, delivery and errors.

# 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 = {
    "companyNames": [
        "Infosys"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("cliqtomedia/india-mca-company-data").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 = { "companyNames": ["Infosys"] }

# Run the Actor and wait for it to finish
run = client.actor("cliqtomedia/india-mca-company-data").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 '{
  "companyNames": [
    "Infosys"
  ]
}' |
apify call cliqtomedia/india-mca-company-data --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,cliqtomedia/india-mca-company-data"
        }
    }
}
```

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/nfx3y8jxLOxiZuYZ3/builds/Qdv9ViSv1CyPAI0yA/openapi.json
