# India Stock Fundamentals: Screener + Moneycontrol (`fascinating_lentil/india-stock-fundamentals-scraper`) Actor

Indian stock prices, ratios, financials, and shareholding data from Screener.in and Moneycontrol.

- **URL**: https://apify.com/fascinating\_lentil/india-stock-fundamentals-scraper.md
- **Developed by:** [Md Jakaria Mirza](https://apify.com/fascinating_lentil) (community)
- **Categories:** Automation, Other
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 stock scrapeds

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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

## India Stock Fundamentals Scraper - Prices, Ratios, Financials & Shareholding

Scrape Indian stock fundamentals - live prices, valuation ratios, quarterly and annual financial results, growth metrics, and shareholding data - from Screener.in and Moneycontrol. This India stock scraper accepts NSE symbols or BSE codes and returns one clean, normalized record per stock. Export to JSON, CSV, Excel, or HTML, or pull via the Apify API. No login and no API key required.

Built with Node.js 20, TypeScript, and the Apify SDK using browser-free HTTP scraping. It resolves exact NSE/BSE symbols through Moneycontrol autocomplete, merges both sources into a single record per stock, and adds retries, timeouts, deduplication, and bounded concurrency so runs stay reliable at scale.

### What It Extracts

- `symbol`, `companyName`, `nseCode`, `bseCode`, `isin`
- `sector` and `industry`
- `currentPrice` and `currentPriceSource` (moneycontrol or screener)
- `marketCapCrore`, `peRatio`, `pbRatio`, `dividendYieldPercent`
- `epsTtm`, `bookValuePerShare`, `faceValue`
- `roePercent` and `rocePercent`
- `salesGrowth3YPercent` and `profitGrowth3YPercent`
- `week52High`, `week52Low`, `previousClose`, `dayChange`, `dayChangePercent`, `volume`
- `promoterHoldingPercent`, `fiiHoldingPercent`, `diiHoldingPercent`, `publicHoldingPercent`
- `quarterlyResults` and `annualResults` - arrays of `period`, `revenueCrore`, `netProfitCrore`, `eps`
- `sourceStatus` - per-source request status (`requested`, `ok`, `url`, `error`)
- `sourceData` - original Screener.in and Moneycontrol values
- `scrapedAt` - scrape timestamp

Financial statement values are reported in INR crores. Prices and per-share values are in INR. Percentage fields use percentage points, so `18.5` means 18.5%.

### Use Cases

1. Fundamental stock screening and building Indian equity watchlists.
2. Portfolio research and valuation comparison across NSE and BSE stocks.
3. Powering Indian equity dashboards and data pipelines with normalized fields.
4. Historical quarterly and annual financial analysis with growth metrics.
5. Promoter, FII, and DII shareholding monitoring over time.
6. Fintech prototypes and spreadsheet enrichment from real market data.

### Pricing

This Actor uses Apify Pay Per Event pricing. You pay only for successful stock records stored in the dataset. Selecting both sources still creates and charges for one merged stock record. Failed symbols that return no usable data are not stored and are not charged.

| Event name | Price per event | 10 stocks | 100 stocks | 1,000 stocks |
| --- | ---: | ---: | ---: | ---: |
| `stock-scraped` | $0.002 | $0.02 | $0.20 | $2.00 |

### Input

| Field | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `symbols` | string[] | yes | `RELIANCE, TCS` | NSE symbols or BSE codes |
| `source` | string | no | `both` | `screener`, `moneycontrol`, or `both` |
| `consolidated` | boolean | no | `true` | Use consolidated Screener.in statements |
| `includeFinancials` | boolean | no | `true` | Include four quarters and five annual periods |
| `includeShareholding` | boolean | no | `true` | Include latest promoter, FII, DII, and public holdings |
| `maxResults` | integer | no | `10` | Maximum unique stocks, up to 100 |
| `maxConcurrency` | integer | no | `3` | Parallel stocks, from 1 to 10 |
| `proxyConfiguration` | object | no | Apify proxy | Optional Apify proxy configuration |

#### Example input

```json
{
  "symbols": ["RELIANCE", "TCS", "INFY", "500180"],
  "source": "both",
  "consolidated": true,
  "includeFinancials": true,
  "includeShareholding": true,
  "maxResults": 10,
  "maxConcurrency": 3,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
````

### How to Scrape India Stock Fundamentals (Step by Step)

1. Click **Try for free** / **Run**.
2. Enter NSE symbols or BSE codes in `symbols` (for example `RELIANCE`, `TCS`, `INFY`, `500325`).
3. Choose a `source`: `screener`, `moneycontrol`, or `both` to merge them into one record.
4. Toggle `includeFinancials` and `includeShareholding`, then set `maxResults` (start small to test).
5. Run the Actor, then export results as JSON, CSV, Excel, or HTML, or pull them via the Apify API.

### Sample Output

```json
{
  "symbol": "RELIANCE",
  "companyName": "Reliance Industries",
  "nseCode": "RELIANCE",
  "bseCode": "500325",
  "isin": "INE002A01018",
  "sector": "Oil & Gas",
  "industry": "Refineries",
  "currentPrice": 1267.5,
  "currentPriceSource": "moneycontrol",
  "marketCapCrore": 1715249.28,
  "peRatio": 39.12,
  "pbRatio": 3.03,
  "dividendYieldPercent": 0.4,
  "epsTtm": 32.4,
  "bookValuePerShare": 418.6,
  "faceValue": 10,
  "roePercent": 8.01,
  "rocePercent": 8.37,
  "salesGrowth3YPercent": 12.5,
  "profitGrowth3YPercent": 9.8,
  "week52High": 1608.8,
  "week52Low": 1114.85,
  "previousClose": 1259.3,
  "dayChange": 8.2,
  "dayChangePercent": 0.65,
  "volume": 8412305,
  "promoterHoldingPercent": 50,
  "fiiHoldingPercent": 21.4,
  "diiHoldingPercent": 17.8,
  "publicHoldingPercent": 10.8,
  "quarterlyResults": [
    {
      "period": "Mar 2026",
      "revenueCrore": 264573,
      "netProfitCrore": 22146,
      "eps": 16.37
    }
  ],
  "annualResults": [
    {
      "period": "Mar 2026",
      "revenueCrore": 1009000,
      "netProfitCrore": 81000,
      "eps": 59.8
    }
  ],
  "sourceStatus": {
    "screener": { "requested": true, "ok": true, "url": "https://www.screener.in/company/RELIANCE/consolidated/", "error": null },
    "moneycontrol": { "requested": true, "ok": true, "url": "https://www.moneycontrol.com/india/stockpricequote/refineries/relianceindustries/RI", "error": null }
  },
  "scrapedAt": "2026-06-11T10:00:00.000Z"
}
```

Original source-specific values remain available under `sourceData`.

### How It Works

1. Validates the input and resolves each symbol to exact NSE/BSE identifiers through Moneycontrol autocomplete data.
2. Fetches fundamentals from Screener.in and live quote data from Moneycontrol over HTTP, based on the selected `source`.
3. Normalizes both sources into one record per stock, including optional quarterly/annual results and shareholding.
4. Deduplicates symbols and records per-source status under `sourceStatus`.
5. Charges `stock-scraped` only after a clean record is saved, then writes it to the Apify Dataset.

### Local Development

```powershell
npm install
npm run build
New-Item -ItemType Directory -Force storage\key_value_stores\default
Copy-Item input.json storage\key_value_stores\default\INPUT.json
npm start
```

Local `input.json` disables the Apify proxy. The Actor input schema enables it by default for cloud runs.

### Known Limits

- Screener.in may expose different standalone and consolidated values; use `consolidated` to choose.
- Moneycontrol quote values can change during market hours.
- Source-specific values can differ because of update timing or methodology.
- `quarterlyResults`, `annualResults`, and shareholding fields are only included when `includeFinancials` / `includeShareholding` are enabled and available.
- `maxResults` is capped at 100 unique stocks per run.
- This Actor provides public market data for research and automation, not investment advice.

### License

Apache-2.0. See `LICENSE`.

# Actor input Schema

## `symbols` (type: `array`):

Examples: RELIANCE, TCS, INFY, HDFCBANK, or 500325.

## `source` (type: `string`):

Use Screener.in, Moneycontrol, or merge both into one record per stock.

## `consolidated` (type: `boolean`):

Use consolidated Screener.in results when available.

## `includeFinancials` (type: `boolean`):

Adds the latest four quarters and five annual periods from Screener.in.

## `includeShareholding` (type: `boolean`):

Adds the latest promoter, FII, DII, and public holdings from Screener.in.

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

Limits the number of unique symbols processed in one run.

## `maxConcurrency` (type: `integer`):

Number of stocks processed at the same time. Keep this modest to avoid rate limits.

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

Optional proxy settings. Datacenter or no proxy usually works; residential proxy can improve reliability at scale.

## Actor input object example

```json
{
  "symbols": [
    "RELIANCE",
    "TCS"
  ],
  "source": "both",
  "consolidated": true,
  "includeFinancials": true,
  "includeShareholding": true,
  "maxResults": 10,
  "maxConcurrency": 3,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("fascinating_lentil/india-stock-fundamentals-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("fascinating_lentil/india-stock-fundamentals-scraper").call(run_input=run_input)

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

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

```

## CLI example

```bash
echo '{}' |
apify call fascinating_lentil/india-stock-fundamentals-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=fascinating_lentil/india-stock-fundamentals-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "India Stock Fundamentals: Screener + Moneycontrol",
        "description": "Indian stock prices, ratios, financials, and shareholding data from Screener.in and Moneycontrol.",
        "version": "1.0",
        "x-build-id": "EnPHc5pIcpt3KpkgE"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/fascinating_lentil~india-stock-fundamentals-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-fascinating_lentil-india-stock-fundamentals-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/fascinating_lentil~india-stock-fundamentals-scraper/runs": {
            "post": {
                "operationId": "runs-sync-fascinating_lentil-india-stock-fundamentals-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/fascinating_lentil~india-stock-fundamentals-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-fascinating_lentil-india-stock-fundamentals-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "symbols"
                ],
                "properties": {
                    "symbols": {
                        "title": "NSE symbols or BSE codes",
                        "uniqueItems": true,
                        "type": "array",
                        "description": "Examples: RELIANCE, TCS, INFY, HDFCBANK, or 500325.",
                        "items": {
                            "type": "string"
                        },
                        "default": [
                            "RELIANCE",
                            "TCS"
                        ]
                    },
                    "source": {
                        "title": "Data source",
                        "enum": [
                            "both",
                            "screener",
                            "moneycontrol"
                        ],
                        "type": "string",
                        "description": "Use Screener.in, Moneycontrol, or merge both into one record per stock.",
                        "default": "both"
                    },
                    "consolidated": {
                        "title": "Use consolidated financials",
                        "type": "boolean",
                        "description": "Use consolidated Screener.in results when available.",
                        "default": true
                    },
                    "includeFinancials": {
                        "title": "Include quarterly and annual results",
                        "type": "boolean",
                        "description": "Adds the latest four quarters and five annual periods from Screener.in.",
                        "default": true
                    },
                    "includeShareholding": {
                        "title": "Include shareholding pattern",
                        "type": "boolean",
                        "description": "Adds the latest promoter, FII, DII, and public holdings from Screener.in.",
                        "default": true
                    },
                    "maxResults": {
                        "title": "Maximum stocks",
                        "minimum": 1,
                        "maximum": 100,
                        "type": "integer",
                        "description": "Limits the number of unique symbols processed in one run.",
                        "default": 10
                    },
                    "maxConcurrency": {
                        "title": "Concurrency",
                        "minimum": 1,
                        "maximum": 10,
                        "type": "integer",
                        "description": "Number of stocks processed at the same time. Keep this modest to avoid rate limits.",
                        "default": 3
                    },
                    "proxyConfiguration": {
                        "title": "Proxy configuration",
                        "type": "object",
                        "description": "Optional proxy settings. Datacenter or no proxy usually works; residential proxy can improve reliability at scale.",
                        "default": {
                            "useApifyProxy": true
                        }
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
