mfapi
Query Indian mutual fund NAV data, scheme info, and history via the free MFapi.in REST API.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/kanaksinghal/mfapiMFapi Skill
Query Indian mutual fund data — NAV history, scheme info, search — using the free MFapi.in API.
Setup
No authentication or API keys required. The API is completely free and open.
Ensure curl and jq are installed:
# Debian/Ubuntu
sudo apt install -y curl jq
# macOS
brew install curl jq
What is an ISIN Code?
ISIN (International Securities Identification Number) is a 12-character alphanumeric code that uniquely identifies a security globally (e.g. INF200K01UT4). Indian mutual fund schemes have up to two ISINs:
- isinGrowth — identifies the Growth option of the scheme
- isinDivReinvestment — identifies the IDCW (Dividend) Reinvestment option (may be
null)
ISIN codes are printed on CAS (Consolidated Account Statements), broker/demat platforms, and AMFI's website. They are stable identifiers — unlike scheme names, they don't change when a fund house rebrands.
Base URL
https://api.mfapi.in
Data is updated 6× daily (10:05 AM, 2:05 PM, 6:05 PM, 9:05 PM, 3:09 AM, 5:05 AM IST).
Usage
Search schemes by name
curl -s "https://api.mfapi.in/mf/search?q=HDFC" | jq '.[] | {schemeCode, schemeName}'
List all schemes (paginated)
curl -s "https://api.mfapi.in/mf?limit=100&offset=0" | jq '.[] | {schemeCode, schemeName}'
Get latest NAV for a scheme
curl -s "https://api.mfapi.in/mf/125497/latest" | jq '{scheme: .meta.scheme_name, nav: .data[0].nav, date: .data[0].date}'
Get NAV history for a scheme
curl -s "https://api.mfapi.in/mf/125497" | jq '{scheme: .meta.scheme_name, records: (.data | length)}'
Get NAV history with date range
curl -s "https://api.mfapi.in/mf/125497?startDate=2023-01-01&endDate=2023-12-31" | jq '.data'
Get latest NAV for all schemes
curl -s "https://api.mfapi.in/mf/latest" | jq '.[:5]'
Response Formats
Latest NAV (/mf/{scheme_code}/latest)
{
"meta": {
"fund_house": "HDFC Mutual Fund",
"scheme_type": "Open Ended Schemes",
"scheme_category": "Equity Scheme - Large Cap Fund",
"scheme_code": 125497,
"scheme_name": "HDFC Top 100 Fund - Direct Plan - Growth",
"isin_growth": "INF179K01BB2",
"isin_div_reinvestment": null
},
"data": [
{
"date": "26-10-2024",
"nav": "892.45600"
}
],
"status": "SUCCESS"
}
Search (/mf/search?q=...)
[
{
"schemeCode": 125497,
"schemeName": "HDFC Top 100 Fund - Direct Plan - Growth"
}
]
Scheme list (/mf)
[
{
"schemeCode": 125497,
"schemeName": "HDFC Top 100 Fund - Direct Plan - Growth",
"isinGrowth": "INF179K01BB2",
"isinDivReinvestment": "INF179K01BC0"
}
]
Endpoints Reference
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-kanaksinghal-mfapi": {
"enabled": true,
"auto_update": true
}
}
}