Manager - Finance & Accounts
58320 Points
Joined June 2010
You're on the right track — many APIs out there (like Yahoo Finance, Alpha Vantage, IEX Cloud) mainly serve US/global markets, and retrieving NSE (India) stock data is tricky due to restrictions.
But yes, there are a few India-based APIs (some free, some limited) that can help you pull NSE stock data into spreadsheets.
✅ Best APIs for NSE (India) Stock Data
🔹 1. NSE India (Official Website) – Unofficial API
While NSE doesn't officially offer a public API, developers use web-scraping or unofficial endpoints.
Example Endpoint:
❗ You'll need to set custom headers (like user-agent) and use it via Python, Apps Script, etc.
🔧 How to Use:
⛔ Limitations:
🔹 2. Groww / Zerodha Kite / Upstox APIs (For Trading + Data)
These are broker-backed APIs — need account & token.
Platform |
Access Type |
Notes |
Zerodha Kite Connect |
Paid |
₹2000/month for access, very powerful |
Upstox API |
Free/Paid |
Good documentation |
Groww API |
Beta/invite-based |
Use with Groww account |
✅ Includes live prices, historical data, orders, etc.
⚠ Requires you to be a customer and go through API token setup.
🔹 3. RapidAPI – Unofficial NSE API
Some developers have hosted NSE stock APIs on RapidAPI.
Example:
-
NSE Stock API – returns quotes, option chains, etc.
-
Needs API key (free tier usually available)
🔹 4. Value Research / Screener.in (For Fundamentals)
While they don't offer real-time data:
-
Screener.in allows export to Excel
-
Great for financials, P&L, balance sheet, ratios
Use it for analysis, not price tracking.
🔹 5. Google Sheets Add-ons (Limited Support)
✅ Recommendation (Free & Practical)
If you want free + spreadsheet integration, try this:
📌 Method: Google Sheets + Apps Script + NSE Unofficial API
-
Go to Google Sheets > Extensions > Apps Script
-
Paste this code:
-
Save it, then use:
in your sheet.
⚠ You may need to run it manually first to authorize the scriptt.
🧠 Summary
API Type |
Source |
Free? |
Best For |
Unofficial NSE |
nseindia.com |
✅ |
Basic live prices |
Broker APIs |
Zerodha, Upstox |
❌ |
Live trading + data |
Screener / ValueResearch |
Screener.in |
✅ |
Financials & ratios |
RapidAPI |
Community APIs |
✅ (limited) |
Options & quotes |
GoogleFinance |
Google Sheets |
❌ (Inconsistent) |
Hit or miss for NSE |