# AMFI Mutual Fund NAV Data: Daily NAV for All Indian Funds (`jayraj0975/amfi-nav-bulk`) Actor

Get the latest AMFI net asset values for Indian mutual funds: scheme code, name, NAV, date, fund house. Official AMFI public file. Pay per result.

- **URL**: https://apify.com/jayraj0975/amfi-nav-bulk.md
- **Developed by:** [Jay Gaikwad](https://apify.com/jayraj0975) (community)
- **Categories:** Business, Agents
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$2.00 / 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.

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

## India Mutual Fund NAV (AMFI Latest NAV Feed)

Parse AMFI's publicly published `NAVAll.txt` feed into structured records and push them to the Apify dataset — one record per scheme/plan/option, plus explicit rows for not-found or invalid-input entries.

### What it does

- Downloads AMFI's publicly published latest NAV text file: `https://www.amfiindia.com/spages/NAVAll.txt` (this Actor is unofficial and not operated by AMFI; the file follows redirects).
- Walks the semicolon-separated file, keeping track of the current **category** (from `Open Ended Schemes(...)` / `Close Ended Schemes(...)` headers) and **fund house** (from `... Mutual Fund` lines).
- Skips header lines, blank separator lines, and rows where the NAV is `N.A.`.
- Normalizes `navDate` values such as `11-Nov-2026` into ISO `YYYY-MM-DD`.
- Applies optional filters (`schemeCodes`, `nameContains`, `fundHouse`) and honors `maxItems`.
- Fails loudly (`LayoutChangedError`) if the feed is unreachable, empty, or not in the expected layout. On successful parse it does not push empty or malformed items; rows for filters that match nothing or for invalid input are pushed as explicit not-found/invalid records (see Pricing).
- Fetches at most **1 request per second**.

### Input

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `schemeCodes` | array of strings | No | Exact AMFI scheme codes to include (e.g. `["135762","128628"]`). Leave empty for all. |
| `nameContains` | string | No | Case-insensitive substring match against `schemeName` (e.g. `"ELSS"`, `"Bluechip"`). |
| `fundHouse` | string | No | Case-insensitive substring match against the fund house name (e.g. `"HDFC"`, `"Axis"`). |
| `maxItems` | integer | No | Maximum number of records pushed (default `100`, minimum `1`). |

### Output fields

Each pushed record contains:

- `schemeCode` — AMFI scheme code
- `isinGrowth` — ISIN for the growth option, if published
- `isinReinvest` — ISIN for the reinvestment option, if published
- `schemeName` — scheme name as published
- `plan` — plan (e.g. Direct Plan, Regular Plan)
- `option` — option (e.g. Growth Option, IDCW)
- `fundHouse` — fund house name
- `category` — category header the row appeared under
- `netAssetValue` — NAV as published (number or null where unavailable)
- `navDate` — NAV date normalized to ISO `YYYY-MM-DD`

Rows for not-found filters or invalid input use the same dataset and carry a status indicating not-found or invalid input rather than a parsed record.

Example record (illustrative; values vary):

```json
{
  "schemeCode": "135762",
  "isinGrowth": "INF846K01WO1",
  "isinReinvest": null,
  "schemeName": "Axis Children's Fund",
  "plan": "Direct Plan",
  "option": "Growth Option",
  "fundHouse": "Axis Mutual Fund",
  "category": "Open Ended Schemes(Children’s Fund - Childrens' Fund)",
  "netAssetValue": 31.0915,
  "navDate": "2026-11-11"
}
```

### Pricing

**$2 per 1,000 results** (pay-per-result, charged per pushed dataset item). Every row pushed to the dataset is one billed result — including not-found rows and invalid-input rows.

### Limits

- Source is a single public text file; the whole file is parsed on each run.
- The file typically contains tens of thousands of rows — use `maxItems` and filters to limit pushes.
- NAVs are historical snapshots published by AMFI; use the AMFI source file as the source of truth.
- AMFI's `NAVAll.txt` is published for public reference; confirm AMFI's terms of use regarding redistribution before commercial dependence.

### Disclaimer

This Actor is **unofficial** and is **not affiliated with AMFI or any asset management company**. It reads **public data only** from the publicly accessible AMFI `NAVAll` feed. No login, no captchas, no personal data. Data and availability are provided **as-is, with no guarantee of accuracy, completeness, or availability** — upstream layout or availability changes may break the run (in which case the Actor fails with a clear error rather than pushing bad data).

This Actor provides **public NAV snapshots** and is **not investment, tax, or financial advice**, and is not a real-time valuation. Always verify against the AMFI source file before any investment or reporting decision.

# Actor input Schema

## `schemeCodes` (type: `array`):

Optional list of AMFI scheme codes to include (exact match). Leave empty for all schemes.

## `nameContains` (type: `string`):

Optional case-insensitive substring match against the scheme name (e.g. 'Bluechip', 'ELSS').

## `fundHouse` (type: `string`):

Optional case-insensitive substring match against the fund house name (e.g. 'HDFC', 'Axis').

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

Maximum number of NAV records to push to the dataset.

## Actor input object example

```json
{
  "maxItems": 100
}
```

# Actor output Schema

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

No description

# 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("jayraj0975/amfi-nav-bulk").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("jayraj0975/amfi-nav-bulk").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 '{}' |
apify call jayraj0975/amfi-nav-bulk --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,jayraj0975/amfi-nav-bulk"
        }
    }
}
```

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/8Bcvcu7hnobRQ7YFp/builds/VuflJgxNt0R0cxg1j/openapi.json
