# BSE India Market Watch Scraper (`bovi/bseindia-scraper`) Actor

Collects public BSE India equity market-watch records with company name, ticker, BSE stock-page URL, price, change, volume, turnover, and available trading details.

- **URL**: https://apify.com/bovi/bseindia-scraper.md
- **Developed by:** [Vitalii Bondarev](https://apify.com/bovi) (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 $3.45 / 1,000 bse india market watch scrapers

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?

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

## BSE India Market Watch Scraper

This Actor scrapes public BSE India equity market-watch records, with no login or API key needed, for people who need listed-company quotes. Each saved row is one company.

- Extract last price, change, percent change, open, high, low, and previous close when BSE returns a usable number.
- Download company name, ticker, BSE security code, and stock-page URL to build an equity watchlist.
- Compare volume and turnover for companies from the same market-watch request.
- Track the last-trade time BSE returned for each company when that text is present.
- Export the figures from that request only; nothing here is a calculated or forecast price.

### What you get

Each dataset row is one company from the public equity market-watch JSON at `https://api.bseindia.com/BseIndiaAPI/api/GetStkCurrMain_new/w`. The request uses the market-watch page `https://www.bseindia.com/markets/equity/EQReports/MarketWatch` as its referer. Filters stay fixed at `Equity`, `All`, and `All` (`m` `0`, `srts` `D`, `srtb` `6`); only the page number changes.

An optional field is absent from the record, not `null` and not zero, when BSE gives no usable value.

| Field | Type | Required | Detail |
| --- | --- | --- | --- |
| title | string | Yes | Company name from `LongName`. |
| url | string | Yes | HTTPS stock-page URL on `bseindia.com` or `www.bseindia.com` whose path starts with `/stock-share-price/`. |
| symbol | string | No | Ticker text from `ScripName`. |
| scripCode | string | No | BSE security code from `Symbol`. |
| price | number | No | Last price when that value is a finite number. |
| change | number | No | Price change when finite. |
| percentChange | number | No | Percent change when finite. |
| volume | integer | No | Volume when the parsed value is a whole number. |
| turnover | number | No | Turnover when finite. |
| open | number | No | Open when finite. |
| high | number | No | High when finite. |
| low | number | No | Low when finite. |
| previousClose | number | No | Previous close from `PreCloseRate` when finite. |
| lastTradeTime | string | No | Last-trade time text from `LastTrdTime`. |

The default dataset view is a table labeled Company, Ticker, BSE code, Price, Change, Change %, Volume, and BSE stock page. Those columns are `title`, `symbol`, `scripCode`, `price`, `change`, `percentChange`, `volume`, and `url`. Turnover, open, high, low, previous close, and last-trade time stay on the record even when that view hides them.

> **Note:** A missing numeric key means the value was blank, `-`, `--`, `n/a`, `null`, not numeric, or not finite. Commas are stripped before a number is parsed. The field is left out; it is not stored as zero.

### Sample output

One full record from a successful run:

```json
{
  "title": "National Stock Exchange of India Ltd",
  "url": "https://www.bseindia.com/stock-share-price/national-stock-exchange-of-india-ltd/nse/544937/",
  "symbol": "NSE",
  "scripCode": "544937",
  "price": 1989.8,
  "change": 0.1,
  "percentChange": 0.01,
  "turnover": 51026,
  "open": 1997,
  "high": 2007.6,
  "low": 1981,
  "previousClose": 1989.7,
  "volume": 2558541,
  "lastTradeTime": "13 Nov 2026 12:55"
}
```

### Pricing

This Actor uses pay-per-event billing. The live prices below are Free-plan prices.

You pay only for the events listed below. This Actor does not use the Pay per event + usage option, so the platform usage of your runs (compute, proxy traffic and storage) is not billed to you separately.

| Event | What is charged | Free-plan price |
| --- | --- | --- |
| Actor Start (`apify-actor-start`) | Charged when the run starts. Events depend on memory: one event per GB, with a minimum of one event. Default memory is 512 MB, so the minimum is one event. | $0.00005 |
| BSE India Market Watch Scraper (`apify-default-dataset-item`) — per saved dataset row | One saved dataset row. This is the primary event. | $0.00345 |

On the Free plan, 50 saved rows cost $0.17255: 50 × $0.00345 = $0.1725, plus one Free-plan Actor Start at $0.00005. Default memory is 512 MB, so Actor Start is one event.

1,000 saved rows at Free-plan rates = 1,000 × $0.00345 + $0.00005 = $3.45005. 10,000 saved rows at Free-plan rates = 10,000 × $0.00345 + $0.00005 = $34.50005. 1,400 saved rows at Free-plan rates = 1,400 × $0.00345 + $0.00005 = $4.83005. A Free-plan run stops after the first result page, so a Free run cannot reach these sizes.

Actor Start is charged when the run starts, including a run that saves no rows. Dataset-item charges apply only to rows that are saved. Filtered, duplicate, and unsaved response lines are not dataset items.

The Apify Free plan includes $5 of monthly platform usage credit. The $5 credit covers 28 runs of 50 saved rows (1,400 rows). This is credit capacity, not the size of one Free run.

### How to use

1. Sign in to Apify with your own account and open BSE India Market Watch Scraper.
2. Set `maxResults` to the maximum number of records to save.
3. Leave `proxyConfiguration` on Apify Residential, or set `useApifyProxy` to false and omit `proxyUrls` only when you want the direct connection.
4. Start the run and wait for it to finish.
5. Review the dataset for company name, ticker, BSE code, price, change, volume, and stock-page URL.
6. Repeat the run through Apify Schedules, using a daily schedule as a starting point for these price records.

Example input:

```json
{
  "maxResults": 50,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": ["RESIDENTIAL"]
  }
}
```

Export the dataset as JSON or CSV, or read it through the Apify dataset API.

### Input parameters

The Actor reads `maxResults` and `proxyConfiguration`. A `maxResults` that cannot be converted to an integer is treated as 50, a decimal number is cut to its whole part, and any value below 1 is raised to 1.

| Parameter | What it does | Default |
| --- | --- | --- |
| maxResults | Maximum number of unique stock-page URLs to save. | 50 |
| proxyConfiguration | Proxy settings. If the field is missing, Apify Residential is used. If `useApifyProxy` is false and `proxyUrls` is absent, requests go out on the direct connection. Any other object is passed through as the proxy configuration. | `useApifyProxy` true, `apifyProxyGroups` `["RESIDENTIAL"]` |

### Limits and edge cases

Quotes can change while the market is open. The Actor stores the values returned for that request. The request has no page-size setting, and rows are pushed to the dataset one at a time as each is saved. To see how many rows one page holds, start one Free-plan run and read the dataset item count.

| Condition | What you see | What to do |
| --- | --- | --- |
| Free plan, and the next fetch would be page 2 or later | Fetching stops before that request. The status message is a Free-plan preview naming how many items were saved and the cap `result pages`. The key-value record `OUTPUT` contains `free_plan_preview`, `items_returned`, `items_requested`, `limits_applied`, `upgrade_url`, and `message`. No placeholder rows are added to the dataset. If `maxResults` is reached on page 1, or page 1 is empty, or the charge limit stops the run on page 1, no cap is noted and no `OUTPUT` record is written. The status message is then `Collected`, the number saved, and `records.` | Use a paid Apify plan to request later pages. The upgrade link stored on that record is `https://console.apify.com/billing/subscription`. |
| Account plan flag | Only `APIFY_USER_IS_PAYING` of `0` or `false` (case-insensitive, stripped) is treated as Free. A missing or unknown value is treated as full access. | This is not an input. It comes from the Apify account. |
| `maxResults` unique URLs already saved | The loop stops. If no Free cap applied, the status message is `Collected`, the number saved, and `records.` | Raise `maxResults` on a later run. |
| A page has no parseable rows | The loop stops. Rows already saved stay. If the first page has no parseable rows, the run ends as Succeeded with an empty dataset and the status message `Collected 0 records.` No `OUTPUT` record is written. | Run again later if you expected listings. |
| Repeated stock-page URL | The later copy is not saved. | Count unique URLs, not raw response lines. |
| Missing title, or a URL that is not https on `bseindia.com` or `www.bseindia.com` under `/stock-share-price/` | That response row is skipped. | It will not appear in the dataset. |
| Page number would pass 40 | No further page is requested, even if `maxResults` is still unmet. | 40 pages is the maximum. |
| Run charge limit hit on a push | That row is already saved. The log says `Charge limit reached; stopping with` the number of rows saved. Nothing further is pushed. | Raise the run charge limit and start another run for more rows. |
| Request fails | Up to 6 attempts are made, each with a 40-second timeout. Pauses between attempts are 1, 2, 4, 8, and 16 seconds. With a proxy on, each attempt uses a new proxy session. If all attempts fail, the last error is raised and the run fails. Rows saved before the failure stay in the dataset. An abort or a timeout leaves rows already pushed in the dataset. | Rerun. Use the direct connection only when you set it on purpose. |

### FAQ

#### How much does it cost to scrape BSE India market watch?

Pricing states the Free-plan prices for Actor Start and each saved row, with worked totals for 50, 1,000, and 1,400 rows and the $5 monthly credit.

#### Why is the dataset empty?

The first page had no parseable company rows with a valid stock-page URL. Limits and edge cases cover the Succeeded empty run, the missing `OUTPUT` record, and a later page that fails after retries.

#### Why did the run stop before maxResults?

Limits and edge cases list each stop: `maxResults`, 40 pages, an empty page, the charge limit, and a Free plan after the first page, including when the status says `Collected` and when `OUTPUT` is written.

#### Can I extract one ticker or one index?

No. There is no ticker, index, or group input. Every request asks for equity with both list filters set to All, then keeps each stock-page URL once until a stop condition. To keep a short list, set `maxResults` and filter the dataset after the run.

#### Is it legal to collect this public BSE data?

The Actor reads public equity market-watch records from the BSE India market-watch page and the public `GetStkCurrMain_new` response. Whether that collection is allowed depends on BSE India’s terms and on the law that applies to your use case. This page does not give a legal guarantee.

### Usage statistics

This Actor creates a small, content-free summary at the end of each run, used only to monitor reliability and improve this Actor. No input values, credentials or scraped data are sent.

A copy of the exact record for your run is saved as `USAGE_STATS` in your own Apify key-value store.

To opt out, set `disableUsageStats` to `true` in the input. Nothing is sent then.

[Full list of collected fields](https://api.apify.com/v2/key-value-stores/v9rgHjMKLDGtHf8tD/records/index.html)

# Actor input Schema

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

Maximum number of BSE equity market-watch records to collect.

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

Proxy settings. Apify Residential is used by default.

## Actor input object example

```json
{
  "maxResults": 50,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

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

Dataset with the collected records.

# 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 = {
    "maxResults": 50,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("bovi/bseindia-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 = {
    "maxResults": 50,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("bovi/bseindia-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 '{
  "maxResults": 50,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call bovi/bseindia-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,bovi/bseindia-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/OSK7mQ10E7cowfJJG/builds/XAz9SkopB9Az69g2f/openapi.json
